000-debian_16.patch 1.1 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132341333413434135341363413734138341393414034141341423414334144341453414634147341483414934150341513415234153341543415534156341573415834159341603416134162341633416434165341663416734168341693417034171341723417334174341753417634177341783417934180341813418234183341843418534186341873418834189341903419134192341933419434195341963419734198341993420034201342023420334204342053420634207342083420934210342113421234213342143421534216342173421834219342203422134222342233422434225342263422734228342293423034231342323423334234342353423634237342383423934240342413424234243342443424534246342473424834249342503425134252342533425434255342563425734258342593426034261342623426334264342653426634267342683426934270342713427234273342743427534276342773427834279342803428134282342833428434285342863428734288342893429034291342923429334294342953429634297342983429934300343013430234303343043430534306343073430834309343103431134312343133431434315343163431734318343193432034321343223432334324343253432634327343283432934330343313433234333343343433534336343373433834339343403434134342343433434434345343463434734348343493435034351343523435334354343553435634357343583435934360343613436234363343643436534366343673436834369343703437134372343733437434375343763437734378343793438034381343823438334384343853438634387343883438934390343913439234393343943439534396343973439834399344003440134402344033440434405344063440734408344093441034411344123441334414344153441634417344183441934420344213442234423344243442534426344273442834429344303443134432344333443434435344363443734438344393444034441344423444334444344453444634447344483444934450344513445234453344543445534456344573445834459344603446134462344633446434465344663446734468344693447034471344723447334474344753447634477344783447934480344813448234483344843448534486344873448834489344903449134492344933449434495344963449734498344993450034501345023450334504345053450634507345083450934510345113451234513345143451534516345173451834519345203452134522345233452434525345263452734528345293453034531345323453334534345353453634537345383453934540345413454234543345443454534546345473454834549345503455134552345533455434555345563455734558345593456034561345623456334564345653456634567345683456934570345713457234573345743457534576345773457834579345803458134582345833458434585345863458734588345893459034591345923459334594345953459634597345983459934600346013460234603346043460534606346073460834609346103461134612346133461434615346163461734618346193462034621346223462334624346253462634627346283462934630346313463234633346343463534636346373463834639346403464134642346433464434645346463464734648346493465034651346523465334654346553465634657346583465934660346613466234663
  1. Index: linux-atm-2.4.1/Makefile.in
  2. ===================================================================
  3. --- linux-atm-2.4.1.orig/Makefile.in 2007-10-20 19:19:10.830245661 +0200
  4. +++ linux-atm-2.4.1/Makefile.in 2007-10-20 19:19:11.698295124 +0200
  5. @@ -1,4 +1,4 @@
  6. -# Makefile.in generated automatically by automake 1.4-p5 from Makefile.am
  7. +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
  8. # Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
  9. # This Makefile.in is free software; the Free Software Foundation
  10. @@ -100,14 +100,14 @@
  11. DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
  12. -TAR = gtar
  13. +TAR = tar
  14. GZIP_ENV = --best
  15. all: all-redirect
  16. .SUFFIXES:
  17. $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
  18. - cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps Makefile
  19. + cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile
  20. -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  21. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
  22. cd $(top_builddir) \
  23. && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
  24. @@ -225,7 +225,7 @@
  25. awk ' { files[$$0] = 1; } \
  26. END { for (i in files) print i; }'`; \
  27. test -z "$(ETAGS_ARGS)config.h.in$$unique$(LISP)$$tags" \
  28. - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags config.h.in $$unique $(LISP) -o $$here/TAGS)
  29. + || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags config.h.in $$unique $(LISP))
  30. mostlyclean-tags:
  31. @@ -274,6 +274,11 @@
  32. -rm -rf $(distdir)
  33. mkdir $(distdir)
  34. -chmod 777 $(distdir)
  35. + here=`cd $(top_builddir) && pwd`; \
  36. + top_distdir=`cd $(distdir) && pwd`; \
  37. + distdir=`cd $(distdir) && pwd`; \
  38. + cd $(top_srcdir) \
  39. + && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu Makefile
  40. @for file in $(DISTFILES); do \
  41. d=$(srcdir); \
  42. if test -d $$d/$$file; then \
  43. Index: linux-atm-2.4.1/aclocal.m4
  44. ===================================================================
  45. --- linux-atm-2.4.1.orig/aclocal.m4 2007-10-20 19:19:10.838246113 +0200
  46. +++ linux-atm-2.4.1/aclocal.m4 2007-10-20 19:19:11.710295812 +0200
  47. @@ -1,4 +1,4 @@
  48. -dnl aclocal.m4 generated automatically by aclocal 1.4-p5
  49. +dnl aclocal.m4 generated automatically by aclocal 1.4-p6
  50. dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
  51. dnl This file is free software; the Free Software Foundation
  52. @@ -43,7 +43,8 @@
  53. dnl AM_INIT_AUTOMAKE(package,version, [no-define])
  54. AC_DEFUN([AM_INIT_AUTOMAKE],
  55. -[AC_REQUIRE([AC_PROG_INSTALL])
  56. +[AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
  57. +AC_REQUIRE([AC_PROG_INSTALL])
  58. PACKAGE=[$1]
  59. AC_SUBST(PACKAGE)
  60. VERSION=[$2]
  61. @@ -59,13 +60,42 @@
  62. AC_REQUIRE([AC_ARG_PROGRAM])
  63. dnl FIXME This is truly gross.
  64. missing_dir=`cd $ac_aux_dir && pwd`
  65. -AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
  66. +AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}, $missing_dir)
  67. AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
  68. -AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)
  69. +AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}, $missing_dir)
  70. AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
  71. AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
  72. AC_REQUIRE([AC_PROG_MAKE_SET])])
  73. +# Copyright 2002 Free Software Foundation, Inc.
  74. +
  75. +# This program is free software; you can redistribute it and/or modify
  76. +# it under the terms of the GNU General Public License as published by
  77. +# the Free Software Foundation; either version 2, or (at your option)
  78. +# any later version.
  79. +
  80. +# This program is distributed in the hope that it will be useful,
  81. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  82. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  83. +# GNU General Public License for more details.
  84. +
  85. +# You should have received a copy of the GNU General Public License
  86. +# along with this program; if not, write to the Free Software
  87. +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  88. +
  89. +# AM_AUTOMAKE_VERSION(VERSION)
  90. +# ----------------------------
  91. +# Automake X.Y traces this macro to ensure aclocal.m4 has been
  92. +# generated from the m4 files accompanying Automake X.Y.
  93. +AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.4"])
  94. +
  95. +# AM_SET_CURRENT_AUTOMAKE_VERSION
  96. +# -------------------------------
  97. +# Call AM_AUTOMAKE_VERSION so it can be traced.
  98. +# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
  99. +AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  100. + [AM_AUTOMAKE_VERSION([1.4-p6])])
  101. +
  102. #
  103. # Check to make sure that the build environment is sane.
  104. #
  105. @@ -130,13 +160,14 @@
  106. dnl Look for flex, lex or missing, then run AC_PROG_LEX and AC_DECL_YYTEXT
  107. AC_DEFUN([AM_PROG_LEX],
  108. [missing_dir=ifelse([$1],,`cd $ac_aux_dir && pwd`,$1)
  109. -AC_CHECK_PROGS(LEX, flex lex, "$missing_dir/missing flex")
  110. +AC_CHECK_PROGS(LEX, flex lex, $missing_dir/missing flex)
  111. AC_PROG_LEX
  112. AC_DECL_YYTEXT])
  113. # libtool.m4 - Configure libtool for the host system. -*-Shell-script-*-
  114. # serial 46 AC_PROG_LIBTOOL
  115. +
  116. AC_DEFUN([AC_PROG_LIBTOOL],
  117. [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
  118. @@ -162,6 +193,8 @@
  119. AC_REQUIRE([AC_PROG_LD])dnl
  120. AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
  121. AC_REQUIRE([AC_PROG_NM])dnl
  122. +AC_REQUIRE([LT_AC_PROG_SED])dnl
  123. +
  124. AC_REQUIRE([AC_PROG_LN_S])dnl
  125. AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
  126. AC_REQUIRE([AC_OBJEXT])dnl
  127. @@ -262,9 +295,30 @@
  128. ])
  129. +# AC_LIBTOOL_HEADER_ASSERT
  130. +# ------------------------
  131. +AC_DEFUN([AC_LIBTOOL_HEADER_ASSERT],
  132. +[AC_CACHE_CHECK([whether $CC supports assert without backlinking],
  133. + [lt_cv_func_assert_works],
  134. + [case $host in
  135. + *-*-solaris*)
  136. + if test "$GCC" = yes && test "$with_gnu_ld" != yes; then
  137. + case `$CC --version 2>/dev/null` in
  138. + [[12]].*) lt_cv_func_assert_works=no ;;
  139. + *) lt_cv_func_assert_works=yes ;;
  140. + esac
  141. + fi
  142. + ;;
  143. + esac])
  144. +
  145. +if test "x$lt_cv_func_assert_works" = xyes; then
  146. + AC_CHECK_HEADERS(assert.h)
  147. +fi
  148. +])# AC_LIBTOOL_HEADER_ASSERT
  149. +
  150. # _LT_AC_CHECK_DLFCN
  151. # --------------------
  152. -AC_DEFUN(_LT_AC_CHECK_DLFCN,
  153. +AC_DEFUN([_LT_AC_CHECK_DLFCN],
  154. [AC_CHECK_HEADERS(dlfcn.h)
  155. ])# _LT_AC_CHECK_DLFCN
  156. @@ -282,10 +336,10 @@
  157. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  158. # Character class describing NM global symbol codes.
  159. -[symcode='[BCDEGRST]']
  160. +symcode='[[BCDEGRST]]'
  161. # Regexp to match symbols that can be accessed directly from C.
  162. -[sympat='\([_A-Za-z][_A-Za-z0-9]*\)']
  163. +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  164. # Transform the above into a raw symbol and a C symbol.
  165. symxfrm='\1 \2\3 \3'
  166. @@ -293,25 +347,32 @@
  167. # Transform an extracted symbol line into a proper C declaration
  168. lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
  169. +# Transform an extracted symbol line into symbol name and symbol address
  170. +lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  171. +
  172. # Define system-specific variables.
  173. case $host_os in
  174. aix*)
  175. - [symcode='[BCDT]']
  176. + symcode='[[BCDT]]'
  177. ;;
  178. cygwin* | mingw* | pw32*)
  179. - [symcode='[ABCDGISTW]']
  180. + symcode='[[ABCDGISTW]]'
  181. ;;
  182. hpux*) # Its linker distinguishes data from code symbols
  183. lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  184. + lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  185. + ;;
  186. +irix* | nonstopux*)
  187. + symcode='[[BCDEGRST]]'
  188. ;;
  189. -irix*)
  190. - [symcode='[BCDEGRST]']
  191. +osf*)
  192. + symcode='[[BCDEGQRST]]'
  193. ;;
  194. solaris* | sysv5*)
  195. - [symcode='[BDT]']
  196. + symcode='[[BDT]]'
  197. ;;
  198. sysv4)
  199. - [symcode='[DFNSTU]']
  200. + symcode='[[DFNSTU]]'
  201. ;;
  202. esac
  203. @@ -325,14 +386,14 @@
  204. # If we're using GNU nm, then use its standard symbol codes.
  205. if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
  206. - [symcode='[ABCDGISTW]']
  207. + symcode='[[ABCDGISTW]]'
  208. fi
  209. # Try without a prefix undercore, then with it.
  210. for ac_symprfx in "" "_"; do
  211. # Write the raw and C identifiers.
  212. -[lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"]
  213. +lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
  214. # Check to see that the pipe works correctly.
  215. pipe_works=no
  216. @@ -374,23 +435,23 @@
  217. cat <<EOF >> conftest.$ac_ext
  218. #if defined (__STDC__) && __STDC__
  219. -# define lt_ptr_t void *
  220. +# define lt_ptr void *
  221. #else
  222. -# define lt_ptr_t char *
  223. +# define lt_ptr char *
  224. # define const
  225. #endif
  226. /* The mapping between symbol names and symbols. */
  227. const struct {
  228. const char *name;
  229. - lt_ptr_t address;
  230. + lt_ptr address;
  231. }
  232. -[lt_preloaded_symbols[] =]
  233. +lt_preloaded_symbols[[]] =
  234. {
  235. EOF
  236. - sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" >> conftest.$ac_ext
  237. + sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
  238. cat <<\EOF >> conftest.$ac_ext
  239. - {0, (lt_ptr_t) 0}
  240. + {0, (lt_ptr) 0}
  241. };
  242. #ifdef __cplusplus
  243. @@ -403,7 +464,7 @@
  244. save_CFLAGS="$CFLAGS"
  245. LIBS="conftstm.$ac_objext"
  246. CFLAGS="$CFLAGS$no_builtin_flag"
  247. - if AC_TRY_EVAL(ac_link) && test -s conftest; then
  248. + if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then
  249. pipe_works=yes
  250. fi
  251. LIBS="$save_LIBS"
  252. @@ -434,10 +495,13 @@
  253. global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
  254. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  255. global_symbol_to_cdecl=
  256. + global_symbol_to_c_name_address=
  257. else
  258. global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
  259. + global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
  260. fi
  261. -if test -z "$global_symbol_pipe$global_symbol_to_cdecl"; then
  262. +if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
  263. +then
  264. AC_MSG_RESULT(failed)
  265. else
  266. AC_MSG_RESULT(ok)
  267. @@ -455,16 +519,17 @@
  268. *-DOS) lt_cv_sys_path_separator=';' ;;
  269. *) lt_cv_sys_path_separator=':' ;;
  270. esac
  271. + PATH_SEPARATOR=$lt_cv_sys_path_separator
  272. fi
  273. ])# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
  274. # _LT_AC_PROG_ECHO_BACKSLASH
  275. # --------------------------
  276. # Add some code to the start of the generated configure script which
  277. -# will find an echo command which doesn;t interpret backslashes.
  278. +# will find an echo command which doesn't interpret backslashes.
  279. AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
  280. [ifdef([AC_DIVERSION_NOTICE], [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
  281. - [AC_DIVERT_PUSH(NOTICE)])
  282. + [AC_DIVERT_PUSH(NOTICE)])
  283. _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
  284. # Check that we are running under the correct shell.
  285. @@ -530,7 +595,7 @@
  286. #
  287. # So, first we look for a working echo in the user's PATH.
  288. - IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
  289. + IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  290. for dir in $PATH /usr/ucb; do
  291. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  292. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  293. @@ -619,7 +684,7 @@
  294. # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  295. # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  296. # ------------------------------------------------------------------
  297. -AC_DEFUN(_LT_AC_TRY_DLOPEN_SELF,
  298. +AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
  299. [if test "$cross_compiling" = yes; then :
  300. [$4]
  301. else
  302. @@ -706,7 +771,7 @@
  303. # AC_LIBTOOL_DLOPEN_SELF
  304. # -------------------
  305. -AC_DEFUN(AC_LIBTOOL_DLOPEN_SELF,
  306. +AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
  307. [if test "x$enable_dlopen" != xyes; then
  308. enable_dlopen=unknown
  309. enable_dlopen_self=unknown
  310. @@ -728,16 +793,22 @@
  311. ;;
  312. *)
  313. - AC_CHECK_LIB(dl, dlopen, [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
  314. - [AC_CHECK_FUNC(dlopen, lt_cv_dlopen="dlopen",
  315. - [AC_CHECK_FUNC(shl_load, lt_cv_dlopen="shl_load",
  316. - [AC_CHECK_LIB(svld, dlopen,
  317. - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  318. - [AC_CHECK_LIB(dld, shl_load,
  319. - [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
  320. + AC_CHECK_FUNC([shl_load],
  321. + [lt_cv_dlopen="shl_load"],
  322. + [AC_CHECK_LIB([dld], [shl_load],
  323. + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
  324. + [AC_CHECK_FUNC([dlopen],
  325. + [lt_cv_dlopen="dlopen"],
  326. + [AC_CHECK_LIB([dl], [dlopen],
  327. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
  328. + [AC_CHECK_LIB([svld], [dlopen],
  329. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  330. + [AC_CHECK_LIB([dld], [dld_link],
  331. + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
  332. + ])
  333. ])
  334. - ])
  335. - ])
  336. + ])
  337. + ])
  338. ])
  339. ;;
  340. esac
  341. @@ -800,10 +871,10 @@
  342. # Sed substitution that helps us do robust quoting. It backslashifies
  343. # metacharacters that are still active within double-quoted strings.
  344. Xsed='sed -e s/^X//'
  345. -[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
  346. +sed_quote_subst='s/\([[\\"\\`$\\\\]]\)/\\\1/g'
  347. # Same as above, but do not quote variable references.
  348. -[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
  349. +double_quote_subst='s/\([[\\"\\`\\\\]]\)/\\\1/g'
  350. # Sed substitution to delay expansion of an escaped shell variable in a
  351. # double_quote_subst'ed string.
  352. @@ -872,8 +943,15 @@
  353. old_postuninstall_cmds=
  354. if test -n "$RANLIB"; then
  355. + case $host_os in
  356. + openbsd*)
  357. + old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
  358. + ;;
  359. + *)
  360. + old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
  361. + ;;
  362. + esac
  363. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  364. - old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
  365. fi
  366. # Allow CC to be a program name with arguments.
  367. @@ -893,7 +971,7 @@
  368. AC_MSG_RESULT($objdir)
  369. -AC_ARG_WITH(pic,
  370. +AC_ARG_WITH(pic,
  371. [ --with-pic try to use only PIC/non-PIC objects [default=use both]],
  372. pic_mode="$withval", pic_mode=default)
  373. test -z "$pic_mode" && pic_mode=default
  374. @@ -921,7 +999,7 @@
  375. # libC (AIX C++ library), which obviously doesn't included in libraries
  376. # list by gcc. This cause undefined symbols with -static flags.
  377. # This hack allows C programs to be linked with "-static -ldl", but
  378. - # we not sure about C++ programs.
  379. + # not sure about C++ programs.
  380. lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
  381. ;;
  382. amigaos*)
  383. @@ -930,7 +1008,7 @@
  384. # like `-m68040'.
  385. lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
  386. ;;
  387. - beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
  388. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  389. # PIC is the default for these OSes.
  390. ;;
  391. darwin* | rhapsody*)
  392. @@ -956,13 +1034,13 @@
  393. # PORTME Check for PIC flags for the system compiler.
  394. case $host_os in
  395. aix3* | aix4* | aix5*)
  396. + lt_cv_prog_cc_wl='-Wl,'
  397. # All AIX code is PIC.
  398. if test "$host_cpu" = ia64; then
  399. - # AIX 5 now supports IA64 processor
  400. - lt_cv_prog_cc_static='-Bstatic'
  401. - lt_cv_prog_cc_wl='-Wl,'
  402. + # AIX 5 now supports IA64 processor
  403. + lt_cv_prog_cc_static='-Bstatic'
  404. else
  405. - lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
  406. + lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
  407. fi
  408. ;;
  409. @@ -973,7 +1051,7 @@
  410. lt_cv_prog_cc_pic='+Z'
  411. ;;
  412. - irix5* | irix6*)
  413. + irix5* | irix6* | nonstopux*)
  414. lt_cv_prog_cc_wl='-Wl,'
  415. lt_cv_prog_cc_static='-non_shared'
  416. # PIC (with -KPIC) is the default.
  417. @@ -1017,11 +1095,7 @@
  418. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  419. lt_cv_prog_cc_pic='-KPIC'
  420. lt_cv_prog_cc_static='-Bstatic'
  421. - if test "x$host_vendor" = xsni; then
  422. - lt_cv_prog_cc_wl='-LD'
  423. - else
  424. - lt_cv_prog_cc_wl='-Wl,'
  425. - fi
  426. + lt_cv_prog_cc_wl='-Wl,'
  427. ;;
  428. uts4*)
  429. @@ -1087,7 +1161,7 @@
  430. # Check for any special shared library compilation flags.
  431. if test -n "$lt_cv_prog_cc_shlib"; then
  432. AC_MSG_WARN([\`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries])
  433. - if echo "$old_CC $old_CFLAGS " | [egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]"] >/dev/null; then :
  434. + if echo "$old_CC $old_CFLAGS " | egrep -e "[[ ]]$lt_cv_prog_cc_shlib[[ ]]" >/dev/null; then :
  435. else
  436. AC_MSG_WARN([add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure])
  437. lt_cv_prog_cc_can_build_shared=no
  438. @@ -1163,6 +1237,8 @@
  439. lt_cv_compiler_o_lo=no
  440. save_CFLAGS="$CFLAGS"
  441. CFLAGS="$CFLAGS -c -o conftest.lo"
  442. + save_objext="$ac_objext"
  443. + ac_objext=lo
  444. AC_TRY_COMPILE([], [int some_variable = 0;], [dnl
  445. # The compiler can only warn and ignore the option if not recognized
  446. # So say no if there are warnings
  447. @@ -1172,6 +1248,7 @@
  448. lt_cv_compiler_o_lo=yes
  449. fi
  450. ])
  451. + ac_objext="$save_objext"
  452. CFLAGS="$save_CFLAGS"
  453. ])
  454. compiler_o_lo=$lt_cv_compiler_o_lo
  455. @@ -1268,7 +1345,7 @@
  456. extract_expsyms_cmds=
  457. case $host_os in
  458. -cygwin* | mingw* | pw32* )
  459. +cygwin* | mingw* | pw32*)
  460. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  461. # When not using gcc, we currently assume that we are using
  462. # Microsoft Visual C++.
  463. @@ -1276,7 +1353,9 @@
  464. with_gnu_ld=no
  465. fi
  466. ;;
  467. -
  468. +openbsd*)
  469. + with_gnu_ld=no
  470. + ;;
  471. esac
  472. ld_shlibs=yes
  473. @@ -1363,7 +1442,7 @@
  474. # can override, but on older systems we have to supply one (in ltdll.c)
  475. if test "x$lt_cv_need_dllmain" = "xyes"; then
  476. ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
  477. - ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < [$]0 > $output_objdir/$soname-ltdll.c~
  478. + ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
  479. test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
  480. else
  481. ltdll_obj=
  482. @@ -1376,24 +1455,25 @@
  483. # Be careful not to strip the DATA tag left be newer dlltools.
  484. export_symbols_cmds="$ltdll_cmds"'
  485. $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
  486. - [sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//"] < $output_objdir/$soname-def > $export_symbols'
  487. + sed -e "1,/EXPORTS/d" -e "s/ @ [[0-9]]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
  488. # If the export-symbols file already is a .def file (1st line
  489. # is EXPORTS), use it as is.
  490. # If DATA tags from a recent dlltool are present, honour them!
  491. - archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
  492. - cp $export_symbols $output_objdir/$soname-def;
  493. + archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
  494. + cp $export_symbols $output_objdir/$soname-def;
  495. else
  496. - echo EXPORTS > $output_objdir/$soname-def;
  497. - _lt_hint=1;
  498. - cat $export_symbols | while read symbol; do
  499. - set dummy \$symbol;
  500. - case \[$]# in
  501. - 2) echo " \[$]2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
  502. - *) echo " \[$]2 @ \$_lt_hint \[$]3 ; " >> $output_objdir/$soname-def;;
  503. - esac;
  504. - _lt_hint=`expr 1 + \$_lt_hint`;
  505. - done;
  506. + echo EXPORTS > $output_objdir/$soname-def;
  507. + _lt_hint=1;
  508. + cat $export_symbols | while read symbol; do
  509. + set dummy \$symbol;
  510. + case \[$]# in
  511. + 2) echo " \[$]2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
  512. + 4) echo " \[$]2 \[$]3 \[$]4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
  513. + *) echo " \[$]2 @ \$_lt_hint \[$]3 ; " >> $output_objdir/$soname-def;;
  514. + esac;
  515. + _lt_hint=`expr 1 + \$_lt_hint`;
  516. + done;
  517. fi~
  518. '"$ltdll_cmds"'
  519. $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
  520. @@ -1488,80 +1568,98 @@
  521. ;;
  522. aix4* | aix5*)
  523. + if test "$host_cpu" = ia64; then
  524. + # On IA64, the linker does run time linking by default, so we don't
  525. + # have to do anything special.
  526. + aix_use_runtimelinking=no
  527. + exp_sym_flag='-Bexport'
  528. + no_entry_flag=""
  529. + else
  530. + aix_use_runtimelinking=no
  531. +
  532. + # Test if we are trying to use run time linking or normal
  533. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  534. + # need to do runtime linking.
  535. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
  536. + for ld_flag in $LDFLAGS; do
  537. + case $ld_flag in
  538. + *-brtl*)
  539. + aix_use_runtimelinking=yes
  540. + break
  541. + ;;
  542. + esac
  543. + done
  544. + esac
  545. +
  546. + exp_sym_flag='-bexport'
  547. + no_entry_flag='-bnoentry'
  548. + fi
  549. +
  550. # When large executables or shared objects are built, AIX ld can
  551. # have problems creating the table of contents. If linking a library
  552. # or program results in "error TOC overflow" add -mminimal-toc to
  553. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  554. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  555. + hardcode_direct=yes
  556. archive_cmds=''
  557. hardcode_libdir_separator=':'
  558. if test "$GCC" = yes; then
  559. - collect2name=`${CC} -print-prog-name=collect2`
  560. - if test -f "$collect2name" && \
  561. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  562. - then
  563. - # We have reworked collect2
  564. - hardcode_direct=yes
  565. - else
  566. - # We have old collect2
  567. - hardcode_direct=unsupported
  568. - # It fails to find uninstalled libraries when the uninstalled
  569. - # path is not listed in the libpath. Setting hardcode_minus_L
  570. - # to unsupported forces relinking
  571. - hardcode_minus_L=yes
  572. - hardcode_libdir_flag_spec='-L$libdir'
  573. - hardcode_libdir_separator=
  574. - fi
  575. + case $host_os in aix4.[[012]]|aix4.[[012]].*)
  576. + collect2name=`${CC} -print-prog-name=collect2`
  577. + if test -f "$collect2name" && \
  578. + strings "$collect2name" | grep resolve_lib_name >/dev/null
  579. + then
  580. + # We have reworked collect2
  581. + hardcode_direct=yes
  582. + else
  583. + # We have old collect2
  584. + hardcode_direct=unsupported
  585. + # It fails to find uninstalled libraries when the uninstalled
  586. + # path is not listed in the libpath. Setting hardcode_minus_L
  587. + # to unsupported forces relinking
  588. + hardcode_minus_L=yes
  589. + hardcode_libdir_flag_spec='-L$libdir'
  590. + hardcode_libdir_separator=
  591. + fi
  592. + esac
  593. +
  594. shared_flag='-shared'
  595. else
  596. + # not using gcc
  597. if test "$host_cpu" = ia64; then
  598. - shared_flag='-G'
  599. + shared_flag='${wl}-G'
  600. else
  601. - shared_flag='${wl}-bM:SRE'
  602. + if test "$aix_use_runtimelinking" = yes; then
  603. + shared_flag='${wl}-G'
  604. + else
  605. + shared_flag='${wl}-bM:SRE'
  606. + fi
  607. fi
  608. - hardcode_direct=yes
  609. fi
  610. - if test "$host_cpu" = ia64; then
  611. - # On IA64, the linker does run time linking by default, so we don't
  612. - # have to do anything special.
  613. - aix_use_runtimelinking=no
  614. - exp_sym_flag='-Bexport'
  615. - no_entry_flag=""
  616. - else
  617. - # Test if we are trying to use run time linking, or normal AIX style linking.
  618. - # If -brtl is somewhere in LDFLAGS, we need to do run time linking.
  619. - aix_use_runtimelinking=no
  620. - for ld_flag in $LDFLAGS; do
  621. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl" ); then
  622. - aix_use_runtimelinking=yes
  623. - break
  624. - fi
  625. - done
  626. - exp_sym_flag='-bexport'
  627. - no_entry_flag='-bnoentry'
  628. - fi
  629. # It seems that -bexpall can do strange things, so it is better to
  630. # generate a list of symbols to export.
  631. always_export_symbols=yes
  632. if test "$aix_use_runtimelinking" = yes; then
  633. + # Warning - without using the other runtime loading flags (-brtl),
  634. + # -berok will link without error, but may produce a broken library.
  635. + allow_undefined_flag='-berok'
  636. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
  637. - allow_undefined_flag=' -Wl,-G'
  638. - archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  639. + archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  640. else
  641. if test "$host_cpu" = ia64; then
  642. - hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  643. - allow_undefined_flag="-znodefs"
  644. - archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  645. + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  646. + allow_undefined_flag="-z nodefs"
  647. + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  648. else
  649. - hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
  650. - # Warning - without using the other run time loading flags, -berok will
  651. - # link without error, but may produce a broken library.
  652. - allow_undefined_flag='${wl}-berok'
  653. - # This is a bit strange, but is similar to how AIX traditionally builds
  654. - # it's shared libraries.
  655. - archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
  656. + hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
  657. + # Warning - without using the other run time loading flags,
  658. + # -berok will link without error, but may produce a broken library.
  659. + allow_undefined_flag='${wl}-berok'
  660. + # This is a bit strange, but is similar to how AIX traditionally builds
  661. + # it's shared libraries.
  662. + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $output_objdir/$libname$release.a $output_objdir/$soname'
  663. fi
  664. fi
  665. ;;
  666. @@ -1593,11 +1691,19 @@
  667. ;;
  668. darwin* | rhapsody*)
  669. - allow_undefined_flag='-undefined suppress'
  670. + case "$host_os" in
  671. + rhapsody* | darwin1.[[012]])
  672. + allow_undefined_flag='-undefined suppress'
  673. + ;;
  674. + *) # Darwin 1.3 on
  675. + allow_undefined_flag='-flat_namespace -undefined suppress'
  676. + ;;
  677. + esac
  678. # FIXME: Relying on posixy $() will cause problems for
  679. # cross-compilation, but unfortunately the echo tests do not
  680. - # yet detect zsh echo's removal of \ escapes.
  681. - archive_cmds='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linkopts -install_name $rpath/$soname $(test -n "$verstring" -a x$verstring != x0.0 && echo $verstring)'
  682. + # yet detect zsh echo's removal of \ escapes. Also zsh mangles
  683. + # `"' quotes if we put them in here... so don't!
  684. + archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
  685. # We need to add '_' to the symbols in $export_symbols first
  686. #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
  687. hardcode_direct=yes
  688. @@ -1649,13 +1755,14 @@
  689. export_dynamic_flag_spec='${wl}-E'
  690. ;;
  691. - irix5* | irix6*)
  692. + irix5* | irix6* | nonstopux*)
  693. if test "$GCC" = yes; then
  694. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  695. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  696. else
  697. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  698. + hardcode_libdir_flag_spec='-rpath $libdir'
  699. fi
  700. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  701. hardcode_libdir_separator=:
  702. link_all_deplibs=yes
  703. ;;
  704. @@ -1672,7 +1779,7 @@
  705. ;;
  706. newsos6)
  707. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
  708. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  709. hardcode_direct=yes
  710. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  711. hardcode_libdir_separator=:
  712. @@ -1680,10 +1787,24 @@
  713. ;;
  714. openbsd*)
  715. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  716. - hardcode_libdir_flag_spec='-R$libdir'
  717. hardcode_direct=yes
  718. hardcode_shlibpath_var=no
  719. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  720. + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  721. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  722. + export_dynamic_flag_spec='${wl}-E'
  723. + else
  724. + case "$host_os" in
  725. + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  726. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  727. + hardcode_libdir_flag_spec='-R$libdir'
  728. + ;;
  729. + *)
  730. + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  731. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  732. + ;;
  733. + esac
  734. + fi
  735. ;;
  736. os2*)
  737. @@ -1728,10 +1849,39 @@
  738. hardcode_shlibpath_var=no
  739. runpath_var=LD_RUN_PATH
  740. hardcode_runpath_var=yes
  741. + export_dynamic_flag_spec='${wl}-Bexport'
  742. ;;
  743. solaris*)
  744. + # gcc --version < 3.0 without binutils cannot create self contained
  745. + # shared libraries reliably, requiring libgcc.a to resolve some of
  746. + # the object symbols generated in some cases. Libraries that use
  747. + # assert need libgcc.a to resolve __eprintf, for example. Linking
  748. + # a copy of libgcc.a into every shared library to guarantee resolving
  749. + # such symbols causes other problems: According to Tim Van Holder
  750. + # <[email protected]>, C++ libraries end up with a separate
  751. + # (to the application) exception stack for one thing.
  752. no_undefined_flag=' -z defs'
  753. + if test "$GCC" = yes; then
  754. + case `$CC --version 2>/dev/null` in
  755. + [[12]].*)
  756. + cat <<EOF 1>&2
  757. +
  758. +*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
  759. +*** create self contained shared libraries on Solaris systems, without
  760. +*** introducing a dependency on libgcc.a. Therefore, libtool is disabling
  761. +*** -no-undefined support, which will at least allow you to build shared
  762. +*** libraries. However, you may find that when you link such libraries
  763. +*** into an application without using GCC, you have to manually add
  764. +*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
  765. +*** upgrade to a newer version of GCC. Another option is to rebuild your
  766. +*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
  767. +
  768. +EOF
  769. + no_undefined_flag=
  770. + ;;
  771. + esac
  772. + fi
  773. # $CC -shared without GNU ld will not create a library from C++
  774. # object files and a static libstdc++, better avoid it by now
  775. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  776. @@ -1740,7 +1890,7 @@
  777. hardcode_libdir_flag_spec='-R$libdir'
  778. hardcode_shlibpath_var=no
  779. case $host_os in
  780. - [solaris2.[0-5] | solaris2.[0-5].*]) ;;
  781. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  782. *) # Supported since Solaris 2.6 (maybe 2.5.1?)
  783. whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
  784. esac
  785. @@ -1762,13 +1912,23 @@
  786. ;;
  787. sysv4)
  788. - if test "x$host_vendor" = xsno; then
  789. - archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linkopts'
  790. - hardcode_direct=yes # is this really true???
  791. - else
  792. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  793. - hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  794. - fi
  795. + case $host_vendor in
  796. + sni)
  797. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  798. + hardcode_direct=yes # is this really true???
  799. + ;;
  800. + siemens)
  801. + ## LD is ld it makes a PLAMLIB
  802. + ## CC just makes a GrossModule.
  803. + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  804. + reload_cmds='$CC -r -o $output$reload_objs'
  805. + hardcode_direct=no
  806. + ;;
  807. + motorola)
  808. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  809. + hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  810. + ;;
  811. + esac
  812. runpath_var='LD_RUN_PATH'
  813. hardcode_shlibpath_var=no
  814. ;;
  815. @@ -1909,6 +2069,9 @@
  816. aix4* | aix5*)
  817. version_type=linux
  818. + need_lib_prefix=no
  819. + need_version=no
  820. + hardcode_into_libs=yes
  821. if test "$host_cpu" = ia64; then
  822. # AIX 5 supports IA64
  823. library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
  824. @@ -1920,22 +2083,24 @@
  825. # depend on `.', always an invalid library. This was fixed in
  826. # development snapshots of GCC prior to 3.0.
  827. case $host_os in
  828. - [ aix4 | aix4.[01] | aix4.[01].*)]
  829. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  830. - echo ' yes '
  831. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  832. - :
  833. - else
  834. - can_build_shared=no
  835. - fi
  836. - ;;
  837. + aix4 | aix4.[[01]] | aix4.[[01]].*)
  838. + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  839. + echo ' yes '
  840. + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  841. + :
  842. + else
  843. + can_build_shared=no
  844. + fi
  845. + ;;
  846. esac
  847. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  848. - # soname into executable. Probably we can add versioning support to
  849. - # collect2, so additional links can be useful in future.
  850. + # AIX (on Power*) has no versioning support, so currently we can
  851. + # not hardcode correct soname into executable. Probably we can
  852. + # add versioning support to collect2, so additional links can
  853. + # be useful in future.
  854. if test "$aix_use_runtimelinking" = yes; then
  855. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so instead of
  856. - # lib<name>.a to let people know that these are not typical AIX shared libraries.
  857. + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  858. + # instead of lib<name>.a to let people know that these are not
  859. + # typical AIX shared libraries.
  860. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  861. else
  862. # We preserve .a as extension for shared libraries through AIX4.2
  863. @@ -1944,14 +2109,14 @@
  864. soname_spec='${libname}${release}.so$major'
  865. fi
  866. shlibpath_var=LIBPATH
  867. - deplibs_check_method=pass_all
  868. fi
  869. + hardcode_into_libs=yes
  870. ;;
  871. amigaos*)
  872. library_names_spec='$libname.ixlibrary $libname.a'
  873. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  874. - finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | [$Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\'']`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
  875. + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
  876. ;;
  877. beos*)
  878. @@ -1982,7 +2147,7 @@
  879. case $GCC,$host_os in
  880. yes,cygwin*)
  881. library_names_spec='$libname.dll.a'
  882. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | [sed -e 's/[.]/-/g']`${versuffix}.dll'
  883. + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll'
  884. postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
  885. dldir=$destdir/`dirname \$dlpath`~
  886. test -d \$dldir || mkdir -p \$dldir~
  887. @@ -1992,14 +2157,14 @@
  888. $rm \$dlpath'
  889. ;;
  890. yes,mingw*)
  891. - library_names_spec='${libname}`echo ${release} | [sed -e 's/[.]/-/g']`${versuffix}.dll'
  892. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
  893. + library_names_spec='${libname}`echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll'
  894. + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
  895. ;;
  896. yes,pw32*)
  897. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
  898. ;;
  899. *)
  900. - library_names_spec='${libname}`echo ${release} | [sed -e 's/[.]/-/g']`${versuffix}.dll $libname.lib'
  901. + library_names_spec='${libname}`echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll $libname.lib'
  902. ;;
  903. esac
  904. dynamic_linker='Win32 ld.exe'
  905. @@ -2025,6 +2190,18 @@
  906. dynamic_linker=no
  907. ;;
  908. +freebsd*-gnu*)
  909. + version_type=linux
  910. + need_lib_prefix=no
  911. + need_version=no
  912. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  913. + soname_spec='${libname}${release}.so$major'
  914. + shlibpath_var=LD_LIBRARY_PATH
  915. + shlibpath_overrides_runpath=no
  916. + hardcode_into_libs=yes
  917. + dynamic_linker='GNU/FreeBSD ld.so'
  918. + ;;
  919. +
  920. freebsd*)
  921. objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  922. version_type=freebsd-$objformat
  923. @@ -2076,14 +2253,17 @@
  924. postinstall_cmds='chmod 555 $lib'
  925. ;;
  926. -irix5* | irix6*)
  927. - version_type=irix
  928. +irix5* | irix6* | nonstopux*)
  929. + case $host_os in
  930. + nonstopux*) version_type=nonstopux ;;
  931. + *) version_type=irix ;;
  932. + esac
  933. need_lib_prefix=no
  934. need_version=no
  935. soname_spec='${libname}${release}.so$major'
  936. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
  937. case $host_os in
  938. - irix5*)
  939. + irix5* | nonstopux*)
  940. libsuff= shlibsuff=
  941. ;;
  942. *)
  943. @@ -2157,9 +2337,19 @@
  944. openbsd*)
  945. version_type=sunos
  946. - if test "$with_gnu_ld" = yes; then
  947. - need_lib_prefix=no
  948. - need_version=no
  949. + need_lib_prefix=no
  950. + need_version=no
  951. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  952. + case "$host_os" in
  953. + openbsd2.[[89]] | openbsd2.[[89]].*)
  954. + shlibpath_overrides_runpath=no
  955. + ;;
  956. + *)
  957. + shlibpath_overrides_runpath=yes
  958. + ;;
  959. + esac
  960. + else
  961. + shlibpath_overrides_runpath=yes
  962. fi
  963. library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
  964. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  965. @@ -2177,11 +2367,13 @@
  966. osf3* | osf4* | osf5*)
  967. version_type=osf
  968. need_version=no
  969. - soname_spec='${libname}${release}.so'
  970. - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
  971. + need_lib_prefix=no
  972. + soname_spec='${libname}${release}.so$major'
  973. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  974. shlibpath_var=LD_LIBRARY_PATH
  975. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  976. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  977. + hardcode_into_libs=yes
  978. ;;
  979. sco3.2v5*)
  980. @@ -2224,6 +2416,12 @@
  981. case $host_vendor in
  982. sni)
  983. shlibpath_overrides_runpath=no
  984. + need_lib_prefix=no
  985. + export_dynamic_flag_spec='${wl}-Blargedynsym'
  986. + runpath_var=LD_RUN_PATH
  987. + ;;
  988. + siemens)
  989. + need_lib_prefix=no
  990. ;;
  991. motorola)
  992. need_lib_prefix=no
  993. @@ -2270,6 +2468,33 @@
  994. AC_MSG_CHECKING([if libtool supports shared libraries])
  995. AC_MSG_RESULT([$can_build_shared])
  996. +AC_MSG_CHECKING([whether to build shared libraries])
  997. +test "$can_build_shared" = "no" && enable_shared=no
  998. +
  999. +# On AIX, shared libraries and static libraries use the same namespace, and
  1000. +# are all built from PIC.
  1001. +case "$host_os" in
  1002. +aix3*)
  1003. + test "$enable_shared" = yes && enable_static=no
  1004. + if test -n "$RANLIB"; then
  1005. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  1006. + postinstall_cmds='$RANLIB $lib'
  1007. + fi
  1008. + ;;
  1009. +
  1010. +aix4*)
  1011. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  1012. + test "$enable_shared" = yes && enable_static=no
  1013. + fi
  1014. + ;;
  1015. +esac
  1016. +AC_MSG_RESULT([$enable_shared])
  1017. +
  1018. +AC_MSG_CHECKING([whether to build static libraries])
  1019. +# Make sure either enable_shared or enable_static is yes.
  1020. +test "$enable_shared" = yes || enable_static=yes
  1021. +AC_MSG_RESULT([$enable_static])
  1022. +
  1023. if test "$hardcode_action" = relink; then
  1024. # Fast installation is not supported
  1025. enable_fast_install=no
  1026. @@ -2351,7 +2576,7 @@
  1027. # Now quote all the things that may contain metacharacters while being
  1028. # careful not to overquote the AC_SUBSTed values. We take copies of the
  1029. # variables and quote the copies for generation of the libtool script.
  1030. - for var in echo old_CC old_CFLAGS \
  1031. + for var in echo old_CC old_CFLAGS SED \
  1032. AR AR_FLAGS CC LD LN_S NM SHELL \
  1033. reload_flag reload_cmds wl \
  1034. pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
  1035. @@ -2363,6 +2588,7 @@
  1036. old_striplib striplib file_magic_cmd export_symbols_cmds \
  1037. deplibs_check_method allow_undefined_flag no_undefined_flag \
  1038. finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
  1039. + global_symbol_to_c_name_address \
  1040. hardcode_libdir_flag_spec hardcode_libdir_separator \
  1041. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  1042. compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
  1043. @@ -2412,8 +2638,11 @@
  1044. # configuration script generated by Autoconf, you may include it under
  1045. # the same distribution terms that you use for the rest of that program.
  1046. +# A sed that does not truncate output.
  1047. +SED=$lt_SED
  1048. +
  1049. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  1050. -Xsed="sed -e s/^X//"
  1051. +Xsed="${SED} -e s/^X//"
  1052. # The HP-UX ksh and POSIX shell print the target directory to stdout
  1053. # if CDPATH is set.
  1054. @@ -2429,12 +2658,12 @@
  1055. # Whether or not to build shared libraries.
  1056. build_libtool_libs=$enable_shared
  1057. -# Whether or not to add -lc for building shared libraries.
  1058. -build_libtool_need_lc=$need_lc
  1059. -
  1060. # Whether or not to build static libraries.
  1061. build_old_libs=$enable_static
  1062. +# Whether or not to add -lc for building shared libraries.
  1063. +build_libtool_need_lc=$need_lc
  1064. +
  1065. # Whether or not to optimize for fast installation.
  1066. fast_install=$enable_fast_install
  1067. @@ -2600,6 +2829,9 @@
  1068. # Transform the output of nm in a proper C declaration
  1069. global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
  1070. +# Transform the output of nm in a C name address pair
  1071. +global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
  1072. +
  1073. # This is the shared library runtime path variable.
  1074. runpath_var=$runpath_var
  1075. @@ -2722,9 +2954,9 @@
  1076. # return TRUE;
  1077. # }
  1078. # /* ltdll.c ends here */
  1079. - # This is a source program that is used to create import libraries
  1080. - # on Windows for dlls which lack them. Don't remove nor modify the
  1081. - # starting and closing comments
  1082. + # This is a source program that is used to create import libraries
  1083. + # on Windows for dlls which lack them. Don't remove nor modify the
  1084. + # starting and closing comments
  1085. # /* impgen.c starts here */
  1086. # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
  1087. #
  1088. @@ -3079,6 +3311,7 @@
  1089. AC_REQUIRE([AC_PROG_CC])dnl
  1090. AC_REQUIRE([AC_CANONICAL_HOST])dnl
  1091. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  1092. +AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl
  1093. ac_prog=ld
  1094. if test "$GCC" = yes; then
  1095. # Check if gcc -print-prog-name=ld gives a path.
  1096. @@ -3092,8 +3325,8 @@
  1097. esac
  1098. case $ac_prog in
  1099. # Accept absolute paths.
  1100. - [[\\/]* | [A-Za-z]:[\\/]*)]
  1101. - [re_direlt='/[^/][^/]*/\.\./']
  1102. + [[\\/]]* | [[A-Za-z]]:[[\\/]]*)
  1103. + re_direlt='/[[^/]][[^/]]*/\.\./'
  1104. # Canonicalize the path of ld
  1105. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  1106. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  1107. @@ -3117,7 +3350,7 @@
  1108. fi
  1109. AC_CACHE_VAL(lt_cv_path_LD,
  1110. [if test -z "$LD"; then
  1111. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  1112. + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  1113. for ac_dir in $PATH; do
  1114. test -z "$ac_dir" && ac_dir=.
  1115. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  1116. @@ -3170,7 +3403,7 @@
  1117. # AC_DEPLIBS_CHECK_METHOD - how to check for library dependencies
  1118. # -- PORTME fill in with the dynamic library characteristics
  1119. AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
  1120. -[AC_CACHE_CHECK([how to recognise dependant libraries],
  1121. +[AC_CACHE_CHECK([how to recognise dependent libraries],
  1122. lt_cv_deplibs_check_method,
  1123. [lt_cv_file_magic_cmd='$MAGIC_CMD'
  1124. lt_cv_file_magic_test_file=
  1125. @@ -3181,7 +3414,7 @@
  1126. # `unknown' -- same as none, but documents that we really don't know.
  1127. # 'pass_all' -- all dependencies passed with no checks.
  1128. # 'test_compile' -- check by making test program.
  1129. -# ['file_magic [regex]'] -- check by looking for files in library path
  1130. +# 'file_magic [[regex]]' -- check by looking for files in library path
  1131. # which responds to the $file_magic_cmd with a given egrep regex.
  1132. # If you have `file' or equivalent on your system and you're not sure
  1133. # whether `pass_all' will *always* work, you probably want this one.
  1134. @@ -3196,7 +3429,7 @@
  1135. ;;
  1136. bsdi4*)
  1137. - [lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)']
  1138. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
  1139. lt_cv_file_magic_cmd='/usr/bin/file -L'
  1140. lt_cv_file_magic_test_file=/shlib/libc.so
  1141. ;;
  1142. @@ -3210,7 +3443,7 @@
  1143. lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
  1144. lt_cv_file_magic_cmd='/usr/bin/file -L'
  1145. case "$host_os" in
  1146. - rhapsody* | darwin1.[012])
  1147. + rhapsody* | darwin1.[[012]])
  1148. lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
  1149. ;;
  1150. *) # Darwin 1.3 on
  1151. @@ -3225,7 +3458,7 @@
  1152. i*86 )
  1153. # Not sure whether the presence of OpenBSD here was a mistake.
  1154. # Let's accept both of them until this is cleared up.
  1155. - [lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library']
  1156. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
  1157. lt_cv_file_magic_cmd=/usr/bin/file
  1158. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  1159. ;;
  1160. @@ -3240,14 +3473,14 @@
  1161. ;;
  1162. hpux10.20*|hpux11*)
  1163. - [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library']
  1164. + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
  1165. lt_cv_file_magic_cmd=/usr/bin/file
  1166. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  1167. ;;
  1168. -irix5* | irix6*)
  1169. +irix5* | irix6* | nonstopux*)
  1170. case $host_os in
  1171. - irix5*)
  1172. + irix5* | nonstopux*)
  1173. # this will be overridden with pass_all, but let us keep it just in case
  1174. lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
  1175. ;;
  1176. @@ -3259,7 +3492,7 @@
  1177. *) libmagic=never-match;;
  1178. esac
  1179. # this will be overridden with pass_all, but let us keep it just in case
  1180. - [lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"]
  1181. + lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[[1234]] dynamic lib MIPS - version 1"
  1182. ;;
  1183. esac
  1184. lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
  1185. @@ -3269,29 +3502,39 @@
  1186. # This must be Linux ELF.
  1187. linux-gnu*)
  1188. case $host_cpu in
  1189. - alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* | s390* )
  1190. + alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | arm* | m68k)
  1191. lt_cv_deplibs_check_method=pass_all ;;
  1192. *)
  1193. # glibc up to 2.1.1 does not perform some relocations on ARM
  1194. - [lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;]
  1195. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;;
  1196. esac
  1197. lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
  1198. ;;
  1199. netbsd*)
  1200. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  1201. - [lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$']
  1202. + lt_cv_deplibs_check_method='match_pattern /lib[[^/\.]]+\.so\.[[0-9]]+\.[[0-9]]+$'
  1203. else
  1204. - [lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$']
  1205. + lt_cv_deplibs_check_method='match_pattern /lib[[^/\.]]+\.so$'
  1206. fi
  1207. ;;
  1208. newos6*)
  1209. - [lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)']
  1210. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
  1211. lt_cv_file_magic_cmd=/usr/bin/file
  1212. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  1213. ;;
  1214. +openbsd*)
  1215. + lt_cv_file_magic_cmd=/usr/bin/file
  1216. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  1217. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  1218. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'
  1219. + else
  1220. + lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
  1221. + fi
  1222. + ;;
  1223. +
  1224. osf3* | osf4* | osf5*)
  1225. # this will be overridden with pass_all, but let us keep it just in case
  1226. lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
  1227. @@ -3308,14 +3551,14 @@
  1228. lt_cv_file_magic_test_file=/lib/libc.so
  1229. ;;
  1230. -[sysv5uw[78]* | sysv4*uw2*)]
  1231. +sysv5uw[[78]]* | sysv4*uw2*)
  1232. lt_cv_deplibs_check_method=pass_all
  1233. ;;
  1234. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  1235. case $host_vendor in
  1236. motorola)
  1237. - [lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]']
  1238. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
  1239. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  1240. ;;
  1241. ncr)
  1242. @@ -3323,13 +3566,16 @@
  1243. ;;
  1244. sequent)
  1245. lt_cv_file_magic_cmd='/bin/file'
  1246. - [lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )']
  1247. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
  1248. ;;
  1249. sni)
  1250. lt_cv_file_magic_cmd='/bin/file'
  1251. - [lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"]
  1252. + lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
  1253. lt_cv_file_magic_test_file=/lib/libc.so
  1254. ;;
  1255. + siemens)
  1256. + lt_cv_deplibs_check_method=pass_all
  1257. + ;;
  1258. esac
  1259. ;;
  1260. esac
  1261. @@ -3341,13 +3587,14 @@
  1262. # AC_PROG_NM - find the path to a BSD-compatible name lister
  1263. AC_DEFUN([AC_PROG_NM],
  1264. -[AC_MSG_CHECKING([for BSD-compatible nm])
  1265. +[AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl
  1266. +AC_MSG_CHECKING([for BSD-compatible nm])
  1267. AC_CACHE_VAL(lt_cv_path_NM,
  1268. [if test -n "$NM"; then
  1269. # Let the user override the test.
  1270. lt_cv_path_NM="$NM"
  1271. else
  1272. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  1273. + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  1274. for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
  1275. test -z "$ac_dir" && ac_dir=.
  1276. tmp_nm=$ac_dir/${ac_tool_prefix}nm
  1277. @@ -3394,12 +3641,12 @@
  1278. ])
  1279. # AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
  1280. -# the libltdl convenience library and INCLTDL to the include flags for
  1281. +# the libltdl convenience library and LTDLINCL to the include flags for
  1282. # the libltdl header and adds --enable-ltdl-convenience to the
  1283. -# configure arguments. Note that LIBLTDL and INCLTDL are not
  1284. +# configure arguments. Note that LIBLTDL and LTDLINCL are not
  1285. # AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If DIR is not
  1286. # provided, it is assumed to be `libltdl'. LIBLTDL will be prefixed
  1287. -# with '${top_builddir}/' and INCLTDL will be prefixed with
  1288. +# with '${top_builddir}/' and LTDLINCL will be prefixed with
  1289. # '${top_srcdir}/' (note the single quotes!). If your package is not
  1290. # flat and you're not using automake, define top_builddir and
  1291. # top_srcdir appropriately in the Makefiles.
  1292. @@ -3411,16 +3658,18 @@
  1293. ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
  1294. esac
  1295. LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
  1296. - INCLTDL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  1297. + LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  1298. + # For backwards non-gettext consistent compatibility...
  1299. + INCLTDL="$LTDLINCL"
  1300. ])
  1301. # AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
  1302. -# the libltdl installable library and INCLTDL to the include flags for
  1303. +# the libltdl installable library and LTDLINCL to the include flags for
  1304. # the libltdl header and adds --enable-ltdl-install to the configure
  1305. -# arguments. Note that LIBLTDL and INCLTDL are not AC_SUBSTed, nor is
  1306. +# arguments. Note that LIBLTDL and LTDLINCL are not AC_SUBSTed, nor is
  1307. # AC_CONFIG_SUBDIRS called. If DIR is not provided and an installed
  1308. # libltdl is not found, it is assumed to be `libltdl'. LIBLTDL will
  1309. -# be prefixed with '${top_builddir}/' and INCLTDL will be prefixed
  1310. +# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed
  1311. # with '${top_srcdir}/' (note the single quotes!). If your package is
  1312. # not flat and you're not using automake, define top_builddir and
  1313. # top_srcdir appropriately in the Makefiles.
  1314. @@ -3438,12 +3687,14 @@
  1315. if test x"$enable_ltdl_install" = x"yes"; then
  1316. ac_configure_args="$ac_configure_args --enable-ltdl-install"
  1317. LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
  1318. - INCLTDL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  1319. + LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  1320. else
  1321. ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
  1322. LIBLTDL="-lltdl"
  1323. - INCLTDL=
  1324. + LTDLINCL=
  1325. fi
  1326. + # For backwards non-gettext consistent compatibility...
  1327. + INCLTDL="$LTDLINCL"
  1328. ])
  1329. # old names
  1330. @@ -3458,3 +3709,92 @@
  1331. # This is just to silence aclocal about the macro not being used
  1332. ifelse([AC_DISABLE_FAST_INSTALL])
  1333. +# NOTE: This macro has been submitted for inclusion into #
  1334. +# GNU Autoconf as AC_PROG_SED. When it is available in #
  1335. +# a released version of Autoconf we should remove this #
  1336. +# macro and use it instead. #
  1337. +# LT_AC_PROG_SED
  1338. +# --------------
  1339. +# Check for a fully-functional sed program, that truncates
  1340. +# as few characters as possible. Prefer GNU sed if found.
  1341. +AC_DEFUN([LT_AC_PROG_SED],
  1342. +[AC_MSG_CHECKING([for a sed that does not truncate output])
  1343. +AC_CACHE_VAL(lt_cv_path_SED,
  1344. +[# Loop through the user's path and test for sed and gsed.
  1345. +# Then use that list of sed's as ones to test for truncation.
  1346. +as_executable_p="test -f"
  1347. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1348. +for as_dir in $PATH
  1349. +do
  1350. + IFS=$as_save_IFS
  1351. + test -z "$as_dir" && as_dir=.
  1352. + for ac_prog in sed gsed; do
  1353. + for ac_exec_ext in '' $ac_executable_extensions; do
  1354. + if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  1355. + _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
  1356. + fi
  1357. + done
  1358. + done
  1359. +done
  1360. +
  1361. + # Create a temporary directory, and hook for its removal unless debugging.
  1362. +$debug ||
  1363. +{
  1364. + trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  1365. + trap '{ (exit 1); exit 1; }' 1 2 13 15
  1366. +}
  1367. +
  1368. +# Create a (secure) tmp directory for tmp files.
  1369. +: ${TMPDIR=/tmp}
  1370. +{
  1371. + tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
  1372. + test -n "$tmp" && test -d "$tmp"
  1373. +} ||
  1374. +{
  1375. + tmp=$TMPDIR/sed$$-$RANDOM
  1376. + (umask 077 && mkdir $tmp)
  1377. +} ||
  1378. +{
  1379. + echo "$me: cannot create a temporary directory in $TMPDIR" >&2
  1380. + { (exit 1); exit 1; }
  1381. +}
  1382. + _max=0
  1383. + _count=0
  1384. + # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  1385. + # along with /bin/sed that truncates output.
  1386. + for _sed in $_sed_list /usr/xpg4/bin/sed; do
  1387. + test ! -f ${_sed} && break
  1388. + cat /dev/null > "$tmp/sed.in"
  1389. + _count=0
  1390. + echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
  1391. + # Check for GNU sed and select it if it is found.
  1392. + if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
  1393. + lt_cv_path_SED=${_sed}
  1394. + break
  1395. + fi
  1396. + while true; do
  1397. + cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
  1398. + mv "$tmp/sed.tmp" "$tmp/sed.in"
  1399. + cp "$tmp/sed.in" "$tmp/sed.nl"
  1400. + echo >>"$tmp/sed.nl"
  1401. + ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
  1402. + cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
  1403. + # 40000 chars as input seems more than enough
  1404. + test $_count -gt 10 && break
  1405. + _count=`expr $_count + 1`
  1406. + if test $_count -gt $_max; then
  1407. + _max=$_count
  1408. + lt_cv_path_SED=$_sed
  1409. + fi
  1410. + done
  1411. + done
  1412. + rm -rf "$tmp"
  1413. +])
  1414. +if test "X$SED" != "X"; then
  1415. + lt_cv_path_SED=$SED
  1416. +else
  1417. + SED=$lt_cv_path_SED
  1418. +fi
  1419. +AC_MSG_RESULT([$SED])
  1420. +])
  1421. +
  1422. Index: linux-atm-2.4.1/config.guess
  1423. ===================================================================
  1424. --- linux-atm-2.4.1.orig/config.guess 2007-10-20 19:19:10.846246570 +0200
  1425. +++ linux-atm-2.4.1/config.guess 2007-10-20 19:19:11.718296264 +0200
  1426. @@ -1,9 +1,9 @@
  1427. #! /bin/sh
  1428. # Attempt to guess a canonical system name.
  1429. -# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
  1430. -# Free Software Foundation, Inc.
  1431. +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
  1432. +# 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
  1433. -timestamp='2001-04-20'
  1434. +timestamp='2003-05-19'
  1435. # This file is free software; you can redistribute it and/or modify it
  1436. # under the terms of the GNU General Public License as published by
  1437. @@ -24,8 +24,9 @@
  1438. # configuration script generated by Autoconf, you may include it under
  1439. # the same distribution terms that you use for the rest of that program.
  1440. -# Written by Per Bothner <[email protected]>.
  1441. -# Please send patches to <[email protected]>.
  1442. +# Originally written by Per Bothner <[email protected]>.
  1443. +# Please send patches to <[email protected]>. Submit a context
  1444. +# diff and a properly formatted ChangeLog entry.
  1445. #
  1446. # This script attempts to guess a canonical system name similar to
  1447. # config.sub. If it succeeds, it prints the system name on stdout, and
  1448. @@ -52,7 +53,7 @@
  1449. GNU config.guess ($timestamp)
  1450. Originally written by Per Bothner.
  1451. -Copyright (C) 1992, 93, 94, 95, 96, 97, 98, 99, 2000
  1452. +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
  1453. Free Software Foundation, Inc.
  1454. This is free software; see the source for copying conditions. There is NO
  1455. @@ -87,33 +88,44 @@
  1456. exit 1
  1457. fi
  1458. +trap 'exit 1' 1 2 15
  1459. -dummy=dummy-$$
  1460. -trap 'rm -f $dummy.c $dummy.o $dummy.rel $dummy; exit 1' 1 2 15
  1461. +# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
  1462. +# compiler to aid in system detection is discouraged as it requires
  1463. +# temporary files to be created and, as you can see below, it is a
  1464. +# headache to deal with in a portable fashion.
  1465. -# CC_FOR_BUILD -- compiler used by this script.
  1466. # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
  1467. # use `HOST_CC' if defined, but it is deprecated.
  1468. +# Portable tmp directory creation inspired by the Autoconf team.
  1469. +
  1470. +set_cc_for_build='
  1471. +trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
  1472. +trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
  1473. +: ${TMPDIR=/tmp} ;
  1474. + { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
  1475. + { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
  1476. + { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
  1477. +dummy=$tmp/dummy ;
  1478. +tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
  1479. case $CC_FOR_BUILD,$HOST_CC,$CC in
  1480. - ,,) echo "int dummy(){}" > $dummy.c
  1481. - for c in cc gcc c89 ; do
  1482. - ($c $dummy.c -c -o $dummy.o) >/dev/null 2>&1
  1483. - if test $? = 0 ; then
  1484. - CC_FOR_BUILD="$c"; break
  1485. - fi
  1486. - done
  1487. - rm -f $dummy.c $dummy.o $dummy.rel
  1488. + ,,) echo "int x;" > $dummy.c ;
  1489. + for c in cc gcc c89 c99 ; do
  1490. + if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
  1491. + CC_FOR_BUILD="$c"; break ;
  1492. + fi ;
  1493. + done ;
  1494. if test x"$CC_FOR_BUILD" = x ; then
  1495. - CC_FOR_BUILD=no_compiler_found
  1496. + CC_FOR_BUILD=no_compiler_found ;
  1497. fi
  1498. ;;
  1499. ,,*) CC_FOR_BUILD=$CC ;;
  1500. ,*,*) CC_FOR_BUILD=$HOST_CC ;;
  1501. -esac
  1502. +esac ;'
  1503. # This is needed to find uname on a Pyramid OSx when run in the BSD universe.
  1504. -# ([email protected] 8/24/94.)
  1505. +# ([email protected] 1994-08-24)
  1506. if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
  1507. PATH=$PATH:/.attbin ; export PATH
  1508. fi
  1509. @@ -127,29 +139,31 @@
  1510. case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
  1511. *:NetBSD:*:*)
  1512. - # Netbsd (nbsd) targets should (where applicable) match one or
  1513. + # NetBSD (nbsd) targets should (where applicable) match one or
  1514. # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
  1515. # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
  1516. # switched to ELF, *-*-netbsd* would select the old
  1517. # object file format. This provides both forward
  1518. # compatibility and a consistent mechanism for selecting the
  1519. # object file format.
  1520. - # Determine the machine/vendor (is the vendor relevant).
  1521. - case "${UNAME_MACHINE}" in
  1522. - amiga) machine=m68k-unknown ;;
  1523. - arm32) machine=arm-unknown ;;
  1524. - atari*) machine=m68k-atari ;;
  1525. - sun3*) machine=m68k-sun ;;
  1526. - mac68k) machine=m68k-apple ;;
  1527. - macppc) machine=powerpc-apple ;;
  1528. - hp3[0-9][05]) machine=m68k-hp ;;
  1529. - ibmrt|romp-ibm) machine=romp-ibm ;;
  1530. - *) machine=${UNAME_MACHINE}-unknown ;;
  1531. + #
  1532. + # Note: NetBSD doesn't particularly care about the vendor
  1533. + # portion of the name. We always set it to "unknown".
  1534. + sysctl="sysctl -n hw.machine_arch"
  1535. + UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
  1536. + /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
  1537. + case "${UNAME_MACHINE_ARCH}" in
  1538. + armeb) machine=armeb-unknown ;;
  1539. + arm*) machine=arm-unknown ;;
  1540. + sh3el) machine=shl-unknown ;;
  1541. + sh3eb) machine=sh-unknown ;;
  1542. + *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
  1543. esac
  1544. # The Operating System including object format, if it has switched
  1545. # to ELF recently, or will in the future.
  1546. - case "${UNAME_MACHINE}" in
  1547. - i386|sparc|amiga|arm*|hp300|mvme68k|vax|atari|luna68k|mac68k|news68k|next68k|pc532|sun3*|x68k)
  1548. + case "${UNAME_MACHINE_ARCH}" in
  1549. + arm*|i386|m68k|ns32k|sh3*|sparc|vax)
  1550. + eval $set_cc_for_build
  1551. if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
  1552. | grep __ELF__ >/dev/null
  1553. then
  1554. @@ -165,69 +179,107 @@
  1555. ;;
  1556. esac
  1557. # The OS release
  1558. - release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
  1559. + # Debian GNU/NetBSD machines have a different userland, and
  1560. + # thus, need a distinct triplet. However, they do not need
  1561. + # kernel version information, so it can be replaced with a
  1562. + # suitable tag, in the style of linux-gnu.
  1563. + case "${UNAME_VERSION}" in
  1564. + Debian*)
  1565. + release='-gnu'
  1566. + ;;
  1567. + *)
  1568. + release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
  1569. + ;;
  1570. + esac
  1571. # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
  1572. # contains redundant information, the shorter form:
  1573. # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
  1574. echo "${machine}-${os}${release}"
  1575. exit 0 ;;
  1576. + amiga:OpenBSD:*:*)
  1577. + echo m68k-unknown-openbsd${UNAME_RELEASE}
  1578. + exit 0 ;;
  1579. + arc:OpenBSD:*:*)
  1580. + echo mipsel-unknown-openbsd${UNAME_RELEASE}
  1581. + exit 0 ;;
  1582. + hp300:OpenBSD:*:*)
  1583. + echo m68k-unknown-openbsd${UNAME_RELEASE}
  1584. + exit 0 ;;
  1585. + mac68k:OpenBSD:*:*)
  1586. + echo m68k-unknown-openbsd${UNAME_RELEASE}
  1587. + exit 0 ;;
  1588. + macppc:OpenBSD:*:*)
  1589. + echo powerpc-unknown-openbsd${UNAME_RELEASE}
  1590. + exit 0 ;;
  1591. + mvme68k:OpenBSD:*:*)
  1592. + echo m68k-unknown-openbsd${UNAME_RELEASE}
  1593. + exit 0 ;;
  1594. + mvme88k:OpenBSD:*:*)
  1595. + echo m88k-unknown-openbsd${UNAME_RELEASE}
  1596. + exit 0 ;;
  1597. + mvmeppc:OpenBSD:*:*)
  1598. + echo powerpc-unknown-openbsd${UNAME_RELEASE}
  1599. + exit 0 ;;
  1600. + pmax:OpenBSD:*:*)
  1601. + echo mipsel-unknown-openbsd${UNAME_RELEASE}
  1602. + exit 0 ;;
  1603. + sgi:OpenBSD:*:*)
  1604. + echo mipseb-unknown-openbsd${UNAME_RELEASE}
  1605. + exit 0 ;;
  1606. + sun3:OpenBSD:*:*)
  1607. + echo m68k-unknown-openbsd${UNAME_RELEASE}
  1608. + exit 0 ;;
  1609. + wgrisc:OpenBSD:*:*)
  1610. + echo mipsel-unknown-openbsd${UNAME_RELEASE}
  1611. + exit 0 ;;
  1612. + *:OpenBSD:*:*)
  1613. + echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
  1614. + exit 0 ;;
  1615. alpha:OSF1:*:*)
  1616. if test $UNAME_RELEASE = "V4.0"; then
  1617. UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
  1618. fi
  1619. + # According to Compaq, /usr/sbin/psrinfo has been available on
  1620. + # OSF/1 and Tru64 systems produced since 1995. I hope that
  1621. + # covers most systems running today. This code pipes the CPU
  1622. + # types through head -n 1, so we only detect the type of CPU 0.
  1623. + ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
  1624. + case "$ALPHA_CPU_TYPE" in
  1625. + "EV4 (21064)")
  1626. + UNAME_MACHINE="alpha" ;;
  1627. + "EV4.5 (21064)")
  1628. + UNAME_MACHINE="alpha" ;;
  1629. + "LCA4 (21066/21068)")
  1630. + UNAME_MACHINE="alpha" ;;
  1631. + "EV5 (21164)")
  1632. + UNAME_MACHINE="alphaev5" ;;
  1633. + "EV5.6 (21164A)")
  1634. + UNAME_MACHINE="alphaev56" ;;
  1635. + "EV5.6 (21164PC)")
  1636. + UNAME_MACHINE="alphapca56" ;;
  1637. + "EV5.7 (21164PC)")
  1638. + UNAME_MACHINE="alphapca57" ;;
  1639. + "EV6 (21264)")
  1640. + UNAME_MACHINE="alphaev6" ;;
  1641. + "EV6.7 (21264A)")
  1642. + UNAME_MACHINE="alphaev67" ;;
  1643. + "EV6.8CB (21264C)")
  1644. + UNAME_MACHINE="alphaev68" ;;
  1645. + "EV6.8AL (21264B)")
  1646. + UNAME_MACHINE="alphaev68" ;;
  1647. + "EV6.8CX (21264D)")
  1648. + UNAME_MACHINE="alphaev68" ;;
  1649. + "EV6.9A (21264/EV69A)")
  1650. + UNAME_MACHINE="alphaev69" ;;
  1651. + "EV7 (21364)")
  1652. + UNAME_MACHINE="alphaev7" ;;
  1653. + "EV7.9 (21364A)")
  1654. + UNAME_MACHINE="alphaev79" ;;
  1655. + esac
  1656. # A Vn.n version is a released version.
  1657. # A Tn.n version is a released field test version.
  1658. # A Xn.n version is an unreleased experimental baselevel.
  1659. # 1.2 uses "1.2" for uname -r.
  1660. - cat <<EOF >$dummy.s
  1661. - .data
  1662. -\$Lformat:
  1663. - .byte 37,100,45,37,120,10,0 # "%d-%x\n"
  1664. -
  1665. - .text
  1666. - .globl main
  1667. - .align 4
  1668. - .ent main
  1669. -main:
  1670. - .frame \$30,16,\$26,0
  1671. - ldgp \$29,0(\$27)
  1672. - .prologue 1
  1673. - .long 0x47e03d80 # implver \$0
  1674. - lda \$2,-1
  1675. - .long 0x47e20c21 # amask \$2,\$1
  1676. - lda \$16,\$Lformat
  1677. - mov \$0,\$17
  1678. - not \$1,\$18
  1679. - jsr \$26,printf
  1680. - ldgp \$29,0(\$26)
  1681. - mov 0,\$16
  1682. - jsr \$26,exit
  1683. - .end main
  1684. -EOF
  1685. - $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null
  1686. - if test "$?" = 0 ; then
  1687. - case `./$dummy` in
  1688. - 0-0)
  1689. - UNAME_MACHINE="alpha"
  1690. - ;;
  1691. - 1-0)
  1692. - UNAME_MACHINE="alphaev5"
  1693. - ;;
  1694. - 1-1)
  1695. - UNAME_MACHINE="alphaev56"
  1696. - ;;
  1697. - 1-101)
  1698. - UNAME_MACHINE="alphapca56"
  1699. - ;;
  1700. - 2-303)
  1701. - UNAME_MACHINE="alphaev6"
  1702. - ;;
  1703. - 2-307)
  1704. - UNAME_MACHINE="alphaev67"
  1705. - ;;
  1706. - esac
  1707. - fi
  1708. - rm -f $dummy.s $dummy
  1709. echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
  1710. exit 0 ;;
  1711. Alpha\ *:Windows_NT*:*)
  1712. @@ -242,29 +294,11 @@
  1713. Amiga*:UNIX_System_V:4.0:*)
  1714. echo m68k-unknown-sysv4
  1715. exit 0;;
  1716. - amiga:OpenBSD:*:*)
  1717. - echo m68k-unknown-openbsd${UNAME_RELEASE}
  1718. - exit 0 ;;
  1719. *:[Aa]miga[Oo][Ss]:*:*)
  1720. echo ${UNAME_MACHINE}-unknown-amigaos
  1721. exit 0 ;;
  1722. - arc64:OpenBSD:*:*)
  1723. - echo mips64el-unknown-openbsd${UNAME_RELEASE}
  1724. - exit 0 ;;
  1725. - arc:OpenBSD:*:*)
  1726. - echo mipsel-unknown-openbsd${UNAME_RELEASE}
  1727. - exit 0 ;;
  1728. - hkmips:OpenBSD:*:*)
  1729. - echo mips-unknown-openbsd${UNAME_RELEASE}
  1730. - exit 0 ;;
  1731. - pmax:OpenBSD:*:*)
  1732. - echo mipsel-unknown-openbsd${UNAME_RELEASE}
  1733. - exit 0 ;;
  1734. - sgi:OpenBSD:*:*)
  1735. - echo mips-unknown-openbsd${UNAME_RELEASE}
  1736. - exit 0 ;;
  1737. - wgrisc:OpenBSD:*:*)
  1738. - echo mipsel-unknown-openbsd${UNAME_RELEASE}
  1739. + *:[Mm]orph[Oo][Ss]:*:*)
  1740. + echo ${UNAME_MACHINE}-unknown-morphos
  1741. exit 0 ;;
  1742. *:OS/390:*:*)
  1743. echo i370-ibm-openedition
  1744. @@ -286,6 +320,10 @@
  1745. NILE*:*:*:dcosx)
  1746. echo pyramid-pyramid-svr4
  1747. exit 0 ;;
  1748. + DRS?6000:UNIX_SV:4.2*:7*)
  1749. + case `/usr/bin/uname -p` in
  1750. + sparc) echo sparc-icl-nx7 && exit 0 ;;
  1751. + esac ;;
  1752. sun4H:SunOS:5.*:*)
  1753. echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  1754. exit 0 ;;
  1755. @@ -314,7 +352,7 @@
  1756. echo m68k-sun-sunos${UNAME_RELEASE}
  1757. exit 0 ;;
  1758. sun*:*:4.2BSD:*)
  1759. - UNAME_RELEASE=`(head -1 /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
  1760. + UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
  1761. test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
  1762. case "`/bin/arch`" in
  1763. sun3)
  1764. @@ -328,9 +366,6 @@
  1765. aushp:SunOS:*:*)
  1766. echo sparc-auspex-sunos${UNAME_RELEASE}
  1767. exit 0 ;;
  1768. - atari*:OpenBSD:*:*)
  1769. - echo m68k-unknown-openbsd${UNAME_RELEASE}
  1770. - exit 0 ;;
  1771. # The situation for MiNT is a little confusing. The machine name
  1772. # can be virtually everything (everything which is not
  1773. # "atarist" or "atariste" at least should have a processor
  1774. @@ -357,18 +392,6 @@
  1775. *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
  1776. echo m68k-unknown-mint${UNAME_RELEASE}
  1777. exit 0 ;;
  1778. - sun3*:OpenBSD:*:*)
  1779. - echo m68k-unknown-openbsd${UNAME_RELEASE}
  1780. - exit 0 ;;
  1781. - mac68k:OpenBSD:*:*)
  1782. - echo m68k-unknown-openbsd${UNAME_RELEASE}
  1783. - exit 0 ;;
  1784. - mvme68k:OpenBSD:*:*)
  1785. - echo m68k-unknown-openbsd${UNAME_RELEASE}
  1786. - exit 0 ;;
  1787. - mvme88k:OpenBSD:*:*)
  1788. - echo m88k-unknown-openbsd${UNAME_RELEASE}
  1789. - exit 0 ;;
  1790. powerpc:machten:*:*)
  1791. echo powerpc-apple-machten${UNAME_RELEASE}
  1792. exit 0 ;;
  1793. @@ -385,6 +408,7 @@
  1794. echo clipper-intergraph-clix${UNAME_RELEASE}
  1795. exit 0 ;;
  1796. mips:*:*:UMIPS | mips:*:*:RISCos)
  1797. + eval $set_cc_for_build
  1798. sed 's/^ //' << EOF >$dummy.c
  1799. #ifdef __cplusplus
  1800. #include <stdio.h> /* for printf() prototype */
  1801. @@ -406,15 +430,20 @@
  1802. exit (-1);
  1803. }
  1804. EOF
  1805. - $CC_FOR_BUILD $dummy.c -o $dummy \
  1806. - && ./$dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
  1807. - && rm -f $dummy.c $dummy && exit 0
  1808. - rm -f $dummy.c $dummy
  1809. + $CC_FOR_BUILD -o $dummy $dummy.c \
  1810. + && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
  1811. + && exit 0
  1812. echo mips-mips-riscos${UNAME_RELEASE}
  1813. exit 0 ;;
  1814. Motorola:PowerMAX_OS:*:*)
  1815. echo powerpc-motorola-powermax
  1816. exit 0 ;;
  1817. + Motorola:*:4.3:PL8-*)
  1818. + echo powerpc-harris-powermax
  1819. + exit 0 ;;
  1820. + Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
  1821. + echo powerpc-harris-powermax
  1822. + exit 0 ;;
  1823. Night_Hawk:Power_UNIX:*:*)
  1824. echo powerpc-harris-powerunix
  1825. exit 0 ;;
  1826. @@ -475,6 +504,7 @@
  1827. exit 0 ;;
  1828. *:AIX:2:3)
  1829. if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
  1830. + eval $set_cc_for_build
  1831. sed 's/^ //' << EOF >$dummy.c
  1832. #include <sys/systemcfg.h>
  1833. @@ -486,8 +516,7 @@
  1834. exit(0);
  1835. }
  1836. EOF
  1837. - $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm -f $dummy.c $dummy && exit 0
  1838. - rm -f $dummy.c $dummy
  1839. + $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
  1840. echo rs6000-ibm-aix3.2.5
  1841. elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
  1842. echo rs6000-ibm-aix3.2.4
  1843. @@ -496,7 +525,7 @@
  1844. fi
  1845. exit 0 ;;
  1846. *:AIX:*:[45])
  1847. - IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | head -1 | awk '{ print $1 }'`
  1848. + IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
  1849. if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
  1850. IBM_ARCH=rs6000
  1851. else
  1852. @@ -536,10 +565,8 @@
  1853. 9000/31? ) HP_ARCH=m68000 ;;
  1854. 9000/[34]?? ) HP_ARCH=m68k ;;
  1855. 9000/[678][0-9][0-9])
  1856. - case "${HPUX_REV}" in
  1857. - 11.[0-9][0-9])
  1858. - if [ -x /usr/bin/getconf ]; then
  1859. - sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
  1860. + if [ -x /usr/bin/getconf ]; then
  1861. + sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
  1862. sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
  1863. case "${sc_cpu_version}" in
  1864. 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
  1865. @@ -548,12 +575,13 @@
  1866. case "${sc_kernel_bits}" in
  1867. 32) HP_ARCH="hppa2.0n" ;;
  1868. 64) HP_ARCH="hppa2.0w" ;;
  1869. + '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
  1870. esac ;;
  1871. esac
  1872. - fi ;;
  1873. - esac
  1874. - if [ "${HP_ARCH}" = "" ]; then
  1875. - sed 's/^ //' << EOF >$dummy.c
  1876. + fi
  1877. + if [ "${HP_ARCH}" = "" ]; then
  1878. + eval $set_cc_for_build
  1879. + sed 's/^ //' << EOF >$dummy.c
  1880. #define _HPUX_SOURCE
  1881. #include <stdlib.h>
  1882. @@ -586,11 +614,21 @@
  1883. exit (0);
  1884. }
  1885. EOF
  1886. - (CCOPTS= $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null ) && HP_ARCH=`./$dummy`
  1887. - if test -z "$HP_ARCH"; then HP_ARCH=hppa; fi
  1888. - rm -f $dummy.c $dummy
  1889. - fi ;;
  1890. + (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
  1891. + test -z "$HP_ARCH" && HP_ARCH=hppa
  1892. + fi ;;
  1893. esac
  1894. + if [ ${HP_ARCH} = "hppa2.0w" ]
  1895. + then
  1896. + # avoid double evaluation of $set_cc_for_build
  1897. + test -n "$CC_FOR_BUILD" || eval $set_cc_for_build
  1898. + if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null
  1899. + then
  1900. + HP_ARCH="hppa2.0w"
  1901. + else
  1902. + HP_ARCH="hppa64"
  1903. + fi
  1904. + fi
  1905. echo ${HP_ARCH}-hp-hpux${HPUX_REV}
  1906. exit 0 ;;
  1907. ia64:HP-UX:*:*)
  1908. @@ -598,6 +636,7 @@
  1909. echo ia64-hp-hpux${HPUX_REV}
  1910. exit 0 ;;
  1911. 3050*:HI-UX:*:*)
  1912. + eval $set_cc_for_build
  1913. sed 's/^ //' << EOF >$dummy.c
  1914. #include <unistd.h>
  1915. int
  1916. @@ -623,8 +662,7 @@
  1917. exit (0);
  1918. }
  1919. EOF
  1920. - $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm -f $dummy.c $dummy && exit 0
  1921. - rm -f $dummy.c $dummy
  1922. + $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
  1923. echo unknown-hitachi-hiuxwe2
  1924. exit 0 ;;
  1925. 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
  1926. @@ -633,7 +671,7 @@
  1927. 9000/8??:4.3bsd:*:*)
  1928. echo hppa1.0-hp-bsd
  1929. exit 0 ;;
  1930. - *9??*:MPE/iX:*:*)
  1931. + *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
  1932. echo hppa1.0-hp-mpeix
  1933. exit 0 ;;
  1934. hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
  1935. @@ -652,9 +690,6 @@
  1936. parisc*:Lites*:*:*)
  1937. echo hppa1.1-hp-lites
  1938. exit 0 ;;
  1939. - hppa*:OpenBSD:*:*)
  1940. - echo hppa-unknown-openbsd
  1941. - exit 0 ;;
  1942. C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
  1943. echo c1-convex-bsd
  1944. exit 0 ;;
  1945. @@ -673,41 +708,33 @@
  1946. C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
  1947. echo c4-convex-bsd
  1948. exit 0 ;;
  1949. - CRAY*X-MP:*:*:*)
  1950. - echo xmp-cray-unicos
  1951. - exit 0 ;;
  1952. CRAY*Y-MP:*:*:*)
  1953. - echo ymp-cray-unicos${UNAME_RELEASE}
  1954. + echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  1955. exit 0 ;;
  1956. CRAY*[A-Z]90:*:*:*)
  1957. echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
  1958. | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
  1959. - -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/
  1960. + -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
  1961. + -e 's/\.[^.]*$/.X/'
  1962. exit 0 ;;
  1963. CRAY*TS:*:*:*)
  1964. echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  1965. exit 0 ;;
  1966. - CRAY*T3D:*:*:*)
  1967. - echo alpha-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  1968. - exit 0 ;;
  1969. CRAY*T3E:*:*:*)
  1970. echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  1971. exit 0 ;;
  1972. CRAY*SV1:*:*:*)
  1973. echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  1974. exit 0 ;;
  1975. - CRAY-2:*:*:*)
  1976. - echo cray2-cray-unicos
  1977. - exit 0 ;;
  1978. + *:UNICOS/mp:*:*)
  1979. + echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  1980. + exit 0 ;;
  1981. F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
  1982. FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
  1983. FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
  1984. FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
  1985. echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
  1986. exit 0 ;;
  1987. - hp300:OpenBSD:*:*)
  1988. - echo m68k-unknown-openbsd${UNAME_RELEASE}
  1989. - exit 0 ;;
  1990. i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
  1991. echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
  1992. exit 0 ;;
  1993. @@ -717,11 +744,19 @@
  1994. *:BSD/OS:*:*)
  1995. echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
  1996. exit 0 ;;
  1997. - *:FreeBSD:*:*)
  1998. - echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
  1999. - exit 0 ;;
  2000. - *:OpenBSD:*:*)
  2001. - echo ${UNAME_MACHINE}-unknown-openbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
  2002. + *:FreeBSD:*:*|*:GNU/FreeBSD:*:*)
  2003. + # Determine whether the default compiler uses glibc.
  2004. + eval $set_cc_for_build
  2005. + sed 's/^ //' << EOF >$dummy.c
  2006. + #include <features.h>
  2007. + #if __GLIBC__ >= 2
  2008. + LIBC=gnu
  2009. + #else
  2010. + LIBC=
  2011. + #endif
  2012. +EOF
  2013. + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
  2014. + echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC}
  2015. exit 0 ;;
  2016. i*:CYGWIN*:*)
  2017. echo ${UNAME_MACHINE}-pc-cygwin
  2018. @@ -732,11 +767,17 @@
  2019. i*:PW*:*)
  2020. echo ${UNAME_MACHINE}-pc-pw32
  2021. exit 0 ;;
  2022. + x86:Interix*:3*)
  2023. + echo i586-pc-interix3
  2024. + exit 0 ;;
  2025. + [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
  2026. + echo i${UNAME_MACHINE}-pc-mks
  2027. + exit 0 ;;
  2028. i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
  2029. # How do we know it's Interix rather than the generic POSIX subsystem?
  2030. # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
  2031. # UNAME_MACHINE based on the output of uname instead of i386?
  2032. - echo i386-pc-interix
  2033. + echo i586-pc-interix
  2034. exit 0 ;;
  2035. i*:UWIN*:*)
  2036. echo ${UNAME_MACHINE}-pc-uwin
  2037. @@ -756,104 +797,71 @@
  2038. arm*:Linux:*:*)
  2039. echo ${UNAME_MACHINE}-unknown-linux-gnu
  2040. exit 0 ;;
  2041. + cris:Linux:*:*)
  2042. + echo cris-axis-linux-gnu
  2043. + exit 0 ;;
  2044. ia64:Linux:*:*)
  2045. - echo ${UNAME_MACHINE}-unknown-linux
  2046. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  2047. exit 0 ;;
  2048. m68*:Linux:*:*)
  2049. echo ${UNAME_MACHINE}-unknown-linux-gnu
  2050. exit 0 ;;
  2051. mips:Linux:*:*)
  2052. - cat >$dummy.c <<EOF
  2053. -#ifdef __cplusplus
  2054. -#include <stdio.h> /* for printf() prototype */
  2055. -int main (int argc, char *argv[]) {
  2056. -#else
  2057. -int main (argc, argv) int argc; char *argv[]; {
  2058. -#endif
  2059. -#ifdef __MIPSEB__
  2060. - printf ("%s-unknown-linux-gnu\n", argv[1]);
  2061. -#endif
  2062. -#ifdef __MIPSEL__
  2063. - printf ("%sel-unknown-linux-gnu\n", argv[1]);
  2064. -#endif
  2065. - return 0;
  2066. -}
  2067. + eval $set_cc_for_build
  2068. + sed 's/^ //' << EOF >$dummy.c
  2069. + #undef CPU
  2070. + #undef mips
  2071. + #undef mipsel
  2072. + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
  2073. + CPU=mipsel
  2074. + #else
  2075. + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
  2076. + CPU=mips
  2077. + #else
  2078. + CPU=
  2079. + #endif
  2080. + #endif
  2081. EOF
  2082. - $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy "${UNAME_MACHINE}" && rm -f $dummy.c $dummy && exit 0
  2083. - rm -f $dummy.c $dummy
  2084. + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
  2085. + test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
  2086. ;;
  2087. - ppc:Linux:*:*)
  2088. - # Determine Lib Version
  2089. - cat >$dummy.c <<EOF
  2090. -#include <features.h>
  2091. -#if defined(__GLIBC__)
  2092. -extern char __libc_version[];
  2093. -extern char __libc_release[];
  2094. -#endif
  2095. -main(argc, argv)
  2096. - int argc;
  2097. - char *argv[];
  2098. -{
  2099. -#if defined(__GLIBC__)
  2100. - printf("%s %s\n", __libc_version, __libc_release);
  2101. -#else
  2102. - printf("unknown\n");
  2103. -#endif
  2104. - return 0;
  2105. -}
  2106. + mips64:Linux:*:*)
  2107. + eval $set_cc_for_build
  2108. + sed 's/^ //' << EOF >$dummy.c
  2109. + #undef CPU
  2110. + #undef mips64
  2111. + #undef mips64el
  2112. + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
  2113. + CPU=mips64el
  2114. + #else
  2115. + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
  2116. + CPU=mips64
  2117. + #else
  2118. + CPU=
  2119. + #endif
  2120. + #endif
  2121. EOF
  2122. - LIBC=""
  2123. - $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null
  2124. - if test "$?" = 0 ; then
  2125. - ./$dummy | grep 1\.99 > /dev/null
  2126. - if test "$?" = 0 ; then LIBC="libc1" ; fi
  2127. - fi
  2128. - rm -f $dummy.c $dummy
  2129. - echo powerpc-unknown-linux-gnu${LIBC}
  2130. + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
  2131. + test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
  2132. + ;;
  2133. + ppc:Linux:*:*)
  2134. + echo powerpc-unknown-linux-gnu
  2135. + exit 0 ;;
  2136. + ppc64:Linux:*:*)
  2137. + echo powerpc64-unknown-linux-gnu
  2138. exit 0 ;;
  2139. alpha:Linux:*:*)
  2140. - cat <<EOF >$dummy.s
  2141. - .data
  2142. - \$Lformat:
  2143. - .byte 37,100,45,37,120,10,0 # "%d-%x\n"
  2144. - .text
  2145. - .globl main
  2146. - .align 4
  2147. - .ent main
  2148. - main:
  2149. - .frame \$30,16,\$26,0
  2150. - ldgp \$29,0(\$27)
  2151. - .prologue 1
  2152. - .long 0x47e03d80 # implver \$0
  2153. - lda \$2,-1
  2154. - .long 0x47e20c21 # amask \$2,\$1
  2155. - lda \$16,\$Lformat
  2156. - mov \$0,\$17
  2157. - not \$1,\$18
  2158. - jsr \$26,printf
  2159. - ldgp \$29,0(\$26)
  2160. - mov 0,\$16
  2161. - jsr \$26,exit
  2162. - .end main
  2163. -EOF
  2164. - LIBC=""
  2165. - $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null
  2166. - if test "$?" = 0 ; then
  2167. - case `./$dummy` in
  2168. - 0-0) UNAME_MACHINE="alpha" ;;
  2169. - 1-0) UNAME_MACHINE="alphaev5" ;;
  2170. - 1-1) UNAME_MACHINE="alphaev56" ;;
  2171. - 1-101) UNAME_MACHINE="alphapca56" ;;
  2172. - 2-303) UNAME_MACHINE="alphaev6" ;;
  2173. - 2-307) UNAME_MACHINE="alphaev67" ;;
  2174. - esac
  2175. - objdump --private-headers $dummy | \
  2176. - grep ld.so.1 > /dev/null
  2177. - if test "$?" = 0 ; then
  2178. - LIBC="libc1"
  2179. - fi
  2180. - fi
  2181. - rm -f $dummy.s $dummy
  2182. + case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
  2183. + EV5) UNAME_MACHINE=alphaev5 ;;
  2184. + EV56) UNAME_MACHINE=alphaev56 ;;
  2185. + PCA56) UNAME_MACHINE=alphapca56 ;;
  2186. + PCA57) UNAME_MACHINE=alphapca56 ;;
  2187. + EV6) UNAME_MACHINE=alphaev6 ;;
  2188. + EV67) UNAME_MACHINE=alphaev67 ;;
  2189. + EV68*) UNAME_MACHINE=alphaev68 ;;
  2190. + esac
  2191. + objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
  2192. + if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
  2193. echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
  2194. exit 0 ;;
  2195. parisc:Linux:*:* | hppa:Linux:*:*)
  2196. @@ -883,71 +891,59 @@
  2197. # The BFD linker knows what the default object file format is, so
  2198. # first see if it will tell us. cd to the root directory to prevent
  2199. # problems with other programs or directories called `ld' in the path.
  2200. - ld_supported_emulations=`cd /; ld --help 2>&1 \
  2201. - | sed -ne '/supported emulations:/!d
  2202. + # Set LC_ALL=C to ensure ld outputs messages in English.
  2203. + ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
  2204. + | sed -ne '/supported targets:/!d
  2205. s/[ ][ ]*/ /g
  2206. - s/.*supported emulations: *//
  2207. + s/.*supported targets: *//
  2208. s/ .*//
  2209. p'`
  2210. - case "$ld_supported_emulations" in
  2211. - i*86linux)
  2212. - echo "${UNAME_MACHINE}-pc-linux-gnuaout"
  2213. - exit 0
  2214. - ;;
  2215. - elf_i*86)
  2216. + case "$ld_supported_targets" in
  2217. + elf32-i386)
  2218. TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
  2219. ;;
  2220. - i*86coff)
  2221. + a.out-i386-linux)
  2222. + echo "${UNAME_MACHINE}-pc-linux-gnuaout"
  2223. + exit 0 ;;
  2224. + coff-i386)
  2225. echo "${UNAME_MACHINE}-pc-linux-gnucoff"
  2226. - exit 0
  2227. - ;;
  2228. - esac
  2229. - # Either a pre-BFD a.out linker (linux-gnuoldld)
  2230. - # or one that does not give us useful --help.
  2231. - # GCC wants to distinguish between linux-gnuoldld and linux-gnuaout.
  2232. - # If ld does not provide *any* "supported emulations:"
  2233. - # that means it is gnuoldld.
  2234. - test -z "$ld_supported_emulations" && echo "${UNAME_MACHINE}-pc-linux-gnuoldld" && exit 0
  2235. - case "${UNAME_MACHINE}" in
  2236. - i*86)
  2237. - VENDOR=pc;
  2238. - ;;
  2239. - *)
  2240. - VENDOR=unknown;
  2241. - ;;
  2242. + exit 0 ;;
  2243. + "")
  2244. + # Either a pre-BFD a.out linker (linux-gnuoldld) or
  2245. + # one that does not give us useful --help.
  2246. + echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
  2247. + exit 0 ;;
  2248. esac
  2249. # Determine whether the default compiler is a.out or elf
  2250. - cat >$dummy.c <<EOF
  2251. -#include <features.h>
  2252. -#ifdef __cplusplus
  2253. -#include <stdio.h> /* for printf() prototype */
  2254. - int main (int argc, char *argv[]) {
  2255. -#else
  2256. - int main (argc, argv) int argc; char *argv[]; {
  2257. -#endif
  2258. -#ifdef __ELF__
  2259. -# ifdef __GLIBC__
  2260. -# if __GLIBC__ >= 2
  2261. - printf ("%s-${VENDOR}-linux-gnu\n", argv[1]);
  2262. -# else
  2263. - printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]);
  2264. -# endif
  2265. -# else
  2266. - printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]);
  2267. -# endif
  2268. -#else
  2269. - printf ("%s-${VENDOR}-linux-gnuaout\n", argv[1]);
  2270. -#endif
  2271. - return 0;
  2272. -}
  2273. + eval $set_cc_for_build
  2274. + sed 's/^ //' << EOF >$dummy.c
  2275. + #include <features.h>
  2276. + #ifdef __ELF__
  2277. + # ifdef __GLIBC__
  2278. + # if __GLIBC__ >= 2
  2279. + LIBC=gnu
  2280. + # else
  2281. + LIBC=gnulibc1
  2282. + # endif
  2283. + # else
  2284. + LIBC=gnulibc1
  2285. + # endif
  2286. + #else
  2287. + #ifdef __INTEL_COMPILER
  2288. + LIBC=gnu
  2289. + #else
  2290. + LIBC=gnuaout
  2291. + #endif
  2292. + #endif
  2293. EOF
  2294. - $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy "${UNAME_MACHINE}" && rm -f $dummy.c $dummy && exit 0
  2295. - rm -f $dummy.c $dummy
  2296. + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
  2297. + test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
  2298. test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
  2299. ;;
  2300. -# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. earlier versions
  2301. -# are messed up and put the nodename in both sysname and nodename.
  2302. i*86:DYNIX/ptx:4*:*)
  2303. + # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
  2304. + # earlier versions are messed up and put the nodename in both
  2305. + # sysname and nodename.
  2306. echo i386-sequent-sysv4
  2307. exit 0 ;;
  2308. i*86:UNIX_SV:4.2MP:2.*)
  2309. @@ -958,6 +954,23 @@
  2310. # Use sysv4.2uw... so that sysv4* matches it.
  2311. echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
  2312. exit 0 ;;
  2313. + i*86:OS/2:*:*)
  2314. + # If we were able to find `uname', then EMX Unix compatibility
  2315. + # is probably installed.
  2316. + echo ${UNAME_MACHINE}-pc-os2-emx
  2317. + exit 0 ;;
  2318. + i*86:XTS-300:*:STOP)
  2319. + echo ${UNAME_MACHINE}-unknown-stop
  2320. + exit 0 ;;
  2321. + i*86:atheos:*:*)
  2322. + echo ${UNAME_MACHINE}-unknown-atheos
  2323. + exit 0 ;;
  2324. + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
  2325. + echo i386-unknown-lynxos${UNAME_RELEASE}
  2326. + exit 0 ;;
  2327. + i*86:*DOS:*:*)
  2328. + echo ${UNAME_MACHINE}-pc-msdosdjgpp
  2329. + exit 0 ;;
  2330. i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
  2331. UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
  2332. if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
  2333. @@ -966,36 +979,32 @@
  2334. echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
  2335. fi
  2336. exit 0 ;;
  2337. - i*86:*:5:7*)
  2338. - # Fixed at (any) Pentium or better
  2339. - UNAME_MACHINE=i586
  2340. - if [ ${UNAME_SYSTEM} = "UnixWare" ] ; then
  2341. - echo ${UNAME_MACHINE}-sco-sysv${UNAME_RELEASE}uw${UNAME_VERSION}
  2342. - else
  2343. - echo ${UNAME_MACHINE}-pc-sysv${UNAME_RELEASE}
  2344. - fi
  2345. + i*86:*:5:[78]*)
  2346. + case `/bin/uname -X | grep "^Machine"` in
  2347. + *486*) UNAME_MACHINE=i486 ;;
  2348. + *Pentium) UNAME_MACHINE=i586 ;;
  2349. + *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
  2350. + esac
  2351. + echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
  2352. exit 0 ;;
  2353. i*86:*:3.2:*)
  2354. if test -f /usr/options/cb.name; then
  2355. UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
  2356. echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
  2357. elif /bin/uname -X 2>/dev/null >/dev/null ; then
  2358. - UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')`
  2359. - (/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486
  2360. - (/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \
  2361. + UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
  2362. + (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
  2363. + (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
  2364. && UNAME_MACHINE=i586
  2365. - (/bin/uname -X|egrep '^Machine.*Pent ?II' >/dev/null) \
  2366. + (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
  2367. && UNAME_MACHINE=i686
  2368. - (/bin/uname -X|egrep '^Machine.*Pentium Pro' >/dev/null) \
  2369. + (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
  2370. && UNAME_MACHINE=i686
  2371. echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
  2372. else
  2373. echo ${UNAME_MACHINE}-pc-sysv32
  2374. fi
  2375. exit 0 ;;
  2376. - i*86:*DOS:*:*)
  2377. - echo ${UNAME_MACHINE}-pc-msdosdjgpp
  2378. - exit 0 ;;
  2379. pc:*:*:*)
  2380. # Left here for compatibility:
  2381. # uname -m prints for DJGPP always 'pc', but it prints nothing about
  2382. @@ -1019,9 +1028,15 @@
  2383. # "miniframe"
  2384. echo m68010-convergent-sysv
  2385. exit 0 ;;
  2386. + mc68k:UNIX:SYSTEM5:3.51m)
  2387. + echo m68k-convergent-sysv
  2388. + exit 0 ;;
  2389. + M680?0:D-NIX:5.3:*)
  2390. + echo m68k-diab-dnix
  2391. + exit 0 ;;
  2392. M68*:*:R3V[567]*:*)
  2393. test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
  2394. - 3[34]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 4850:*:4.0:3.0)
  2395. + 3[34]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0)
  2396. OS_REL=''
  2397. test -r /etc/.relid \
  2398. && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
  2399. @@ -1038,9 +1053,6 @@
  2400. mc68030:UNIX_System_V:4.*:*)
  2401. echo m68k-atari-sysv4
  2402. exit 0 ;;
  2403. - i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
  2404. - echo i386-unknown-lynxos${UNAME_RELEASE}
  2405. - exit 0 ;;
  2406. TSUNAMI:LynxOS:2.*:*)
  2407. echo sparc-unknown-lynxos${UNAME_RELEASE}
  2408. exit 0 ;;
  2409. @@ -1067,8 +1079,8 @@
  2410. echo ns32k-sni-sysv
  2411. fi
  2412. exit 0 ;;
  2413. - PENTIUM:CPunix:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
  2414. - # says <[email protected]>
  2415. + PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
  2416. + # says <[email protected]>
  2417. echo i586-unisys-sysv4
  2418. exit 0 ;;
  2419. *:UNIX_System_V:4*:FTX*)
  2420. @@ -1080,6 +1092,10 @@
  2421. # From [email protected].
  2422. echo i860-stratus-sysv4
  2423. exit 0 ;;
  2424. + *:VOS:*:*)
  2425. + # From [email protected].
  2426. + echo hppa1.1-stratus-vos
  2427. + exit 0 ;;
  2428. mc68*:A/UX:*:*)
  2429. echo m68k-apple-aux${UNAME_RELEASE}
  2430. exit 0 ;;
  2431. @@ -1108,6 +1124,9 @@
  2432. SX-5:SUPER-UX:*:*)
  2433. echo sx5-nec-superux${UNAME_RELEASE}
  2434. exit 0 ;;
  2435. + SX-6:SUPER-UX:*:*)
  2436. + echo sx6-nec-superux${UNAME_RELEASE}
  2437. + exit 0 ;;
  2438. Power*:Rhapsody:*:*)
  2439. echo powerpc-apple-rhapsody${UNAME_RELEASE}
  2440. exit 0 ;;
  2441. @@ -1115,18 +1134,24 @@
  2442. echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
  2443. exit 0 ;;
  2444. *:Darwin:*:*)
  2445. - echo `uname -p`-apple-darwin${UNAME_RELEASE}
  2446. + case `uname -p` in
  2447. + *86) UNAME_PROCESSOR=i686 ;;
  2448. + powerpc) UNAME_PROCESSOR=powerpc ;;
  2449. + esac
  2450. + echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
  2451. exit 0 ;;
  2452. *:procnto*:*:* | *:QNX:[0123456789]*:*)
  2453. - if test "${UNAME_MACHINE}" = "x86pc"; then
  2454. + UNAME_PROCESSOR=`uname -p`
  2455. + if test "$UNAME_PROCESSOR" = "x86"; then
  2456. + UNAME_PROCESSOR=i386
  2457. UNAME_MACHINE=pc
  2458. fi
  2459. - echo `uname -p`-${UNAME_MACHINE}-nto-qnx
  2460. + echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
  2461. exit 0 ;;
  2462. *:QNX:*:4*)
  2463. echo i386-pc-qnx
  2464. exit 0 ;;
  2465. - NSR-[KW]:NONSTOP_KERNEL:*:*)
  2466. + NSR-[DGKLNPTVW]:NONSTOP_KERNEL:*:*)
  2467. echo nsr-tandem-nsk${UNAME_RELEASE}
  2468. exit 0 ;;
  2469. *:NonStop-UX:*:*)
  2470. @@ -1149,11 +1174,6 @@
  2471. fi
  2472. echo ${UNAME_MACHINE}-unknown-plan9
  2473. exit 0 ;;
  2474. - i*86:OS/2:*:*)
  2475. - # If we were able to find `uname', then EMX Unix compatibility
  2476. - # is probably installed.
  2477. - echo ${UNAME_MACHINE}-pc-os2-emx
  2478. - exit 0 ;;
  2479. *:TOPS-10:*:*)
  2480. echo pdp10-unknown-tops10
  2481. exit 0 ;;
  2482. @@ -1177,6 +1197,7 @@
  2483. #echo '(No uname command or uname output not recognized.)' 1>&2
  2484. #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
  2485. +eval $set_cc_for_build
  2486. cat >$dummy.c <<EOF
  2487. #ifdef _SEQUENT_
  2488. # include <sys/types.h>
  2489. @@ -1291,8 +1312,7 @@
  2490. }
  2491. EOF
  2492. -$CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy && rm -f $dummy.c $dummy && exit 0
  2493. -rm -f $dummy.c $dummy
  2494. +$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0
  2495. # Apollos put the system type in the environment.
  2496. Index: linux-atm-2.4.1/config.h.in
  2497. ===================================================================
  2498. --- linux-atm-2.4.1.orig/config.h.in 2007-10-20 19:19:10.850246801 +0200
  2499. +++ linux-atm-2.4.1/config.h.in 2007-10-20 19:19:11.726296721 +0200
  2500. @@ -1,4 +1,4 @@
  2501. -/* config.h.in. Generated automatically from configure.in by autoheader. */
  2502. +/* config.h.in. Generated automatically from configure.in by autoheader 2.13. */
  2503. #ifndef _ATM_CONFIG_H
  2504. #define _ATM_CONFIG_H
  2505. Index: linux-atm-2.4.1/config.sub
  2506. ===================================================================
  2507. --- linux-atm-2.4.1.orig/config.sub 2007-10-20 19:19:10.858247252 +0200
  2508. +++ linux-atm-2.4.1/config.sub 2007-10-20 19:19:11.730296952 +0200
  2509. @@ -1,9 +1,9 @@
  2510. #! /bin/sh
  2511. # Configuration validation subroutine script.
  2512. -# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
  2513. -# Free Software Foundation, Inc.
  2514. +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
  2515. +# 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
  2516. -timestamp='2001-04-20'
  2517. +timestamp='2003-05-09'
  2518. # This file is (in principle) common to ALL GNU software.
  2519. # The presence of a machine in this file suggests that SOME GNU software
  2520. @@ -29,7 +29,8 @@
  2521. # configuration script generated by Autoconf, you may include it under
  2522. # the same distribution terms that you use for the rest of that program.
  2523. -# Please send patches to <[email protected]>.
  2524. +# Please send patches to <[email protected]>. Submit a context
  2525. +# diff and a properly formatted ChangeLog entry.
  2526. #
  2527. # Configuration subroutine to validate and canonicalize a configuration type.
  2528. # Supply the specified configuration type as an argument.
  2529. @@ -117,7 +118,7 @@
  2530. # Here we must recognize all the valid KERNEL-OS combinations.
  2531. maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
  2532. case $maybe_os in
  2533. - nto-qnx* | linux-gnu* | storm-chaos* | os2-emx*)
  2534. + nto-qnx* | linux-gnu* | freebsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
  2535. os=-$maybe_os
  2536. basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
  2537. ;;
  2538. @@ -157,6 +158,14 @@
  2539. os=-vxworks
  2540. basic_machine=$1
  2541. ;;
  2542. + -chorusos*)
  2543. + os=-chorusos
  2544. + basic_machine=$1
  2545. + ;;
  2546. + -chorusrdb)
  2547. + os=-chorusrdb
  2548. + basic_machine=$1
  2549. + ;;
  2550. -hiux*)
  2551. os=-hiuxwe2
  2552. ;;
  2553. @@ -215,26 +224,48 @@
  2554. case $basic_machine in
  2555. # Recognize the basic CPU types without company name.
  2556. # Some are omitted here because they have special meanings below.
  2557. - tahoe | i860 | ia64 | m32r | m68k | m68000 | m88k | ns32k | arc \
  2558. - | arm | arme[lb] | arm[bl]e | armv[2345] | armv[345][lb] | strongarm | xscale \
  2559. - | pyramid | mn10200 | mn10300 | tron | a29k \
  2560. - | 580 | i960 | h8300 \
  2561. - | x86 | ppcbe | mipsbe | mipsle | shbe | shle \
  2562. - | hppa | hppa1.0 | hppa1.1 | hppa2.0 | hppa2.0w | hppa2.0n \
  2563. - | hppa64 \
  2564. - | alpha | alphaev[4-8] | alphaev56 | alphapca5[67] \
  2565. - | alphaev6[78] \
  2566. - | we32k | ns16k | clipper | i370 | sh | sh[34] \
  2567. - | powerpc | powerpcle \
  2568. - | 1750a | dsp16xx | pdp10 | pdp11 \
  2569. - | mips16 | mips64 | mipsel | mips64el \
  2570. - | mips64orion | mips64orionel | mipstx39 | mipstx39el \
  2571. - | mips64vr4300 | mips64vr4300el | mips64vr4100 | mips64vr4100el \
  2572. - | mips64vr5000 | miprs64vr5000el | mcore | s390 | s390x \
  2573. - | sparc | sparclet | sparclite | sparc64 | sparcv9 | sparcv9b \
  2574. - | v850 | c4x \
  2575. - | thumb | d10v | d30v | fr30 | avr | openrisc | tic80 \
  2576. - | pj | pjl | h8500)
  2577. + 1750a | 580 \
  2578. + | a29k \
  2579. + | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
  2580. + | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
  2581. + | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
  2582. + | clipper \
  2583. + | d10v | d30v | dlx | dsp16xx \
  2584. + | fr30 | frv \
  2585. + | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
  2586. + | i370 | i860 | i960 | ia64 \
  2587. + | ip2k \
  2588. + | m32r | m68000 | m68k | m88k | mcore \
  2589. + | mips | mipsbe | mipseb | mipsel | mipsle \
  2590. + | mips16 \
  2591. + | mips64 | mips64el \
  2592. + | mips64vr | mips64vrel \
  2593. + | mips64orion | mips64orionel \
  2594. + | mips64vr4100 | mips64vr4100el \
  2595. + | mips64vr4300 | mips64vr4300el \
  2596. + | mips64vr5000 | mips64vr5000el \
  2597. + | mipsisa32 | mipsisa32el \
  2598. + | mipsisa32r2 | mipsisa32r2el \
  2599. + | mipsisa64 | mipsisa64el \
  2600. + | mipsisa64sb1 | mipsisa64sb1el \
  2601. + | mipsisa64sr71k | mipsisa64sr71kel \
  2602. + | mipstx39 | mipstx39el \
  2603. + | mn10200 | mn10300 \
  2604. + | msp430 \
  2605. + | ns16k | ns32k \
  2606. + | openrisc | or32 \
  2607. + | pdp10 | pdp11 | pj | pjl \
  2608. + | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
  2609. + | pyramid \
  2610. + | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
  2611. + | sh64 | sh64le \
  2612. + | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \
  2613. + | strongarm \
  2614. + | tahoe | thumb | tic80 | tron \
  2615. + | v850 | v850e \
  2616. + | we32k \
  2617. + | x86 | xscale | xstormy16 | xtensa \
  2618. + | z8k)
  2619. basic_machine=$basic_machine-unknown
  2620. ;;
  2621. m6811 | m68hc11 | m6812 | m68hc12)
  2622. @@ -242,7 +273,7 @@
  2623. basic_machine=$basic_machine-unknown
  2624. os=-none
  2625. ;;
  2626. - m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | z8k | v70 | w65)
  2627. + m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
  2628. ;;
  2629. # We use `pc' rather than `unknown'
  2630. @@ -257,31 +288,60 @@
  2631. exit 1
  2632. ;;
  2633. # Recognize the basic CPU types with company name.
  2634. - # FIXME: clean up the formatting here.
  2635. - vax-* | tahoe-* | i*86-* | i860-* | ia64-* | m32r-* | m68k-* | m68000-* \
  2636. - | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | c[123]* \
  2637. - | arm-* | armbe-* | armle-* | armv*-* | strongarm-* | xscale-* \
  2638. - | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \
  2639. - | power-* | none-* | 580-* | cray2-* | h8300-* | h8500-* | i960-* \
  2640. - | xmp-* | ymp-* \
  2641. - | x86-* | ppcbe-* | mipsbe-* | mipsle-* | shbe-* | shle-* \
  2642. - | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* | hppa2.0w-* \
  2643. - | hppa2.0n-* | hppa64-* \
  2644. - | alpha-* | alphaev[4-8]-* | alphaev56-* | alphapca5[67]-* \
  2645. - | alphaev6[78]-* \
  2646. - | we32k-* | cydra-* | ns16k-* | pn-* | np1-* | xps100-* \
  2647. - | clipper-* | orion-* \
  2648. - | sparclite-* | pdp10-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \
  2649. - | sparc64-* | sparcv9-* | sparcv9b-* | sparc86x-* \
  2650. - | mips16-* | mips64-* | mipsel-* \
  2651. - | mips64el-* | mips64orion-* | mips64orionel-* \
  2652. - | mips64vr4100-* | mips64vr4100el-* | mips64vr4300-* | mips64vr4300el-* \
  2653. - | mipstx39-* | mipstx39el-* | mcore-* \
  2654. - | f30[01]-* | f700-* | s390-* | s390x-* | sv1-* | t3e-* \
  2655. - | [cjt]90-* \
  2656. - | m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | d10v-* \
  2657. - | thumb-* | v850-* | d30v-* | tic30-* | tic80-* | c30-* | fr30-* \
  2658. - | bs2000-* | tic54x-* | c54x-* | x86_64-* | pj-* | pjl-*)
  2659. + 580-* \
  2660. + | a29k-* \
  2661. + | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
  2662. + | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
  2663. + | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
  2664. + | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
  2665. + | avr-* \
  2666. + | bs2000-* \
  2667. + | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
  2668. + | clipper-* | cydra-* \
  2669. + | d10v-* | d30v-* | dlx-* \
  2670. + | elxsi-* \
  2671. + | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
  2672. + | h8300-* | h8500-* \
  2673. + | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
  2674. + | i*86-* | i860-* | i960-* | ia64-* \
  2675. + | ip2k-* \
  2676. + | m32r-* \
  2677. + | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
  2678. + | m88110-* | m88k-* | mcore-* \
  2679. + | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
  2680. + | mips16-* \
  2681. + | mips64-* | mips64el-* \
  2682. + | mips64vr-* | mips64vrel-* \
  2683. + | mips64orion-* | mips64orionel-* \
  2684. + | mips64vr4100-* | mips64vr4100el-* \
  2685. + | mips64vr4300-* | mips64vr4300el-* \
  2686. + | mips64vr5000-* | mips64vr5000el-* \
  2687. + | mipsisa32-* | mipsisa32el-* \
  2688. + | mipsisa32r2-* | mipsisa32r2el-* \
  2689. + | mipsisa64-* | mipsisa64el-* \
  2690. + | mipsisa64sb1-* | mipsisa64sb1el-* \
  2691. + | mipsisa64sr71k-* | mipsisa64sr71kel-* \
  2692. + | mipstx39-* | mipstx39el-* \
  2693. + | msp430-* \
  2694. + | none-* | np1-* | nv1-* | ns16k-* | ns32k-* \
  2695. + | orion-* \
  2696. + | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
  2697. + | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
  2698. + | pyramid-* \
  2699. + | romp-* | rs6000-* \
  2700. + | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
  2701. + | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
  2702. + | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
  2703. + | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
  2704. + | tahoe-* | thumb-* \
  2705. + | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
  2706. + | tron-* \
  2707. + | v850-* | v850e-* | vax-* \
  2708. + | we32k-* \
  2709. + | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \
  2710. + | xtensa-* \
  2711. + | ymp-* \
  2712. + | z8k-*)
  2713. ;;
  2714. # Recognize the various machine names and aliases which stand
  2715. # for a CPU type and a company and sometimes even an OS.
  2716. @@ -313,6 +373,9 @@
  2717. basic_machine=a29k-none
  2718. os=-bsd
  2719. ;;
  2720. + amd64)
  2721. + basic_machine=x86_64-pc
  2722. + ;;
  2723. amdahl)
  2724. basic_machine=580-amdahl
  2725. os=-sysv
  2726. @@ -344,6 +407,10 @@
  2727. basic_machine=ns32k-sequent
  2728. os=-dynix
  2729. ;;
  2730. + c90)
  2731. + basic_machine=c90-cray
  2732. + os=-unicos
  2733. + ;;
  2734. convex-c1)
  2735. basic_machine=c1-convex
  2736. os=-bsd
  2737. @@ -364,16 +431,8 @@
  2738. basic_machine=c38-convex
  2739. os=-bsd
  2740. ;;
  2741. - cray | ymp)
  2742. - basic_machine=ymp-cray
  2743. - os=-unicos
  2744. - ;;
  2745. - cray2)
  2746. - basic_machine=cray2-cray
  2747. - os=-unicos
  2748. - ;;
  2749. - [cjt]90)
  2750. - basic_machine=${basic_machine}-cray
  2751. + cray | j90)
  2752. + basic_machine=j90-cray
  2753. os=-unicos
  2754. ;;
  2755. crds | unos)
  2756. @@ -388,6 +447,14 @@
  2757. decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
  2758. basic_machine=mips-dec
  2759. ;;
  2760. + decsystem10* | dec10*)
  2761. + basic_machine=pdp10-dec
  2762. + os=-tops10
  2763. + ;;
  2764. + decsystem20* | dec20*)
  2765. + basic_machine=pdp10-dec
  2766. + os=-tops20
  2767. + ;;
  2768. delta | 3300 | motorola-3300 | motorola-delta \
  2769. | 3300-motorola | delta-motorola)
  2770. basic_machine=m68k-motorola
  2771. @@ -568,14 +635,6 @@
  2772. basic_machine=m68k-atari
  2773. os=-mint
  2774. ;;
  2775. - mipsel*-linux*)
  2776. - basic_machine=mipsel-unknown
  2777. - os=-linux-gnu
  2778. - ;;
  2779. - mips*-linux*)
  2780. - basic_machine=mips-unknown
  2781. - os=-linux-gnu
  2782. - ;;
  2783. mips3*-*)
  2784. basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
  2785. ;;
  2786. @@ -590,6 +649,10 @@
  2787. basic_machine=m68k-rom68k
  2788. os=-coff
  2789. ;;
  2790. + morphos)
  2791. + basic_machine=powerpc-unknown
  2792. + os=-morphos
  2793. + ;;
  2794. msdos)
  2795. basic_machine=i386-pc
  2796. os=-msdos
  2797. @@ -662,6 +725,10 @@
  2798. np1)
  2799. basic_machine=np1-gould
  2800. ;;
  2801. + nv1)
  2802. + basic_machine=nv1-cray
  2803. + os=-unicosmp
  2804. + ;;
  2805. nsr-tandem)
  2806. basic_machine=nsr-tandem
  2807. ;;
  2808. @@ -669,6 +736,10 @@
  2809. basic_machine=hppa1.1-oki
  2810. os=-proelf
  2811. ;;
  2812. + or32 | or32-*)
  2813. + basic_machine=or32-unknown
  2814. + os=-coff
  2815. + ;;
  2816. OSE68000 | ose68000)
  2817. basic_machine=m68000-ericsson
  2818. os=-ose
  2819. @@ -691,19 +762,19 @@
  2820. pbb)
  2821. basic_machine=m68k-tti
  2822. ;;
  2823. - pc532 | pc532-*)
  2824. + pc532 | pc532-*)
  2825. basic_machine=ns32k-pc532
  2826. ;;
  2827. - pentium | p5 | k5 | k6 | nexgen)
  2828. + pentium | p5 | k5 | k6 | nexgen | viac3)
  2829. basic_machine=i586-pc
  2830. ;;
  2831. - pentiumpro | p6 | 6x86 | athlon)
  2832. + pentiumpro | p6 | 6x86 | athlon | athlon_*)
  2833. basic_machine=i686-pc
  2834. ;;
  2835. pentiumii | pentium2)
  2836. basic_machine=i686-pc
  2837. ;;
  2838. - pentium-* | p5-* | k5-* | k6-* | nexgen-*)
  2839. + pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
  2840. basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
  2841. ;;
  2842. pentiumpro-* | p6-* | 6x86-* | athlon-*)
  2843. @@ -718,15 +789,25 @@
  2844. power) basic_machine=power-ibm
  2845. ;;
  2846. ppc) basic_machine=powerpc-unknown
  2847. - ;;
  2848. + ;;
  2849. ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
  2850. ;;
  2851. ppcle | powerpclittle | ppc-le | powerpc-little)
  2852. basic_machine=powerpcle-unknown
  2853. - ;;
  2854. + ;;
  2855. ppcle-* | powerpclittle-*)
  2856. basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
  2857. ;;
  2858. + ppc64) basic_machine=powerpc64-unknown
  2859. + ;;
  2860. + ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
  2861. + ;;
  2862. + ppc64le | powerpc64little | ppc64-le | powerpc64-little)
  2863. + basic_machine=powerpc64le-unknown
  2864. + ;;
  2865. + ppc64le-* | powerpc64little-*)
  2866. + basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
  2867. + ;;
  2868. ps2)
  2869. basic_machine=i386-ibm
  2870. ;;
  2871. @@ -744,10 +825,22 @@
  2872. rtpc | rtpc-*)
  2873. basic_machine=romp-ibm
  2874. ;;
  2875. + s390 | s390-*)
  2876. + basic_machine=s390-ibm
  2877. + ;;
  2878. + s390x | s390x-*)
  2879. + basic_machine=s390x-ibm
  2880. + ;;
  2881. sa29200)
  2882. basic_machine=a29k-amd
  2883. os=-udi
  2884. ;;
  2885. + sb1)
  2886. + basic_machine=mipsisa64sb1-unknown
  2887. + ;;
  2888. + sb1el)
  2889. + basic_machine=mipsisa64sb1el-unknown
  2890. + ;;
  2891. sequent)
  2892. basic_machine=i386-sequent
  2893. ;;
  2894. @@ -755,7 +848,7 @@
  2895. basic_machine=sh-hitachi
  2896. os=-hms
  2897. ;;
  2898. - sparclite-wrs)
  2899. + sparclite-wrs | simso-wrs)
  2900. basic_machine=sparclite-wrs
  2901. os=-vxworks
  2902. ;;
  2903. @@ -822,19 +915,39 @@
  2904. os=-dynix
  2905. ;;
  2906. t3e)
  2907. - basic_machine=t3e-cray
  2908. + basic_machine=alphaev5-cray
  2909. os=-unicos
  2910. ;;
  2911. + t90)
  2912. + basic_machine=t90-cray
  2913. + os=-unicos
  2914. + ;;
  2915. + tic4x | c4x*)
  2916. + basic_machine=tic4x-unknown
  2917. + os=-coff
  2918. + ;;
  2919. tic54x | c54x*)
  2920. basic_machine=tic54x-unknown
  2921. os=-coff
  2922. ;;
  2923. + tic55x | c55x*)
  2924. + basic_machine=tic55x-unknown
  2925. + os=-coff
  2926. + ;;
  2927. + tic6x | c6x*)
  2928. + basic_machine=tic6x-unknown
  2929. + os=-coff
  2930. + ;;
  2931. tx39)
  2932. basic_machine=mipstx39-unknown
  2933. ;;
  2934. tx39el)
  2935. basic_machine=mipstx39el-unknown
  2936. ;;
  2937. + toad1)
  2938. + basic_machine=pdp10-xkl
  2939. + os=-tops20
  2940. + ;;
  2941. tower | tower-32)
  2942. basic_machine=m68k-ncr
  2943. ;;
  2944. @@ -859,8 +972,8 @@
  2945. os=-vms
  2946. ;;
  2947. vpp*|vx|vx-*)
  2948. - basic_machine=f301-fujitsu
  2949. - ;;
  2950. + basic_machine=f301-fujitsu
  2951. + ;;
  2952. vxworks960)
  2953. basic_machine=i960-wrs
  2954. os=-vxworks
  2955. @@ -881,13 +994,13 @@
  2956. basic_machine=hppa1.1-winbond
  2957. os=-proelf
  2958. ;;
  2959. - xmp)
  2960. - basic_machine=xmp-cray
  2961. - os=-unicos
  2962. - ;;
  2963. - xps | xps100)
  2964. + xps | xps100)
  2965. basic_machine=xps100-honeywell
  2966. ;;
  2967. + ymp)
  2968. + basic_machine=ymp-cray
  2969. + os=-unicos
  2970. + ;;
  2971. z8k-*-coff)
  2972. basic_machine=z8k-unknown
  2973. os=-sim
  2974. @@ -908,13 +1021,6 @@
  2975. op60c)
  2976. basic_machine=hppa1.1-oki
  2977. ;;
  2978. - mips)
  2979. - if [ x$os = x-linux-gnu ]; then
  2980. - basic_machine=mips-unknown
  2981. - else
  2982. - basic_machine=mips-mips
  2983. - fi
  2984. - ;;
  2985. romp)
  2986. basic_machine=romp-ibm
  2987. ;;
  2988. @@ -934,13 +1040,16 @@
  2989. we32k)
  2990. basic_machine=we32k-att
  2991. ;;
  2992. - sh3 | sh4)
  2993. + sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
  2994. basic_machine=sh-unknown
  2995. ;;
  2996. + sh64)
  2997. + basic_machine=sh64-unknown
  2998. + ;;
  2999. sparc | sparcv9 | sparcv9b)
  3000. basic_machine=sparc-sun
  3001. ;;
  3002. - cydra)
  3003. + cydra)
  3004. basic_machine=cydra-cydrome
  3005. ;;
  3006. orion)
  3007. @@ -955,10 +1064,6 @@
  3008. pmac | pmac-mpw)
  3009. basic_machine=powerpc-apple
  3010. ;;
  3011. - c4x*)
  3012. - basic_machine=c4x-none
  3013. - os=-coff
  3014. - ;;
  3015. *-unknown)
  3016. # Make sure to match an already-canonicalized machine name.
  3017. ;;
  3018. @@ -1018,11 +1123,15 @@
  3019. | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
  3020. | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
  3021. | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
  3022. + | -chorusos* | -chorusrdb* \
  3023. | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
  3024. | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
  3025. - | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \
  3026. + | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
  3027. | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
  3028. - | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* | -os2*)
  3029. + | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
  3030. + | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
  3031. + | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
  3032. + | -powermax* | -dnix*)
  3033. # Remember, each alternative MUST END IN *, to match a version number.
  3034. ;;
  3035. -qnx*)
  3036. @@ -1034,8 +1143,10 @@
  3037. ;;
  3038. esac
  3039. ;;
  3040. + -nto-qnx*)
  3041. + ;;
  3042. -nto*)
  3043. - os=-nto-qnx
  3044. + os=`echo $os | sed -e 's|nto|nto-qnx|'`
  3045. ;;
  3046. -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
  3047. | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
  3048. @@ -1074,14 +1185,20 @@
  3049. -acis*)
  3050. os=-aos
  3051. ;;
  3052. + -atheos*)
  3053. + os=-atheos
  3054. + ;;
  3055. -386bsd)
  3056. os=-bsd
  3057. ;;
  3058. -ctix* | -uts*)
  3059. os=-sysv
  3060. ;;
  3061. + -nova*)
  3062. + os=-rtmk-nova
  3063. + ;;
  3064. -ns2 )
  3065. - os=-nextstep2
  3066. + os=-nextstep2
  3067. ;;
  3068. -nsk*)
  3069. os=-nsk
  3070. @@ -1120,8 +1237,14 @@
  3071. -xenix)
  3072. os=-xenix
  3073. ;;
  3074. - -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
  3075. - os=-mint
  3076. + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
  3077. + os=-mint
  3078. + ;;
  3079. + -aros*)
  3080. + os=-aros
  3081. + ;;
  3082. + -kaos*)
  3083. + os=-kaos
  3084. ;;
  3085. -none)
  3086. ;;
  3087. @@ -1154,10 +1277,11 @@
  3088. arm*-semi)
  3089. os=-aout
  3090. ;;
  3091. + # This must come before the *-dec entry.
  3092. pdp10-*)
  3093. os=-tops20
  3094. ;;
  3095. - pdp11-*)
  3096. + pdp11-*)
  3097. os=-none
  3098. ;;
  3099. *-dec | vax-*)
  3100. @@ -1184,6 +1308,9 @@
  3101. mips*-*)
  3102. os=-elf
  3103. ;;
  3104. + or32-*)
  3105. + os=-coff
  3106. + ;;
  3107. *-tti) # must be before sparc entry or we get the wrong os.
  3108. os=-sysv3
  3109. ;;
  3110. @@ -1247,19 +1374,19 @@
  3111. *-next)
  3112. os=-nextstep3
  3113. ;;
  3114. - *-gould)
  3115. + *-gould)
  3116. os=-sysv
  3117. ;;
  3118. - *-highlevel)
  3119. + *-highlevel)
  3120. os=-bsd
  3121. ;;
  3122. *-encore)
  3123. os=-bsd
  3124. ;;
  3125. - *-sgi)
  3126. + *-sgi)
  3127. os=-irix
  3128. ;;
  3129. - *-siemens)
  3130. + *-siemens)
  3131. os=-sysv4
  3132. ;;
  3133. *-masscomp)
  3134. @@ -1331,7 +1458,7 @@
  3135. -ptx*)
  3136. vendor=sequent
  3137. ;;
  3138. - -vxsim* | -vxworks*)
  3139. + -vxsim* | -vxworks* | -windiss*)
  3140. vendor=wrs
  3141. ;;
  3142. -aux*)
  3143. @@ -1346,6 +1473,9 @@
  3144. -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
  3145. vendor=atari
  3146. ;;
  3147. + -vos*)
  3148. + vendor=stratus
  3149. + ;;
  3150. esac
  3151. basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
  3152. ;;
  3153. Index: linux-atm-2.4.1/configure
  3154. ===================================================================
  3155. --- linux-atm-2.4.1.orig/configure 2007-10-20 19:19:10.866247710 +0200
  3156. +++ linux-atm-2.4.1/configure 2007-10-20 19:19:11.746297861 +0200
  3157. @@ -1,24 +1,244 @@
  3158. #! /bin/sh
  3159. -
  3160. # Guess values for system-dependent variables and create Makefiles.
  3161. -# Generated automatically using autoconf version 2.13
  3162. -# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  3163. +# Generated by GNU Autoconf 2.57.
  3164. #
  3165. +# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
  3166. +# Free Software Foundation, Inc.
  3167. # This configure script is free software; the Free Software Foundation
  3168. # gives unlimited permission to copy, distribute and modify it.
  3169. +## --------------------- ##
  3170. +## M4sh Initialization. ##
  3171. +## --------------------- ##
  3172. +
  3173. +# Be Bourne compatible
  3174. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  3175. + emulate sh
  3176. + NULLCMD=:
  3177. + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  3178. + # is contrary to our usage. Disable this feature.
  3179. + alias -g '${1+"$@"}'='"$@"'
  3180. +elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  3181. + set -o posix
  3182. +fi
  3183. +
  3184. +# Support unset when possible.
  3185. +if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
  3186. + as_unset=unset
  3187. +else
  3188. + as_unset=false
  3189. +fi
  3190. +
  3191. +
  3192. +# Work around bugs in pre-3.0 UWIN ksh.
  3193. +$as_unset ENV MAIL MAILPATH
  3194. +PS1='$ '
  3195. +PS2='> '
  3196. +PS4='+ '
  3197. +
  3198. +# NLS nuisances.
  3199. +for as_var in \
  3200. + LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  3201. + LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  3202. + LC_TELEPHONE LC_TIME
  3203. +do
  3204. + if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
  3205. + eval $as_var=C; export $as_var
  3206. + else
  3207. + $as_unset $as_var
  3208. + fi
  3209. +done
  3210. +
  3211. +# Required to use basename.
  3212. +if expr a : '\(a\)' >/dev/null 2>&1; then
  3213. + as_expr=expr
  3214. +else
  3215. + as_expr=false
  3216. +fi
  3217. +
  3218. +if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  3219. + as_basename=basename
  3220. +else
  3221. + as_basename=false
  3222. +fi
  3223. +
  3224. +
  3225. +# Name of the executable.
  3226. +as_me=`$as_basename "$0" ||
  3227. +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  3228. + X"$0" : 'X\(//\)$' \| \
  3229. + X"$0" : 'X\(/\)$' \| \
  3230. + . : '\(.\)' 2>/dev/null ||
  3231. +echo X/"$0" |
  3232. + sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  3233. + /^X\/\(\/\/\)$/{ s//\1/; q; }
  3234. + /^X\/\(\/\).*/{ s//\1/; q; }
  3235. + s/.*/./; q'`
  3236. +
  3237. +
  3238. +# PATH needs CR, and LINENO needs CR and PATH.
  3239. +# Avoid depending upon Character Ranges.
  3240. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  3241. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  3242. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  3243. +as_cr_digits='0123456789'
  3244. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  3245. +
  3246. +# The user is always right.
  3247. +if test "${PATH_SEPARATOR+set}" != set; then
  3248. + echo "#! /bin/sh" >conf$$.sh
  3249. + echo "exit 0" >>conf$$.sh
  3250. + chmod +x conf$$.sh
  3251. + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  3252. + PATH_SEPARATOR=';'
  3253. + else
  3254. + PATH_SEPARATOR=:
  3255. + fi
  3256. + rm -f conf$$.sh
  3257. +fi
  3258. +
  3259. +
  3260. + as_lineno_1=$LINENO
  3261. + as_lineno_2=$LINENO
  3262. + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  3263. + test "x$as_lineno_1" != "x$as_lineno_2" &&
  3264. + test "x$as_lineno_3" = "x$as_lineno_2" || {
  3265. + # Find who we are. Look in the path if we contain no path at all
  3266. + # relative or not.
  3267. + case $0 in
  3268. + *[\\/]* ) as_myself=$0 ;;
  3269. + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3270. +for as_dir in $PATH
  3271. +do
  3272. + IFS=$as_save_IFS
  3273. + test -z "$as_dir" && as_dir=.
  3274. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  3275. +done
  3276. +
  3277. + ;;
  3278. + esac
  3279. + # We did not find ourselves, most probably we were run as `sh COMMAND'
  3280. + # in which case we are not to be found in the path.
  3281. + if test "x$as_myself" = x; then
  3282. + as_myself=$0
  3283. + fi
  3284. + if test ! -f "$as_myself"; then
  3285. + { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  3286. + { (exit 1); exit 1; }; }
  3287. + fi
  3288. + case $CONFIG_SHELL in
  3289. + '')
  3290. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3291. +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  3292. +do
  3293. + IFS=$as_save_IFS
  3294. + test -z "$as_dir" && as_dir=.
  3295. + for as_base in sh bash ksh sh5; do
  3296. + case $as_dir in
  3297. + /*)
  3298. + if ("$as_dir/$as_base" -c '
  3299. + as_lineno_1=$LINENO
  3300. + as_lineno_2=$LINENO
  3301. + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  3302. + test "x$as_lineno_1" != "x$as_lineno_2" &&
  3303. + test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  3304. + $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  3305. + $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  3306. + CONFIG_SHELL=$as_dir/$as_base
  3307. + export CONFIG_SHELL
  3308. + exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  3309. + fi;;
  3310. + esac
  3311. + done
  3312. +done
  3313. +;;
  3314. + esac
  3315. +
  3316. + # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  3317. + # uniformly replaced by the line number. The first 'sed' inserts a
  3318. + # line-number line before each line; the second 'sed' does the real
  3319. + # work. The second script uses 'N' to pair each line-number line
  3320. + # with the numbered line, and appends trailing '-' during
  3321. + # substitution so that $LINENO is not a special case at line end.
  3322. + # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  3323. + # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  3324. + sed '=' <$as_myself |
  3325. + sed '
  3326. + N
  3327. + s,$,-,
  3328. + : loop
  3329. + s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  3330. + t loop
  3331. + s,-$,,
  3332. + s,^['$as_cr_digits']*\n,,
  3333. + ' >$as_me.lineno &&
  3334. + chmod +x $as_me.lineno ||
  3335. + { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  3336. + { (exit 1); exit 1; }; }
  3337. +
  3338. + # Don't try to exec as it changes $[0], causing all sort of problems
  3339. + # (the dirname of $[0] is not the place where we might find the
  3340. + # original and so on. Autoconf is especially sensible to this).
  3341. + . ./$as_me.lineno
  3342. + # Exit status is that of the last command.
  3343. + exit
  3344. +}
  3345. +
  3346. +
  3347. +case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  3348. + *c*,-n*) ECHO_N= ECHO_C='
  3349. +' ECHO_T=' ' ;;
  3350. + *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  3351. + *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  3352. +esac
  3353. +
  3354. +if expr a : '\(a\)' >/dev/null 2>&1; then
  3355. + as_expr=expr
  3356. +else
  3357. + as_expr=false
  3358. +fi
  3359. +
  3360. +rm -f conf$$ conf$$.exe conf$$.file
  3361. +echo >conf$$.file
  3362. +if ln -s conf$$.file conf$$ 2>/dev/null; then
  3363. + # We could just check for DJGPP; but this test a) works b) is more generic
  3364. + # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  3365. + if test -f conf$$.exe; then
  3366. + # Don't use ln at all; we don't have any links
  3367. + as_ln_s='cp -p'
  3368. + else
  3369. + as_ln_s='ln -s'
  3370. + fi
  3371. +elif ln conf$$.file conf$$ 2>/dev/null; then
  3372. + as_ln_s=ln
  3373. +else
  3374. + as_ln_s='cp -p'
  3375. +fi
  3376. +rm -f conf$$ conf$$.exe conf$$.file
  3377. +
  3378. +if mkdir -p . 2>/dev/null; then
  3379. + as_mkdir_p=:
  3380. +else
  3381. + as_mkdir_p=false
  3382. +fi
  3383. +
  3384. +as_executable_p="test -f"
  3385. +
  3386. +# Sed expression to map a string onto a valid CPP name.
  3387. +as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
  3388. +
  3389. +# Sed expression to map a string onto a valid variable name.
  3390. +as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
  3391. +
  3392. +
  3393. +# IFS
  3394. +# We need space, tab and new line, in precisely that order.
  3395. +as_nl='
  3396. +'
  3397. +IFS=" $as_nl"
  3398. +
  3399. +# CDPATH.
  3400. +$as_unset CDPATH
  3401. -# Defaults:
  3402. -ac_help=
  3403. -ac_default_prefix=/usr/local
  3404. -# Any additions from configure.in:
  3405. -ac_help="$ac_help
  3406. - --enable-shared[=PKGS] build shared libraries [default=yes]"
  3407. -ac_help="$ac_help
  3408. - --enable-static[=PKGS] build static libraries [default=yes]"
  3409. -ac_help="$ac_help
  3410. - --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
  3411. -ac_help="$ac_help
  3412. - --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
  3413. # Find the correct PATH separator. Usually this is `:', but
  3414. # DJGPP uses `;' like DOS.
  3415. @@ -28,6 +248,7 @@
  3416. *-DOS) lt_cv_sys_path_separator=';' ;;
  3417. *) lt_cv_sys_path_separator=':' ;;
  3418. esac
  3419. + PATH_SEPARATOR=$lt_cv_sys_path_separator
  3420. fi
  3421. @@ -94,7 +315,7 @@
  3422. #
  3423. # So, first we look for a working echo in the user's PATH.
  3424. - IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
  3425. + IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3426. for dir in $PATH /usr/ucb; do
  3427. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  3428. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  3429. @@ -177,34 +398,86 @@
  3430. fi
  3431. -ac_help="$ac_help
  3432. - --disable-libtool-lock avoid locking (might break parallel builds)"
  3433. -ac_help="$ac_help
  3434. - --with-pic try to use only PIC/non-PIC objects [default=use both]"
  3435. -ac_help="$ac_help
  3436. - --with-uni=VERSION UNI version to use (3.0,3.1,4.0) [default=dynamic]"
  3437. -ac_help="$ac_help
  3438. - --enable-allow_uni30 Allow UNI 3.0 backwards-compatible extensions (if using UNI 3.1)"
  3439. -ac_help="$ac_help
  3440. - --enable-q2963_1 Enable peak cell rate modification as specified in Q.2963.1 (if using UNI 4.0)"
  3441. -ac_help="$ac_help
  3442. - --enable-cisco Enable work around for point-to-multipoint signaling bug in Cisco LS100 or LS7010 switches"
  3443. -ac_help="$ac_help
  3444. - --enable-thomflex Some versions of the Thomson Thomflex 5000 won't do any signaling before they get a RESTART. Enable sending of a RESTART whenever SAAL comes up."
  3445. -ac_help="$ac_help
  3446. - --enable-mpoa_1_1 Enable proposed MPOA 1.1 features"
  3447. -ac_help="$ac_help
  3448. - --enable-mpr Enable memory debugging (if MPR is installed)"
  3449. +
  3450. +# Name of the host.
  3451. +# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  3452. +# so uname gets run too.
  3453. +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  3454. +
  3455. +exec 6>&1
  3456. +
  3457. +#
  3458. +# Initializations.
  3459. +#
  3460. +ac_default_prefix=/usr/local
  3461. +ac_config_libobj_dir=.
  3462. +cross_compiling=no
  3463. +subdirs=
  3464. +MFLAGS=
  3465. +MAKEFLAGS=
  3466. +SHELL=${CONFIG_SHELL-/bin/sh}
  3467. +
  3468. +# Maximum number of lines to put in a shell here document.
  3469. +# This variable seems obsolete. It should probably be removed, and
  3470. +# only ac_max_sed_lines should be used.
  3471. +: ${ac_max_here_lines=38}
  3472. +
  3473. +# Identity of this package.
  3474. +PACKAGE_NAME=
  3475. +PACKAGE_TARNAME=
  3476. +PACKAGE_VERSION=
  3477. +PACKAGE_STRING=
  3478. +PACKAGE_BUGREPORT=
  3479. +
  3480. +ac_unique_file="src/include/atm.h"
  3481. +# Factoring default headers for most tests.
  3482. +ac_includes_default="\
  3483. +#include <stdio.h>
  3484. +#if HAVE_SYS_TYPES_H
  3485. +# include <sys/types.h>
  3486. +#endif
  3487. +#if HAVE_SYS_STAT_H
  3488. +# include <sys/stat.h>
  3489. +#endif
  3490. +#if STDC_HEADERS
  3491. +# include <stdlib.h>
  3492. +# include <stddef.h>
  3493. +#else
  3494. +# if HAVE_STDLIB_H
  3495. +# include <stdlib.h>
  3496. +# endif
  3497. +#endif
  3498. +#if HAVE_STRING_H
  3499. +# if !STDC_HEADERS && HAVE_MEMORY_H
  3500. +# include <memory.h>
  3501. +# endif
  3502. +# include <string.h>
  3503. +#endif
  3504. +#if HAVE_STRINGS_H
  3505. +# include <strings.h>
  3506. +#endif
  3507. +#if HAVE_INTTYPES_H
  3508. +# include <inttypes.h>
  3509. +#else
  3510. +# if HAVE_STDINT_H
  3511. +# include <stdint.h>
  3512. +# endif
  3513. +#endif
  3514. +#if HAVE_UNISTD_H
  3515. +# include <unistd.h>
  3516. +#endif"
  3517. +
  3518. +ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE LIBVER_CURRENT LIBVER_REVISION LIBVER_AGE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LEX LEXLIB LEX_OUTPUT_ROOT YACC LN_S ECHO RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP EGREP LIBTOOL LIBTOOL_DEPS PERL LIBOBJS LTLIBOBJS'
  3519. +ac_subst_files=''
  3520. # Initialize some variables set by options.
  3521. +ac_init_help=
  3522. +ac_init_version=false
  3523. # The variables have the same names as the options, with
  3524. # dashes changed to underlines.
  3525. -build=NONE
  3526. -cache_file=./config.cache
  3527. +cache_file=/dev/null
  3528. exec_prefix=NONE
  3529. -host=NONE
  3530. no_create=
  3531. -nonopt=NONE
  3532. no_recursion=
  3533. prefix=NONE
  3534. program_prefix=NONE
  3535. @@ -213,10 +486,15 @@
  3536. silent=
  3537. site=
  3538. srcdir=
  3539. -target=NONE
  3540. verbose=
  3541. x_includes=NONE
  3542. x_libraries=NONE
  3543. +
  3544. +# Installation directory options.
  3545. +# These are left unexpanded so users can "make install exec_prefix=/foo"
  3546. +# and all the variables that are supposed to be based on exec_prefix
  3547. +# by default will actually change.
  3548. +# Use braces instead of parens because sh, perl, etc. also accept them.
  3549. bindir='${exec_prefix}/bin'
  3550. sbindir='${exec_prefix}/sbin'
  3551. libexecdir='${exec_prefix}/libexec'
  3552. @@ -230,17 +508,9 @@
  3553. infodir='${prefix}/info'
  3554. mandir='${prefix}/man'
  3555. -# Initialize some other variables.
  3556. -subdirs=
  3557. -MFLAGS= MAKEFLAGS=
  3558. -SHELL=${CONFIG_SHELL-/bin/sh}
  3559. -# Maximum number of lines to put in a shell here document.
  3560. -ac_max_here_lines=12
  3561. -
  3562. ac_prev=
  3563. for ac_option
  3564. do
  3565. -
  3566. # If the previous option needs an argument, assign it.
  3567. if test -n "$ac_prev"; then
  3568. eval "$ac_prev=\$ac_option"
  3569. @@ -248,59 +518,59 @@
  3570. continue
  3571. fi
  3572. - case "$ac_option" in
  3573. - -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  3574. - *) ac_optarg= ;;
  3575. - esac
  3576. + ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  3577. # Accept the important Cygnus configure options, so we can diagnose typos.
  3578. - case "$ac_option" in
  3579. + case $ac_option in
  3580. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  3581. ac_prev=bindir ;;
  3582. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  3583. - bindir="$ac_optarg" ;;
  3584. + bindir=$ac_optarg ;;
  3585. -build | --build | --buil | --bui | --bu)
  3586. - ac_prev=build ;;
  3587. + ac_prev=build_alias ;;
  3588. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  3589. - build="$ac_optarg" ;;
  3590. + build_alias=$ac_optarg ;;
  3591. -cache-file | --cache-file | --cache-fil | --cache-fi \
  3592. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  3593. ac_prev=cache_file ;;
  3594. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  3595. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  3596. - cache_file="$ac_optarg" ;;
  3597. + cache_file=$ac_optarg ;;
  3598. +
  3599. + --config-cache | -C)
  3600. + cache_file=config.cache ;;
  3601. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  3602. ac_prev=datadir ;;
  3603. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  3604. | --da=*)
  3605. - datadir="$ac_optarg" ;;
  3606. + datadir=$ac_optarg ;;
  3607. -disable-* | --disable-*)
  3608. - ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  3609. + ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  3610. # Reject names that are not valid shell variable names.
  3611. - if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  3612. - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  3613. - fi
  3614. - ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  3615. - eval "enable_${ac_feature}=no" ;;
  3616. + expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  3617. + { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  3618. + { (exit 1); exit 1; }; }
  3619. + ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  3620. + eval "enable_$ac_feature=no" ;;
  3621. -enable-* | --enable-*)
  3622. - ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  3623. + ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  3624. # Reject names that are not valid shell variable names.
  3625. - if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  3626. - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  3627. - fi
  3628. - ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  3629. - case "$ac_option" in
  3630. - *=*) ;;
  3631. + expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  3632. + { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  3633. + { (exit 1); exit 1; }; }
  3634. + ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  3635. + case $ac_option in
  3636. + *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  3637. *) ac_optarg=yes ;;
  3638. esac
  3639. - eval "enable_${ac_feature}='$ac_optarg'" ;;
  3640. + eval "enable_$ac_feature='$ac_optarg'" ;;
  3641. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  3642. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  3643. @@ -309,95 +579,47 @@
  3644. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  3645. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  3646. | --exec=* | --exe=* | --ex=*)
  3647. - exec_prefix="$ac_optarg" ;;
  3648. + exec_prefix=$ac_optarg ;;
  3649. -gas | --gas | --ga | --g)
  3650. # Obsolete; use --with-gas.
  3651. with_gas=yes ;;
  3652. - -help | --help | --hel | --he)
  3653. - # Omit some internal or obsolete options to make the list less imposing.
  3654. - # This message is too long to be a string in the A/UX 3.1 sh.
  3655. - cat << EOF
  3656. -Usage: configure [options] [host]
  3657. -Options: [defaults in brackets after descriptions]
  3658. -Configuration:
  3659. - --cache-file=FILE cache test results in FILE
  3660. - --help print this message
  3661. - --no-create do not create output files
  3662. - --quiet, --silent do not print \`checking...' messages
  3663. - --version print the version of autoconf that created configure
  3664. -Directory and file names:
  3665. - --prefix=PREFIX install architecture-independent files in PREFIX
  3666. - [$ac_default_prefix]
  3667. - --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  3668. - [same as prefix]
  3669. - --bindir=DIR user executables in DIR [EPREFIX/bin]
  3670. - --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
  3671. - --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
  3672. - --datadir=DIR read-only architecture-independent data in DIR
  3673. - [PREFIX/share]
  3674. - --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
  3675. - --sharedstatedir=DIR modifiable architecture-independent data in DIR
  3676. - [PREFIX/com]
  3677. - --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
  3678. - --libdir=DIR object code libraries in DIR [EPREFIX/lib]
  3679. - --includedir=DIR C header files in DIR [PREFIX/include]
  3680. - --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
  3681. - --infodir=DIR info documentation in DIR [PREFIX/info]
  3682. - --mandir=DIR man documentation in DIR [PREFIX/man]
  3683. - --srcdir=DIR find the sources in DIR [configure dir or ..]
  3684. - --program-prefix=PREFIX prepend PREFIX to installed program names
  3685. - --program-suffix=SUFFIX append SUFFIX to installed program names
  3686. - --program-transform-name=PROGRAM
  3687. - run sed PROGRAM on installed program names
  3688. -EOF
  3689. - cat << EOF
  3690. -Host type:
  3691. - --build=BUILD configure for building on BUILD [BUILD=HOST]
  3692. - --host=HOST configure for HOST [guessed]
  3693. - --target=TARGET configure for TARGET [TARGET=HOST]
  3694. -Features and packages:
  3695. - --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  3696. - --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  3697. - --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  3698. - --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  3699. - --x-includes=DIR X include files are in DIR
  3700. - --x-libraries=DIR X library files are in DIR
  3701. -EOF
  3702. - if test -n "$ac_help"; then
  3703. - echo "--enable and --with options recognized:$ac_help"
  3704. - fi
  3705. - exit 0 ;;
  3706. + -help | --help | --hel | --he | -h)
  3707. + ac_init_help=long ;;
  3708. + -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  3709. + ac_init_help=recursive ;;
  3710. + -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  3711. + ac_init_help=short ;;
  3712. -host | --host | --hos | --ho)
  3713. - ac_prev=host ;;
  3714. + ac_prev=host_alias ;;
  3715. -host=* | --host=* | --hos=* | --ho=*)
  3716. - host="$ac_optarg" ;;
  3717. + host_alias=$ac_optarg ;;
  3718. -includedir | --includedir | --includedi | --included | --include \
  3719. | --includ | --inclu | --incl | --inc)
  3720. ac_prev=includedir ;;
  3721. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  3722. | --includ=* | --inclu=* | --incl=* | --inc=*)
  3723. - includedir="$ac_optarg" ;;
  3724. + includedir=$ac_optarg ;;
  3725. -infodir | --infodir | --infodi | --infod | --info | --inf)
  3726. ac_prev=infodir ;;
  3727. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  3728. - infodir="$ac_optarg" ;;
  3729. + infodir=$ac_optarg ;;
  3730. -libdir | --libdir | --libdi | --libd)
  3731. ac_prev=libdir ;;
  3732. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  3733. - libdir="$ac_optarg" ;;
  3734. + libdir=$ac_optarg ;;
  3735. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  3736. | --libexe | --libex | --libe)
  3737. ac_prev=libexecdir ;;
  3738. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  3739. | --libexe=* | --libex=* | --libe=*)
  3740. - libexecdir="$ac_optarg" ;;
  3741. + libexecdir=$ac_optarg ;;
  3742. -localstatedir | --localstatedir | --localstatedi | --localstated \
  3743. | --localstate | --localstat | --localsta | --localst \
  3744. @@ -406,19 +628,19 @@
  3745. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  3746. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  3747. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  3748. - localstatedir="$ac_optarg" ;;
  3749. + localstatedir=$ac_optarg ;;
  3750. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  3751. ac_prev=mandir ;;
  3752. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  3753. - mandir="$ac_optarg" ;;
  3754. + mandir=$ac_optarg ;;
  3755. -nfp | --nfp | --nf)
  3756. # Obsolete; use --without-fp.
  3757. with_fp=no ;;
  3758. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  3759. - | --no-cr | --no-c)
  3760. + | --no-cr | --no-c | -n)
  3761. no_create=yes ;;
  3762. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  3763. @@ -432,26 +654,26 @@
  3764. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  3765. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  3766. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  3767. - oldincludedir="$ac_optarg" ;;
  3768. + oldincludedir=$ac_optarg ;;
  3769. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  3770. ac_prev=prefix ;;
  3771. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  3772. - prefix="$ac_optarg" ;;
  3773. + prefix=$ac_optarg ;;
  3774. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  3775. | --program-pre | --program-pr | --program-p)
  3776. ac_prev=program_prefix ;;
  3777. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  3778. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  3779. - program_prefix="$ac_optarg" ;;
  3780. + program_prefix=$ac_optarg ;;
  3781. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  3782. | --program-suf | --program-su | --program-s)
  3783. ac_prev=program_suffix ;;
  3784. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  3785. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  3786. - program_suffix="$ac_optarg" ;;
  3787. + program_suffix=$ac_optarg ;;
  3788. -program-transform-name | --program-transform-name \
  3789. | --program-transform-nam | --program-transform-na \
  3790. @@ -468,7 +690,7 @@
  3791. | --program-transfo=* | --program-transf=* \
  3792. | --program-trans=* | --program-tran=* \
  3793. | --progr-tra=* | --program-tr=* | --program-t=*)
  3794. - program_transform_name="$ac_optarg" ;;
  3795. + program_transform_name=$ac_optarg ;;
  3796. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  3797. | -silent | --silent | --silen | --sile | --sil)
  3798. @@ -478,7 +700,7 @@
  3799. ac_prev=sbindir ;;
  3800. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  3801. | --sbi=* | --sb=*)
  3802. - sbindir="$ac_optarg" ;;
  3803. + sbindir=$ac_optarg ;;
  3804. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  3805. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  3806. @@ -489,58 +711,57 @@
  3807. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  3808. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  3809. | --sha=* | --sh=*)
  3810. - sharedstatedir="$ac_optarg" ;;
  3811. + sharedstatedir=$ac_optarg ;;
  3812. -site | --site | --sit)
  3813. ac_prev=site ;;
  3814. -site=* | --site=* | --sit=*)
  3815. - site="$ac_optarg" ;;
  3816. + site=$ac_optarg ;;
  3817. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  3818. ac_prev=srcdir ;;
  3819. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  3820. - srcdir="$ac_optarg" ;;
  3821. + srcdir=$ac_optarg ;;
  3822. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  3823. | --syscon | --sysco | --sysc | --sys | --sy)
  3824. ac_prev=sysconfdir ;;
  3825. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  3826. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  3827. - sysconfdir="$ac_optarg" ;;
  3828. + sysconfdir=$ac_optarg ;;
  3829. -target | --target | --targe | --targ | --tar | --ta | --t)
  3830. - ac_prev=target ;;
  3831. + ac_prev=target_alias ;;
  3832. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  3833. - target="$ac_optarg" ;;
  3834. + target_alias=$ac_optarg ;;
  3835. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  3836. verbose=yes ;;
  3837. - -version | --version | --versio | --versi | --vers)
  3838. - echo "configure generated by autoconf version 2.13"
  3839. - exit 0 ;;
  3840. + -version | --version | --versio | --versi | --vers | -V)
  3841. + ac_init_version=: ;;
  3842. -with-* | --with-*)
  3843. - ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  3844. + ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  3845. # Reject names that are not valid shell variable names.
  3846. - if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  3847. - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  3848. - fi
  3849. + expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  3850. + { echo "$as_me: error: invalid package name: $ac_package" >&2
  3851. + { (exit 1); exit 1; }; }
  3852. ac_package=`echo $ac_package| sed 's/-/_/g'`
  3853. - case "$ac_option" in
  3854. - *=*) ;;
  3855. + case $ac_option in
  3856. + *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  3857. *) ac_optarg=yes ;;
  3858. esac
  3859. - eval "with_${ac_package}='$ac_optarg'" ;;
  3860. + eval "with_$ac_package='$ac_optarg'" ;;
  3861. -without-* | --without-*)
  3862. - ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  3863. + ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  3864. # Reject names that are not valid shell variable names.
  3865. - if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  3866. - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  3867. - fi
  3868. - ac_package=`echo $ac_package| sed 's/-/_/g'`
  3869. - eval "with_${ac_package}=no" ;;
  3870. + expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  3871. + { echo "$as_me: error: invalid package name: $ac_package" >&2
  3872. + { (exit 1); exit 1; }; }
  3873. + ac_package=`echo $ac_package | sed 's/-/_/g'`
  3874. + eval "with_$ac_package=no" ;;
  3875. --x)
  3876. # Obsolete; use --with-x.
  3877. @@ -551,99 +772,110 @@
  3878. ac_prev=x_includes ;;
  3879. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  3880. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  3881. - x_includes="$ac_optarg" ;;
  3882. + x_includes=$ac_optarg ;;
  3883. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  3884. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  3885. ac_prev=x_libraries ;;
  3886. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  3887. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  3888. - x_libraries="$ac_optarg" ;;
  3889. + x_libraries=$ac_optarg ;;
  3890. - -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  3891. + -*) { echo "$as_me: error: unrecognized option: $ac_option
  3892. +Try \`$0 --help' for more information." >&2
  3893. + { (exit 1); exit 1; }; }
  3894. ;;
  3895. + *=*)
  3896. + ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  3897. + # Reject names that are not valid shell variable names.
  3898. + expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  3899. + { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  3900. + { (exit 1); exit 1; }; }
  3901. + ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  3902. + eval "$ac_envvar='$ac_optarg'"
  3903. + export $ac_envvar ;;
  3904. +
  3905. *)
  3906. - if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  3907. - echo "configure: warning: $ac_option: invalid host type" 1>&2
  3908. - fi
  3909. - if test "x$nonopt" != xNONE; then
  3910. - { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  3911. - fi
  3912. - nonopt="$ac_option"
  3913. + # FIXME: should be removed in autoconf 3.0.
  3914. + echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  3915. + expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  3916. + echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  3917. + : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  3918. ;;
  3919. esac
  3920. done
  3921. if test -n "$ac_prev"; then
  3922. - { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  3923. -fi
  3924. -
  3925. -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  3926. -
  3927. -# File descriptor usage:
  3928. -# 0 standard input
  3929. -# 1 file creation
  3930. -# 2 errors and warnings
  3931. -# 3 some systems may open it to /dev/tty
  3932. -# 4 used on the Kubota Titan
  3933. -# 6 checking for... messages and results
  3934. -# 5 compiler messages saved in config.log
  3935. -if test "$silent" = yes; then
  3936. - exec 6>/dev/null
  3937. -else
  3938. - exec 6>&1
  3939. + ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  3940. + { echo "$as_me: error: missing argument to $ac_option" >&2
  3941. + { (exit 1); exit 1; }; }
  3942. fi
  3943. -exec 5>./config.log
  3944. -echo "\
  3945. -This file contains any messages produced by compilers while
  3946. -running configure, to aid debugging if configure makes a mistake.
  3947. -" 1>&5
  3948. +# Be sure to have absolute paths.
  3949. +for ac_var in exec_prefix prefix
  3950. +do
  3951. + eval ac_val=$`echo $ac_var`
  3952. + case $ac_val in
  3953. + [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  3954. + *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  3955. + { (exit 1); exit 1; }; };;
  3956. + esac
  3957. +done
  3958. -# Strip out --no-create and --no-recursion so they do not pile up.
  3959. -# Also quote any args containing shell metacharacters.
  3960. -ac_configure_args=
  3961. -for ac_arg
  3962. +# Be sure to have absolute paths.
  3963. +for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  3964. + localstatedir libdir includedir oldincludedir infodir mandir
  3965. do
  3966. - case "$ac_arg" in
  3967. - -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  3968. - | --no-cr | --no-c) ;;
  3969. - -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  3970. - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  3971. - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  3972. - ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  3973. - *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  3974. + eval ac_val=$`echo $ac_var`
  3975. + case $ac_val in
  3976. + [\\/$]* | ?:[\\/]* ) ;;
  3977. + *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  3978. + { (exit 1); exit 1; }; };;
  3979. esac
  3980. done
  3981. -# NLS nuisances.
  3982. -# Only set these to C if already set. These must not be set unconditionally
  3983. -# because not all systems understand e.g. LANG=C (notably SCO).
  3984. -# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  3985. -# Non-C LC_CTYPE values break the ctype check.
  3986. -if test "${LANG+set}" = set; then LANG=C; export LANG; fi
  3987. -if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  3988. -if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  3989. -if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
  3990. +# There might be people who depend on the old broken behavior: `$host'
  3991. +# used to hold the argument of --host etc.
  3992. +# FIXME: To remove some day.
  3993. +build=$build_alias
  3994. +host=$host_alias
  3995. +target=$target_alias
  3996. +
  3997. +# FIXME: To remove some day.
  3998. +if test "x$host_alias" != x; then
  3999. + if test "x$build_alias" = x; then
  4000. + cross_compiling=maybe
  4001. + echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  4002. + If a cross compiler is detected then cross compile mode will be used." >&2
  4003. + elif test "x$build_alias" != "x$host_alias"; then
  4004. + cross_compiling=yes
  4005. + fi
  4006. +fi
  4007. -# confdefs.h avoids OS command line length limits that DEFS can exceed.
  4008. -rm -rf conftest* confdefs.h
  4009. -# AIX cpp loses on an empty file, so make sure it contains at least a newline.
  4010. -echo > confdefs.h
  4011. +ac_tool_prefix=
  4012. +test -n "$host_alias" && ac_tool_prefix=$host_alias-
  4013. +
  4014. +test "$silent" = yes && exec 6>/dev/null
  4015. -# A filename unique to this package, relative to the directory that
  4016. -# configure is in, which we can look for to find out if srcdir is correct.
  4017. -ac_unique_file=src/include/atm.h
  4018. # Find the source files, if location was not specified.
  4019. if test -z "$srcdir"; then
  4020. ac_srcdir_defaulted=yes
  4021. # Try the directory containing this script, then its parent.
  4022. - ac_prog=$0
  4023. - ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  4024. - test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  4025. + ac_confdir=`(dirname "$0") 2>/dev/null ||
  4026. +$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  4027. + X"$0" : 'X\(//\)[^/]' \| \
  4028. + X"$0" : 'X\(//\)$' \| \
  4029. + X"$0" : 'X\(/\)' \| \
  4030. + . : '\(.\)' 2>/dev/null ||
  4031. +echo X"$0" |
  4032. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  4033. + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  4034. + /^X\(\/\/\)$/{ s//\1/; q; }
  4035. + /^X\(\/\).*/{ s//\1/; q; }
  4036. + s/.*/./; q'`
  4037. srcdir=$ac_confdir
  4038. if test ! -r $srcdir/$ac_unique_file; then
  4039. srcdir=..
  4040. @@ -653,13 +885,453 @@
  4041. fi
  4042. if test ! -r $srcdir/$ac_unique_file; then
  4043. if test "$ac_srcdir_defaulted" = yes; then
  4044. - { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  4045. + { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  4046. + { (exit 1); exit 1; }; }
  4047. else
  4048. - { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  4049. + { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  4050. + { (exit 1); exit 1; }; }
  4051. fi
  4052. fi
  4053. -srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  4054. +(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  4055. + { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  4056. + { (exit 1); exit 1; }; }
  4057. +srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  4058. +ac_env_build_alias_set=${build_alias+set}
  4059. +ac_env_build_alias_value=$build_alias
  4060. +ac_cv_env_build_alias_set=${build_alias+set}
  4061. +ac_cv_env_build_alias_value=$build_alias
  4062. +ac_env_host_alias_set=${host_alias+set}
  4063. +ac_env_host_alias_value=$host_alias
  4064. +ac_cv_env_host_alias_set=${host_alias+set}
  4065. +ac_cv_env_host_alias_value=$host_alias
  4066. +ac_env_target_alias_set=${target_alias+set}
  4067. +ac_env_target_alias_value=$target_alias
  4068. +ac_cv_env_target_alias_set=${target_alias+set}
  4069. +ac_cv_env_target_alias_value=$target_alias
  4070. +ac_env_CC_set=${CC+set}
  4071. +ac_env_CC_value=$CC
  4072. +ac_cv_env_CC_set=${CC+set}
  4073. +ac_cv_env_CC_value=$CC
  4074. +ac_env_CFLAGS_set=${CFLAGS+set}
  4075. +ac_env_CFLAGS_value=$CFLAGS
  4076. +ac_cv_env_CFLAGS_set=${CFLAGS+set}
  4077. +ac_cv_env_CFLAGS_value=$CFLAGS
  4078. +ac_env_LDFLAGS_set=${LDFLAGS+set}
  4079. +ac_env_LDFLAGS_value=$LDFLAGS
  4080. +ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  4081. +ac_cv_env_LDFLAGS_value=$LDFLAGS
  4082. +ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  4083. +ac_env_CPPFLAGS_value=$CPPFLAGS
  4084. +ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  4085. +ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  4086. +ac_env_CPP_set=${CPP+set}
  4087. +ac_env_CPP_value=$CPP
  4088. +ac_cv_env_CPP_set=${CPP+set}
  4089. +ac_cv_env_CPP_value=$CPP
  4090. +
  4091. +#
  4092. +# Report the --help message.
  4093. +#
  4094. +if test "$ac_init_help" = "long"; then
  4095. + # Omit some internal or obsolete options to make the list less imposing.
  4096. + # This message is too long to be a string in the A/UX 3.1 sh.
  4097. + cat <<_ACEOF
  4098. +\`configure' configures this package to adapt to many kinds of systems.
  4099. +
  4100. +Usage: $0 [OPTION]... [VAR=VALUE]...
  4101. +
  4102. +To assign environment variables (e.g., CC, CFLAGS...), specify them as
  4103. +VAR=VALUE. See below for descriptions of some of the useful variables.
  4104. +
  4105. +Defaults for the options are specified in brackets.
  4106. +
  4107. +Configuration:
  4108. + -h, --help display this help and exit
  4109. + --help=short display options specific to this package
  4110. + --help=recursive display the short help of all the included packages
  4111. + -V, --version display version information and exit
  4112. + -q, --quiet, --silent do not print \`checking...' messages
  4113. + --cache-file=FILE cache test results in FILE [disabled]
  4114. + -C, --config-cache alias for \`--cache-file=config.cache'
  4115. + -n, --no-create do not create output files
  4116. + --srcdir=DIR find the sources in DIR [configure dir or \`..']
  4117. +
  4118. +_ACEOF
  4119. +
  4120. + cat <<_ACEOF
  4121. +Installation directories:
  4122. + --prefix=PREFIX install architecture-independent files in PREFIX
  4123. + [$ac_default_prefix]
  4124. + --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  4125. + [PREFIX]
  4126. +
  4127. +By default, \`make install' will install all the files in
  4128. +\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  4129. +an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  4130. +for instance \`--prefix=\$HOME'.
  4131. +
  4132. +For better control, use the options below.
  4133. +
  4134. +Fine tuning of the installation directories:
  4135. + --bindir=DIR user executables [EPREFIX/bin]
  4136. + --sbindir=DIR system admin executables [EPREFIX/sbin]
  4137. + --libexecdir=DIR program executables [EPREFIX/libexec]
  4138. + --datadir=DIR read-only architecture-independent data [PREFIX/share]
  4139. + --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  4140. + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  4141. + --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  4142. + --libdir=DIR object code libraries [EPREFIX/lib]
  4143. + --includedir=DIR C header files [PREFIX/include]
  4144. + --oldincludedir=DIR C header files for non-gcc [/usr/include]
  4145. + --infodir=DIR info documentation [PREFIX/info]
  4146. + --mandir=DIR man documentation [PREFIX/man]
  4147. +_ACEOF
  4148. +
  4149. + cat <<\_ACEOF
  4150. +
  4151. +Program names:
  4152. + --program-prefix=PREFIX prepend PREFIX to installed program names
  4153. + --program-suffix=SUFFIX append SUFFIX to installed program names
  4154. + --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  4155. +
  4156. +System types:
  4157. + --build=BUILD configure for building on BUILD [guessed]
  4158. + --host=HOST cross-compile to build programs to run on HOST [BUILD]
  4159. + --target=TARGET configure for building compilers for TARGET [HOST]
  4160. +_ACEOF
  4161. +fi
  4162. +
  4163. +if test -n "$ac_init_help"; then
  4164. +
  4165. + cat <<\_ACEOF
  4166. +
  4167. +Optional Features:
  4168. + --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  4169. + --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  4170. + --enable-shared=PKGS build shared libraries default=yes
  4171. + --enable-static=PKGS build static libraries default=yes
  4172. + --enable-fast-install=PKGS optimize for fast installation default=yes
  4173. + --disable-libtool-lock avoid locking (might break parallel builds)
  4174. + --enable-allow_uni30 Allow UNI 3.0 backwards-compatible extensions (if using UNI 3.1)
  4175. + --enable-q2963_1 Enable peak cell rate modification as specified in Q.2963.1 (if using UNI 4.0)
  4176. + --enable-cisco Enable work around for point-to-multipoint signaling bug in Cisco LS100 or LS7010 switches
  4177. + --enable-thomflex Some versions of the Thomson Thomflex 5000 won't do any signaling before they get a RESTART. Enable sending of a RESTART whenever SAAL comes up.
  4178. + --enable-mpoa_1_1 Enable proposed MPOA 1.1 features
  4179. + --enable-mpr Enable memory debugging (if MPR is installed)
  4180. +
  4181. +Optional Packages:
  4182. + --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  4183. + --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  4184. + --with-gnu-ld assume the C compiler uses GNU ld default=no
  4185. + --with-pic try to use only PIC/non-PIC objects default=use both
  4186. + --with-uni=VERSION UNI version to use (3.0,3.1,4.0) default=dynamic
  4187. +
  4188. +Some influential environment variables:
  4189. + CC C compiler command
  4190. + CFLAGS C compiler flags
  4191. + LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  4192. + nonstandard directory <lib dir>
  4193. + CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  4194. + headers in a nonstandard directory <include dir>
  4195. + CPP C preprocessor
  4196. +
  4197. +Use these variables to override the choices made by `configure' or to help
  4198. +it to find libraries and programs with nonstandard names/locations.
  4199. +
  4200. +_ACEOF
  4201. +fi
  4202. +
  4203. +if test "$ac_init_help" = "recursive"; then
  4204. + # If there are subdirs, report their specific --help.
  4205. + ac_popdir=`pwd`
  4206. + for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  4207. + test -d $ac_dir || continue
  4208. + ac_builddir=.
  4209. +
  4210. +if test "$ac_dir" != .; then
  4211. + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  4212. + # A "../" for each directory in $ac_dir_suffix.
  4213. + ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  4214. +else
  4215. + ac_dir_suffix= ac_top_builddir=
  4216. +fi
  4217. +
  4218. +case $srcdir in
  4219. + .) # No --srcdir option. We are building in place.
  4220. + ac_srcdir=.
  4221. + if test -z "$ac_top_builddir"; then
  4222. + ac_top_srcdir=.
  4223. + else
  4224. + ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  4225. + fi ;;
  4226. + [\\/]* | ?:[\\/]* ) # Absolute path.
  4227. + ac_srcdir=$srcdir$ac_dir_suffix;
  4228. + ac_top_srcdir=$srcdir ;;
  4229. + *) # Relative path.
  4230. + ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  4231. + ac_top_srcdir=$ac_top_builddir$srcdir ;;
  4232. +esac
  4233. +# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
  4234. +# absolute.
  4235. +ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
  4236. +ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
  4237. +ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
  4238. +ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
  4239. +
  4240. + cd $ac_dir
  4241. + # Check for guested configure; otherwise get Cygnus style configure.
  4242. + if test -f $ac_srcdir/configure.gnu; then
  4243. + echo
  4244. + $SHELL $ac_srcdir/configure.gnu --help=recursive
  4245. + elif test -f $ac_srcdir/configure; then
  4246. + echo
  4247. + $SHELL $ac_srcdir/configure --help=recursive
  4248. + elif test -f $ac_srcdir/configure.ac ||
  4249. + test -f $ac_srcdir/configure.in; then
  4250. + echo
  4251. + $ac_configure --help
  4252. + else
  4253. + echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  4254. + fi
  4255. + cd $ac_popdir
  4256. + done
  4257. +fi
  4258. +
  4259. +test -n "$ac_init_help" && exit 0
  4260. +if $ac_init_version; then
  4261. + cat <<\_ACEOF
  4262. +
  4263. +Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
  4264. +Free Software Foundation, Inc.
  4265. +This configure script is free software; the Free Software Foundation
  4266. +gives unlimited permission to copy, distribute and modify it.
  4267. +_ACEOF
  4268. + exit 0
  4269. +fi
  4270. +exec 5>config.log
  4271. +cat >&5 <<_ACEOF
  4272. +This file contains any messages produced by compilers while
  4273. +running configure, to aid debugging if configure makes a mistake.
  4274. +
  4275. +It was created by $as_me, which was
  4276. +generated by GNU Autoconf 2.57. Invocation command line was
  4277. +
  4278. + $ $0 $@
  4279. +
  4280. +_ACEOF
  4281. +{
  4282. +cat <<_ASUNAME
  4283. +## --------- ##
  4284. +## Platform. ##
  4285. +## --------- ##
  4286. +
  4287. +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  4288. +uname -m = `(uname -m) 2>/dev/null || echo unknown`
  4289. +uname -r = `(uname -r) 2>/dev/null || echo unknown`
  4290. +uname -s = `(uname -s) 2>/dev/null || echo unknown`
  4291. +uname -v = `(uname -v) 2>/dev/null || echo unknown`
  4292. +
  4293. +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  4294. +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  4295. +
  4296. +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  4297. +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  4298. +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  4299. +hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  4300. +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  4301. +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  4302. +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  4303. +
  4304. +_ASUNAME
  4305. +
  4306. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4307. +for as_dir in $PATH
  4308. +do
  4309. + IFS=$as_save_IFS
  4310. + test -z "$as_dir" && as_dir=.
  4311. + echo "PATH: $as_dir"
  4312. +done
  4313. +
  4314. +} >&5
  4315. +
  4316. +cat >&5 <<_ACEOF
  4317. +
  4318. +
  4319. +## ----------- ##
  4320. +## Core tests. ##
  4321. +## ----------- ##
  4322. +
  4323. +_ACEOF
  4324. +
  4325. +
  4326. +# Keep a trace of the command line.
  4327. +# Strip out --no-create and --no-recursion so they do not pile up.
  4328. +# Strip out --silent because we don't want to record it for future runs.
  4329. +# Also quote any args containing shell meta-characters.
  4330. +# Make two passes to allow for proper duplicate-argument suppression.
  4331. +ac_configure_args=
  4332. +ac_configure_args0=
  4333. +ac_configure_args1=
  4334. +ac_sep=
  4335. +ac_must_keep_next=false
  4336. +for ac_pass in 1 2
  4337. +do
  4338. + for ac_arg
  4339. + do
  4340. + case $ac_arg in
  4341. + -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  4342. + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  4343. + | -silent | --silent | --silen | --sile | --sil)
  4344. + continue ;;
  4345. + *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  4346. + ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  4347. + esac
  4348. + case $ac_pass in
  4349. + 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  4350. + 2)
  4351. + ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  4352. + if test $ac_must_keep_next = true; then
  4353. + ac_must_keep_next=false # Got value, back to normal.
  4354. + else
  4355. + case $ac_arg in
  4356. + *=* | --config-cache | -C | -disable-* | --disable-* \
  4357. + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  4358. + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  4359. + | -with-* | --with-* | -without-* | --without-* | --x)
  4360. + case "$ac_configure_args0 " in
  4361. + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  4362. + esac
  4363. + ;;
  4364. + -* ) ac_must_keep_next=true ;;
  4365. + esac
  4366. + fi
  4367. + ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  4368. + # Get rid of the leading space.
  4369. + ac_sep=" "
  4370. + ;;
  4371. + esac
  4372. + done
  4373. +done
  4374. +$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  4375. +$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  4376. +
  4377. +# When interrupted or exit'd, cleanup temporary files, and complete
  4378. +# config.log. We remove comments because anyway the quotes in there
  4379. +# would cause problems or look ugly.
  4380. +# WARNING: Be sure not to use single quotes in there, as some shells,
  4381. +# such as our DU 5.0 friend, will then `close' the trap.
  4382. +trap 'exit_status=$?
  4383. + # Save into config.log some information that might help in debugging.
  4384. + {
  4385. + echo
  4386. +
  4387. + cat <<\_ASBOX
  4388. +## ---------------- ##
  4389. +## Cache variables. ##
  4390. +## ---------------- ##
  4391. +_ASBOX
  4392. + echo
  4393. + # The following way of writing the cache mishandles newlines in values,
  4394. +{
  4395. + (set) 2>&1 |
  4396. + case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  4397. + *ac_space=\ *)
  4398. + sed -n \
  4399. + "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  4400. + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  4401. + ;;
  4402. + *)
  4403. + sed -n \
  4404. + "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  4405. + ;;
  4406. + esac;
  4407. +}
  4408. + echo
  4409. +
  4410. + cat <<\_ASBOX
  4411. +## ----------------- ##
  4412. +## Output variables. ##
  4413. +## ----------------- ##
  4414. +_ASBOX
  4415. + echo
  4416. + for ac_var in $ac_subst_vars
  4417. + do
  4418. + eval ac_val=$`echo $ac_var`
  4419. + echo "$ac_var='"'"'$ac_val'"'"'"
  4420. + done | sort
  4421. + echo
  4422. +
  4423. + if test -n "$ac_subst_files"; then
  4424. + cat <<\_ASBOX
  4425. +## ------------- ##
  4426. +## Output files. ##
  4427. +## ------------- ##
  4428. +_ASBOX
  4429. + echo
  4430. + for ac_var in $ac_subst_files
  4431. + do
  4432. + eval ac_val=$`echo $ac_var`
  4433. + echo "$ac_var='"'"'$ac_val'"'"'"
  4434. + done | sort
  4435. + echo
  4436. + fi
  4437. +
  4438. + if test -s confdefs.h; then
  4439. + cat <<\_ASBOX
  4440. +## ----------- ##
  4441. +## confdefs.h. ##
  4442. +## ----------- ##
  4443. +_ASBOX
  4444. + echo
  4445. + sed "/^$/d" confdefs.h | sort
  4446. + echo
  4447. + fi
  4448. + test "$ac_signal" != 0 &&
  4449. + echo "$as_me: caught signal $ac_signal"
  4450. + echo "$as_me: exit $exit_status"
  4451. + } >&5
  4452. + rm -f core *.core &&
  4453. + rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  4454. + exit $exit_status
  4455. + ' 0
  4456. +for ac_signal in 1 2 13 15; do
  4457. + trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  4458. +done
  4459. +ac_signal=0
  4460. +
  4461. +# confdefs.h avoids OS command line length limits that DEFS can exceed.
  4462. +rm -rf conftest* confdefs.h
  4463. +# AIX cpp loses on an empty file, so make sure it contains at least a newline.
  4464. +echo >confdefs.h
  4465. +
  4466. +# Predefined preprocessor variables.
  4467. +cat >>confdefs.h <<_ACEOF
  4468. +#define PACKAGE_NAME "$PACKAGE_NAME"
  4469. +_ACEOF
  4470. +
  4471. +
  4472. +cat >>confdefs.h <<_ACEOF
  4473. +#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  4474. +_ACEOF
  4475. +
  4476. +
  4477. +cat >>confdefs.h <<_ACEOF
  4478. +#define PACKAGE_VERSION "$PACKAGE_VERSION"
  4479. +_ACEOF
  4480. +
  4481. +
  4482. +cat >>confdefs.h <<_ACEOF
  4483. +#define PACKAGE_STRING "$PACKAGE_STRING"
  4484. +_ACEOF
  4485. +
  4486. +
  4487. +cat >>confdefs.h <<_ACEOF
  4488. +#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  4489. +_ACEOF
  4490. +
  4491. +
  4492. +# Let the site file select an alternate cache file if it wants to.
  4493. # Prefer explicitly selected file to automatically selected ones.
  4494. if test -z "$CONFIG_SITE"; then
  4495. if test "x$prefix" != xNONE; then
  4496. @@ -670,45 +1342,111 @@
  4497. fi
  4498. for ac_site_file in $CONFIG_SITE; do
  4499. if test -r "$ac_site_file"; then
  4500. - echo "loading site script $ac_site_file"
  4501. + { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  4502. +echo "$as_me: loading site script $ac_site_file" >&6;}
  4503. + sed 's/^/| /' "$ac_site_file" >&5
  4504. . "$ac_site_file"
  4505. fi
  4506. done
  4507. if test -r "$cache_file"; then
  4508. - echo "loading cache $cache_file"
  4509. - . $cache_file
  4510. + # Some versions of bash will fail to source /dev/null (special
  4511. + # files actually), so we avoid doing that.
  4512. + if test -f "$cache_file"; then
  4513. + { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  4514. +echo "$as_me: loading cache $cache_file" >&6;}
  4515. + case $cache_file in
  4516. + [\\/]* | ?:[\\/]* ) . $cache_file;;
  4517. + *) . ./$cache_file;;
  4518. + esac
  4519. + fi
  4520. else
  4521. - echo "creating cache $cache_file"
  4522. - > $cache_file
  4523. + { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  4524. +echo "$as_me: creating cache $cache_file" >&6;}
  4525. + >$cache_file
  4526. +fi
  4527. +
  4528. +# Check that the precious variables saved in the cache have kept the same
  4529. +# value.
  4530. +ac_cache_corrupted=false
  4531. +for ac_var in `(set) 2>&1 |
  4532. + sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  4533. + eval ac_old_set=\$ac_cv_env_${ac_var}_set
  4534. + eval ac_new_set=\$ac_env_${ac_var}_set
  4535. + eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  4536. + eval ac_new_val="\$ac_env_${ac_var}_value"
  4537. + case $ac_old_set,$ac_new_set in
  4538. + set,)
  4539. + { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  4540. +echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  4541. + ac_cache_corrupted=: ;;
  4542. + ,set)
  4543. + { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  4544. +echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  4545. + ac_cache_corrupted=: ;;
  4546. + ,);;
  4547. + *)
  4548. + if test "x$ac_old_val" != "x$ac_new_val"; then
  4549. + { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  4550. +echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  4551. + { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  4552. +echo "$as_me: former value: $ac_old_val" >&2;}
  4553. + { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  4554. +echo "$as_me: current value: $ac_new_val" >&2;}
  4555. + ac_cache_corrupted=:
  4556. + fi;;
  4557. + esac
  4558. + # Pass precious variables to config.status.
  4559. + if test "$ac_new_set" = set; then
  4560. + case $ac_new_val in
  4561. + *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  4562. + ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  4563. + *) ac_arg=$ac_var=$ac_new_val ;;
  4564. + esac
  4565. + case " $ac_configure_args " in
  4566. + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  4567. + *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  4568. + esac
  4569. + fi
  4570. +done
  4571. +if $ac_cache_corrupted; then
  4572. + { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  4573. +echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  4574. + { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  4575. +echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  4576. + { (exit 1); exit 1; }; }
  4577. fi
  4578. ac_ext=c
  4579. -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  4580. ac_cpp='$CPP $CPPFLAGS'
  4581. -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  4582. -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  4583. -cross_compiling=$ac_cv_prog_cc_cross
  4584. -
  4585. -ac_exeext=
  4586. -ac_objext=o
  4587. -if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  4588. - # Stardent Vistra SVR4 grep lacks -e, says [email protected].
  4589. - if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  4590. - ac_n= ac_c='
  4591. -' ac_t=' '
  4592. - else
  4593. - ac_n=-n ac_c= ac_t=
  4594. - fi
  4595. -else
  4596. - ac_n= ac_c='\c' ac_t=
  4597. -fi
  4598. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4599. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4600. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4601. +
  4602. +
  4603. +
  4604. +
  4605. +
  4606. +
  4607. +
  4608. +
  4609. +
  4610. +
  4611. +
  4612. +
  4613. +
  4614. +
  4615. + ac_config_headers="$ac_config_headers config.h"
  4616. +
  4617. + ac_config_commands="$ac_config_commands default-1"
  4618. +
  4619. +
  4620. ac_aux_dir=
  4621. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  4622. if test -f $ac_dir/install-sh; then
  4623. @@ -719,105 +1457,105 @@
  4624. ac_aux_dir=$ac_dir
  4625. ac_install_sh="$ac_aux_dir/install.sh -c"
  4626. break
  4627. + elif test -f $ac_dir/shtool; then
  4628. + ac_aux_dir=$ac_dir
  4629. + ac_install_sh="$ac_aux_dir/shtool install -c"
  4630. + break
  4631. fi
  4632. done
  4633. if test -z "$ac_aux_dir"; then
  4634. - { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  4635. -fi
  4636. -ac_config_guess=$ac_aux_dir/config.guess
  4637. -ac_config_sub=$ac_aux_dir/config.sub
  4638. -ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  4639. -
  4640. -
  4641. -# Do some error checking and defaulting for the host and target type.
  4642. -# The inputs are:
  4643. -# configure --host=HOST --target=TARGET --build=BUILD NONOPT
  4644. -#
  4645. -# The rules are:
  4646. -# 1. You are not allowed to specify --host, --target, and nonopt at the
  4647. -# same time.
  4648. -# 2. Host defaults to nonopt.
  4649. -# 3. If nonopt is not specified, then host defaults to the current host,
  4650. -# as determined by config.guess.
  4651. -# 4. Target and build default to nonopt.
  4652. -# 5. If nonopt is not specified, then target and build default to host.
  4653. -
  4654. -# The aliases save the names the user supplied, while $host etc.
  4655. -# will get canonicalized.
  4656. -case $host---$target---$nonopt in
  4657. -NONE---*---* | *---NONE---* | *---*---NONE) ;;
  4658. -*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
  4659. -esac
  4660. -
  4661. + { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
  4662. +echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
  4663. + { (exit 1); exit 1; }; }
  4664. +fi
  4665. +ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  4666. +ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  4667. +ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  4668. # Make sure we can run config.sub.
  4669. -if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
  4670. -else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  4671. -fi
  4672. +$ac_config_sub sun4 >/dev/null 2>&1 ||
  4673. + { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
  4674. +echo "$as_me: error: cannot run $ac_config_sub" >&2;}
  4675. + { (exit 1); exit 1; }; }
  4676. +
  4677. +echo "$as_me:$LINENO: checking build system type" >&5
  4678. +echo $ECHO_N "checking build system type... $ECHO_C" >&6
  4679. +if test "${ac_cv_build+set}" = set; then
  4680. + echo $ECHO_N "(cached) $ECHO_C" >&6
  4681. +else
  4682. + ac_cv_build_alias=$build_alias
  4683. +test -z "$ac_cv_build_alias" &&
  4684. + ac_cv_build_alias=`$ac_config_guess`
  4685. +test -z "$ac_cv_build_alias" &&
  4686. + { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  4687. +echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  4688. + { (exit 1); exit 1; }; }
  4689. +ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  4690. + { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
  4691. +echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
  4692. + { (exit 1); exit 1; }; }
  4693. +
  4694. +fi
  4695. +echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  4696. +echo "${ECHO_T}$ac_cv_build" >&6
  4697. +build=$ac_cv_build
  4698. +build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  4699. +build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  4700. +build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  4701. +
  4702. +
  4703. +echo "$as_me:$LINENO: checking host system type" >&5
  4704. +echo $ECHO_N "checking host system type... $ECHO_C" >&6
  4705. +if test "${ac_cv_host+set}" = set; then
  4706. + echo $ECHO_N "(cached) $ECHO_C" >&6
  4707. +else
  4708. + ac_cv_host_alias=$host_alias
  4709. +test -z "$ac_cv_host_alias" &&
  4710. + ac_cv_host_alias=$ac_cv_build_alias
  4711. +ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  4712. + { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
  4713. +echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
  4714. + { (exit 1); exit 1; }; }
  4715. +
  4716. +fi
  4717. +echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  4718. +echo "${ECHO_T}$ac_cv_host" >&6
  4719. +host=$ac_cv_host
  4720. +host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  4721. +host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  4722. +host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  4723. +
  4724. +
  4725. +echo "$as_me:$LINENO: checking target system type" >&5
  4726. +echo $ECHO_N "checking target system type... $ECHO_C" >&6
  4727. +if test "${ac_cv_target+set}" = set; then
  4728. + echo $ECHO_N "(cached) $ECHO_C" >&6
  4729. +else
  4730. + ac_cv_target_alias=$target_alias
  4731. +test "x$ac_cv_target_alias" = "x" &&
  4732. + ac_cv_target_alias=$ac_cv_host_alias
  4733. +ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
  4734. + { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
  4735. +echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
  4736. + { (exit 1); exit 1; }; }
  4737. +
  4738. +fi
  4739. +echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  4740. +echo "${ECHO_T}$ac_cv_target" >&6
  4741. +target=$ac_cv_target
  4742. +target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  4743. +target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  4744. +target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  4745. -echo $ac_n "checking host system type""... $ac_c" 1>&6
  4746. -echo "configure:760: checking host system type" >&5
  4747. -host_alias=$host
  4748. -case "$host_alias" in
  4749. -NONE)
  4750. - case $nonopt in
  4751. - NONE)
  4752. - if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
  4753. - else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
  4754. - fi ;;
  4755. - *) host_alias=$nonopt ;;
  4756. - esac ;;
  4757. -esac
  4758. -
  4759. -host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
  4760. -host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  4761. -host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  4762. -host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  4763. -echo "$ac_t""$host" 1>&6
  4764. -
  4765. -echo $ac_n "checking target system type""... $ac_c" 1>&6
  4766. -echo "configure:781: checking target system type" >&5
  4767. -
  4768. -target_alias=$target
  4769. -case "$target_alias" in
  4770. -NONE)
  4771. - case $nonopt in
  4772. - NONE) target_alias=$host_alias ;;
  4773. - *) target_alias=$nonopt ;;
  4774. - esac ;;
  4775. -esac
  4776. -
  4777. -target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
  4778. -target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  4779. -target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  4780. -target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  4781. -echo "$ac_t""$target" 1>&6
  4782. -
  4783. -echo $ac_n "checking build system type""... $ac_c" 1>&6
  4784. -echo "configure:799: checking build system type" >&5
  4785. -
  4786. -build_alias=$build
  4787. -case "$build_alias" in
  4788. -NONE)
  4789. - case $nonopt in
  4790. - NONE) build_alias=$host_alias ;;
  4791. - *) build_alias=$nonopt ;;
  4792. - esac ;;
  4793. -esac
  4794. -
  4795. -build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
  4796. -build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  4797. -build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  4798. -build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  4799. -echo "$ac_t""$build" 1>&6
  4800. -
  4801. -test "$host_alias" != "$target_alias" &&
  4802. +# The aliases save the names the user supplied, while $host etc.
  4803. +# will get canonicalized.
  4804. +test -n "$target_alias" &&
  4805. test "$program_prefix$program_suffix$program_transform_name" = \
  4806. NONENONEs,x,x, &&
  4807. program_prefix=${target_alias}-
  4808. -
  4809. +am__api_version="1.4"
  4810. # Find a good install program. We prefer a C program (faster),
  4811. # so one script is as good as another. But avoid the broken or
  4812. # incompatible versions:
  4813. @@ -825,65 +1563,78 @@
  4814. # SunOS /usr/etc/install
  4815. # IRIX /sbin/install
  4816. # AIX /bin/install
  4817. +# AmigaOS /C/install, which installs bootblocks on floppy discs
  4818. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  4819. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  4820. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  4821. # ./install, which can be erroneously created by make from ./install.sh.
  4822. -echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  4823. -echo "configure:834: checking for a BSD compatible install" >&5
  4824. +echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  4825. +echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  4826. if test -z "$INSTALL"; then
  4827. -if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  4828. - echo $ac_n "(cached) $ac_c" 1>&6
  4829. +if test "${ac_cv_path_install+set}" = set; then
  4830. + echo $ECHO_N "(cached) $ECHO_C" >&6
  4831. else
  4832. - IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
  4833. - for ac_dir in $PATH; do
  4834. - # Account for people who put trailing slashes in PATH elements.
  4835. - case "$ac_dir/" in
  4836. - /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  4837. - *)
  4838. - # OSF1 and SCO ODT 3.0 have their own names for install.
  4839. - # Don't use installbsd from OSF since it installs stuff as root
  4840. - # by default.
  4841. - for ac_prog in ginstall scoinst install; do
  4842. - if test -f $ac_dir/$ac_prog; then
  4843. - if test $ac_prog = install &&
  4844. - grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  4845. - # AIX install. It has an incompatible calling convention.
  4846. - :
  4847. - else
  4848. - ac_cv_path_install="$ac_dir/$ac_prog -c"
  4849. - break 2
  4850. - fi
  4851. - fi
  4852. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4853. +for as_dir in $PATH
  4854. +do
  4855. + IFS=$as_save_IFS
  4856. + test -z "$as_dir" && as_dir=.
  4857. + # Account for people who put trailing slashes in PATH elements.
  4858. +case $as_dir/ in
  4859. + ./ | .// | /cC/* | \
  4860. + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  4861. + /usr/ucb/* ) ;;
  4862. + *)
  4863. + # OSF1 and SCO ODT 3.0 have their own names for install.
  4864. + # Don't use installbsd from OSF since it installs stuff as root
  4865. + # by default.
  4866. + for ac_prog in ginstall scoinst install; do
  4867. + for ac_exec_ext in '' $ac_executable_extensions; do
  4868. + if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  4869. + if test $ac_prog = install &&
  4870. + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  4871. + # AIX install. It has an incompatible calling convention.
  4872. + :
  4873. + elif test $ac_prog = install &&
  4874. + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  4875. + # program-specific install script used by HP pwplus--don't use.
  4876. + :
  4877. + else
  4878. + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  4879. + break 3
  4880. + fi
  4881. + fi
  4882. done
  4883. - ;;
  4884. - esac
  4885. - done
  4886. - IFS="$ac_save_IFS"
  4887. + done
  4888. + ;;
  4889. +esac
  4890. +done
  4891. +
  4892. fi
  4893. if test "${ac_cv_path_install+set}" = set; then
  4894. - INSTALL="$ac_cv_path_install"
  4895. + INSTALL=$ac_cv_path_install
  4896. else
  4897. # As a last resort, use the slow shell script. We don't cache a
  4898. # path for INSTALL within a source directory, because that will
  4899. # break other packages using the cache if that directory is
  4900. # removed, or if the path is relative.
  4901. - INSTALL="$ac_install_sh"
  4902. + INSTALL=$ac_install_sh
  4903. fi
  4904. fi
  4905. -echo "$ac_t""$INSTALL" 1>&6
  4906. +echo "$as_me:$LINENO: result: $INSTALL" >&5
  4907. +echo "${ECHO_T}$INSTALL" >&6
  4908. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  4909. # It thinks the first close brace ends the variable substitution.
  4910. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  4911. -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  4912. +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  4913. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  4914. -echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
  4915. -echo "configure:887: checking whether build environment is sane" >&5
  4916. +echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  4917. +echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
  4918. # Just in case
  4919. sleep 1
  4920. echo timestamp > conftestfile
  4921. @@ -905,8 +1656,11 @@
  4922. # if, for instance, CONFIG_SHELL is bash and it inherits a
  4923. # broken ls alias from the environment. This has actually
  4924. # happened. Such a system could not be considered "sane".
  4925. - { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
  4926. -alias in your environment" 1>&2; exit 1; }
  4927. + { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  4928. +alias in your environment" >&5
  4929. +echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  4930. +alias in your environment" >&2;}
  4931. + { (exit 1); exit 1; }; }
  4932. fi
  4933. test "$2" = conftestfile
  4934. @@ -915,54 +1669,54 @@
  4935. # Ok.
  4936. :
  4937. else
  4938. - { echo "configure: error: newly created file is older than distributed files!
  4939. -Check your system clock" 1>&2; exit 1; }
  4940. + { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  4941. +Check your system clock" >&5
  4942. +echo "$as_me: error: newly created file is older than distributed files!
  4943. +Check your system clock" >&2;}
  4944. + { (exit 1); exit 1; }; }
  4945. fi
  4946. rm -f conftest*
  4947. -echo "$ac_t""yes" 1>&6
  4948. -if test "$program_transform_name" = s,x,x,; then
  4949. - program_transform_name=
  4950. -else
  4951. - # Double any \ or $. echo might interpret backslashes.
  4952. - cat <<\EOF_SED > conftestsed
  4953. -s,\\,\\\\,g; s,\$,$$,g
  4954. -EOF_SED
  4955. - program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
  4956. - rm -f conftestsed
  4957. -fi
  4958. +echo "$as_me:$LINENO: result: yes" >&5
  4959. +echo "${ECHO_T}yes" >&6
  4960. test "$program_prefix" != NONE &&
  4961. - program_transform_name="s,^,${program_prefix},; $program_transform_name"
  4962. + program_transform_name="s,^,$program_prefix,;$program_transform_name"
  4963. # Use a double $ so make ignores it.
  4964. test "$program_suffix" != NONE &&
  4965. - program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
  4966. -
  4967. -# sed with no file args requires a program.
  4968. -test "$program_transform_name" = "" && program_transform_name="s,x,x,"
  4969. -
  4970. -echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  4971. -echo "configure:944: checking whether ${MAKE-make} sets \${MAKE}" >&5
  4972. -set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
  4973. -if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  4974. - echo $ac_n "(cached) $ac_c" 1>&6
  4975. + program_transform_name="s,\$,$program_suffix,;$program_transform_name"
  4976. +# Double any \ or $. echo might interpret backslashes.
  4977. +# By default was `s,x,x', remove it if useless.
  4978. +cat <<\_ACEOF >conftest.sed
  4979. +s/[\\$]/&&/g;s/;s,x,x,$//
  4980. +_ACEOF
  4981. +program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  4982. +rm conftest.sed
  4983. +
  4984. +echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  4985. +echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  4986. +set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
  4987. +if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  4988. + echo $ECHO_N "(cached) $ECHO_C" >&6
  4989. else
  4990. - cat > conftestmake <<\EOF
  4991. + cat >conftest.make <<\_ACEOF
  4992. all:
  4993. - @echo 'ac_maketemp="${MAKE}"'
  4994. -EOF
  4995. + @echo 'ac_maketemp="$(MAKE)"'
  4996. +_ACEOF
  4997. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  4998. -eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  4999. +eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  5000. if test -n "$ac_maketemp"; then
  5001. eval ac_cv_prog_make_${ac_make}_set=yes
  5002. else
  5003. eval ac_cv_prog_make_${ac_make}_set=no
  5004. fi
  5005. -rm -f conftestmake
  5006. +rm -f conftest.make
  5007. fi
  5008. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  5009. - echo "$ac_t""yes" 1>&6
  5010. + echo "$as_me:$LINENO: result: yes" >&5
  5011. +echo "${ECHO_T}yes" >&6
  5012. SET_MAKE=
  5013. else
  5014. - echo "$ac_t""no" 1>&6
  5015. + echo "$as_me:$LINENO: result: no" >&5
  5016. +echo "${ECHO_T}no" >&6
  5017. SET_MAKE="MAKE=${MAKE-make}"
  5018. fi
  5019. @@ -972,82 +1726,96 @@
  5020. VERSION=2.4.1
  5021. if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
  5022. - { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
  5023. + { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  5024. +echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  5025. + { (exit 1); exit 1; }; }
  5026. fi
  5027. -cat >> confdefs.h <<EOF
  5028. +
  5029. +cat >>confdefs.h <<_ACEOF
  5030. #define PACKAGE "$PACKAGE"
  5031. -EOF
  5032. +_ACEOF
  5033. -cat >> confdefs.h <<EOF
  5034. +
  5035. +cat >>confdefs.h <<_ACEOF
  5036. #define VERSION "$VERSION"
  5037. -EOF
  5038. +_ACEOF
  5039. missing_dir=`cd $ac_aux_dir && pwd`
  5040. -echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
  5041. -echo "configure:990: checking for working aclocal" >&5
  5042. +echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5
  5043. +echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6
  5044. # Run test in a subshell; some versions of sh will print an error if
  5045. # an executable is not found, even if stderr is redirected.
  5046. # Redirect stdin to placate older versions of autoconf. Sigh.
  5047. -if (aclocal --version) < /dev/null > /dev/null 2>&1; then
  5048. - ACLOCAL=aclocal
  5049. - echo "$ac_t""found" 1>&6
  5050. -else
  5051. - ACLOCAL="$missing_dir/missing aclocal"
  5052. - echo "$ac_t""missing" 1>&6
  5053. +if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
  5054. + ACLOCAL=aclocal-${am__api_version}
  5055. + echo "$as_me:$LINENO: result: found" >&5
  5056. +echo "${ECHO_T}found" >&6
  5057. +else
  5058. + ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
  5059. + echo "$as_me:$LINENO: result: missing" >&5
  5060. +echo "${ECHO_T}missing" >&6
  5061. fi
  5062. -echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
  5063. -echo "configure:1003: checking for working autoconf" >&5
  5064. +echo "$as_me:$LINENO: checking for working autoconf" >&5
  5065. +echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
  5066. # Run test in a subshell; some versions of sh will print an error if
  5067. # an executable is not found, even if stderr is redirected.
  5068. # Redirect stdin to placate older versions of autoconf. Sigh.
  5069. if (autoconf --version) < /dev/null > /dev/null 2>&1; then
  5070. AUTOCONF=autoconf
  5071. - echo "$ac_t""found" 1>&6
  5072. + echo "$as_me:$LINENO: result: found" >&5
  5073. +echo "${ECHO_T}found" >&6
  5074. else
  5075. AUTOCONF="$missing_dir/missing autoconf"
  5076. - echo "$ac_t""missing" 1>&6
  5077. + echo "$as_me:$LINENO: result: missing" >&5
  5078. +echo "${ECHO_T}missing" >&6
  5079. fi
  5080. -echo $ac_n "checking for working automake""... $ac_c" 1>&6
  5081. -echo "configure:1016: checking for working automake" >&5
  5082. +echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5
  5083. +echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6
  5084. # Run test in a subshell; some versions of sh will print an error if
  5085. # an executable is not found, even if stderr is redirected.
  5086. # Redirect stdin to placate older versions of autoconf. Sigh.
  5087. -if (automake --version) < /dev/null > /dev/null 2>&1; then
  5088. - AUTOMAKE=automake
  5089. - echo "$ac_t""found" 1>&6
  5090. -else
  5091. - AUTOMAKE="$missing_dir/missing automake"
  5092. - echo "$ac_t""missing" 1>&6
  5093. +if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
  5094. + AUTOMAKE=automake-${am__api_version}
  5095. + echo "$as_me:$LINENO: result: found" >&5
  5096. +echo "${ECHO_T}found" >&6
  5097. +else
  5098. + AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
  5099. + echo "$as_me:$LINENO: result: missing" >&5
  5100. +echo "${ECHO_T}missing" >&6
  5101. fi
  5102. -echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
  5103. -echo "configure:1029: checking for working autoheader" >&5
  5104. +echo "$as_me:$LINENO: checking for working autoheader" >&5
  5105. +echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
  5106. # Run test in a subshell; some versions of sh will print an error if
  5107. # an executable is not found, even if stderr is redirected.
  5108. # Redirect stdin to placate older versions of autoconf. Sigh.
  5109. if (autoheader --version) < /dev/null > /dev/null 2>&1; then
  5110. AUTOHEADER=autoheader
  5111. - echo "$ac_t""found" 1>&6
  5112. + echo "$as_me:$LINENO: result: found" >&5
  5113. +echo "${ECHO_T}found" >&6
  5114. else
  5115. AUTOHEADER="$missing_dir/missing autoheader"
  5116. - echo "$ac_t""missing" 1>&6
  5117. + echo "$as_me:$LINENO: result: missing" >&5
  5118. +echo "${ECHO_T}missing" >&6
  5119. fi
  5120. -echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
  5121. -echo "configure:1042: checking for working makeinfo" >&5
  5122. +echo "$as_me:$LINENO: checking for working makeinfo" >&5
  5123. +echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
  5124. # Run test in a subshell; some versions of sh will print an error if
  5125. # an executable is not found, even if stderr is redirected.
  5126. # Redirect stdin to placate older versions of autoconf. Sigh.
  5127. if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
  5128. MAKEINFO=makeinfo
  5129. - echo "$ac_t""found" 1>&6
  5130. + echo "$as_me:$LINENO: result: found" >&5
  5131. +echo "${ECHO_T}found" >&6
  5132. else
  5133. MAKEINFO="$missing_dir/missing makeinfo"
  5134. - echo "$ac_t""missing" 1>&6
  5135. + echo "$as_me:$LINENO: result: missing" >&5
  5136. +echo "${ECHO_T}missing" >&6
  5137. fi
  5138. @@ -1059,214 +1827,643 @@
  5139. -# Extract the first word of "gcc", so it can be a program name with args.
  5140. +ac_ext=c
  5141. +ac_cpp='$CPP $CPPFLAGS'
  5142. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5143. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5144. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5145. +if test -n "$ac_tool_prefix"; then
  5146. + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  5147. +set dummy ${ac_tool_prefix}gcc; ac_word=$2
  5148. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  5149. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5150. +if test "${ac_cv_prog_CC+set}" = set; then
  5151. + echo $ECHO_N "(cached) $ECHO_C" >&6
  5152. +else
  5153. + if test -n "$CC"; then
  5154. + ac_cv_prog_CC="$CC" # Let the user override the test.
  5155. +else
  5156. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5157. +for as_dir in $PATH
  5158. +do
  5159. + IFS=$as_save_IFS
  5160. + test -z "$as_dir" && as_dir=.
  5161. + for ac_exec_ext in '' $ac_executable_extensions; do
  5162. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5163. + ac_cv_prog_CC="${ac_tool_prefix}gcc"
  5164. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5165. + break 2
  5166. + fi
  5167. +done
  5168. +done
  5169. +
  5170. +fi
  5171. +fi
  5172. +CC=$ac_cv_prog_CC
  5173. +if test -n "$CC"; then
  5174. + echo "$as_me:$LINENO: result: $CC" >&5
  5175. +echo "${ECHO_T}$CC" >&6
  5176. +else
  5177. + echo "$as_me:$LINENO: result: no" >&5
  5178. +echo "${ECHO_T}no" >&6
  5179. +fi
  5180. +
  5181. +fi
  5182. +if test -z "$ac_cv_prog_CC"; then
  5183. + ac_ct_CC=$CC
  5184. + # Extract the first word of "gcc", so it can be a program name with args.
  5185. set dummy gcc; ac_word=$2
  5186. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  5187. -echo "configure:1066: checking for $ac_word" >&5
  5188. -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  5189. - echo $ac_n "(cached) $ac_c" 1>&6
  5190. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  5191. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5192. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  5193. + echo $ECHO_N "(cached) $ECHO_C" >&6
  5194. +else
  5195. + if test -n "$ac_ct_CC"; then
  5196. + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  5197. +else
  5198. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5199. +for as_dir in $PATH
  5200. +do
  5201. + IFS=$as_save_IFS
  5202. + test -z "$as_dir" && as_dir=.
  5203. + for ac_exec_ext in '' $ac_executable_extensions; do
  5204. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5205. + ac_cv_prog_ac_ct_CC="gcc"
  5206. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5207. + break 2
  5208. + fi
  5209. +done
  5210. +done
  5211. +
  5212. +fi
  5213. +fi
  5214. +ac_ct_CC=$ac_cv_prog_ac_ct_CC
  5215. +if test -n "$ac_ct_CC"; then
  5216. + echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  5217. +echo "${ECHO_T}$ac_ct_CC" >&6
  5218. +else
  5219. + echo "$as_me:$LINENO: result: no" >&5
  5220. +echo "${ECHO_T}no" >&6
  5221. +fi
  5222. +
  5223. + CC=$ac_ct_CC
  5224. +else
  5225. + CC="$ac_cv_prog_CC"
  5226. +fi
  5227. +
  5228. +if test -z "$CC"; then
  5229. + if test -n "$ac_tool_prefix"; then
  5230. + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  5231. +set dummy ${ac_tool_prefix}cc; ac_word=$2
  5232. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  5233. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5234. +if test "${ac_cv_prog_CC+set}" = set; then
  5235. + echo $ECHO_N "(cached) $ECHO_C" >&6
  5236. else
  5237. if test -n "$CC"; then
  5238. ac_cv_prog_CC="$CC" # Let the user override the test.
  5239. else
  5240. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  5241. - ac_dummy="$PATH"
  5242. - for ac_dir in $ac_dummy; do
  5243. - test -z "$ac_dir" && ac_dir=.
  5244. - if test -f $ac_dir/$ac_word; then
  5245. - ac_cv_prog_CC="gcc"
  5246. - break
  5247. - fi
  5248. - done
  5249. - IFS="$ac_save_ifs"
  5250. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5251. +for as_dir in $PATH
  5252. +do
  5253. + IFS=$as_save_IFS
  5254. + test -z "$as_dir" && as_dir=.
  5255. + for ac_exec_ext in '' $ac_executable_extensions; do
  5256. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5257. + ac_cv_prog_CC="${ac_tool_prefix}cc"
  5258. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5259. + break 2
  5260. + fi
  5261. +done
  5262. +done
  5263. +
  5264. fi
  5265. fi
  5266. -CC="$ac_cv_prog_CC"
  5267. +CC=$ac_cv_prog_CC
  5268. if test -n "$CC"; then
  5269. - echo "$ac_t""$CC" 1>&6
  5270. + echo "$as_me:$LINENO: result: $CC" >&5
  5271. +echo "${ECHO_T}$CC" >&6
  5272. +else
  5273. + echo "$as_me:$LINENO: result: no" >&5
  5274. +echo "${ECHO_T}no" >&6
  5275. +fi
  5276. +
  5277. +fi
  5278. +if test -z "$ac_cv_prog_CC"; then
  5279. + ac_ct_CC=$CC
  5280. + # Extract the first word of "cc", so it can be a program name with args.
  5281. +set dummy cc; ac_word=$2
  5282. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  5283. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5284. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  5285. + echo $ECHO_N "(cached) $ECHO_C" >&6
  5286. +else
  5287. + if test -n "$ac_ct_CC"; then
  5288. + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  5289. +else
  5290. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5291. +for as_dir in $PATH
  5292. +do
  5293. + IFS=$as_save_IFS
  5294. + test -z "$as_dir" && as_dir=.
  5295. + for ac_exec_ext in '' $ac_executable_extensions; do
  5296. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5297. + ac_cv_prog_ac_ct_CC="cc"
  5298. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5299. + break 2
  5300. + fi
  5301. +done
  5302. +done
  5303. +
  5304. +fi
  5305. +fi
  5306. +ac_ct_CC=$ac_cv_prog_ac_ct_CC
  5307. +if test -n "$ac_ct_CC"; then
  5308. + echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  5309. +echo "${ECHO_T}$ac_ct_CC" >&6
  5310. else
  5311. - echo "$ac_t""no" 1>&6
  5312. + echo "$as_me:$LINENO: result: no" >&5
  5313. +echo "${ECHO_T}no" >&6
  5314. fi
  5315. + CC=$ac_ct_CC
  5316. +else
  5317. + CC="$ac_cv_prog_CC"
  5318. +fi
  5319. +
  5320. +fi
  5321. if test -z "$CC"; then
  5322. # Extract the first word of "cc", so it can be a program name with args.
  5323. set dummy cc; ac_word=$2
  5324. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  5325. -echo "configure:1096: checking for $ac_word" >&5
  5326. -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  5327. - echo $ac_n "(cached) $ac_c" 1>&6
  5328. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  5329. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5330. +if test "${ac_cv_prog_CC+set}" = set; then
  5331. + echo $ECHO_N "(cached) $ECHO_C" >&6
  5332. else
  5333. if test -n "$CC"; then
  5334. ac_cv_prog_CC="$CC" # Let the user override the test.
  5335. else
  5336. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  5337. ac_prog_rejected=no
  5338. - ac_dummy="$PATH"
  5339. - for ac_dir in $ac_dummy; do
  5340. - test -z "$ac_dir" && ac_dir=.
  5341. - if test -f $ac_dir/$ac_word; then
  5342. - if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  5343. - ac_prog_rejected=yes
  5344. - continue
  5345. - fi
  5346. - ac_cv_prog_CC="cc"
  5347. - break
  5348. - fi
  5349. - done
  5350. - IFS="$ac_save_ifs"
  5351. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5352. +for as_dir in $PATH
  5353. +do
  5354. + IFS=$as_save_IFS
  5355. + test -z "$as_dir" && as_dir=.
  5356. + for ac_exec_ext in '' $ac_executable_extensions; do
  5357. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5358. + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  5359. + ac_prog_rejected=yes
  5360. + continue
  5361. + fi
  5362. + ac_cv_prog_CC="cc"
  5363. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5364. + break 2
  5365. + fi
  5366. +done
  5367. +done
  5368. +
  5369. if test $ac_prog_rejected = yes; then
  5370. # We found a bogon in the path, so make sure we never use it.
  5371. set dummy $ac_cv_prog_CC
  5372. shift
  5373. - if test $# -gt 0; then
  5374. + if test $# != 0; then
  5375. # We chose a different compiler from the bogus one.
  5376. # However, it has the same basename, so the bogon will be chosen
  5377. # first if we set CC to just the basename; use the full file name.
  5378. shift
  5379. - set dummy "$ac_dir/$ac_word" "$@"
  5380. - shift
  5381. - ac_cv_prog_CC="$@"
  5382. + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  5383. fi
  5384. fi
  5385. fi
  5386. fi
  5387. -CC="$ac_cv_prog_CC"
  5388. +CC=$ac_cv_prog_CC
  5389. if test -n "$CC"; then
  5390. - echo "$ac_t""$CC" 1>&6
  5391. + echo "$as_me:$LINENO: result: $CC" >&5
  5392. +echo "${ECHO_T}$CC" >&6
  5393. else
  5394. - echo "$ac_t""no" 1>&6
  5395. + echo "$as_me:$LINENO: result: no" >&5
  5396. +echo "${ECHO_T}no" >&6
  5397. fi
  5398. - if test -z "$CC"; then
  5399. - case "`uname -s`" in
  5400. - *win32* | *WIN32*)
  5401. - # Extract the first word of "cl", so it can be a program name with args.
  5402. -set dummy cl; ac_word=$2
  5403. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  5404. -echo "configure:1147: checking for $ac_word" >&5
  5405. -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  5406. - echo $ac_n "(cached) $ac_c" 1>&6
  5407. +fi
  5408. +if test -z "$CC"; then
  5409. + if test -n "$ac_tool_prefix"; then
  5410. + for ac_prog in cl
  5411. + do
  5412. + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5413. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5414. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  5415. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5416. +if test "${ac_cv_prog_CC+set}" = set; then
  5417. + echo $ECHO_N "(cached) $ECHO_C" >&6
  5418. else
  5419. if test -n "$CC"; then
  5420. ac_cv_prog_CC="$CC" # Let the user override the test.
  5421. else
  5422. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  5423. - ac_dummy="$PATH"
  5424. - for ac_dir in $ac_dummy; do
  5425. - test -z "$ac_dir" && ac_dir=.
  5426. - if test -f $ac_dir/$ac_word; then
  5427. - ac_cv_prog_CC="cl"
  5428. - break
  5429. - fi
  5430. - done
  5431. - IFS="$ac_save_ifs"
  5432. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5433. +for as_dir in $PATH
  5434. +do
  5435. + IFS=$as_save_IFS
  5436. + test -z "$as_dir" && as_dir=.
  5437. + for ac_exec_ext in '' $ac_executable_extensions; do
  5438. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5439. + ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  5440. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5441. + break 2
  5442. + fi
  5443. +done
  5444. +done
  5445. +
  5446. fi
  5447. fi
  5448. -CC="$ac_cv_prog_CC"
  5449. +CC=$ac_cv_prog_CC
  5450. if test -n "$CC"; then
  5451. - echo "$ac_t""$CC" 1>&6
  5452. + echo "$as_me:$LINENO: result: $CC" >&5
  5453. +echo "${ECHO_T}$CC" >&6
  5454. else
  5455. - echo "$ac_t""no" 1>&6
  5456. + echo "$as_me:$LINENO: result: no" >&5
  5457. +echo "${ECHO_T}no" >&6
  5458. fi
  5459. - ;;
  5460. - esac
  5461. +
  5462. + test -n "$CC" && break
  5463. + done
  5464. +fi
  5465. +if test -z "$CC"; then
  5466. + ac_ct_CC=$CC
  5467. + for ac_prog in cl
  5468. +do
  5469. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  5470. +set dummy $ac_prog; ac_word=$2
  5471. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  5472. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5473. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  5474. + echo $ECHO_N "(cached) $ECHO_C" >&6
  5475. +else
  5476. + if test -n "$ac_ct_CC"; then
  5477. + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  5478. +else
  5479. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5480. +for as_dir in $PATH
  5481. +do
  5482. + IFS=$as_save_IFS
  5483. + test -z "$as_dir" && as_dir=.
  5484. + for ac_exec_ext in '' $ac_executable_extensions; do
  5485. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5486. + ac_cv_prog_ac_ct_CC="$ac_prog"
  5487. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5488. + break 2
  5489. fi
  5490. - test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  5491. +done
  5492. +done
  5493. +
  5494. fi
  5495. +fi
  5496. +ac_ct_CC=$ac_cv_prog_ac_ct_CC
  5497. +if test -n "$ac_ct_CC"; then
  5498. + echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  5499. +echo "${ECHO_T}$ac_ct_CC" >&6
  5500. +else
  5501. + echo "$as_me:$LINENO: result: no" >&5
  5502. +echo "${ECHO_T}no" >&6
  5503. +fi
  5504. +
  5505. + test -n "$ac_ct_CC" && break
  5506. +done
  5507. -echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  5508. -echo "configure:1179: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  5509. + CC=$ac_ct_CC
  5510. +fi
  5511. -ac_ext=c
  5512. -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  5513. -ac_cpp='$CPP $CPPFLAGS'
  5514. -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  5515. -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  5516. -cross_compiling=$ac_cv_prog_cc_cross
  5517. +fi
  5518. -cat > conftest.$ac_ext << EOF
  5519. -#line 1190 "configure"
  5520. -#include "confdefs.h"
  5521. +test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  5522. +See \`config.log' for more details." >&5
  5523. +echo "$as_me: error: no acceptable C compiler found in \$PATH
  5524. +See \`config.log' for more details." >&2;}
  5525. + { (exit 1); exit 1; }; }
  5526. +
  5527. +# Provide some information about the compiler.
  5528. +echo "$as_me:$LINENO:" \
  5529. + "checking for C compiler version" >&5
  5530. +ac_compiler=`set X $ac_compile; echo $2`
  5531. +{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  5532. + (eval $ac_compiler --version </dev/null >&5) 2>&5
  5533. + ac_status=$?
  5534. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5535. + (exit $ac_status); }
  5536. +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  5537. + (eval $ac_compiler -v </dev/null >&5) 2>&5
  5538. + ac_status=$?
  5539. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5540. + (exit $ac_status); }
  5541. +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  5542. + (eval $ac_compiler -V </dev/null >&5) 2>&5
  5543. + ac_status=$?
  5544. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5545. + (exit $ac_status); }
  5546. +
  5547. +cat >conftest.$ac_ext <<_ACEOF
  5548. +#line $LINENO "configure"
  5549. +/* confdefs.h. */
  5550. +_ACEOF
  5551. +cat confdefs.h >>conftest.$ac_ext
  5552. +cat >>conftest.$ac_ext <<_ACEOF
  5553. +/* end confdefs.h. */
  5554. -main(){return(0);}
  5555. -EOF
  5556. -if { (eval echo configure:1195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5557. - ac_cv_prog_cc_works=yes
  5558. - # If we can't run a trivial program, we are probably using a cross compiler.
  5559. - if (./conftest; exit) 2>/dev/null; then
  5560. - ac_cv_prog_cc_cross=no
  5561. - else
  5562. - ac_cv_prog_cc_cross=yes
  5563. - fi
  5564. +int
  5565. +main ()
  5566. +{
  5567. +
  5568. + ;
  5569. + return 0;
  5570. +}
  5571. +_ACEOF
  5572. +ac_clean_files_save=$ac_clean_files
  5573. +ac_clean_files="$ac_clean_files a.out a.exe b.out"
  5574. +# Try to create an executable without -o first, disregard a.out.
  5575. +# It will help us diagnose broken compilers, and finding out an intuition
  5576. +# of exeext.
  5577. +echo "$as_me:$LINENO: checking for C compiler default output" >&5
  5578. +echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
  5579. +ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  5580. +if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  5581. + (eval $ac_link_default) 2>&5
  5582. + ac_status=$?
  5583. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5584. + (exit $ac_status); }; then
  5585. + # Find the output, starting from the most likely. This scheme is
  5586. +# not robust to junk in `.', hence go to wildcards (a.*) only as a last
  5587. +# resort.
  5588. +
  5589. +# Be careful to initialize this variable, since it used to be cached.
  5590. +# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  5591. +ac_cv_exeext=
  5592. +# b.out is created by i960 compilers.
  5593. +for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  5594. +do
  5595. + test -f "$ac_file" || continue
  5596. + case $ac_file in
  5597. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  5598. + ;;
  5599. + conftest.$ac_ext )
  5600. + # This is the source file.
  5601. + ;;
  5602. + [ab].out )
  5603. + # We found the default executable, but exeext='' is most
  5604. + # certainly right.
  5605. + break;;
  5606. + *.* )
  5607. + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  5608. + # FIXME: I believe we export ac_cv_exeext for Libtool,
  5609. + # but it would be cool to find out if it's true. Does anybody
  5610. + # maintain Libtool? --akim.
  5611. + export ac_cv_exeext
  5612. + break;;
  5613. + * )
  5614. + break;;
  5615. + esac
  5616. +done
  5617. else
  5618. - echo "configure: failed program was:" >&5
  5619. - cat conftest.$ac_ext >&5
  5620. - ac_cv_prog_cc_works=no
  5621. + echo "$as_me: failed program was:" >&5
  5622. +sed 's/^/| /' conftest.$ac_ext >&5
  5623. +
  5624. +{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
  5625. +See \`config.log' for more details." >&5
  5626. +echo "$as_me: error: C compiler cannot create executables
  5627. +See \`config.log' for more details." >&2;}
  5628. + { (exit 77); exit 77; }; }
  5629. +fi
  5630. +
  5631. +ac_exeext=$ac_cv_exeext
  5632. +echo "$as_me:$LINENO: result: $ac_file" >&5
  5633. +echo "${ECHO_T}$ac_file" >&6
  5634. +
  5635. +# Check the compiler produces executables we can run. If not, either
  5636. +# the compiler is broken, or we cross compile.
  5637. +echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  5638. +echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  5639. +# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  5640. +# If not cross compiling, check that we can run a simple program.
  5641. +if test "$cross_compiling" != yes; then
  5642. + if { ac_try='./$ac_file'
  5643. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5644. + (eval $ac_try) 2>&5
  5645. + ac_status=$?
  5646. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5647. + (exit $ac_status); }; }; then
  5648. + cross_compiling=no
  5649. + else
  5650. + if test "$cross_compiling" = maybe; then
  5651. + cross_compiling=yes
  5652. + else
  5653. + { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  5654. +If you meant to cross compile, use \`--host'.
  5655. +See \`config.log' for more details." >&5
  5656. +echo "$as_me: error: cannot run C compiled programs.
  5657. +If you meant to cross compile, use \`--host'.
  5658. +See \`config.log' for more details." >&2;}
  5659. + { (exit 1); exit 1; }; }
  5660. + fi
  5661. + fi
  5662. fi
  5663. -rm -fr conftest*
  5664. -ac_ext=c
  5665. -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  5666. -ac_cpp='$CPP $CPPFLAGS'
  5667. -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  5668. -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  5669. -cross_compiling=$ac_cv_prog_cc_cross
  5670. -
  5671. -echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  5672. -if test $ac_cv_prog_cc_works = no; then
  5673. - { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  5674. -fi
  5675. -echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  5676. -echo "configure:1221: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  5677. -echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  5678. -cross_compiling=$ac_cv_prog_cc_cross
  5679. -
  5680. -echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  5681. -echo "configure:1226: checking whether we are using GNU C" >&5
  5682. -if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  5683. - echo $ac_n "(cached) $ac_c" 1>&6
  5684. -else
  5685. - cat > conftest.c <<EOF
  5686. -#ifdef __GNUC__
  5687. - yes;
  5688. -#endif
  5689. -EOF
  5690. -if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1235: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  5691. - ac_cv_prog_gcc=yes
  5692. +echo "$as_me:$LINENO: result: yes" >&5
  5693. +echo "${ECHO_T}yes" >&6
  5694. +
  5695. +rm -f a.out a.exe conftest$ac_cv_exeext b.out
  5696. +ac_clean_files=$ac_clean_files_save
  5697. +# Check the compiler produces executables we can run. If not, either
  5698. +# the compiler is broken, or we cross compile.
  5699. +echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  5700. +echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  5701. +echo "$as_me:$LINENO: result: $cross_compiling" >&5
  5702. +echo "${ECHO_T}$cross_compiling" >&6
  5703. +
  5704. +echo "$as_me:$LINENO: checking for suffix of executables" >&5
  5705. +echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  5706. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5707. + (eval $ac_link) 2>&5
  5708. + ac_status=$?
  5709. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5710. + (exit $ac_status); }; then
  5711. + # If both `conftest.exe' and `conftest' are `present' (well, observable)
  5712. +# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  5713. +# work properly (i.e., refer to `conftest.exe'), while it won't with
  5714. +# `rm'.
  5715. +for ac_file in conftest.exe conftest conftest.*; do
  5716. + test -f "$ac_file" || continue
  5717. + case $ac_file in
  5718. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  5719. + *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  5720. + export ac_cv_exeext
  5721. + break;;
  5722. + * ) break;;
  5723. + esac
  5724. +done
  5725. else
  5726. - ac_cv_prog_gcc=no
  5727. -fi
  5728. + { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  5729. +See \`config.log' for more details." >&5
  5730. +echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  5731. +See \`config.log' for more details." >&2;}
  5732. + { (exit 1); exit 1; }; }
  5733. fi
  5734. -echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  5735. +rm -f conftest$ac_cv_exeext
  5736. +echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  5737. +echo "${ECHO_T}$ac_cv_exeext" >&6
  5738. +
  5739. +rm -f conftest.$ac_ext
  5740. +EXEEXT=$ac_cv_exeext
  5741. +ac_exeext=$EXEEXT
  5742. +echo "$as_me:$LINENO: checking for suffix of object files" >&5
  5743. +echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  5744. +if test "${ac_cv_objext+set}" = set; then
  5745. + echo $ECHO_N "(cached) $ECHO_C" >&6
  5746. +else
  5747. + cat >conftest.$ac_ext <<_ACEOF
  5748. +#line $LINENO "configure"
  5749. +/* confdefs.h. */
  5750. +_ACEOF
  5751. +cat confdefs.h >>conftest.$ac_ext
  5752. +cat >>conftest.$ac_ext <<_ACEOF
  5753. +/* end confdefs.h. */
  5754. +
  5755. +int
  5756. +main ()
  5757. +{
  5758. -if test $ac_cv_prog_gcc = yes; then
  5759. - GCC=yes
  5760. + ;
  5761. + return 0;
  5762. +}
  5763. +_ACEOF
  5764. +rm -f conftest.o conftest.obj
  5765. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5766. + (eval $ac_compile) 2>&5
  5767. + ac_status=$?
  5768. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5769. + (exit $ac_status); }; then
  5770. + for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  5771. + case $ac_file in
  5772. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  5773. + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  5774. + break;;
  5775. + esac
  5776. +done
  5777. else
  5778. - GCC=
  5779. + echo "$as_me: failed program was:" >&5
  5780. +sed 's/^/| /' conftest.$ac_ext >&5
  5781. +
  5782. +{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  5783. +See \`config.log' for more details." >&5
  5784. +echo "$as_me: error: cannot compute suffix of object files: cannot compile
  5785. +See \`config.log' for more details." >&2;}
  5786. + { (exit 1); exit 1; }; }
  5787. fi
  5788. -ac_test_CFLAGS="${CFLAGS+set}"
  5789. -ac_save_CFLAGS="$CFLAGS"
  5790. -CFLAGS=
  5791. -echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  5792. -echo "configure:1254: checking whether ${CC-cc} accepts -g" >&5
  5793. -if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  5794. - echo $ac_n "(cached) $ac_c" 1>&6
  5795. -else
  5796. - echo 'void f(){}' > conftest.c
  5797. -if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  5798. +rm -f conftest.$ac_cv_objext conftest.$ac_ext
  5799. +fi
  5800. +echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  5801. +echo "${ECHO_T}$ac_cv_objext" >&6
  5802. +OBJEXT=$ac_cv_objext
  5803. +ac_objext=$OBJEXT
  5804. +echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  5805. +echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  5806. +if test "${ac_cv_c_compiler_gnu+set}" = set; then
  5807. + echo $ECHO_N "(cached) $ECHO_C" >&6
  5808. +else
  5809. + cat >conftest.$ac_ext <<_ACEOF
  5810. +#line $LINENO "configure"
  5811. +/* confdefs.h. */
  5812. +_ACEOF
  5813. +cat confdefs.h >>conftest.$ac_ext
  5814. +cat >>conftest.$ac_ext <<_ACEOF
  5815. +/* end confdefs.h. */
  5816. +
  5817. +int
  5818. +main ()
  5819. +{
  5820. +#ifndef __GNUC__
  5821. + choke me
  5822. +#endif
  5823. +
  5824. + ;
  5825. + return 0;
  5826. +}
  5827. +_ACEOF
  5828. +rm -f conftest.$ac_objext
  5829. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5830. + (eval $ac_compile) 2>&5
  5831. + ac_status=$?
  5832. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5833. + (exit $ac_status); } &&
  5834. + { ac_try='test -s conftest.$ac_objext'
  5835. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5836. + (eval $ac_try) 2>&5
  5837. + ac_status=$?
  5838. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5839. + (exit $ac_status); }; }; then
  5840. + ac_compiler_gnu=yes
  5841. +else
  5842. + echo "$as_me: failed program was:" >&5
  5843. +sed 's/^/| /' conftest.$ac_ext >&5
  5844. +
  5845. +ac_compiler_gnu=no
  5846. +fi
  5847. +rm -f conftest.$ac_objext conftest.$ac_ext
  5848. +ac_cv_c_compiler_gnu=$ac_compiler_gnu
  5849. +
  5850. +fi
  5851. +echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  5852. +echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  5853. +GCC=`test $ac_compiler_gnu = yes && echo yes`
  5854. +ac_test_CFLAGS=${CFLAGS+set}
  5855. +ac_save_CFLAGS=$CFLAGS
  5856. +CFLAGS="-g"
  5857. +echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  5858. +echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  5859. +if test "${ac_cv_prog_cc_g+set}" = set; then
  5860. + echo $ECHO_N "(cached) $ECHO_C" >&6
  5861. +else
  5862. + cat >conftest.$ac_ext <<_ACEOF
  5863. +#line $LINENO "configure"
  5864. +/* confdefs.h. */
  5865. +_ACEOF
  5866. +cat confdefs.h >>conftest.$ac_ext
  5867. +cat >>conftest.$ac_ext <<_ACEOF
  5868. +/* end confdefs.h. */
  5869. +
  5870. +int
  5871. +main ()
  5872. +{
  5873. +
  5874. + ;
  5875. + return 0;
  5876. +}
  5877. +_ACEOF
  5878. +rm -f conftest.$ac_objext
  5879. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5880. + (eval $ac_compile) 2>&5
  5881. + ac_status=$?
  5882. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5883. + (exit $ac_status); } &&
  5884. + { ac_try='test -s conftest.$ac_objext'
  5885. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5886. + (eval $ac_try) 2>&5
  5887. + ac_status=$?
  5888. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5889. + (exit $ac_status); }; }; then
  5890. ac_cv_prog_cc_g=yes
  5891. else
  5892. - ac_cv_prog_cc_g=no
  5893. -fi
  5894. -rm -f conftest*
  5895. + echo "$as_me: failed program was:" >&5
  5896. +sed 's/^/| /' conftest.$ac_ext >&5
  5897. +ac_cv_prog_cc_g=no
  5898. fi
  5899. -
  5900. -echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  5901. +rm -f conftest.$ac_objext conftest.$ac_ext
  5902. +fi
  5903. +echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  5904. +echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  5905. if test "$ac_test_CFLAGS" = set; then
  5906. - CFLAGS="$ac_save_CFLAGS"
  5907. + CFLAGS=$ac_save_CFLAGS
  5908. elif test $ac_cv_prog_cc_g = yes; then
  5909. if test "$GCC" = yes; then
  5910. CFLAGS="-g -O2"
  5911. @@ -1280,295 +2477,548 @@
  5912. CFLAGS=
  5913. fi
  5914. fi
  5915. +echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  5916. +echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  5917. +if test "${ac_cv_prog_cc_stdc+set}" = set; then
  5918. + echo $ECHO_N "(cached) $ECHO_C" >&6
  5919. +else
  5920. + ac_cv_prog_cc_stdc=no
  5921. +ac_save_CC=$CC
  5922. +cat >conftest.$ac_ext <<_ACEOF
  5923. +#line $LINENO "configure"
  5924. +/* confdefs.h. */
  5925. +_ACEOF
  5926. +cat confdefs.h >>conftest.$ac_ext
  5927. +cat >>conftest.$ac_ext <<_ACEOF
  5928. +/* end confdefs.h. */
  5929. +#include <stdarg.h>
  5930. +#include <stdio.h>
  5931. +#include <sys/types.h>
  5932. +#include <sys/stat.h>
  5933. +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  5934. +struct buf { int x; };
  5935. +FILE * (*rcsopen) (struct buf *, struct stat *, int);
  5936. +static char *e (p, i)
  5937. + char **p;
  5938. + int i;
  5939. +{
  5940. + return p[i];
  5941. +}
  5942. +static char *f (char * (*g) (char **, int), char **p, ...)
  5943. +{
  5944. + char *s;
  5945. + va_list v;
  5946. + va_start (v,p);
  5947. + s = g (p, va_arg (v,int));
  5948. + va_end (v);
  5949. + return s;
  5950. +}
  5951. +int test (int i, double x);
  5952. +struct s1 {int (*f) (int a);};
  5953. +struct s2 {int (*f) (double a);};
  5954. +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  5955. +int argc;
  5956. +char **argv;
  5957. +int
  5958. +main ()
  5959. +{
  5960. +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  5961. + ;
  5962. + return 0;
  5963. +}
  5964. +_ACEOF
  5965. +# Don't try gcc -ansi; that turns off useful extensions and
  5966. +# breaks some systems' header files.
  5967. +# AIX -qlanglvl=ansi
  5968. +# Ultrix and OSF/1 -std1
  5969. +# HP-UX 10.20 and later -Ae
  5970. +# HP-UX older versions -Aa -D_HPUX_SOURCE
  5971. +# SVR4 -Xc -D__EXTENSIONS__
  5972. +for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  5973. +do
  5974. + CC="$ac_save_CC $ac_arg"
  5975. + rm -f conftest.$ac_objext
  5976. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5977. + (eval $ac_compile) 2>&5
  5978. + ac_status=$?
  5979. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5980. + (exit $ac_status); } &&
  5981. + { ac_try='test -s conftest.$ac_objext'
  5982. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5983. + (eval $ac_try) 2>&5
  5984. + ac_status=$?
  5985. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5986. + (exit $ac_status); }; }; then
  5987. + ac_cv_prog_cc_stdc=$ac_arg
  5988. +break
  5989. +else
  5990. + echo "$as_me: failed program was:" >&5
  5991. +sed 's/^/| /' conftest.$ac_ext >&5
  5992. +
  5993. +fi
  5994. +rm -f conftest.$ac_objext
  5995. +done
  5996. +rm -f conftest.$ac_ext conftest.$ac_objext
  5997. +CC=$ac_save_CC
  5998. -echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  5999. -echo "configure:1286: checking how to run the C preprocessor" >&5
  6000. -# On Suns, sometimes $CPP names a directory.
  6001. -if test -n "$CPP" && test -d "$CPP"; then
  6002. - CPP=
  6003. fi
  6004. -if test -z "$CPP"; then
  6005. -if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  6006. - echo $ac_n "(cached) $ac_c" 1>&6
  6007. -else
  6008. - # This must be in double quotes, not single quotes, because CPP may get
  6009. - # substituted into the Makefile and "${CC-cc}" will confuse make.
  6010. - CPP="${CC-cc} -E"
  6011. - # On the NeXT, cc -E runs the code through the compiler's parser,
  6012. - # not just through cpp.
  6013. - cat > conftest.$ac_ext <<EOF
  6014. -#line 1301 "configure"
  6015. -#include "confdefs.h"
  6016. -#include <assert.h>
  6017. -Syntax Error
  6018. -EOF
  6019. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  6020. -{ (eval echo configure:1307: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  6021. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  6022. -if test -z "$ac_err"; then
  6023. - :
  6024. -else
  6025. - echo "$ac_err" >&5
  6026. - echo "configure: failed program was:" >&5
  6027. - cat conftest.$ac_ext >&5
  6028. - rm -rf conftest*
  6029. - CPP="${CC-cc} -E -traditional-cpp"
  6030. - cat > conftest.$ac_ext <<EOF
  6031. -#line 1318 "configure"
  6032. -#include "confdefs.h"
  6033. -#include <assert.h>
  6034. -Syntax Error
  6035. -EOF
  6036. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  6037. -{ (eval echo configure:1324: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  6038. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  6039. -if test -z "$ac_err"; then
  6040. - :
  6041. -else
  6042. - echo "$ac_err" >&5
  6043. - echo "configure: failed program was:" >&5
  6044. - cat conftest.$ac_ext >&5
  6045. - rm -rf conftest*
  6046. - CPP="${CC-cc} -nologo -E"
  6047. - cat > conftest.$ac_ext <<EOF
  6048. -#line 1335 "configure"
  6049. -#include "confdefs.h"
  6050. -#include <assert.h>
  6051. -Syntax Error
  6052. -EOF
  6053. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  6054. -{ (eval echo configure:1341: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  6055. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  6056. -if test -z "$ac_err"; then
  6057. +
  6058. +case "x$ac_cv_prog_cc_stdc" in
  6059. + x|xno)
  6060. + echo "$as_me:$LINENO: result: none needed" >&5
  6061. +echo "${ECHO_T}none needed" >&6 ;;
  6062. + *)
  6063. + echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  6064. +echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  6065. + CC="$CC $ac_cv_prog_cc_stdc" ;;
  6066. +esac
  6067. +
  6068. +# Some people use a C++ compiler to compile C. Since we use `exit',
  6069. +# in C++ we need to declare it. In case someone uses the same compiler
  6070. +# for both compiling C and C++ we need to have the C++ compiler decide
  6071. +# the declaration of exit, since it's the most demanding environment.
  6072. +cat >conftest.$ac_ext <<_ACEOF
  6073. +#ifndef __cplusplus
  6074. + choke me
  6075. +#endif
  6076. +_ACEOF
  6077. +rm -f conftest.$ac_objext
  6078. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6079. + (eval $ac_compile) 2>&5
  6080. + ac_status=$?
  6081. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6082. + (exit $ac_status); } &&
  6083. + { ac_try='test -s conftest.$ac_objext'
  6084. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6085. + (eval $ac_try) 2>&5
  6086. + ac_status=$?
  6087. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6088. + (exit $ac_status); }; }; then
  6089. + for ac_declaration in \
  6090. + '' \
  6091. + 'extern "C" void std::exit (int) throw (); using std::exit;' \
  6092. + 'extern "C" void std::exit (int); using std::exit;' \
  6093. + 'extern "C" void exit (int) throw ();' \
  6094. + 'extern "C" void exit (int);' \
  6095. + 'void exit (int);'
  6096. +do
  6097. + cat >conftest.$ac_ext <<_ACEOF
  6098. +#line $LINENO "configure"
  6099. +/* confdefs.h. */
  6100. +_ACEOF
  6101. +cat confdefs.h >>conftest.$ac_ext
  6102. +cat >>conftest.$ac_ext <<_ACEOF
  6103. +/* end confdefs.h. */
  6104. +$ac_declaration
  6105. +#include <stdlib.h>
  6106. +int
  6107. +main ()
  6108. +{
  6109. +exit (42);
  6110. + ;
  6111. + return 0;
  6112. +}
  6113. +_ACEOF
  6114. +rm -f conftest.$ac_objext
  6115. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6116. + (eval $ac_compile) 2>&5
  6117. + ac_status=$?
  6118. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6119. + (exit $ac_status); } &&
  6120. + { ac_try='test -s conftest.$ac_objext'
  6121. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6122. + (eval $ac_try) 2>&5
  6123. + ac_status=$?
  6124. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6125. + (exit $ac_status); }; }; then
  6126. :
  6127. else
  6128. - echo "$ac_err" >&5
  6129. - echo "configure: failed program was:" >&5
  6130. - cat conftest.$ac_ext >&5
  6131. - rm -rf conftest*
  6132. - CPP=/lib/cpp
  6133. -fi
  6134. -rm -f conftest*
  6135. + echo "$as_me: failed program was:" >&5
  6136. +sed 's/^/| /' conftest.$ac_ext >&5
  6137. +
  6138. +continue
  6139. fi
  6140. -rm -f conftest*
  6141. +rm -f conftest.$ac_objext conftest.$ac_ext
  6142. + cat >conftest.$ac_ext <<_ACEOF
  6143. +#line $LINENO "configure"
  6144. +/* confdefs.h. */
  6145. +_ACEOF
  6146. +cat confdefs.h >>conftest.$ac_ext
  6147. +cat >>conftest.$ac_ext <<_ACEOF
  6148. +/* end confdefs.h. */
  6149. +$ac_declaration
  6150. +int
  6151. +main ()
  6152. +{
  6153. +exit (42);
  6154. + ;
  6155. + return 0;
  6156. +}
  6157. +_ACEOF
  6158. +rm -f conftest.$ac_objext
  6159. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6160. + (eval $ac_compile) 2>&5
  6161. + ac_status=$?
  6162. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6163. + (exit $ac_status); } &&
  6164. + { ac_try='test -s conftest.$ac_objext'
  6165. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6166. + (eval $ac_try) 2>&5
  6167. + ac_status=$?
  6168. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6169. + (exit $ac_status); }; }; then
  6170. + break
  6171. +else
  6172. + echo "$as_me: failed program was:" >&5
  6173. +sed 's/^/| /' conftest.$ac_ext >&5
  6174. +
  6175. fi
  6176. +rm -f conftest.$ac_objext conftest.$ac_ext
  6177. +done
  6178. rm -f conftest*
  6179. - ac_cv_prog_CPP="$CPP"
  6180. +if test -n "$ac_declaration"; then
  6181. + echo '#ifdef __cplusplus' >>confdefs.h
  6182. + echo $ac_declaration >>confdefs.h
  6183. + echo '#endif' >>confdefs.h
  6184. fi
  6185. - CPP="$ac_cv_prog_CPP"
  6186. +
  6187. else
  6188. - ac_cv_prog_CPP="$CPP"
  6189. + echo "$as_me: failed program was:" >&5
  6190. +sed 's/^/| /' conftest.$ac_ext >&5
  6191. +
  6192. fi
  6193. -echo "$ac_t""$CPP" 1>&6
  6194. +rm -f conftest.$ac_objext conftest.$ac_ext
  6195. +ac_ext=c
  6196. +ac_cpp='$CPP $CPPFLAGS'
  6197. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6198. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6199. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6200. +
  6201. missing_dir=`cd $ac_aux_dir && pwd`
  6202. for ac_prog in flex lex
  6203. do
  6204. -# Extract the first word of "$ac_prog", so it can be a program name with args.
  6205. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  6206. set dummy $ac_prog; ac_word=$2
  6207. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  6208. -echo "configure:1371: checking for $ac_word" >&5
  6209. -if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
  6210. - echo $ac_n "(cached) $ac_c" 1>&6
  6211. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  6212. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  6213. +if test "${ac_cv_prog_LEX+set}" = set; then
  6214. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6215. else
  6216. if test -n "$LEX"; then
  6217. ac_cv_prog_LEX="$LEX" # Let the user override the test.
  6218. else
  6219. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  6220. - ac_dummy="$PATH"
  6221. - for ac_dir in $ac_dummy; do
  6222. - test -z "$ac_dir" && ac_dir=.
  6223. - if test -f $ac_dir/$ac_word; then
  6224. - ac_cv_prog_LEX="$ac_prog"
  6225. - break
  6226. - fi
  6227. - done
  6228. - IFS="$ac_save_ifs"
  6229. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6230. +for as_dir in $PATH
  6231. +do
  6232. + IFS=$as_save_IFS
  6233. + test -z "$as_dir" && as_dir=.
  6234. + for ac_exec_ext in '' $ac_executable_extensions; do
  6235. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6236. + ac_cv_prog_LEX="$ac_prog"
  6237. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6238. + break 2
  6239. + fi
  6240. +done
  6241. +done
  6242. +
  6243. fi
  6244. fi
  6245. -LEX="$ac_cv_prog_LEX"
  6246. +LEX=$ac_cv_prog_LEX
  6247. if test -n "$LEX"; then
  6248. - echo "$ac_t""$LEX" 1>&6
  6249. + echo "$as_me:$LINENO: result: $LEX" >&5
  6250. +echo "${ECHO_T}$LEX" >&6
  6251. else
  6252. - echo "$ac_t""no" 1>&6
  6253. + echo "$as_me:$LINENO: result: no" >&5
  6254. +echo "${ECHO_T}no" >&6
  6255. fi
  6256. -test -n "$LEX" && break
  6257. + test -n "$LEX" && break
  6258. done
  6259. -test -n "$LEX" || LEX=""$missing_dir/missing flex""
  6260. +test -n "$LEX" || LEX="$missing_dir/missing flex"
  6261. -# Extract the first word of "flex", so it can be a program name with args.
  6262. -set dummy flex; ac_word=$2
  6263. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  6264. -echo "configure:1404: checking for $ac_word" >&5
  6265. -if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
  6266. - echo $ac_n "(cached) $ac_c" 1>&6
  6267. +for ac_prog in flex lex
  6268. +do
  6269. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  6270. +set dummy $ac_prog; ac_word=$2
  6271. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  6272. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  6273. +if test "${ac_cv_prog_LEX+set}" = set; then
  6274. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6275. else
  6276. if test -n "$LEX"; then
  6277. ac_cv_prog_LEX="$LEX" # Let the user override the test.
  6278. else
  6279. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  6280. - ac_dummy="$PATH"
  6281. - for ac_dir in $ac_dummy; do
  6282. - test -z "$ac_dir" && ac_dir=.
  6283. - if test -f $ac_dir/$ac_word; then
  6284. - ac_cv_prog_LEX="flex"
  6285. - break
  6286. - fi
  6287. - done
  6288. - IFS="$ac_save_ifs"
  6289. - test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
  6290. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6291. +for as_dir in $PATH
  6292. +do
  6293. + IFS=$as_save_IFS
  6294. + test -z "$as_dir" && as_dir=.
  6295. + for ac_exec_ext in '' $ac_executable_extensions; do
  6296. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6297. + ac_cv_prog_LEX="$ac_prog"
  6298. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6299. + break 2
  6300. + fi
  6301. +done
  6302. +done
  6303. +
  6304. fi
  6305. fi
  6306. -LEX="$ac_cv_prog_LEX"
  6307. +LEX=$ac_cv_prog_LEX
  6308. if test -n "$LEX"; then
  6309. - echo "$ac_t""$LEX" 1>&6
  6310. + echo "$as_me:$LINENO: result: $LEX" >&5
  6311. +echo "${ECHO_T}$LEX" >&6
  6312. else
  6313. - echo "$ac_t""no" 1>&6
  6314. + echo "$as_me:$LINENO: result: no" >&5
  6315. +echo "${ECHO_T}no" >&6
  6316. fi
  6317. + test -n "$LEX" && break
  6318. +done
  6319. +test -n "$LEX" || LEX=":"
  6320. +
  6321. if test -z "$LEXLIB"
  6322. then
  6323. - case "$LEX" in
  6324. - flex*) ac_lib=fl ;;
  6325. - *) ac_lib=l ;;
  6326. - esac
  6327. - echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
  6328. -echo "configure:1438: checking for yywrap in -l$ac_lib" >&5
  6329. -ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
  6330. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  6331. - echo $ac_n "(cached) $ac_c" 1>&6
  6332. -else
  6333. - ac_save_LIBS="$LIBS"
  6334. -LIBS="-l$ac_lib $LIBS"
  6335. -cat > conftest.$ac_ext <<EOF
  6336. -#line 1446 "configure"
  6337. -#include "confdefs.h"
  6338. + echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
  6339. +echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
  6340. +if test "${ac_cv_lib_fl_yywrap+set}" = set; then
  6341. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6342. +else
  6343. + ac_check_lib_save_LIBS=$LIBS
  6344. +LIBS="-lfl $LIBS"
  6345. +cat >conftest.$ac_ext <<_ACEOF
  6346. +#line $LINENO "configure"
  6347. +/* confdefs.h. */
  6348. +_ACEOF
  6349. +cat confdefs.h >>conftest.$ac_ext
  6350. +cat >>conftest.$ac_ext <<_ACEOF
  6351. +/* end confdefs.h. */
  6352. +
  6353. /* Override any gcc2 internal prototype to avoid an error. */
  6354. +#ifdef __cplusplus
  6355. +extern "C"
  6356. +#endif
  6357. /* We use char because int might match the return type of a gcc2
  6358. - builtin and then its argument prototype would still apply. */
  6359. -char yywrap();
  6360. + builtin and then its argument prototype would still apply. */
  6361. +char yywrap ();
  6362. +int
  6363. +main ()
  6364. +{
  6365. +yywrap ();
  6366. + ;
  6367. + return 0;
  6368. +}
  6369. +_ACEOF
  6370. +rm -f conftest.$ac_objext conftest$ac_exeext
  6371. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6372. + (eval $ac_link) 2>&5
  6373. + ac_status=$?
  6374. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6375. + (exit $ac_status); } &&
  6376. + { ac_try='test -s conftest$ac_exeext'
  6377. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6378. + (eval $ac_try) 2>&5
  6379. + ac_status=$?
  6380. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6381. + (exit $ac_status); }; }; then
  6382. + ac_cv_lib_fl_yywrap=yes
  6383. +else
  6384. + echo "$as_me: failed program was:" >&5
  6385. +sed 's/^/| /' conftest.$ac_ext >&5
  6386. +
  6387. +ac_cv_lib_fl_yywrap=no
  6388. +fi
  6389. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  6390. +LIBS=$ac_check_lib_save_LIBS
  6391. +fi
  6392. +echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
  6393. +echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
  6394. +if test $ac_cv_lib_fl_yywrap = yes; then
  6395. + LEXLIB="-lfl"
  6396. +else
  6397. + echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
  6398. +echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
  6399. +if test "${ac_cv_lib_l_yywrap+set}" = set; then
  6400. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6401. +else
  6402. + ac_check_lib_save_LIBS=$LIBS
  6403. +LIBS="-ll $LIBS"
  6404. +cat >conftest.$ac_ext <<_ACEOF
  6405. +#line $LINENO "configure"
  6406. +/* confdefs.h. */
  6407. +_ACEOF
  6408. +cat confdefs.h >>conftest.$ac_ext
  6409. +cat >>conftest.$ac_ext <<_ACEOF
  6410. +/* end confdefs.h. */
  6411. -int main() {
  6412. -yywrap()
  6413. -; return 0; }
  6414. -EOF
  6415. -if { (eval echo configure:1457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6416. - rm -rf conftest*
  6417. - eval "ac_cv_lib_$ac_lib_var=yes"
  6418. +/* Override any gcc2 internal prototype to avoid an error. */
  6419. +#ifdef __cplusplus
  6420. +extern "C"
  6421. +#endif
  6422. +/* We use char because int might match the return type of a gcc2
  6423. + builtin and then its argument prototype would still apply. */
  6424. +char yywrap ();
  6425. +int
  6426. +main ()
  6427. +{
  6428. +yywrap ();
  6429. + ;
  6430. + return 0;
  6431. +}
  6432. +_ACEOF
  6433. +rm -f conftest.$ac_objext conftest$ac_exeext
  6434. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6435. + (eval $ac_link) 2>&5
  6436. + ac_status=$?
  6437. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6438. + (exit $ac_status); } &&
  6439. + { ac_try='test -s conftest$ac_exeext'
  6440. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6441. + (eval $ac_try) 2>&5
  6442. + ac_status=$?
  6443. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6444. + (exit $ac_status); }; }; then
  6445. + ac_cv_lib_l_yywrap=yes
  6446. else
  6447. - echo "configure: failed program was:" >&5
  6448. - cat conftest.$ac_ext >&5
  6449. - rm -rf conftest*
  6450. - eval "ac_cv_lib_$ac_lib_var=no"
  6451. -fi
  6452. -rm -f conftest*
  6453. -LIBS="$ac_save_LIBS"
  6454. + echo "$as_me: failed program was:" >&5
  6455. +sed 's/^/| /' conftest.$ac_ext >&5
  6456. +ac_cv_lib_l_yywrap=no
  6457. fi
  6458. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6459. - echo "$ac_t""yes" 1>&6
  6460. - LEXLIB="-l$ac_lib"
  6461. -else
  6462. - echo "$ac_t""no" 1>&6
  6463. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  6464. +LIBS=$ac_check_lib_save_LIBS
  6465. +fi
  6466. +echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
  6467. +echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
  6468. +if test $ac_cv_lib_l_yywrap = yes; then
  6469. + LEXLIB="-ll"
  6470. +fi
  6471. +
  6472. fi
  6473. fi
  6474. -echo $ac_n "checking lex output file root""... $ac_c" 1>&6
  6475. -echo "configure:1480: checking lex output file root" >&5
  6476. -if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
  6477. - echo $ac_n "(cached) $ac_c" 1>&6
  6478. +if test "x$LEX" != "x:"; then
  6479. + echo "$as_me:$LINENO: checking lex output file root" >&5
  6480. +echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
  6481. +if test "${ac_cv_prog_lex_root+set}" = set; then
  6482. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6483. else
  6484. # The minimal lex program is just a single line: %%. But some broken lexes
  6485. # (Solaris, I think it was) want two %% lines, so accommodate them.
  6486. -echo '%%
  6487. -%%' | $LEX
  6488. +cat >conftest.l <<_ACEOF
  6489. +%%
  6490. +%%
  6491. +_ACEOF
  6492. +{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
  6493. + (eval $LEX conftest.l) 2>&5
  6494. + ac_status=$?
  6495. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6496. + (exit $ac_status); }
  6497. if test -f lex.yy.c; then
  6498. ac_cv_prog_lex_root=lex.yy
  6499. elif test -f lexyy.c; then
  6500. ac_cv_prog_lex_root=lexyy
  6501. else
  6502. - { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
  6503. + { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
  6504. +echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
  6505. + { (exit 1); exit 1; }; }
  6506. fi
  6507. fi
  6508. -
  6509. -echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
  6510. +echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
  6511. +echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
  6512. +rm -f conftest.l
  6513. LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
  6514. -echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
  6515. -echo "configure:1501: checking whether yytext is a pointer" >&5
  6516. -if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
  6517. - echo $ac_n "(cached) $ac_c" 1>&6
  6518. +echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
  6519. +echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
  6520. +if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
  6521. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6522. else
  6523. # POSIX says lex can declare yytext either as a pointer or an array; the
  6524. # default is implementation-dependent. Figure out which it is, since
  6525. # not all implementations provide the %pointer and %array declarations.
  6526. ac_cv_prog_lex_yytext_pointer=no
  6527. echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
  6528. -ac_save_LIBS="$LIBS"
  6529. +ac_save_LIBS=$LIBS
  6530. LIBS="$LIBS $LEXLIB"
  6531. -cat > conftest.$ac_ext <<EOF
  6532. -#line 1513 "configure"
  6533. -#include "confdefs.h"
  6534. +cat >conftest.$ac_ext <<_ACEOF
  6535. `cat $LEX_OUTPUT_ROOT.c`
  6536. -int main() {
  6537. -
  6538. -; return 0; }
  6539. -EOF
  6540. -if { (eval echo configure:1520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6541. - rm -rf conftest*
  6542. +_ACEOF
  6543. +rm -f conftest.$ac_objext conftest$ac_exeext
  6544. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6545. + (eval $ac_link) 2>&5
  6546. + ac_status=$?
  6547. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6548. + (exit $ac_status); } &&
  6549. + { ac_try='test -s conftest$ac_exeext'
  6550. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6551. + (eval $ac_try) 2>&5
  6552. + ac_status=$?
  6553. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6554. + (exit $ac_status); }; }; then
  6555. ac_cv_prog_lex_yytext_pointer=yes
  6556. else
  6557. - echo "configure: failed program was:" >&5
  6558. - cat conftest.$ac_ext >&5
  6559. + echo "$as_me: failed program was:" >&5
  6560. +sed 's/^/| /' conftest.$ac_ext >&5
  6561. +
  6562. fi
  6563. -rm -f conftest*
  6564. -LIBS="$ac_save_LIBS"
  6565. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  6566. +LIBS=$ac_save_LIBS
  6567. rm -f "${LEX_OUTPUT_ROOT}.c"
  6568. fi
  6569. -
  6570. -echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
  6571. +echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
  6572. +echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
  6573. if test $ac_cv_prog_lex_yytext_pointer = yes; then
  6574. - cat >> confdefs.h <<\EOF
  6575. +
  6576. +cat >>confdefs.h <<\_ACEOF
  6577. #define YYTEXT_POINTER 1
  6578. -EOF
  6579. +_ACEOF
  6580. +
  6581. +fi
  6582. fi
  6583. for ac_prog in 'bison -y' byacc
  6584. do
  6585. -# Extract the first word of "$ac_prog", so it can be a program name with args.
  6586. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  6587. set dummy $ac_prog; ac_word=$2
  6588. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  6589. -echo "configure:1546: checking for $ac_word" >&5
  6590. -if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
  6591. - echo $ac_n "(cached) $ac_c" 1>&6
  6592. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  6593. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  6594. +if test "${ac_cv_prog_YACC+set}" = set; then
  6595. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6596. else
  6597. if test -n "$YACC"; then
  6598. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  6599. else
  6600. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  6601. - ac_dummy="$PATH"
  6602. - for ac_dir in $ac_dummy; do
  6603. - test -z "$ac_dir" && ac_dir=.
  6604. - if test -f $ac_dir/$ac_word; then
  6605. - ac_cv_prog_YACC="$ac_prog"
  6606. - break
  6607. - fi
  6608. - done
  6609. - IFS="$ac_save_ifs"
  6610. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6611. +for as_dir in $PATH
  6612. +do
  6613. + IFS=$as_save_IFS
  6614. + test -z "$as_dir" && as_dir=.
  6615. + for ac_exec_ext in '' $ac_executable_extensions; do
  6616. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6617. + ac_cv_prog_YACC="$ac_prog"
  6618. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6619. + break 2
  6620. + fi
  6621. +done
  6622. +done
  6623. +
  6624. fi
  6625. fi
  6626. -YACC="$ac_cv_prog_YACC"
  6627. +YACC=$ac_cv_prog_YACC
  6628. if test -n "$YACC"; then
  6629. - echo "$ac_t""$YACC" 1>&6
  6630. + echo "$as_me:$LINENO: result: $YACC" >&5
  6631. +echo "${ECHO_T}$YACC" >&6
  6632. else
  6633. - echo "$ac_t""no" 1>&6
  6634. + echo "$as_me:$LINENO: result: no" >&5
  6635. +echo "${ECHO_T}no" >&6
  6636. fi
  6637. -test -n "$YACC" && break
  6638. + test -n "$YACC" && break
  6639. done
  6640. test -n "$YACC" || YACC="yacc"
  6641. @@ -1579,126 +3029,77 @@
  6642. # SunOS /usr/etc/install
  6643. # IRIX /sbin/install
  6644. # AIX /bin/install
  6645. +# AmigaOS /C/install, which installs bootblocks on floppy discs
  6646. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  6647. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  6648. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  6649. # ./install, which can be erroneously created by make from ./install.sh.
  6650. -echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  6651. -echo "configure:1588: checking for a BSD compatible install" >&5
  6652. +echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  6653. +echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  6654. if test -z "$INSTALL"; then
  6655. -if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  6656. - echo $ac_n "(cached) $ac_c" 1>&6
  6657. +if test "${ac_cv_path_install+set}" = set; then
  6658. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6659. else
  6660. - IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
  6661. - for ac_dir in $PATH; do
  6662. - # Account for people who put trailing slashes in PATH elements.
  6663. - case "$ac_dir/" in
  6664. - /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  6665. - *)
  6666. - # OSF1 and SCO ODT 3.0 have their own names for install.
  6667. - # Don't use installbsd from OSF since it installs stuff as root
  6668. - # by default.
  6669. - for ac_prog in ginstall scoinst install; do
  6670. - if test -f $ac_dir/$ac_prog; then
  6671. - if test $ac_prog = install &&
  6672. - grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  6673. - # AIX install. It has an incompatible calling convention.
  6674. - :
  6675. - else
  6676. - ac_cv_path_install="$ac_dir/$ac_prog -c"
  6677. - break 2
  6678. - fi
  6679. - fi
  6680. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6681. +for as_dir in $PATH
  6682. +do
  6683. + IFS=$as_save_IFS
  6684. + test -z "$as_dir" && as_dir=.
  6685. + # Account for people who put trailing slashes in PATH elements.
  6686. +case $as_dir/ in
  6687. + ./ | .// | /cC/* | \
  6688. + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  6689. + /usr/ucb/* ) ;;
  6690. + *)
  6691. + # OSF1 and SCO ODT 3.0 have their own names for install.
  6692. + # Don't use installbsd from OSF since it installs stuff as root
  6693. + # by default.
  6694. + for ac_prog in ginstall scoinst install; do
  6695. + for ac_exec_ext in '' $ac_executable_extensions; do
  6696. + if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  6697. + if test $ac_prog = install &&
  6698. + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  6699. + # AIX install. It has an incompatible calling convention.
  6700. + :
  6701. + elif test $ac_prog = install &&
  6702. + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  6703. + # program-specific install script used by HP pwplus--don't use.
  6704. + :
  6705. + else
  6706. + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  6707. + break 3
  6708. + fi
  6709. + fi
  6710. done
  6711. - ;;
  6712. - esac
  6713. - done
  6714. - IFS="$ac_save_IFS"
  6715. + done
  6716. + ;;
  6717. +esac
  6718. +done
  6719. +
  6720. fi
  6721. if test "${ac_cv_path_install+set}" = set; then
  6722. - INSTALL="$ac_cv_path_install"
  6723. + INSTALL=$ac_cv_path_install
  6724. else
  6725. # As a last resort, use the slow shell script. We don't cache a
  6726. # path for INSTALL within a source directory, because that will
  6727. # break other packages using the cache if that directory is
  6728. # removed, or if the path is relative.
  6729. - INSTALL="$ac_install_sh"
  6730. + INSTALL=$ac_install_sh
  6731. fi
  6732. fi
  6733. -echo "$ac_t""$INSTALL" 1>&6
  6734. +echo "$as_me:$LINENO: result: $INSTALL" >&5
  6735. +echo "${ECHO_T}$INSTALL" >&6
  6736. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  6737. # It thinks the first close brace ends the variable substitution.
  6738. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  6739. -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  6740. +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  6741. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  6742. -echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
  6743. -echo "configure:1642: checking for Cygwin environment" >&5
  6744. -if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
  6745. - echo $ac_n "(cached) $ac_c" 1>&6
  6746. -else
  6747. - cat > conftest.$ac_ext <<EOF
  6748. -#line 1647 "configure"
  6749. -#include "confdefs.h"
  6750. -
  6751. -int main() {
  6752. -
  6753. -#ifndef __CYGWIN__
  6754. -#define __CYGWIN__ __CYGWIN32__
  6755. -#endif
  6756. -return __CYGWIN__;
  6757. -; return 0; }
  6758. -EOF
  6759. -if { (eval echo configure:1658: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  6760. - rm -rf conftest*
  6761. - ac_cv_cygwin=yes
  6762. -else
  6763. - echo "configure: failed program was:" >&5
  6764. - cat conftest.$ac_ext >&5
  6765. - rm -rf conftest*
  6766. - ac_cv_cygwin=no
  6767. -fi
  6768. -rm -f conftest*
  6769. -rm -f conftest*
  6770. -fi
  6771. -
  6772. -echo "$ac_t""$ac_cv_cygwin" 1>&6
  6773. -CYGWIN=
  6774. -test "$ac_cv_cygwin" = yes && CYGWIN=yes
  6775. -echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
  6776. -echo "configure:1675: checking for mingw32 environment" >&5
  6777. -if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
  6778. - echo $ac_n "(cached) $ac_c" 1>&6
  6779. -else
  6780. - cat > conftest.$ac_ext <<EOF
  6781. -#line 1680 "configure"
  6782. -#include "confdefs.h"
  6783. -
  6784. -int main() {
  6785. -return __MINGW32__;
  6786. -; return 0; }
  6787. -EOF
  6788. -if { (eval echo configure:1687: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  6789. - rm -rf conftest*
  6790. - ac_cv_mingw32=yes
  6791. -else
  6792. - echo "configure: failed program was:" >&5
  6793. - cat conftest.$ac_ext >&5
  6794. - rm -rf conftest*
  6795. - ac_cv_mingw32=no
  6796. -fi
  6797. -rm -f conftest*
  6798. -rm -f conftest*
  6799. -fi
  6800. -
  6801. -echo "$ac_t""$ac_cv_mingw32" 1>&6
  6802. -MINGW32=
  6803. -test "$ac_cv_mingw32" = yes && MINGW32=yes
  6804. # Check whether --enable-shared or --disable-shared was given.
  6805. if test "${enable_shared+set}" = set; then
  6806. enableval="$enable_shared"
  6807. @@ -1720,8 +3121,7 @@
  6808. esac
  6809. else
  6810. enable_shared=yes
  6811. -fi
  6812. -
  6813. +fi;
  6814. # Check whether --enable-static or --disable-static was given.
  6815. if test "${enable_static+set}" = set; then
  6816. enableval="$enable_static"
  6817. @@ -1743,8 +3143,7 @@
  6818. esac
  6819. else
  6820. enable_static=yes
  6821. -fi
  6822. -
  6823. +fi;
  6824. # Check whether --enable-fast-install or --disable-fast-install was given.
  6825. if test "${enable_fast_install+set}" = set; then
  6826. enableval="$enable_fast_install"
  6827. @@ -1766,21 +3165,31 @@
  6828. esac
  6829. else
  6830. enable_fast_install=yes
  6831. +fi;
  6832. +# Find the correct PATH separator. Usually this is `:', but
  6833. +# DJGPP uses `;' like DOS.
  6834. +if test "X${PATH_SEPARATOR+set}" != Xset; then
  6835. + UNAME=${UNAME-`uname 2>/dev/null`}
  6836. + case X$UNAME in
  6837. + *-DOS) lt_cv_sys_path_separator=';' ;;
  6838. + *) lt_cv_sys_path_separator=':' ;;
  6839. + esac
  6840. + PATH_SEPARATOR=$lt_cv_sys_path_separator
  6841. fi
  6842. +
  6843. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  6844. if test "${with_gnu_ld+set}" = set; then
  6845. withval="$with_gnu_ld"
  6846. test "$withval" = no || with_gnu_ld=yes
  6847. else
  6848. with_gnu_ld=no
  6849. -fi
  6850. -
  6851. +fi;
  6852. ac_prog=ld
  6853. if test "$GCC" = yes; then
  6854. # Check if gcc -print-prog-name=ld gives a path.
  6855. - echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
  6856. -echo "configure:1784: checking for ld used by GCC" >&5
  6857. + echo "$as_me:$LINENO: checking for ld used by GCC" >&5
  6858. +echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
  6859. case $host in
  6860. *-*-mingw*)
  6861. # gcc leaves a trailing carriage return which upsets mingw
  6862. @@ -1809,17 +3218,17 @@
  6863. ;;
  6864. esac
  6865. elif test "$with_gnu_ld" = yes; then
  6866. - echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
  6867. -echo "configure:1814: checking for GNU ld" >&5
  6868. + echo "$as_me:$LINENO: checking for GNU ld" >&5
  6869. +echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  6870. else
  6871. - echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
  6872. -echo "configure:1817: checking for non-GNU ld" >&5
  6873. + echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  6874. +echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  6875. fi
  6876. -if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
  6877. - echo $ac_n "(cached) $ac_c" 1>&6
  6878. +if test "${lt_cv_path_LD+set}" = set; then
  6879. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6880. else
  6881. if test -z "$LD"; then
  6882. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  6883. + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6884. for ac_dir in $PATH; do
  6885. test -z "$ac_dir" && ac_dir=.
  6886. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  6887. @@ -1842,15 +3251,19 @@
  6888. LD="$lt_cv_path_LD"
  6889. if test -n "$LD"; then
  6890. - echo "$ac_t""$LD" 1>&6
  6891. + echo "$as_me:$LINENO: result: $LD" >&5
  6892. +echo "${ECHO_T}$LD" >&6
  6893. else
  6894. - echo "$ac_t""no" 1>&6
  6895. + echo "$as_me:$LINENO: result: no" >&5
  6896. +echo "${ECHO_T}no" >&6
  6897. fi
  6898. -test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
  6899. -echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
  6900. -echo "configure:1852: checking if the linker ($LD) is GNU ld" >&5
  6901. -if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
  6902. - echo $ac_n "(cached) $ac_c" 1>&6
  6903. +test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  6904. +echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  6905. + { (exit 1); exit 1; }; }
  6906. +echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  6907. +echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  6908. +if test "${lt_cv_prog_gnu_ld+set}" = set; then
  6909. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6910. else
  6911. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  6912. if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  6913. @@ -1859,33 +3272,33 @@
  6914. lt_cv_prog_gnu_ld=no
  6915. fi
  6916. fi
  6917. -
  6918. -echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
  6919. +echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  6920. +echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
  6921. with_gnu_ld=$lt_cv_prog_gnu_ld
  6922. -echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
  6923. -echo "configure:1869: checking for $LD option to reload object files" >&5
  6924. -if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
  6925. - echo $ac_n "(cached) $ac_c" 1>&6
  6926. +echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  6927. +echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
  6928. +if test "${lt_cv_ld_reload_flag+set}" = set; then
  6929. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6930. else
  6931. lt_cv_ld_reload_flag='-r'
  6932. fi
  6933. -
  6934. -echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
  6935. +echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  6936. +echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
  6937. reload_flag=$lt_cv_ld_reload_flag
  6938. test -n "$reload_flag" && reload_flag=" $reload_flag"
  6939. -echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
  6940. -echo "configure:1881: checking for BSD-compatible nm" >&5
  6941. -if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
  6942. - echo $ac_n "(cached) $ac_c" 1>&6
  6943. +echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  6944. +echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
  6945. +if test "${lt_cv_path_NM+set}" = set; then
  6946. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6947. else
  6948. if test -n "$NM"; then
  6949. # Let the user override the test.
  6950. lt_cv_path_NM="$NM"
  6951. else
  6952. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  6953. + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6954. for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
  6955. test -z "$ac_dir" && ac_dir=.
  6956. tmp_nm=$ac_dir/${ac_tool_prefix}nm
  6957. @@ -1912,33 +3325,109 @@
  6958. fi
  6959. NM="$lt_cv_path_NM"
  6960. -echo "$ac_t""$NM" 1>&6
  6961. +echo "$as_me:$LINENO: result: $NM" >&5
  6962. +echo "${ECHO_T}$NM" >&6
  6963. +
  6964. +echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  6965. +echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
  6966. +if test "${lt_cv_path_SED+set}" = set; then
  6967. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6968. +else
  6969. + # Loop through the user's path and test for sed and gsed.
  6970. +# Then use that list of sed's as ones to test for truncation.
  6971. +as_executable_p="test -f"
  6972. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6973. +for as_dir in $PATH
  6974. +do
  6975. + IFS=$as_save_IFS
  6976. + test -z "$as_dir" && as_dir=.
  6977. + for ac_prog in sed gsed; do
  6978. + for ac_exec_ext in '' $ac_executable_extensions; do
  6979. + if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  6980. + _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
  6981. + fi
  6982. + done
  6983. + done
  6984. +done
  6985. +
  6986. + # Create a temporary directory, and hook for its removal unless debugging.
  6987. +$debug ||
  6988. +{
  6989. + trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  6990. + trap '{ (exit 1); exit 1; }' 1 2 13 15
  6991. +}
  6992. +
  6993. +# Create a (secure) tmp directory for tmp files.
  6994. +: ${TMPDIR=/tmp}
  6995. +{
  6996. + tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
  6997. + test -n "$tmp" && test -d "$tmp"
  6998. +} ||
  6999. +{
  7000. + tmp=$TMPDIR/sed$$-$RANDOM
  7001. + (umask 077 && mkdir $tmp)
  7002. +} ||
  7003. +{
  7004. + echo "$me: cannot create a temporary directory in $TMPDIR" >&2
  7005. + { (exit 1); exit 1; }
  7006. +}
  7007. + _max=0
  7008. + _count=0
  7009. + # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  7010. + # along with /bin/sed that truncates output.
  7011. + for _sed in $_sed_list /usr/xpg4/bin/sed; do
  7012. + test ! -f ${_sed} && break
  7013. + cat /dev/null > "$tmp/sed.in"
  7014. + _count=0
  7015. + echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
  7016. + # Check for GNU sed and select it if it is found.
  7017. + if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
  7018. + lt_cv_path_SED=${_sed}
  7019. + break
  7020. + fi
  7021. + while true; do
  7022. + cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
  7023. + mv "$tmp/sed.tmp" "$tmp/sed.in"
  7024. + cp "$tmp/sed.in" "$tmp/sed.nl"
  7025. + echo >>"$tmp/sed.nl"
  7026. + ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
  7027. + cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
  7028. + # 40000 chars as input seems more than enough
  7029. + test $_count -gt 10 && break
  7030. + _count=`expr $_count + 1`
  7031. + if test $_count -gt $_max; then
  7032. + _max=$_count
  7033. + lt_cv_path_SED=$_sed
  7034. + fi
  7035. + done
  7036. + done
  7037. + rm -rf "$tmp"
  7038. -echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
  7039. -echo "configure:1919: checking whether ln -s works" >&5
  7040. -if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
  7041. - echo $ac_n "(cached) $ac_c" 1>&6
  7042. -else
  7043. - rm -f conftestdata
  7044. -if ln -s X conftestdata 2>/dev/null
  7045. -then
  7046. - rm -f conftestdata
  7047. - ac_cv_prog_LN_S="ln -s"
  7048. -else
  7049. - ac_cv_prog_LN_S=ln
  7050. fi
  7051. +
  7052. +if test "X$SED" != "X"; then
  7053. + lt_cv_path_SED=$SED
  7054. +else
  7055. + SED=$lt_cv_path_SED
  7056. fi
  7057. -LN_S="$ac_cv_prog_LN_S"
  7058. -if test "$ac_cv_prog_LN_S" = "ln -s"; then
  7059. - echo "$ac_t""yes" 1>&6
  7060. +echo "$as_me:$LINENO: result: $SED" >&5
  7061. +echo "${ECHO_T}$SED" >&6
  7062. +
  7063. +echo "$as_me:$LINENO: checking whether ln -s works" >&5
  7064. +echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
  7065. +LN_S=$as_ln_s
  7066. +if test "$LN_S" = "ln -s"; then
  7067. + echo "$as_me:$LINENO: result: yes" >&5
  7068. +echo "${ECHO_T}yes" >&6
  7069. else
  7070. - echo "$ac_t""no" 1>&6
  7071. + echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  7072. +echo "${ECHO_T}no, using $LN_S" >&6
  7073. fi
  7074. -echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
  7075. -echo "configure:1940: checking how to recognise dependant libraries" >&5
  7076. -if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
  7077. - echo $ac_n "(cached) $ac_c" 1>&6
  7078. +echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
  7079. +echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
  7080. +if test "${lt_cv_deplibs_check_method+set}" = set; then
  7081. + echo $ECHO_N "(cached) $ECHO_C" >&6
  7082. else
  7083. lt_cv_file_magic_cmd='$MAGIC_CMD'
  7084. lt_cv_file_magic_test_file=
  7085. @@ -1949,7 +3438,7 @@
  7086. # `unknown' -- same as none, but documents that we really don't know.
  7087. # 'pass_all' -- all dependencies passed with no checks.
  7088. # 'test_compile' -- check by making test program.
  7089. -# ['file_magic [regex]'] -- check by looking for files in library path
  7090. +# 'file_magic [[regex]]' -- check by looking for files in library path
  7091. # which responds to the $file_magic_cmd with a given egrep regex.
  7092. # If you have `file' or equivalent on your system and you're not sure
  7093. # whether `pass_all' will *always* work, you probably want this one.
  7094. @@ -1978,7 +3467,7 @@
  7095. lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
  7096. lt_cv_file_magic_cmd='/usr/bin/file -L'
  7097. case "$host_os" in
  7098. - rhapsody* | darwin1.012)
  7099. + rhapsody* | darwin1.[012])
  7100. lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
  7101. ;;
  7102. *) # Darwin 1.3 on
  7103. @@ -2013,9 +3502,9 @@
  7104. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  7105. ;;
  7106. -irix5* | irix6*)
  7107. +irix5* | irix6* | nonstopux*)
  7108. case $host_os in
  7109. - irix5*)
  7110. + irix5* | nonstopux*)
  7111. # this will be overridden with pass_all, but let us keep it just in case
  7112. lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
  7113. ;;
  7114. @@ -2037,7 +3526,7 @@
  7115. # This must be Linux ELF.
  7116. linux-gnu*)
  7117. case $host_cpu in
  7118. - alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* | s390* )
  7119. + alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | arm* | m68k)
  7120. lt_cv_deplibs_check_method=pass_all ;;
  7121. *)
  7122. # glibc up to 2.1.1 does not perform some relocations on ARM
  7123. @@ -2060,6 +3549,16 @@
  7124. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  7125. ;;
  7126. +openbsd*)
  7127. + lt_cv_file_magic_cmd=/usr/bin/file
  7128. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  7129. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7130. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
  7131. + else
  7132. + lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
  7133. + fi
  7134. + ;;
  7135. +
  7136. osf3* | osf4* | osf5*)
  7137. # this will be overridden with pass_all, but let us keep it just in case
  7138. lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
  7139. @@ -2098,89 +3597,32 @@
  7140. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  7141. lt_cv_file_magic_test_file=/lib/libc.so
  7142. ;;
  7143. + siemens)
  7144. + lt_cv_deplibs_check_method=pass_all
  7145. + ;;
  7146. esac
  7147. ;;
  7148. esac
  7149. fi
  7150. -
  7151. -echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
  7152. +echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  7153. +echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
  7154. file_magic_cmd=$lt_cv_file_magic_cmd
  7155. deplibs_check_method=$lt_cv_deplibs_check_method
  7156. -echo $ac_n "checking for object suffix""... $ac_c" 1>&6
  7157. -echo "configure:2113: checking for object suffix" >&5
  7158. -if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
  7159. - echo $ac_n "(cached) $ac_c" 1>&6
  7160. -else
  7161. - rm -f conftest*
  7162. -echo 'int i = 1;' > conftest.$ac_ext
  7163. -if { (eval echo configure:2119: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  7164. - for ac_file in conftest.*; do
  7165. - case $ac_file in
  7166. - *.c) ;;
  7167. - *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
  7168. - esac
  7169. - done
  7170. -else
  7171. - { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
  7172. -fi
  7173. -rm -f conftest*
  7174. -fi
  7175. -
  7176. -echo "$ac_t""$ac_cv_objext" 1>&6
  7177. -OBJEXT=$ac_cv_objext
  7178. -ac_objext=$ac_cv_objext
  7179. -
  7180. -
  7181. -
  7182. -echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
  7183. -echo "configure:2139: checking for executable suffix" >&5
  7184. -if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
  7185. - echo $ac_n "(cached) $ac_c" 1>&6
  7186. -else
  7187. - if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
  7188. - ac_cv_exeext=.exe
  7189. -else
  7190. - rm -f conftest*
  7191. - echo 'int main () { return 0; }' > conftest.$ac_ext
  7192. - ac_cv_exeext=
  7193. - if { (eval echo configure:2149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  7194. - for file in conftest.*; do
  7195. - case $file in
  7196. - *.c | *.o | *.obj) ;;
  7197. - *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
  7198. - esac
  7199. - done
  7200. - else
  7201. - { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
  7202. - fi
  7203. - rm -f conftest*
  7204. - test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
  7205. -fi
  7206. -fi
  7207. -EXEEXT=""
  7208. -test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
  7209. -echo "$ac_t""${ac_cv_exeext}" 1>&6
  7210. -ac_exeext=$EXEEXT
  7211. -if test $host != $build; then
  7212. - ac_tool_prefix=${host_alias}-
  7213. -else
  7214. - ac_tool_prefix=
  7215. -fi
  7216. # Check for command to grab the raw symbol name followed by C symbol from nm.
  7217. -echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
  7218. -echo "configure:2180: checking command to parse $NM output" >&5
  7219. -if eval "test \"`echo '$''{'lt_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
  7220. - echo $ac_n "(cached) $ac_c" 1>&6
  7221. +echo "$as_me:$LINENO: checking command to parse $NM output" >&5
  7222. +echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
  7223. +if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  7224. + echo $ECHO_N "(cached) $ECHO_C" >&6
  7225. else
  7226. -
  7227. +
  7228. # These are sane defaults that work on at least a few old systems.
  7229. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  7230. @@ -2196,6 +3638,9 @@
  7231. # Transform an extracted symbol line into a proper C declaration
  7232. lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
  7233. +# Transform an extracted symbol line into symbol name and symbol address
  7234. +lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  7235. +
  7236. # Define system-specific variables.
  7237. case $host_os in
  7238. aix*)
  7239. @@ -2206,10 +3651,14 @@
  7240. ;;
  7241. hpux*) # Its linker distinguishes data from code symbols
  7242. lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  7243. + lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  7244. ;;
  7245. -irix*)
  7246. +irix* | nonstopux*)
  7247. symcode='[BCDEGRST]'
  7248. ;;
  7249. +osf*)
  7250. + symcode='[BCDEGQRST]'
  7251. + ;;
  7252. solaris* | sysv5*)
  7253. symcode='[BDT]'
  7254. ;;
  7255. @@ -2252,10 +3701,18 @@
  7256. int main(){nm_test_var='a';nm_test_func();return(0);}
  7257. EOF
  7258. - if { (eval echo configure:2256: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  7259. + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7260. + (eval $ac_compile) 2>&5
  7261. + ac_status=$?
  7262. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7263. + (exit $ac_status); }; then
  7264. # Now try to grab the symbols.
  7265. nlist=conftest.nm
  7266. - if { (eval echo configure:2259: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5; } && test -s "$nlist"; then
  7267. + if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  7268. + (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  7269. + ac_status=$?
  7270. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7271. + (exit $ac_status); } && test -s "$nlist"; then
  7272. # Try sorting and uniquifying the output.
  7273. if sort "$nlist" | uniq > "$nlist"T; then
  7274. mv -f "$nlist"T "$nlist"
  7275. @@ -2277,23 +3734,23 @@
  7276. cat <<EOF >> conftest.$ac_ext
  7277. #if defined (__STDC__) && __STDC__
  7278. -# define lt_ptr_t void *
  7279. +# define lt_ptr void *
  7280. #else
  7281. -# define lt_ptr_t char *
  7282. +# define lt_ptr char *
  7283. # define const
  7284. #endif
  7285. /* The mapping between symbol names and symbols. */
  7286. const struct {
  7287. const char *name;
  7288. - lt_ptr_t address;
  7289. + lt_ptr address;
  7290. }
  7291. lt_preloaded_symbols[] =
  7292. {
  7293. EOF
  7294. - sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" >> conftest.$ac_ext
  7295. + sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
  7296. cat <<\EOF >> conftest.$ac_ext
  7297. - {0, (lt_ptr_t) 0}
  7298. + {0, (lt_ptr) 0}
  7299. };
  7300. #ifdef __cplusplus
  7301. @@ -2306,7 +3763,11 @@
  7302. save_CFLAGS="$CFLAGS"
  7303. LIBS="conftstm.$ac_objext"
  7304. CFLAGS="$CFLAGS$no_builtin_flag"
  7305. - if { (eval echo configure:2310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  7306. + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7307. + (eval $ac_link) 2>&5
  7308. + ac_status=$?
  7309. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7310. + (exit $ac_status); } && test -s conftest$ac_exeext; then
  7311. pipe_works=yes
  7312. fi
  7313. LIBS="$save_LIBS"
  7314. @@ -2339,84 +3800,665 @@
  7315. global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
  7316. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  7317. global_symbol_to_cdecl=
  7318. + global_symbol_to_c_name_address=
  7319. else
  7320. global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
  7321. + global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
  7322. fi
  7323. -if test -z "$global_symbol_pipe$global_symbol_to_cdecl"; then
  7324. - echo "$ac_t""failed" 1>&6
  7325. +if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
  7326. +then
  7327. + echo "$as_me:$LINENO: result: failed" >&5
  7328. +echo "${ECHO_T}failed" >&6
  7329. else
  7330. - echo "$ac_t""ok" 1>&6
  7331. + echo "$as_me:$LINENO: result: ok" >&5
  7332. +echo "${ECHO_T}ok" >&6
  7333. fi
  7334. -for ac_hdr in dlfcn.h
  7335. +ac_ext=c
  7336. +ac_cpp='$CPP $CPPFLAGS'
  7337. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7338. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7339. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7340. +echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  7341. +echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  7342. +# On Suns, sometimes $CPP names a directory.
  7343. +if test -n "$CPP" && test -d "$CPP"; then
  7344. + CPP=
  7345. +fi
  7346. +if test -z "$CPP"; then
  7347. + if test "${ac_cv_prog_CPP+set}" = set; then
  7348. + echo $ECHO_N "(cached) $ECHO_C" >&6
  7349. +else
  7350. + # Double quotes because CPP needs to be expanded
  7351. + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  7352. + do
  7353. + ac_preproc_ok=false
  7354. +for ac_c_preproc_warn_flag in '' yes
  7355. do
  7356. -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  7357. -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  7358. -echo "configure:2356: checking for $ac_hdr" >&5
  7359. -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  7360. - echo $ac_n "(cached) $ac_c" 1>&6
  7361. + # Use a header file that comes with gcc, so configuring glibc
  7362. + # with a fresh cross-compiler works.
  7363. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7364. + # <limits.h> exists even on freestanding compilers.
  7365. + # On the NeXT, cc -E runs the code through the compiler's parser,
  7366. + # not just through cpp. "Syntax error" is here to catch this case.
  7367. + cat >conftest.$ac_ext <<_ACEOF
  7368. +#line $LINENO "configure"
  7369. +/* confdefs.h. */
  7370. +_ACEOF
  7371. +cat confdefs.h >>conftest.$ac_ext
  7372. +cat >>conftest.$ac_ext <<_ACEOF
  7373. +/* end confdefs.h. */
  7374. +#ifdef __STDC__
  7375. +# include <limits.h>
  7376. +#else
  7377. +# include <assert.h>
  7378. +#endif
  7379. + Syntax error
  7380. +_ACEOF
  7381. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  7382. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  7383. + ac_status=$?
  7384. + grep -v '^ *+' conftest.er1 >conftest.err
  7385. + rm -f conftest.er1
  7386. + cat conftest.err >&5
  7387. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7388. + (exit $ac_status); } >/dev/null; then
  7389. + if test -s conftest.err; then
  7390. + ac_cpp_err=$ac_c_preproc_warn_flag
  7391. + else
  7392. + ac_cpp_err=
  7393. + fi
  7394. else
  7395. - cat > conftest.$ac_ext <<EOF
  7396. -#line 2361 "configure"
  7397. -#include "confdefs.h"
  7398. -#include <$ac_hdr>
  7399. -EOF
  7400. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7401. -{ (eval echo configure:2366: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7402. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  7403. -if test -z "$ac_err"; then
  7404. - rm -rf conftest*
  7405. - eval "ac_cv_header_$ac_safe=yes"
  7406. + ac_cpp_err=yes
  7407. +fi
  7408. +if test -z "$ac_cpp_err"; then
  7409. + :
  7410. else
  7411. - echo "$ac_err" >&5
  7412. - echo "configure: failed program was:" >&5
  7413. - cat conftest.$ac_ext >&5
  7414. - rm -rf conftest*
  7415. - eval "ac_cv_header_$ac_safe=no"
  7416. + echo "$as_me: failed program was:" >&5
  7417. +sed 's/^/| /' conftest.$ac_ext >&5
  7418. +
  7419. + # Broken: fails on valid input.
  7420. +continue
  7421. fi
  7422. -rm -f conftest*
  7423. +rm -f conftest.err conftest.$ac_ext
  7424. +
  7425. + # OK, works on sane cases. Now check whether non-existent headers
  7426. + # can be detected and how.
  7427. + cat >conftest.$ac_ext <<_ACEOF
  7428. +#line $LINENO "configure"
  7429. +/* confdefs.h. */
  7430. +_ACEOF
  7431. +cat confdefs.h >>conftest.$ac_ext
  7432. +cat >>conftest.$ac_ext <<_ACEOF
  7433. +/* end confdefs.h. */
  7434. +#include <ac_nonexistent.h>
  7435. +_ACEOF
  7436. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  7437. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  7438. + ac_status=$?
  7439. + grep -v '^ *+' conftest.er1 >conftest.err
  7440. + rm -f conftest.er1
  7441. + cat conftest.err >&5
  7442. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7443. + (exit $ac_status); } >/dev/null; then
  7444. + if test -s conftest.err; then
  7445. + ac_cpp_err=$ac_c_preproc_warn_flag
  7446. + else
  7447. + ac_cpp_err=
  7448. + fi
  7449. +else
  7450. + ac_cpp_err=yes
  7451. fi
  7452. -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7453. - echo "$ac_t""yes" 1>&6
  7454. - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  7455. - cat >> confdefs.h <<EOF
  7456. -#define $ac_tr_hdr 1
  7457. -EOF
  7458. -
  7459. +if test -z "$ac_cpp_err"; then
  7460. + # Broken: success on invalid input.
  7461. +continue
  7462. else
  7463. - echo "$ac_t""no" 1>&6
  7464. + echo "$as_me: failed program was:" >&5
  7465. +sed 's/^/| /' conftest.$ac_ext >&5
  7466. +
  7467. + # Passes both tests.
  7468. +ac_preproc_ok=:
  7469. +break
  7470. fi
  7471. +rm -f conftest.err conftest.$ac_ext
  7472. +
  7473. done
  7474. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7475. +rm -f conftest.err conftest.$ac_ext
  7476. +if $ac_preproc_ok; then
  7477. + break
  7478. +fi
  7479. + done
  7480. + ac_cv_prog_CPP=$CPP
  7481. +
  7482. +fi
  7483. + CPP=$ac_cv_prog_CPP
  7484. +else
  7485. + ac_cv_prog_CPP=$CPP
  7486. +fi
  7487. +echo "$as_me:$LINENO: result: $CPP" >&5
  7488. +echo "${ECHO_T}$CPP" >&6
  7489. +ac_preproc_ok=false
  7490. +for ac_c_preproc_warn_flag in '' yes
  7491. +do
  7492. + # Use a header file that comes with gcc, so configuring glibc
  7493. + # with a fresh cross-compiler works.
  7494. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7495. + # <limits.h> exists even on freestanding compilers.
  7496. + # On the NeXT, cc -E runs the code through the compiler's parser,
  7497. + # not just through cpp. "Syntax error" is here to catch this case.
  7498. + cat >conftest.$ac_ext <<_ACEOF
  7499. +#line $LINENO "configure"
  7500. +/* confdefs.h. */
  7501. +_ACEOF
  7502. +cat confdefs.h >>conftest.$ac_ext
  7503. +cat >>conftest.$ac_ext <<_ACEOF
  7504. +/* end confdefs.h. */
  7505. +#ifdef __STDC__
  7506. +# include <limits.h>
  7507. +#else
  7508. +# include <assert.h>
  7509. +#endif
  7510. + Syntax error
  7511. +_ACEOF
  7512. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  7513. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  7514. + ac_status=$?
  7515. + grep -v '^ *+' conftest.er1 >conftest.err
  7516. + rm -f conftest.er1
  7517. + cat conftest.err >&5
  7518. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7519. + (exit $ac_status); } >/dev/null; then
  7520. + if test -s conftest.err; then
  7521. + ac_cpp_err=$ac_c_preproc_warn_flag
  7522. + else
  7523. + ac_cpp_err=
  7524. + fi
  7525. +else
  7526. + ac_cpp_err=yes
  7527. +fi
  7528. +if test -z "$ac_cpp_err"; then
  7529. + :
  7530. +else
  7531. + echo "$as_me: failed program was:" >&5
  7532. +sed 's/^/| /' conftest.$ac_ext >&5
  7533. + # Broken: fails on valid input.
  7534. +continue
  7535. +fi
  7536. +rm -f conftest.err conftest.$ac_ext
  7537. + # OK, works on sane cases. Now check whether non-existent headers
  7538. + # can be detected and how.
  7539. + cat >conftest.$ac_ext <<_ACEOF
  7540. +#line $LINENO "configure"
  7541. +/* confdefs.h. */
  7542. +_ACEOF
  7543. +cat confdefs.h >>conftest.$ac_ext
  7544. +cat >>conftest.$ac_ext <<_ACEOF
  7545. +/* end confdefs.h. */
  7546. +#include <ac_nonexistent.h>
  7547. +_ACEOF
  7548. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  7549. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  7550. + ac_status=$?
  7551. + grep -v '^ *+' conftest.er1 >conftest.err
  7552. + rm -f conftest.er1
  7553. + cat conftest.err >&5
  7554. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7555. + (exit $ac_status); } >/dev/null; then
  7556. + if test -s conftest.err; then
  7557. + ac_cpp_err=$ac_c_preproc_warn_flag
  7558. + else
  7559. + ac_cpp_err=
  7560. + fi
  7561. +else
  7562. + ac_cpp_err=yes
  7563. +fi
  7564. +if test -z "$ac_cpp_err"; then
  7565. + # Broken: success on invalid input.
  7566. +continue
  7567. +else
  7568. + echo "$as_me: failed program was:" >&5
  7569. +sed 's/^/| /' conftest.$ac_ext >&5
  7570. + # Passes both tests.
  7571. +ac_preproc_ok=:
  7572. +break
  7573. +fi
  7574. +rm -f conftest.err conftest.$ac_ext
  7575. -# Only perform the check for file, if the check method requires it
  7576. -case $deplibs_check_method in
  7577. -file_magic*)
  7578. - if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7579. - echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
  7580. -echo "configure:2401: checking for ${ac_tool_prefix}file" >&5
  7581. -if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
  7582. - echo $ac_n "(cached) $ac_c" 1>&6
  7583. +done
  7584. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7585. +rm -f conftest.err conftest.$ac_ext
  7586. +if $ac_preproc_ok; then
  7587. + :
  7588. else
  7589. - case $MAGIC_CMD in
  7590. - /*)
  7591. - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7592. - ;;
  7593. - ?:/*)
  7594. - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
  7595. - ;;
  7596. - *)
  7597. - ac_save_MAGIC_CMD="$MAGIC_CMD"
  7598. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  7599. - ac_dummy="/usr/bin:$PATH"
  7600. - for ac_dir in $ac_dummy; do
  7601. - test -z "$ac_dir" && ac_dir=.
  7602. - if test -f $ac_dir/${ac_tool_prefix}file; then
  7603. - lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7604. - if test -n "$file_magic_test_file"; then
  7605. + { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  7606. +See \`config.log' for more details." >&5
  7607. +echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  7608. +See \`config.log' for more details." >&2;}
  7609. + { (exit 1); exit 1; }; }
  7610. +fi
  7611. +
  7612. +ac_ext=c
  7613. +ac_cpp='$CPP $CPPFLAGS'
  7614. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7615. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7616. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7617. +
  7618. +
  7619. +echo "$as_me:$LINENO: checking for egrep" >&5
  7620. +echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  7621. +if test "${ac_cv_prog_egrep+set}" = set; then
  7622. + echo $ECHO_N "(cached) $ECHO_C" >&6
  7623. +else
  7624. + if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  7625. + then ac_cv_prog_egrep='grep -E'
  7626. + else ac_cv_prog_egrep='egrep'
  7627. + fi
  7628. +fi
  7629. +echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  7630. +echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  7631. + EGREP=$ac_cv_prog_egrep
  7632. +
  7633. +
  7634. +echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  7635. +echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  7636. +if test "${ac_cv_header_stdc+set}" = set; then
  7637. + echo $ECHO_N "(cached) $ECHO_C" >&6
  7638. +else
  7639. + cat >conftest.$ac_ext <<_ACEOF
  7640. +#line $LINENO "configure"
  7641. +/* confdefs.h. */
  7642. +_ACEOF
  7643. +cat confdefs.h >>conftest.$ac_ext
  7644. +cat >>conftest.$ac_ext <<_ACEOF
  7645. +/* end confdefs.h. */
  7646. +#include <stdlib.h>
  7647. +#include <stdarg.h>
  7648. +#include <string.h>
  7649. +#include <float.h>
  7650. +
  7651. +int
  7652. +main ()
  7653. +{
  7654. +
  7655. + ;
  7656. + return 0;
  7657. +}
  7658. +_ACEOF
  7659. +rm -f conftest.$ac_objext
  7660. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7661. + (eval $ac_compile) 2>&5
  7662. + ac_status=$?
  7663. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7664. + (exit $ac_status); } &&
  7665. + { ac_try='test -s conftest.$ac_objext'
  7666. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7667. + (eval $ac_try) 2>&5
  7668. + ac_status=$?
  7669. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7670. + (exit $ac_status); }; }; then
  7671. + ac_cv_header_stdc=yes
  7672. +else
  7673. + echo "$as_me: failed program was:" >&5
  7674. +sed 's/^/| /' conftest.$ac_ext >&5
  7675. +
  7676. +ac_cv_header_stdc=no
  7677. +fi
  7678. +rm -f conftest.$ac_objext conftest.$ac_ext
  7679. +
  7680. +if test $ac_cv_header_stdc = yes; then
  7681. + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  7682. + cat >conftest.$ac_ext <<_ACEOF
  7683. +#line $LINENO "configure"
  7684. +/* confdefs.h. */
  7685. +_ACEOF
  7686. +cat confdefs.h >>conftest.$ac_ext
  7687. +cat >>conftest.$ac_ext <<_ACEOF
  7688. +/* end confdefs.h. */
  7689. +#include <string.h>
  7690. +
  7691. +_ACEOF
  7692. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7693. + $EGREP "memchr" >/dev/null 2>&1; then
  7694. + :
  7695. +else
  7696. + ac_cv_header_stdc=no
  7697. +fi
  7698. +rm -f conftest*
  7699. +
  7700. +fi
  7701. +
  7702. +if test $ac_cv_header_stdc = yes; then
  7703. + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  7704. + cat >conftest.$ac_ext <<_ACEOF
  7705. +#line $LINENO "configure"
  7706. +/* confdefs.h. */
  7707. +_ACEOF
  7708. +cat confdefs.h >>conftest.$ac_ext
  7709. +cat >>conftest.$ac_ext <<_ACEOF
  7710. +/* end confdefs.h. */
  7711. +#include <stdlib.h>
  7712. +
  7713. +_ACEOF
  7714. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7715. + $EGREP "free" >/dev/null 2>&1; then
  7716. + :
  7717. +else
  7718. + ac_cv_header_stdc=no
  7719. +fi
  7720. +rm -f conftest*
  7721. +
  7722. +fi
  7723. +
  7724. +if test $ac_cv_header_stdc = yes; then
  7725. + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  7726. + if test "$cross_compiling" = yes; then
  7727. + :
  7728. +else
  7729. + cat >conftest.$ac_ext <<_ACEOF
  7730. +#line $LINENO "configure"
  7731. +/* confdefs.h. */
  7732. +_ACEOF
  7733. +cat confdefs.h >>conftest.$ac_ext
  7734. +cat >>conftest.$ac_ext <<_ACEOF
  7735. +/* end confdefs.h. */
  7736. +#include <ctype.h>
  7737. +#if ((' ' & 0x0FF) == 0x020)
  7738. +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  7739. +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  7740. +#else
  7741. +# define ISLOWER(c) \
  7742. + (('a' <= (c) && (c) <= 'i') \
  7743. + || ('j' <= (c) && (c) <= 'r') \
  7744. + || ('s' <= (c) && (c) <= 'z'))
  7745. +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  7746. +#endif
  7747. +
  7748. +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  7749. +int
  7750. +main ()
  7751. +{
  7752. + int i;
  7753. + for (i = 0; i < 256; i++)
  7754. + if (XOR (islower (i), ISLOWER (i))
  7755. + || toupper (i) != TOUPPER (i))
  7756. + exit(2);
  7757. + exit (0);
  7758. +}
  7759. +_ACEOF
  7760. +rm -f conftest$ac_exeext
  7761. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7762. + (eval $ac_link) 2>&5
  7763. + ac_status=$?
  7764. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7765. + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7766. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7767. + (eval $ac_try) 2>&5
  7768. + ac_status=$?
  7769. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7770. + (exit $ac_status); }; }; then
  7771. + :
  7772. +else
  7773. + echo "$as_me: program exited with status $ac_status" >&5
  7774. +echo "$as_me: failed program was:" >&5
  7775. +sed 's/^/| /' conftest.$ac_ext >&5
  7776. +
  7777. +( exit $ac_status )
  7778. +ac_cv_header_stdc=no
  7779. +fi
  7780. +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7781. +fi
  7782. +fi
  7783. +fi
  7784. +echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  7785. +echo "${ECHO_T}$ac_cv_header_stdc" >&6
  7786. +if test $ac_cv_header_stdc = yes; then
  7787. +
  7788. +cat >>confdefs.h <<\_ACEOF
  7789. +#define STDC_HEADERS 1
  7790. +_ACEOF
  7791. +
  7792. +fi
  7793. +
  7794. +# On IRIX 5.3, sys/types and inttypes.h are conflicting.
  7795. +
  7796. +
  7797. +
  7798. +
  7799. +
  7800. +
  7801. +
  7802. +
  7803. +
  7804. +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  7805. + inttypes.h stdint.h unistd.h
  7806. +do
  7807. +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7808. +echo "$as_me:$LINENO: checking for $ac_header" >&5
  7809. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7810. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7811. + echo $ECHO_N "(cached) $ECHO_C" >&6
  7812. +else
  7813. + cat >conftest.$ac_ext <<_ACEOF
  7814. +#line $LINENO "configure"
  7815. +/* confdefs.h. */
  7816. +_ACEOF
  7817. +cat confdefs.h >>conftest.$ac_ext
  7818. +cat >>conftest.$ac_ext <<_ACEOF
  7819. +/* end confdefs.h. */
  7820. +$ac_includes_default
  7821. +
  7822. +#include <$ac_header>
  7823. +_ACEOF
  7824. +rm -f conftest.$ac_objext
  7825. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7826. + (eval $ac_compile) 2>&5
  7827. + ac_status=$?
  7828. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7829. + (exit $ac_status); } &&
  7830. + { ac_try='test -s conftest.$ac_objext'
  7831. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7832. + (eval $ac_try) 2>&5
  7833. + ac_status=$?
  7834. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7835. + (exit $ac_status); }; }; then
  7836. + eval "$as_ac_Header=yes"
  7837. +else
  7838. + echo "$as_me: failed program was:" >&5
  7839. +sed 's/^/| /' conftest.$ac_ext >&5
  7840. +
  7841. +eval "$as_ac_Header=no"
  7842. +fi
  7843. +rm -f conftest.$ac_objext conftest.$ac_ext
  7844. +fi
  7845. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7846. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7847. +if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7848. + cat >>confdefs.h <<_ACEOF
  7849. +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7850. +_ACEOF
  7851. +
  7852. +fi
  7853. +
  7854. +done
  7855. +
  7856. +
  7857. +
  7858. +for ac_header in dlfcn.h
  7859. +do
  7860. +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7861. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7862. + echo "$as_me:$LINENO: checking for $ac_header" >&5
  7863. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7864. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7865. + echo $ECHO_N "(cached) $ECHO_C" >&6
  7866. +fi
  7867. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7868. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7869. +else
  7870. + # Is the header compilable?
  7871. +echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7872. +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  7873. +cat >conftest.$ac_ext <<_ACEOF
  7874. +#line $LINENO "configure"
  7875. +/* confdefs.h. */
  7876. +_ACEOF
  7877. +cat confdefs.h >>conftest.$ac_ext
  7878. +cat >>conftest.$ac_ext <<_ACEOF
  7879. +/* end confdefs.h. */
  7880. +$ac_includes_default
  7881. +#include <$ac_header>
  7882. +_ACEOF
  7883. +rm -f conftest.$ac_objext
  7884. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7885. + (eval $ac_compile) 2>&5
  7886. + ac_status=$?
  7887. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7888. + (exit $ac_status); } &&
  7889. + { ac_try='test -s conftest.$ac_objext'
  7890. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7891. + (eval $ac_try) 2>&5
  7892. + ac_status=$?
  7893. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7894. + (exit $ac_status); }; }; then
  7895. + ac_header_compiler=yes
  7896. +else
  7897. + echo "$as_me: failed program was:" >&5
  7898. +sed 's/^/| /' conftest.$ac_ext >&5
  7899. +
  7900. +ac_header_compiler=no
  7901. +fi
  7902. +rm -f conftest.$ac_objext conftest.$ac_ext
  7903. +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7904. +echo "${ECHO_T}$ac_header_compiler" >&6
  7905. +
  7906. +# Is the header present?
  7907. +echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7908. +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  7909. +cat >conftest.$ac_ext <<_ACEOF
  7910. +#line $LINENO "configure"
  7911. +/* confdefs.h. */
  7912. +_ACEOF
  7913. +cat confdefs.h >>conftest.$ac_ext
  7914. +cat >>conftest.$ac_ext <<_ACEOF
  7915. +/* end confdefs.h. */
  7916. +#include <$ac_header>
  7917. +_ACEOF
  7918. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  7919. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  7920. + ac_status=$?
  7921. + grep -v '^ *+' conftest.er1 >conftest.err
  7922. + rm -f conftest.er1
  7923. + cat conftest.err >&5
  7924. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7925. + (exit $ac_status); } >/dev/null; then
  7926. + if test -s conftest.err; then
  7927. + ac_cpp_err=$ac_c_preproc_warn_flag
  7928. + else
  7929. + ac_cpp_err=
  7930. + fi
  7931. +else
  7932. + ac_cpp_err=yes
  7933. +fi
  7934. +if test -z "$ac_cpp_err"; then
  7935. + ac_header_preproc=yes
  7936. +else
  7937. + echo "$as_me: failed program was:" >&5
  7938. +sed 's/^/| /' conftest.$ac_ext >&5
  7939. +
  7940. + ac_header_preproc=no
  7941. +fi
  7942. +rm -f conftest.err conftest.$ac_ext
  7943. +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7944. +echo "${ECHO_T}$ac_header_preproc" >&6
  7945. +
  7946. +# So? What about this header?
  7947. +case $ac_header_compiler:$ac_header_preproc in
  7948. + yes:no )
  7949. + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7950. +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7951. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7952. +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7953. + (
  7954. + cat <<\_ASBOX
  7955. +## ------------------------------------ ##
  7956. +## Report this to [email protected]. ##
  7957. +## ------------------------------------ ##
  7958. +_ASBOX
  7959. + ) |
  7960. + sed "s/^/$as_me: WARNING: /" >&2
  7961. + ;;
  7962. + no:yes )
  7963. + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7964. +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7965. + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7966. +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7967. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7968. +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7969. + (
  7970. + cat <<\_ASBOX
  7971. +## ------------------------------------ ##
  7972. +## Report this to [email protected]. ##
  7973. +## ------------------------------------ ##
  7974. +_ASBOX
  7975. + ) |
  7976. + sed "s/^/$as_me: WARNING: /" >&2
  7977. + ;;
  7978. +esac
  7979. +echo "$as_me:$LINENO: checking for $ac_header" >&5
  7980. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7981. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7982. + echo $ECHO_N "(cached) $ECHO_C" >&6
  7983. +else
  7984. + eval "$as_ac_Header=$ac_header_preproc"
  7985. +fi
  7986. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7987. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7988. +
  7989. +fi
  7990. +if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7991. + cat >>confdefs.h <<_ACEOF
  7992. +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7993. +_ACEOF
  7994. +
  7995. +fi
  7996. +
  7997. +done
  7998. +
  7999. +
  8000. +
  8001. +
  8002. +
  8003. +
  8004. +# Only perform the check for file, if the check method requires it
  8005. +case $deplibs_check_method in
  8006. +file_magic*)
  8007. + if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  8008. + echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  8009. +echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
  8010. +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  8011. + echo $ECHO_N "(cached) $ECHO_C" >&6
  8012. +else
  8013. + case $MAGIC_CMD in
  8014. + /*)
  8015. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  8016. + ;;
  8017. + ?:/*)
  8018. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
  8019. + ;;
  8020. + *)
  8021. + ac_save_MAGIC_CMD="$MAGIC_CMD"
  8022. + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  8023. + ac_dummy="/usr/bin:$PATH"
  8024. + for ac_dir in $ac_dummy; do
  8025. + test -z "$ac_dir" && ac_dir=.
  8026. + if test -f $ac_dir/${ac_tool_prefix}file; then
  8027. + lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  8028. + if test -n "$file_magic_test_file"; then
  8029. case $deplibs_check_method in
  8030. "file_magic "*)
  8031. file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  8032. @@ -2451,17 +4493,19 @@
  8033. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8034. if test -n "$MAGIC_CMD"; then
  8035. - echo "$ac_t""$MAGIC_CMD" 1>&6
  8036. + echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  8037. +echo "${ECHO_T}$MAGIC_CMD" >&6
  8038. else
  8039. - echo "$ac_t""no" 1>&6
  8040. + echo "$as_me:$LINENO: result: no" >&5
  8041. +echo "${ECHO_T}no" >&6
  8042. fi
  8043. if test -z "$lt_cv_path_MAGIC_CMD"; then
  8044. if test -n "$ac_tool_prefix"; then
  8045. - echo $ac_n "checking for file""... $ac_c" 1>&6
  8046. -echo "configure:2463: checking for file" >&5
  8047. -if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
  8048. - echo $ac_n "(cached) $ac_c" 1>&6
  8049. + echo "$as_me:$LINENO: checking for file" >&5
  8050. +echo $ECHO_N "checking for file... $ECHO_C" >&6
  8051. +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  8052. + echo $ECHO_N "(cached) $ECHO_C" >&6
  8053. else
  8054. case $MAGIC_CMD in
  8055. /*)
  8056. @@ -2513,9 +4557,11 @@
  8057. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8058. if test -n "$MAGIC_CMD"; then
  8059. - echo "$ac_t""$MAGIC_CMD" 1>&6
  8060. + echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  8061. +echo "${ECHO_T}$MAGIC_CMD" >&6
  8062. else
  8063. - echo "$ac_t""no" 1>&6
  8064. + echo "$as_me:$LINENO: result: no" >&5
  8065. +echo "${ECHO_T}no" >&6
  8066. fi
  8067. else
  8068. @@ -2527,138 +4573,164 @@
  8069. ;;
  8070. esac
  8071. -# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  8072. +if test -n "$ac_tool_prefix"; then
  8073. + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  8074. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  8075. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  8076. -echo "configure:2534: checking for $ac_word" >&5
  8077. -if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  8078. - echo $ac_n "(cached) $ac_c" 1>&6
  8079. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  8080. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  8081. +if test "${ac_cv_prog_RANLIB+set}" = set; then
  8082. + echo $ECHO_N "(cached) $ECHO_C" >&6
  8083. else
  8084. if test -n "$RANLIB"; then
  8085. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  8086. else
  8087. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  8088. - ac_dummy="$PATH"
  8089. - for ac_dir in $ac_dummy; do
  8090. - test -z "$ac_dir" && ac_dir=.
  8091. - if test -f $ac_dir/$ac_word; then
  8092. - ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  8093. - break
  8094. - fi
  8095. - done
  8096. - IFS="$ac_save_ifs"
  8097. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8098. +for as_dir in $PATH
  8099. +do
  8100. + IFS=$as_save_IFS
  8101. + test -z "$as_dir" && as_dir=.
  8102. + for ac_exec_ext in '' $ac_executable_extensions; do
  8103. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8104. + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  8105. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8106. + break 2
  8107. + fi
  8108. +done
  8109. +done
  8110. +
  8111. fi
  8112. fi
  8113. -RANLIB="$ac_cv_prog_RANLIB"
  8114. +RANLIB=$ac_cv_prog_RANLIB
  8115. if test -n "$RANLIB"; then
  8116. - echo "$ac_t""$RANLIB" 1>&6
  8117. + echo "$as_me:$LINENO: result: $RANLIB" >&5
  8118. +echo "${ECHO_T}$RANLIB" >&6
  8119. else
  8120. - echo "$ac_t""no" 1>&6
  8121. + echo "$as_me:$LINENO: result: no" >&5
  8122. +echo "${ECHO_T}no" >&6
  8123. fi
  8124. -
  8125. +fi
  8126. if test -z "$ac_cv_prog_RANLIB"; then
  8127. -if test -n "$ac_tool_prefix"; then
  8128. + ac_ct_RANLIB=$RANLIB
  8129. # Extract the first word of "ranlib", so it can be a program name with args.
  8130. set dummy ranlib; ac_word=$2
  8131. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  8132. -echo "configure:2566: checking for $ac_word" >&5
  8133. -if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  8134. - echo $ac_n "(cached) $ac_c" 1>&6
  8135. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  8136. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  8137. +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  8138. + echo $ECHO_N "(cached) $ECHO_C" >&6
  8139. else
  8140. - if test -n "$RANLIB"; then
  8141. - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  8142. + if test -n "$ac_ct_RANLIB"; then
  8143. + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  8144. else
  8145. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  8146. - ac_dummy="$PATH"
  8147. - for ac_dir in $ac_dummy; do
  8148. - test -z "$ac_dir" && ac_dir=.
  8149. - if test -f $ac_dir/$ac_word; then
  8150. - ac_cv_prog_RANLIB="ranlib"
  8151. - break
  8152. - fi
  8153. - done
  8154. - IFS="$ac_save_ifs"
  8155. - test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  8156. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8157. +for as_dir in $PATH
  8158. +do
  8159. + IFS=$as_save_IFS
  8160. + test -z "$as_dir" && as_dir=.
  8161. + for ac_exec_ext in '' $ac_executable_extensions; do
  8162. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8163. + ac_cv_prog_ac_ct_RANLIB="ranlib"
  8164. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8165. + break 2
  8166. + fi
  8167. +done
  8168. +done
  8169. +
  8170. + test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  8171. fi
  8172. fi
  8173. -RANLIB="$ac_cv_prog_RANLIB"
  8174. -if test -n "$RANLIB"; then
  8175. - echo "$ac_t""$RANLIB" 1>&6
  8176. +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  8177. +if test -n "$ac_ct_RANLIB"; then
  8178. + echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  8179. +echo "${ECHO_T}$ac_ct_RANLIB" >&6
  8180. else
  8181. - echo "$ac_t""no" 1>&6
  8182. + echo "$as_me:$LINENO: result: no" >&5
  8183. +echo "${ECHO_T}no" >&6
  8184. fi
  8185. + RANLIB=$ac_ct_RANLIB
  8186. else
  8187. - RANLIB=":"
  8188. -fi
  8189. + RANLIB="$ac_cv_prog_RANLIB"
  8190. fi
  8191. -# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  8192. +if test -n "$ac_tool_prefix"; then
  8193. + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  8194. set dummy ${ac_tool_prefix}strip; ac_word=$2
  8195. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  8196. -echo "configure:2601: checking for $ac_word" >&5
  8197. -if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
  8198. - echo $ac_n "(cached) $ac_c" 1>&6
  8199. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  8200. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  8201. +if test "${ac_cv_prog_STRIP+set}" = set; then
  8202. + echo $ECHO_N "(cached) $ECHO_C" >&6
  8203. else
  8204. if test -n "$STRIP"; then
  8205. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  8206. else
  8207. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  8208. - ac_dummy="$PATH"
  8209. - for ac_dir in $ac_dummy; do
  8210. - test -z "$ac_dir" && ac_dir=.
  8211. - if test -f $ac_dir/$ac_word; then
  8212. - ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  8213. - break
  8214. - fi
  8215. - done
  8216. - IFS="$ac_save_ifs"
  8217. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8218. +for as_dir in $PATH
  8219. +do
  8220. + IFS=$as_save_IFS
  8221. + test -z "$as_dir" && as_dir=.
  8222. + for ac_exec_ext in '' $ac_executable_extensions; do
  8223. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8224. + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  8225. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8226. + break 2
  8227. + fi
  8228. +done
  8229. +done
  8230. +
  8231. fi
  8232. fi
  8233. -STRIP="$ac_cv_prog_STRIP"
  8234. +STRIP=$ac_cv_prog_STRIP
  8235. if test -n "$STRIP"; then
  8236. - echo "$ac_t""$STRIP" 1>&6
  8237. + echo "$as_me:$LINENO: result: $STRIP" >&5
  8238. +echo "${ECHO_T}$STRIP" >&6
  8239. else
  8240. - echo "$ac_t""no" 1>&6
  8241. + echo "$as_me:$LINENO: result: no" >&5
  8242. +echo "${ECHO_T}no" >&6
  8243. fi
  8244. -
  8245. +fi
  8246. if test -z "$ac_cv_prog_STRIP"; then
  8247. -if test -n "$ac_tool_prefix"; then
  8248. + ac_ct_STRIP=$STRIP
  8249. # Extract the first word of "strip", so it can be a program name with args.
  8250. set dummy strip; ac_word=$2
  8251. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  8252. -echo "configure:2633: checking for $ac_word" >&5
  8253. -if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
  8254. - echo $ac_n "(cached) $ac_c" 1>&6
  8255. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  8256. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  8257. +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  8258. + echo $ECHO_N "(cached) $ECHO_C" >&6
  8259. else
  8260. - if test -n "$STRIP"; then
  8261. - ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  8262. + if test -n "$ac_ct_STRIP"; then
  8263. + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  8264. else
  8265. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  8266. - ac_dummy="$PATH"
  8267. - for ac_dir in $ac_dummy; do
  8268. - test -z "$ac_dir" && ac_dir=.
  8269. - if test -f $ac_dir/$ac_word; then
  8270. - ac_cv_prog_STRIP="strip"
  8271. - break
  8272. - fi
  8273. - done
  8274. - IFS="$ac_save_ifs"
  8275. - test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
  8276. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8277. +for as_dir in $PATH
  8278. +do
  8279. + IFS=$as_save_IFS
  8280. + test -z "$as_dir" && as_dir=.
  8281. + for ac_exec_ext in '' $ac_executable_extensions; do
  8282. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8283. + ac_cv_prog_ac_ct_STRIP="strip"
  8284. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8285. + break 2
  8286. + fi
  8287. +done
  8288. +done
  8289. +
  8290. + test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  8291. fi
  8292. fi
  8293. -STRIP="$ac_cv_prog_STRIP"
  8294. -if test -n "$STRIP"; then
  8295. - echo "$ac_t""$STRIP" 1>&6
  8296. +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  8297. +if test -n "$ac_ct_STRIP"; then
  8298. + echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  8299. +echo "${ECHO_T}$ac_ct_STRIP" >&6
  8300. else
  8301. - echo "$ac_t""no" 1>&6
  8302. + echo "$as_me:$LINENO: result: no" >&5
  8303. +echo "${ECHO_T}no" >&6
  8304. fi
  8305. + STRIP=$ac_ct_STRIP
  8306. else
  8307. - STRIP=":"
  8308. -fi
  8309. + STRIP="$ac_cv_prog_STRIP"
  8310. fi
  8311. @@ -2668,9 +4740,8 @@
  8312. # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  8313. if test "${enable_libtool_lock+set}" = set; then
  8314. enableval="$enable_libtool_lock"
  8315. - :
  8316. -fi
  8317. +fi;
  8318. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  8319. # Some flags need to be propagated to the compiler or linker for good
  8320. @@ -2678,8 +4749,12 @@
  8321. case $host in
  8322. *-*-irix6*)
  8323. # Find out which ABI we are using.
  8324. - echo '#line 2682 "configure"' > conftest.$ac_ext
  8325. - if { (eval echo configure:2683: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  8326. + echo '#line 4752 "configure"' > conftest.$ac_ext
  8327. + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8328. + (eval $ac_compile) 2>&5
  8329. + ac_status=$?
  8330. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8331. + (exit $ac_status); }; then
  8332. case `/usr/bin/file conftest.$ac_objext` in
  8333. *32-bit*)
  8334. LD="${LD-ld} -32"
  8335. @@ -2699,47 +4774,64 @@
  8336. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  8337. SAVE_CFLAGS="$CFLAGS"
  8338. CFLAGS="$CFLAGS -belf"
  8339. - echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
  8340. -echo "configure:2704: checking whether the C compiler needs -belf" >&5
  8341. -if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
  8342. - echo $ac_n "(cached) $ac_c" 1>&6
  8343. + echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  8344. +echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
  8345. +if test "${lt_cv_cc_needs_belf+set}" = set; then
  8346. + echo $ECHO_N "(cached) $ECHO_C" >&6
  8347. else
  8348. -
  8349. +
  8350. +
  8351. ac_ext=c
  8352. -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  8353. ac_cpp='$CPP $CPPFLAGS'
  8354. -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  8355. -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  8356. -cross_compiling=$ac_cv_prog_cc_cross
  8357. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8358. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8359. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8360. +
  8361. + cat >conftest.$ac_ext <<_ACEOF
  8362. +#line $LINENO "configure"
  8363. +/* confdefs.h. */
  8364. +_ACEOF
  8365. +cat confdefs.h >>conftest.$ac_ext
  8366. +cat >>conftest.$ac_ext <<_ACEOF
  8367. +/* end confdefs.h. */
  8368. - cat > conftest.$ac_ext <<EOF
  8369. -#line 2717 "configure"
  8370. -#include "confdefs.h"
  8371. -
  8372. -int main() {
  8373. +int
  8374. +main ()
  8375. +{
  8376. -; return 0; }
  8377. -EOF
  8378. -if { (eval echo configure:2724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8379. - rm -rf conftest*
  8380. + ;
  8381. + return 0;
  8382. +}
  8383. +_ACEOF
  8384. +rm -f conftest.$ac_objext conftest$ac_exeext
  8385. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8386. + (eval $ac_link) 2>&5
  8387. + ac_status=$?
  8388. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8389. + (exit $ac_status); } &&
  8390. + { ac_try='test -s conftest$ac_exeext'
  8391. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8392. + (eval $ac_try) 2>&5
  8393. + ac_status=$?
  8394. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8395. + (exit $ac_status); }; }; then
  8396. lt_cv_cc_needs_belf=yes
  8397. else
  8398. - echo "configure: failed program was:" >&5
  8399. - cat conftest.$ac_ext >&5
  8400. - rm -rf conftest*
  8401. - lt_cv_cc_needs_belf=no
  8402. + echo "$as_me: failed program was:" >&5
  8403. +sed 's/^/| /' conftest.$ac_ext >&5
  8404. +
  8405. +lt_cv_cc_needs_belf=no
  8406. fi
  8407. -rm -f conftest*
  8408. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  8409. ac_ext=c
  8410. -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  8411. ac_cpp='$CPP $CPPFLAGS'
  8412. -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  8413. -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  8414. -cross_compiling=$ac_cv_prog_cc_cross
  8415. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8416. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8417. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8418. fi
  8419. -
  8420. -echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
  8421. +echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  8422. +echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
  8423. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  8424. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  8425. CFLAGS="$SAVE_CFLAGS"
  8426. @@ -2824,16 +4916,23 @@
  8427. old_postuninstall_cmds=
  8428. if test -n "$RANLIB"; then
  8429. + case $host_os in
  8430. + openbsd*)
  8431. + old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
  8432. + ;;
  8433. + *)
  8434. + old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
  8435. + ;;
  8436. + esac
  8437. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  8438. - old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
  8439. fi
  8440. # Allow CC to be a program name with arguments.
  8441. set dummy $CC
  8442. compiler="$2"
  8443. -echo $ac_n "checking for objdir""... $ac_c" 1>&6
  8444. -echo "configure:2837: checking for objdir" >&5
  8445. +echo "$as_me:$LINENO: checking for objdir" >&5
  8446. +echo $ECHO_N "checking for objdir... $ECHO_C" >&6
  8447. rm -f .libs 2>/dev/null
  8448. mkdir .libs 2>/dev/null
  8449. if test -d .libs; then
  8450. @@ -2843,7 +4942,9 @@
  8451. objdir=_libs
  8452. fi
  8453. rmdir .libs 2>/dev/null
  8454. -echo "$ac_t""$objdir" 1>&6
  8455. +echo "$as_me:$LINENO: result: $objdir" >&5
  8456. +echo "${ECHO_T}$objdir" >&6
  8457. +
  8458. # Check whether --with-pic or --without-pic was given.
  8459. @@ -2852,17 +4953,16 @@
  8460. pic_mode="$withval"
  8461. else
  8462. pic_mode=default
  8463. -fi
  8464. -
  8465. +fi;
  8466. test -z "$pic_mode" && pic_mode=default
  8467. # We assume here that the value for lt_cv_prog_cc_pic will not be cached
  8468. # in isolation, and that seeing it set (from the cache) indicates that
  8469. # the associated values are set (in the cache) correctly too.
  8470. -echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
  8471. -echo "configure:2864: checking for $compiler option to produce PIC" >&5
  8472. -if eval "test \"`echo '$''{'lt_cv_prog_cc_pic'+set}'`\" = set"; then
  8473. - echo $ac_n "(cached) $ac_c" 1>&6
  8474. +echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  8475. +echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  8476. +if test "${lt_cv_prog_cc_pic+set}" = set; then
  8477. + echo $ECHO_N "(cached) $ECHO_C" >&6
  8478. else
  8479. lt_cv_prog_cc_pic=
  8480. lt_cv_prog_cc_shlib=
  8481. @@ -2882,7 +4982,7 @@
  8482. # libC (AIX C++ library), which obviously doesn't included in libraries
  8483. # list by gcc. This cause undefined symbols with -static flags.
  8484. # This hack allows C programs to be linked with "-static -ldl", but
  8485. - # we not sure about C++ programs.
  8486. + # not sure about C++ programs.
  8487. lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
  8488. ;;
  8489. amigaos*)
  8490. @@ -2891,7 +4991,7 @@
  8491. # like `-m68040'.
  8492. lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
  8493. ;;
  8494. - beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
  8495. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8496. # PIC is the default for these OSes.
  8497. ;;
  8498. darwin* | rhapsody*)
  8499. @@ -2917,13 +5017,13 @@
  8500. # PORTME Check for PIC flags for the system compiler.
  8501. case $host_os in
  8502. aix3* | aix4* | aix5*)
  8503. + lt_cv_prog_cc_wl='-Wl,'
  8504. # All AIX code is PIC.
  8505. if test "$host_cpu" = ia64; then
  8506. - # AIX 5 now supports IA64 processor
  8507. - lt_cv_prog_cc_static='-Bstatic'
  8508. - lt_cv_prog_cc_wl='-Wl,'
  8509. + # AIX 5 now supports IA64 processor
  8510. + lt_cv_prog_cc_static='-Bstatic'
  8511. else
  8512. - lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
  8513. + lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
  8514. fi
  8515. ;;
  8516. @@ -2934,7 +5034,7 @@
  8517. lt_cv_prog_cc_pic='+Z'
  8518. ;;
  8519. - irix5* | irix6*)
  8520. + irix5* | irix6* | nonstopux*)
  8521. lt_cv_prog_cc_wl='-Wl,'
  8522. lt_cv_prog_cc_static='-non_shared'
  8523. # PIC (with -KPIC) is the default.
  8524. @@ -2978,11 +5078,7 @@
  8525. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8526. lt_cv_prog_cc_pic='-KPIC'
  8527. lt_cv_prog_cc_static='-Bstatic'
  8528. - if test "x$host_vendor" = xsni; then
  8529. - lt_cv_prog_cc_wl='-LD'
  8530. - else
  8531. - lt_cv_prog_cc_wl='-Wl,'
  8532. - fi
  8533. + lt_cv_prog_cc_wl='-Wl,'
  8534. ;;
  8535. uts4*)
  8536. @@ -3006,28 +5102,48 @@
  8537. fi
  8538. if test -z "$lt_cv_prog_cc_pic"; then
  8539. - echo "$ac_t""none" 1>&6
  8540. + echo "$as_me:$LINENO: result: none" >&5
  8541. +echo "${ECHO_T}none" >&6
  8542. else
  8543. - echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
  8544. + echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
  8545. +echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
  8546. # Check to make sure the pic_flag actually works.
  8547. - echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
  8548. -echo "configure:3016: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
  8549. - if eval "test \"`echo '$''{'lt_cv_prog_cc_pic_works'+set}'`\" = set"; then
  8550. - echo $ac_n "(cached) $ac_c" 1>&6
  8551. + echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
  8552. +echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
  8553. + if test "${lt_cv_prog_cc_pic_works+set}" = set; then
  8554. + echo $ECHO_N "(cached) $ECHO_C" >&6
  8555. else
  8556. save_CFLAGS="$CFLAGS"
  8557. CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
  8558. - cat > conftest.$ac_ext <<EOF
  8559. -#line 3023 "configure"
  8560. -#include "confdefs.h"
  8561. + cat >conftest.$ac_ext <<_ACEOF
  8562. +#line $LINENO "configure"
  8563. +/* confdefs.h. */
  8564. +_ACEOF
  8565. +cat confdefs.h >>conftest.$ac_ext
  8566. +cat >>conftest.$ac_ext <<_ACEOF
  8567. +/* end confdefs.h. */
  8568. -int main() {
  8569. +int
  8570. +main ()
  8571. +{
  8572. -; return 0; }
  8573. -EOF
  8574. -if { (eval echo configure:3030: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  8575. - rm -rf conftest*
  8576. + ;
  8577. + return 0;
  8578. +}
  8579. +_ACEOF
  8580. +rm -f conftest.$ac_objext
  8581. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8582. + (eval $ac_compile) 2>&5
  8583. + ac_status=$?
  8584. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8585. + (exit $ac_status); } &&
  8586. + { ac_try='test -s conftest.$ac_objext'
  8587. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8588. + (eval $ac_try) 2>&5
  8589. + ac_status=$?
  8590. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8591. + (exit $ac_status); }; }; then
  8592. case $host_os in
  8593. hpux9* | hpux10* | hpux11*)
  8594. # On HP-UX, both CC and GCC only warn that PIC is supported... then
  8595. @@ -3043,17 +5159,17 @@
  8596. lt_cv_prog_cc_pic_works=yes
  8597. ;;
  8598. esac
  8599. -
  8600. +
  8601. else
  8602. - echo "configure: failed program was:" >&5
  8603. - cat conftest.$ac_ext >&5
  8604. - rm -rf conftest*
  8605. - lt_cv_prog_cc_pic_works=no
  8606. -
  8607. + echo "$as_me: failed program was:" >&5
  8608. +sed 's/^/| /' conftest.$ac_ext >&5
  8609. +
  8610. + lt_cv_prog_cc_pic_works=no
  8611. +
  8612. fi
  8613. -rm -f conftest*
  8614. +rm -f conftest.$ac_objext conftest.$ac_ext
  8615. CFLAGS="$save_CFLAGS"
  8616. -
  8617. +
  8618. fi
  8619. @@ -3064,43 +5180,65 @@
  8620. lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
  8621. fi
  8622. - echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
  8623. + echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
  8624. +echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
  8625. fi
  8626. # Check for any special shared library compilation flags.
  8627. if test -n "$lt_cv_prog_cc_shlib"; then
  8628. - echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
  8629. + { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
  8630. +echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
  8631. if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
  8632. else
  8633. - echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
  8634. + { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
  8635. +echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
  8636. lt_cv_prog_cc_can_build_shared=no
  8637. fi
  8638. fi
  8639. -echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
  8640. -echo "configure:3082: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
  8641. -if eval "test \"`echo '$''{'lt_cv_prog_cc_static_works'+set}'`\" = set"; then
  8642. - echo $ac_n "(cached) $ac_c" 1>&6
  8643. +echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
  8644. +echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
  8645. +if test "${lt_cv_prog_cc_static_works+set}" = set; then
  8646. + echo $ECHO_N "(cached) $ECHO_C" >&6
  8647. else
  8648. lt_cv_prog_cc_static_works=no
  8649. save_LDFLAGS="$LDFLAGS"
  8650. LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
  8651. - cat > conftest.$ac_ext <<EOF
  8652. -#line 3090 "configure"
  8653. -#include "confdefs.h"
  8654. + cat >conftest.$ac_ext <<_ACEOF
  8655. +#line $LINENO "configure"
  8656. +/* confdefs.h. */
  8657. +_ACEOF
  8658. +cat confdefs.h >>conftest.$ac_ext
  8659. +cat >>conftest.$ac_ext <<_ACEOF
  8660. +/* end confdefs.h. */
  8661. -int main() {
  8662. +int
  8663. +main ()
  8664. +{
  8665. -; return 0; }
  8666. -EOF
  8667. -if { (eval echo configure:3097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8668. - rm -rf conftest*
  8669. + ;
  8670. + return 0;
  8671. +}
  8672. +_ACEOF
  8673. +rm -f conftest.$ac_objext conftest$ac_exeext
  8674. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8675. + (eval $ac_link) 2>&5
  8676. + ac_status=$?
  8677. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8678. + (exit $ac_status); } &&
  8679. + { ac_try='test -s conftest$ac_exeext'
  8680. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8681. + (eval $ac_try) 2>&5
  8682. + ac_status=$?
  8683. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8684. + (exit $ac_status); }; }; then
  8685. lt_cv_prog_cc_static_works=yes
  8686. else
  8687. - echo "configure: failed program was:" >&5
  8688. - cat conftest.$ac_ext >&5
  8689. + echo "$as_me: failed program was:" >&5
  8690. +sed 's/^/| /' conftest.$ac_ext >&5
  8691. +
  8692. fi
  8693. -rm -f conftest*
  8694. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  8695. LDFLAGS="$save_LDFLAGS"
  8696. fi
  8697. @@ -3108,7 +5246,8 @@
  8698. # Belt *and* braces to stop my trousers falling down:
  8699. test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
  8700. -echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
  8701. +echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
  8702. +echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
  8703. pic_flag="$lt_cv_prog_cc_pic"
  8704. special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
  8705. @@ -3119,12 +5258,12 @@
  8706. # Check to see if options -o and -c are simultaneously supported by compiler
  8707. -echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
  8708. -echo "configure:3124: checking if $compiler supports -c -o file.$ac_objext" >&5
  8709. -if eval "test \"`echo '$''{'lt_cv_compiler_c_o'+set}'`\" = set"; then
  8710. - echo $ac_n "(cached) $ac_c" 1>&6
  8711. +echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  8712. +echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  8713. +if test "${lt_cv_compiler_c_o+set}" = set; then
  8714. + echo $ECHO_N "(cached) $ECHO_C" >&6
  8715. else
  8716. -
  8717. +
  8718. $rm -r conftest 2>/dev/null
  8719. mkdir conftest
  8720. cd conftest
  8721. @@ -3139,7 +5278,7 @@
  8722. save_CFLAGS="$CFLAGS"
  8723. CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
  8724. compiler_c_o=no
  8725. -if { (eval echo configure:3143: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
  8726. +if { (eval echo configure:5281: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
  8727. # The compiler can only warn and ignore the option if not recognized
  8728. # So say no if there are warnings
  8729. if test -s out/conftest.err; then
  8730. @@ -3163,29 +5302,50 @@
  8731. fi
  8732. compiler_c_o=$lt_cv_compiler_c_o
  8733. -echo "$ac_t""$compiler_c_o" 1>&6
  8734. +echo "$as_me:$LINENO: result: $compiler_c_o" >&5
  8735. +echo "${ECHO_T}$compiler_c_o" >&6
  8736. if test x"$compiler_c_o" = x"yes"; then
  8737. # Check to see if we can write to a .lo
  8738. - echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
  8739. -echo "configure:3172: checking if $compiler supports -c -o file.lo" >&5
  8740. - if eval "test \"`echo '$''{'lt_cv_compiler_o_lo'+set}'`\" = set"; then
  8741. - echo $ac_n "(cached) $ac_c" 1>&6
  8742. + echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
  8743. +echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
  8744. + if test "${lt_cv_compiler_o_lo+set}" = set; then
  8745. + echo $ECHO_N "(cached) $ECHO_C" >&6
  8746. else
  8747. -
  8748. +
  8749. lt_cv_compiler_o_lo=no
  8750. save_CFLAGS="$CFLAGS"
  8751. CFLAGS="$CFLAGS -c -o conftest.lo"
  8752. - cat > conftest.$ac_ext <<EOF
  8753. -#line 3181 "configure"
  8754. -#include "confdefs.h"
  8755. + save_objext="$ac_objext"
  8756. + ac_objext=lo
  8757. + cat >conftest.$ac_ext <<_ACEOF
  8758. +#line $LINENO "configure"
  8759. +/* confdefs.h. */
  8760. +_ACEOF
  8761. +cat confdefs.h >>conftest.$ac_ext
  8762. +cat >>conftest.$ac_ext <<_ACEOF
  8763. +/* end confdefs.h. */
  8764. -int main() {
  8765. +int
  8766. +main ()
  8767. +{
  8768. int some_variable = 0;
  8769. -; return 0; }
  8770. -EOF
  8771. -if { (eval echo configure:3188: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  8772. - rm -rf conftest*
  8773. + ;
  8774. + return 0;
  8775. +}
  8776. +_ACEOF
  8777. +rm -f conftest.$ac_objext
  8778. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8779. + (eval $ac_compile) 2>&5
  8780. + ac_status=$?
  8781. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8782. + (exit $ac_status); } &&
  8783. + { ac_try='test -s conftest.$ac_objext'
  8784. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8785. + (eval $ac_try) 2>&5
  8786. + ac_status=$?
  8787. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8788. + (exit $ac_status); }; }; then
  8789. # The compiler can only warn and ignore the option if not recognized
  8790. # So say no if there are warnings
  8791. if test -s conftest.err; then
  8792. @@ -3193,18 +5353,21 @@
  8793. else
  8794. lt_cv_compiler_o_lo=yes
  8795. fi
  8796. -
  8797. +
  8798. else
  8799. - echo "configure: failed program was:" >&5
  8800. - cat conftest.$ac_ext >&5
  8801. + echo "$as_me: failed program was:" >&5
  8802. +sed 's/^/| /' conftest.$ac_ext >&5
  8803. +
  8804. fi
  8805. -rm -f conftest*
  8806. +rm -f conftest.$ac_objext conftest.$ac_ext
  8807. + ac_objext="$save_objext"
  8808. CFLAGS="$save_CFLAGS"
  8809. -
  8810. +
  8811. fi
  8812. compiler_o_lo=$lt_cv_compiler_o_lo
  8813. - echo "$ac_t""$compiler_o_lo" 1>&6
  8814. + echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
  8815. +echo "${ECHO_T}$compiler_o_lo" >&6
  8816. else
  8817. compiler_o_lo=no
  8818. fi
  8819. @@ -3213,17 +5376,19 @@
  8820. hard_links="nottested"
  8821. if test "$compiler_c_o" = no && test "$need_locks" != no; then
  8822. # do not overwrite the value of need_locks provided by the user
  8823. - echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
  8824. -echo "configure:3218: checking if we can lock with hard links" >&5
  8825. + echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  8826. +echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  8827. hard_links=yes
  8828. $rm conftest*
  8829. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8830. touch conftest.a
  8831. ln conftest.a conftest.b 2>&5 || hard_links=no
  8832. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8833. - echo "$ac_t""$hard_links" 1>&6
  8834. + echo "$as_me:$LINENO: result: $hard_links" >&5
  8835. +echo "${ECHO_T}$hard_links" >&6
  8836. if test "$hard_links" = no; then
  8837. - echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
  8838. + { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8839. +echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8840. need_locks=warn
  8841. fi
  8842. else
  8843. @@ -3232,22 +5397,40 @@
  8844. if test "$GCC" = yes; then
  8845. # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
  8846. - echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
  8847. -echo "configure:3237: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  8848. + echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  8849. +echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
  8850. echo "int some_variable = 0;" > conftest.$ac_ext
  8851. save_CFLAGS="$CFLAGS"
  8852. CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
  8853. compiler_rtti_exceptions=no
  8854. - cat > conftest.$ac_ext <<EOF
  8855. -#line 3243 "configure"
  8856. -#include "confdefs.h"
  8857. + cat >conftest.$ac_ext <<_ACEOF
  8858. +#line $LINENO "configure"
  8859. +/* confdefs.h. */
  8860. +_ACEOF
  8861. +cat confdefs.h >>conftest.$ac_ext
  8862. +cat >>conftest.$ac_ext <<_ACEOF
  8863. +/* end confdefs.h. */
  8864. -int main() {
  8865. +int
  8866. +main ()
  8867. +{
  8868. int some_variable = 0;
  8869. -; return 0; }
  8870. -EOF
  8871. -if { (eval echo configure:3250: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  8872. - rm -rf conftest*
  8873. + ;
  8874. + return 0;
  8875. +}
  8876. +_ACEOF
  8877. +rm -f conftest.$ac_objext
  8878. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8879. + (eval $ac_compile) 2>&5
  8880. + ac_status=$?
  8881. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8882. + (exit $ac_status); } &&
  8883. + { ac_try='test -s conftest.$ac_objext'
  8884. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8885. + (eval $ac_try) 2>&5
  8886. + ac_status=$?
  8887. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8888. + (exit $ac_status); }; }; then
  8889. # The compiler can only warn and ignore the option if not recognized
  8890. # So say no if there are warnings
  8891. if test -s conftest.err; then
  8892. @@ -3255,14 +5438,16 @@
  8893. else
  8894. compiler_rtti_exceptions=yes
  8895. fi
  8896. -
  8897. +
  8898. else
  8899. - echo "configure: failed program was:" >&5
  8900. - cat conftest.$ac_ext >&5
  8901. + echo "$as_me: failed program was:" >&5
  8902. +sed 's/^/| /' conftest.$ac_ext >&5
  8903. +
  8904. fi
  8905. -rm -f conftest*
  8906. +rm -f conftest.$ac_objext conftest.$ac_ext
  8907. CFLAGS="$save_CFLAGS"
  8908. - echo "$ac_t""$compiler_rtti_exceptions" 1>&6
  8909. + echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
  8910. +echo "${ECHO_T}$compiler_rtti_exceptions" >&6
  8911. if test "$compiler_rtti_exceptions" = "yes"; then
  8912. no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
  8913. @@ -3272,8 +5457,8 @@
  8914. fi
  8915. # See if the linker supports building shared libraries.
  8916. -echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
  8917. -echo "configure:3277: checking whether the linker ($LD) supports shared libraries" >&5
  8918. +echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
  8919. +echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
  8920. allow_undefined_flag=
  8921. no_undefined_flag=
  8922. @@ -3314,7 +5499,7 @@
  8923. extract_expsyms_cmds=
  8924. case $host_os in
  8925. -cygwin* | mingw* | pw32* )
  8926. +cygwin* | mingw* | pw32*)
  8927. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8928. # When not using gcc, we currently assume that we are using
  8929. # Microsoft Visual C++.
  8930. @@ -3322,7 +5507,9 @@
  8931. with_gnu_ld=no
  8932. fi
  8933. ;;
  8934. -
  8935. +openbsd*)
  8936. + with_gnu_ld=no
  8937. + ;;
  8938. esac
  8939. ld_shlibs=yes
  8940. @@ -3409,7 +5596,7 @@
  8941. # can override, but on older systems we have to supply one (in ltdll.c)
  8942. if test "x$lt_cv_need_dllmain" = "xyes"; then
  8943. ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
  8944. - ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < [$]0 > $output_objdir/$soname-ltdll.c~
  8945. + ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
  8946. test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
  8947. else
  8948. ltdll_obj=
  8949. @@ -3427,19 +5614,20 @@
  8950. # If the export-symbols file already is a .def file (1st line
  8951. # is EXPORTS), use it as is.
  8952. # If DATA tags from a recent dlltool are present, honour them!
  8953. - archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
  8954. - cp $export_symbols $output_objdir/$soname-def;
  8955. + archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
  8956. + cp $export_symbols $output_objdir/$soname-def;
  8957. else
  8958. - echo EXPORTS > $output_objdir/$soname-def;
  8959. - _lt_hint=1;
  8960. - cat $export_symbols | while read symbol; do
  8961. - set dummy \$symbol;
  8962. - case \$# in
  8963. - 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
  8964. - *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
  8965. - esac;
  8966. - _lt_hint=`expr 1 + \$_lt_hint`;
  8967. - done;
  8968. + echo EXPORTS > $output_objdir/$soname-def;
  8969. + _lt_hint=1;
  8970. + cat $export_symbols | while read symbol; do
  8971. + set dummy \$symbol;
  8972. + case \$# in
  8973. + 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
  8974. + 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
  8975. + *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
  8976. + esac;
  8977. + _lt_hint=`expr 1 + \$_lt_hint`;
  8978. + done;
  8979. fi~
  8980. '"$ltdll_cmds"'
  8981. $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
  8982. @@ -3534,80 +5722,98 @@
  8983. ;;
  8984. aix4* | aix5*)
  8985. + if test "$host_cpu" = ia64; then
  8986. + # On IA64, the linker does run time linking by default, so we don't
  8987. + # have to do anything special.
  8988. + aix_use_runtimelinking=no
  8989. + exp_sym_flag='-Bexport'
  8990. + no_entry_flag=""
  8991. + else
  8992. + aix_use_runtimelinking=no
  8993. +
  8994. + # Test if we are trying to use run time linking or normal
  8995. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8996. + # need to do runtime linking.
  8997. + case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  8998. + for ld_flag in $LDFLAGS; do
  8999. + case $ld_flag in
  9000. + *-brtl*)
  9001. + aix_use_runtimelinking=yes
  9002. + break
  9003. + ;;
  9004. + esac
  9005. + done
  9006. + esac
  9007. +
  9008. + exp_sym_flag='-bexport'
  9009. + no_entry_flag='-bnoentry'
  9010. + fi
  9011. +
  9012. # When large executables or shared objects are built, AIX ld can
  9013. # have problems creating the table of contents. If linking a library
  9014. # or program results in "error TOC overflow" add -mminimal-toc to
  9015. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9016. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9017. + hardcode_direct=yes
  9018. archive_cmds=''
  9019. hardcode_libdir_separator=':'
  9020. if test "$GCC" = yes; then
  9021. - collect2name=`${CC} -print-prog-name=collect2`
  9022. - if test -f "$collect2name" && \
  9023. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  9024. - then
  9025. - # We have reworked collect2
  9026. - hardcode_direct=yes
  9027. - else
  9028. - # We have old collect2
  9029. - hardcode_direct=unsupported
  9030. - # It fails to find uninstalled libraries when the uninstalled
  9031. - # path is not listed in the libpath. Setting hardcode_minus_L
  9032. - # to unsupported forces relinking
  9033. - hardcode_minus_L=yes
  9034. - hardcode_libdir_flag_spec='-L$libdir'
  9035. - hardcode_libdir_separator=
  9036. - fi
  9037. - shared_flag='-shared'
  9038. - else
  9039. + case $host_os in aix4.[012]|aix4.[012].*)
  9040. + collect2name=`${CC} -print-prog-name=collect2`
  9041. + if test -f "$collect2name" && \
  9042. + strings "$collect2name" | grep resolve_lib_name >/dev/null
  9043. + then
  9044. + # We have reworked collect2
  9045. + hardcode_direct=yes
  9046. + else
  9047. + # We have old collect2
  9048. + hardcode_direct=unsupported
  9049. + # It fails to find uninstalled libraries when the uninstalled
  9050. + # path is not listed in the libpath. Setting hardcode_minus_L
  9051. + # to unsupported forces relinking
  9052. + hardcode_minus_L=yes
  9053. + hardcode_libdir_flag_spec='-L$libdir'
  9054. + hardcode_libdir_separator=
  9055. + fi
  9056. + esac
  9057. +
  9058. + shared_flag='-shared'
  9059. + else
  9060. + # not using gcc
  9061. if test "$host_cpu" = ia64; then
  9062. - shared_flag='-G'
  9063. + shared_flag='${wl}-G'
  9064. else
  9065. - shared_flag='${wl}-bM:SRE'
  9066. + if test "$aix_use_runtimelinking" = yes; then
  9067. + shared_flag='${wl}-G'
  9068. + else
  9069. + shared_flag='${wl}-bM:SRE'
  9070. + fi
  9071. fi
  9072. - hardcode_direct=yes
  9073. fi
  9074. - if test "$host_cpu" = ia64; then
  9075. - # On IA64, the linker does run time linking by default, so we don't
  9076. - # have to do anything special.
  9077. - aix_use_runtimelinking=no
  9078. - exp_sym_flag='-Bexport'
  9079. - no_entry_flag=""
  9080. - else
  9081. - # Test if we are trying to use run time linking, or normal AIX style linking.
  9082. - # If -brtl is somewhere in LDFLAGS, we need to do run time linking.
  9083. - aix_use_runtimelinking=no
  9084. - for ld_flag in $LDFLAGS; do
  9085. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl" ); then
  9086. - aix_use_runtimelinking=yes
  9087. - break
  9088. - fi
  9089. - done
  9090. - exp_sym_flag='-bexport'
  9091. - no_entry_flag='-bnoentry'
  9092. - fi
  9093. # It seems that -bexpall can do strange things, so it is better to
  9094. # generate a list of symbols to export.
  9095. always_export_symbols=yes
  9096. if test "$aix_use_runtimelinking" = yes; then
  9097. + # Warning - without using the other runtime loading flags (-brtl),
  9098. + # -berok will link without error, but may produce a broken library.
  9099. + allow_undefined_flag='-berok'
  9100. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
  9101. - allow_undefined_flag=' -Wl,-G'
  9102. - archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  9103. + archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  9104. else
  9105. if test "$host_cpu" = ia64; then
  9106. - hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  9107. - allow_undefined_flag="-znodefs"
  9108. - archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  9109. + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  9110. + allow_undefined_flag="-z nodefs"
  9111. + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  9112. else
  9113. - hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
  9114. - # Warning - without using the other run time loading flags, -berok will
  9115. - # link without error, but may produce a broken library.
  9116. - allow_undefined_flag='${wl}-berok'
  9117. - # This is a bit strange, but is similar to how AIX traditionally builds
  9118. - # it's shared libraries.
  9119. - archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
  9120. + hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
  9121. + # Warning - without using the other run time loading flags,
  9122. + # -berok will link without error, but may produce a broken library.
  9123. + allow_undefined_flag='${wl}-berok'
  9124. + # This is a bit strange, but is similar to how AIX traditionally builds
  9125. + # it's shared libraries.
  9126. + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $output_objdir/$libname$release.a $output_objdir/$soname'
  9127. fi
  9128. fi
  9129. ;;
  9130. @@ -3639,11 +5845,19 @@
  9131. ;;
  9132. darwin* | rhapsody*)
  9133. - allow_undefined_flag='-undefined suppress'
  9134. + case "$host_os" in
  9135. + rhapsody* | darwin1.[012])
  9136. + allow_undefined_flag='-undefined suppress'
  9137. + ;;
  9138. + *) # Darwin 1.3 on
  9139. + allow_undefined_flag='-flat_namespace -undefined suppress'
  9140. + ;;
  9141. + esac
  9142. # FIXME: Relying on posixy $() will cause problems for
  9143. # cross-compilation, but unfortunately the echo tests do not
  9144. - # yet detect zsh echo's removal of \ escapes.
  9145. - archive_cmds='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linkopts -install_name $rpath/$soname $(test -n "$verstring" -a x$verstring != x0.0 && echo $verstring)'
  9146. + # yet detect zsh echo's removal of \ escapes. Also zsh mangles
  9147. + # `"' quotes if we put them in here... so don't!
  9148. + archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
  9149. # We need to add '_' to the symbols in $export_symbols first
  9150. #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
  9151. hardcode_direct=yes
  9152. @@ -3695,13 +5909,14 @@
  9153. export_dynamic_flag_spec='${wl}-E'
  9154. ;;
  9155. - irix5* | irix6*)
  9156. + irix5* | irix6* | nonstopux*)
  9157. if test "$GCC" = yes; then
  9158. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  9159. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9160. else
  9161. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  9162. + hardcode_libdir_flag_spec='-rpath $libdir'
  9163. fi
  9164. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9165. hardcode_libdir_separator=:
  9166. link_all_deplibs=yes
  9167. ;;
  9168. @@ -3718,7 +5933,7 @@
  9169. ;;
  9170. newsos6)
  9171. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
  9172. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9173. hardcode_direct=yes
  9174. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9175. hardcode_libdir_separator=:
  9176. @@ -3726,10 +5941,24 @@
  9177. ;;
  9178. openbsd*)
  9179. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9180. - hardcode_libdir_flag_spec='-R$libdir'
  9181. hardcode_direct=yes
  9182. hardcode_shlibpath_var=no
  9183. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9184. + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9185. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9186. + export_dynamic_flag_spec='${wl}-E'
  9187. + else
  9188. + case "$host_os" in
  9189. + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  9190. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9191. + hardcode_libdir_flag_spec='-R$libdir'
  9192. + ;;
  9193. + *)
  9194. + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9195. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9196. + ;;
  9197. + esac
  9198. + fi
  9199. ;;
  9200. os2*)
  9201. @@ -3774,10 +6003,39 @@
  9202. hardcode_shlibpath_var=no
  9203. runpath_var=LD_RUN_PATH
  9204. hardcode_runpath_var=yes
  9205. + export_dynamic_flag_spec='${wl}-Bexport'
  9206. ;;
  9207. solaris*)
  9208. + # gcc --version < 3.0 without binutils cannot create self contained
  9209. + # shared libraries reliably, requiring libgcc.a to resolve some of
  9210. + # the object symbols generated in some cases. Libraries that use
  9211. + # assert need libgcc.a to resolve __eprintf, for example. Linking
  9212. + # a copy of libgcc.a into every shared library to guarantee resolving
  9213. + # such symbols causes other problems: According to Tim Van Holder
  9214. + # <[email protected]>, C++ libraries end up with a separate
  9215. + # (to the application) exception stack for one thing.
  9216. no_undefined_flag=' -z defs'
  9217. + if test "$GCC" = yes; then
  9218. + case `$CC --version 2>/dev/null` in
  9219. + [12].*)
  9220. + cat <<EOF 1>&2
  9221. +
  9222. +*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
  9223. +*** create self contained shared libraries on Solaris systems, without
  9224. +*** introducing a dependency on libgcc.a. Therefore, libtool is disabling
  9225. +*** -no-undefined support, which will at least allow you to build shared
  9226. +*** libraries. However, you may find that when you link such libraries
  9227. +*** into an application without using GCC, you have to manually add
  9228. +*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
  9229. +*** upgrade to a newer version of GCC. Another option is to rebuild your
  9230. +*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
  9231. +
  9232. +EOF
  9233. + no_undefined_flag=
  9234. + ;;
  9235. + esac
  9236. + fi
  9237. # $CC -shared without GNU ld will not create a library from C++
  9238. # object files and a static libstdc++, better avoid it by now
  9239. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9240. @@ -3808,13 +6066,23 @@
  9241. ;;
  9242. sysv4)
  9243. - if test "x$host_vendor" = xsno; then
  9244. - archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linkopts'
  9245. - hardcode_direct=yes # is this really true???
  9246. - else
  9247. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9248. - hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9249. - fi
  9250. + case $host_vendor in
  9251. + sni)
  9252. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9253. + hardcode_direct=yes # is this really true???
  9254. + ;;
  9255. + siemens)
  9256. + ## LD is ld it makes a PLAMLIB
  9257. + ## CC just makes a GrossModule.
  9258. + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9259. + reload_cmds='$CC -r -o $output$reload_objs'
  9260. + hardcode_direct=no
  9261. + ;;
  9262. + motorola)
  9263. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9264. + hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9265. + ;;
  9266. + esac
  9267. runpath_var='LD_RUN_PATH'
  9268. hardcode_shlibpath_var=no
  9269. ;;
  9270. @@ -3884,12 +6152,13 @@
  9271. ;;
  9272. esac
  9273. fi
  9274. -echo "$ac_t""$ld_shlibs" 1>&6
  9275. +echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  9276. +echo "${ECHO_T}$ld_shlibs" >&6
  9277. test "$ld_shlibs" = no && can_build_shared=no
  9278. # Check hardcoding attributes.
  9279. -echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
  9280. -echo "configure:3893: checking how to hardcode library paths into programs" >&5
  9281. +echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  9282. +echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  9283. hardcode_action=
  9284. if test -n "$hardcode_libdir_flag_spec" || \
  9285. test -n "$runpath_var"; then
  9286. @@ -3912,26 +6181,29 @@
  9287. # directories.
  9288. hardcode_action=unsupported
  9289. fi
  9290. -echo "$ac_t""$hardcode_action" 1>&6
  9291. +echo "$as_me:$LINENO: result: $hardcode_action" >&5
  9292. +echo "${ECHO_T}$hardcode_action" >&6
  9293. striplib=
  9294. old_striplib=
  9295. -echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
  9296. -echo "configure:3921: checking whether stripping libraries is possible" >&5
  9297. +echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  9298. +echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  9299. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  9300. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9301. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9302. - echo "$ac_t""yes" 1>&6
  9303. + echo "$as_me:$LINENO: result: yes" >&5
  9304. +echo "${ECHO_T}yes" >&6
  9305. else
  9306. - echo "$ac_t""no" 1>&6
  9307. + echo "$as_me:$LINENO: result: no" >&5
  9308. +echo "${ECHO_T}no" >&6
  9309. fi
  9310. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  9311. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  9312. # PORTME Fill in your ld.so characteristics
  9313. -echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
  9314. -echo "configure:3935: checking dynamic linker characteristics" >&5
  9315. +echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  9316. +echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  9317. library_names_spec=
  9318. libname_spec='lib$name'
  9319. soname_spec=
  9320. @@ -3958,6 +6230,9 @@
  9321. aix4* | aix5*)
  9322. version_type=linux
  9323. + need_lib_prefix=no
  9324. + need_version=no
  9325. + hardcode_into_libs=yes
  9326. if test "$host_cpu" = ia64; then
  9327. # AIX 5 supports IA64
  9328. library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
  9329. @@ -3969,22 +6244,24 @@
  9330. # depend on `.', always an invalid library. This was fixed in
  9331. # development snapshots of GCC prior to 3.0.
  9332. case $host_os in
  9333. - aix4 | aix4.[01] | aix4.[01].*)
  9334. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9335. - echo ' yes '
  9336. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  9337. - :
  9338. - else
  9339. - can_build_shared=no
  9340. - fi
  9341. - ;;
  9342. + aix4 | aix4.[01] | aix4.[01].*)
  9343. + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9344. + echo ' yes '
  9345. + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  9346. + :
  9347. + else
  9348. + can_build_shared=no
  9349. + fi
  9350. + ;;
  9351. esac
  9352. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9353. - # soname into executable. Probably we can add versioning support to
  9354. - # collect2, so additional links can be useful in future.
  9355. + # AIX (on Power*) has no versioning support, so currently we can
  9356. + # not hardcode correct soname into executable. Probably we can
  9357. + # add versioning support to collect2, so additional links can
  9358. + # be useful in future.
  9359. if test "$aix_use_runtimelinking" = yes; then
  9360. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so instead of
  9361. - # lib<name>.a to let people know that these are not typical AIX shared libraries.
  9362. + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9363. + # instead of lib<name>.a to let people know that these are not
  9364. + # typical AIX shared libraries.
  9365. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  9366. else
  9367. # We preserve .a as extension for shared libraries through AIX4.2
  9368. @@ -3993,8 +6270,8 @@
  9369. soname_spec='${libname}${release}.so$major'
  9370. fi
  9371. shlibpath_var=LIBPATH
  9372. - deplibs_check_method=pass_all
  9373. fi
  9374. + hardcode_into_libs=yes
  9375. ;;
  9376. amigaos*)
  9377. @@ -4042,7 +6319,7 @@
  9378. ;;
  9379. yes,mingw*)
  9380. library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
  9381. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
  9382. + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
  9383. ;;
  9384. yes,pw32*)
  9385. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
  9386. @@ -4074,6 +6351,18 @@
  9387. dynamic_linker=no
  9388. ;;
  9389. +freebsd*-gnu*)
  9390. + version_type=linux
  9391. + need_lib_prefix=no
  9392. + need_version=no
  9393. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  9394. + soname_spec='${libname}${release}.so$major'
  9395. + shlibpath_var=LD_LIBRARY_PATH
  9396. + shlibpath_overrides_runpath=no
  9397. + hardcode_into_libs=yes
  9398. + dynamic_linker='GNU/FreeBSD ld.so'
  9399. + ;;
  9400. +
  9401. freebsd*)
  9402. objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  9403. version_type=freebsd-$objformat
  9404. @@ -4125,14 +6414,17 @@
  9405. postinstall_cmds='chmod 555 $lib'
  9406. ;;
  9407. -irix5* | irix6*)
  9408. - version_type=irix
  9409. +irix5* | irix6* | nonstopux*)
  9410. + case $host_os in
  9411. + nonstopux*) version_type=nonstopux ;;
  9412. + *) version_type=irix ;;
  9413. + esac
  9414. need_lib_prefix=no
  9415. need_version=no
  9416. soname_spec='${libname}${release}.so$major'
  9417. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
  9418. case $host_os in
  9419. - irix5*)
  9420. + irix5* | nonstopux*)
  9421. libsuff= shlibsuff=
  9422. ;;
  9423. *)
  9424. @@ -4206,9 +6498,19 @@
  9425. openbsd*)
  9426. version_type=sunos
  9427. - if test "$with_gnu_ld" = yes; then
  9428. - need_lib_prefix=no
  9429. - need_version=no
  9430. + need_lib_prefix=no
  9431. + need_version=no
  9432. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9433. + case "$host_os" in
  9434. + openbsd2.[89] | openbsd2.[89].*)
  9435. + shlibpath_overrides_runpath=no
  9436. + ;;
  9437. + *)
  9438. + shlibpath_overrides_runpath=yes
  9439. + ;;
  9440. + esac
  9441. + else
  9442. + shlibpath_overrides_runpath=yes
  9443. fi
  9444. library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
  9445. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9446. @@ -4226,11 +6528,13 @@
  9447. osf3* | osf4* | osf5*)
  9448. version_type=osf
  9449. need_version=no
  9450. - soname_spec='${libname}${release}.so'
  9451. - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
  9452. + need_lib_prefix=no
  9453. + soname_spec='${libname}${release}.so$major'
  9454. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  9455. shlibpath_var=LD_LIBRARY_PATH
  9456. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9457. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9458. + hardcode_into_libs=yes
  9459. ;;
  9460. sco3.2v5*)
  9461. @@ -4273,6 +6577,12 @@
  9462. case $host_vendor in
  9463. sni)
  9464. shlibpath_overrides_runpath=no
  9465. + need_lib_prefix=no
  9466. + export_dynamic_flag_spec='${wl}-Blargedynsym'
  9467. + runpath_var=LD_RUN_PATH
  9468. + ;;
  9469. + siemens)
  9470. + need_lib_prefix=no
  9471. ;;
  9472. motorola)
  9473. need_lib_prefix=no
  9474. @@ -4312,13 +6622,46 @@
  9475. dynamic_linker=no
  9476. ;;
  9477. esac
  9478. -echo "$ac_t""$dynamic_linker" 1>&6
  9479. +echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  9480. +echo "${ECHO_T}$dynamic_linker" >&6
  9481. test "$dynamic_linker" = no && can_build_shared=no
  9482. # Report the final consequences.
  9483. -echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
  9484. -echo "configure:4321: checking if libtool supports shared libraries" >&5
  9485. -echo "$ac_t""$can_build_shared" 1>&6
  9486. +echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  9487. +echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
  9488. +echo "$as_me:$LINENO: result: $can_build_shared" >&5
  9489. +echo "${ECHO_T}$can_build_shared" >&6
  9490. +
  9491. +echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  9492. +echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
  9493. +test "$can_build_shared" = "no" && enable_shared=no
  9494. +
  9495. +# On AIX, shared libraries and static libraries use the same namespace, and
  9496. +# are all built from PIC.
  9497. +case "$host_os" in
  9498. +aix3*)
  9499. + test "$enable_shared" = yes && enable_static=no
  9500. + if test -n "$RANLIB"; then
  9501. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9502. + postinstall_cmds='$RANLIB $lib'
  9503. + fi
  9504. + ;;
  9505. +
  9506. +aix4*)
  9507. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9508. + test "$enable_shared" = yes && enable_static=no
  9509. + fi
  9510. + ;;
  9511. +esac
  9512. +echo "$as_me:$LINENO: result: $enable_shared" >&5
  9513. +echo "${ECHO_T}$enable_shared" >&6
  9514. +
  9515. +echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  9516. +echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
  9517. +# Make sure either enable_shared or enable_static is yes.
  9518. +test "$enable_shared" = yes || enable_static=yes
  9519. +echo "$as_me:$LINENO: result: $enable_static" >&5
  9520. +echo "${ECHO_T}$enable_static" >&6
  9521. if test "$hardcode_action" = relink; then
  9522. # Fast installation is not supported
  9523. @@ -4355,224 +6698,398 @@
  9524. ;;
  9525. *)
  9526. - echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
  9527. -echo "configure:4360: checking for dlopen in -ldl" >&5
  9528. -ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
  9529. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  9530. - echo $ac_n "(cached) $ac_c" 1>&6
  9531. -else
  9532. - ac_save_LIBS="$LIBS"
  9533. -LIBS="-ldl $LIBS"
  9534. -cat > conftest.$ac_ext <<EOF
  9535. -#line 4368 "configure"
  9536. -#include "confdefs.h"
  9537. -/* Override any gcc2 internal prototype to avoid an error. */
  9538. -/* We use char because int might match the return type of a gcc2
  9539. - builtin and then its argument prototype would still apply. */
  9540. -char dlopen();
  9541. -
  9542. -int main() {
  9543. -dlopen()
  9544. -; return 0; }
  9545. -EOF
  9546. -if { (eval echo configure:4379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9547. - rm -rf conftest*
  9548. - eval "ac_cv_lib_$ac_lib_var=yes"
  9549. -else
  9550. - echo "configure: failed program was:" >&5
  9551. - cat conftest.$ac_ext >&5
  9552. - rm -rf conftest*
  9553. - eval "ac_cv_lib_$ac_lib_var=no"
  9554. -fi
  9555. -rm -f conftest*
  9556. -LIBS="$ac_save_LIBS"
  9557. -
  9558. -fi
  9559. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9560. - echo "$ac_t""yes" 1>&6
  9561. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9562. -else
  9563. - echo "$ac_t""no" 1>&6
  9564. -echo $ac_n "checking for dlopen""... $ac_c" 1>&6
  9565. -echo "configure:4398: checking for dlopen" >&5
  9566. -if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
  9567. - echo $ac_n "(cached) $ac_c" 1>&6
  9568. -else
  9569. - cat > conftest.$ac_ext <<EOF
  9570. -#line 4403 "configure"
  9571. -#include "confdefs.h"
  9572. + echo "$as_me:$LINENO: checking for shl_load" >&5
  9573. +echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
  9574. +if test "${ac_cv_func_shl_load+set}" = set; then
  9575. + echo $ECHO_N "(cached) $ECHO_C" >&6
  9576. +else
  9577. + cat >conftest.$ac_ext <<_ACEOF
  9578. +#line $LINENO "configure"
  9579. +/* confdefs.h. */
  9580. +_ACEOF
  9581. +cat confdefs.h >>conftest.$ac_ext
  9582. +cat >>conftest.$ac_ext <<_ACEOF
  9583. +/* end confdefs.h. */
  9584. /* System header to define __stub macros and hopefully few prototypes,
  9585. - which can conflict with char dlopen(); below. */
  9586. -#include <assert.h>
  9587. + which can conflict with char shl_load (); below.
  9588. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9589. + <limits.h> exists even on freestanding compilers. */
  9590. +#ifdef __STDC__
  9591. +# include <limits.h>
  9592. +#else
  9593. +# include <assert.h>
  9594. +#endif
  9595. /* Override any gcc2 internal prototype to avoid an error. */
  9596. +#ifdef __cplusplus
  9597. +extern "C"
  9598. +{
  9599. +#endif
  9600. /* We use char because int might match the return type of a gcc2
  9601. - builtin and then its argument prototype would still apply. */
  9602. -char dlopen();
  9603. -
  9604. -int main() {
  9605. -
  9606. + builtin and then its argument prototype would still apply. */
  9607. +char shl_load ();
  9608. /* The GNU C library defines this for functions which it implements
  9609. to always fail with ENOSYS. Some functions are actually named
  9610. something starting with __ and the normal name is an alias. */
  9611. -#if defined (__stub_dlopen) || defined (__stub___dlopen)
  9612. +#if defined (__stub_shl_load) || defined (__stub___shl_load)
  9613. choke me
  9614. #else
  9615. -dlopen();
  9616. +char (*f) () = shl_load;
  9617. +#endif
  9618. +#ifdef __cplusplus
  9619. +}
  9620. #endif
  9621. -; return 0; }
  9622. -EOF
  9623. -if { (eval echo configure:4426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9624. - rm -rf conftest*
  9625. - eval "ac_cv_func_dlopen=yes"
  9626. -else
  9627. - echo "configure: failed program was:" >&5
  9628. - cat conftest.$ac_ext >&5
  9629. - rm -rf conftest*
  9630. - eval "ac_cv_func_dlopen=no"
  9631. -fi
  9632. -rm -f conftest*
  9633. -fi
  9634. -
  9635. -if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
  9636. - echo "$ac_t""yes" 1>&6
  9637. - lt_cv_dlopen="dlopen"
  9638. +int
  9639. +main ()
  9640. +{
  9641. +return f != shl_load;
  9642. + ;
  9643. + return 0;
  9644. +}
  9645. +_ACEOF
  9646. +rm -f conftest.$ac_objext conftest$ac_exeext
  9647. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9648. + (eval $ac_link) 2>&5
  9649. + ac_status=$?
  9650. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9651. + (exit $ac_status); } &&
  9652. + { ac_try='test -s conftest$ac_exeext'
  9653. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9654. + (eval $ac_try) 2>&5
  9655. + ac_status=$?
  9656. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9657. + (exit $ac_status); }; }; then
  9658. + ac_cv_func_shl_load=yes
  9659. +else
  9660. + echo "$as_me: failed program was:" >&5
  9661. +sed 's/^/| /' conftest.$ac_ext >&5
  9662. +
  9663. +ac_cv_func_shl_load=no
  9664. +fi
  9665. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  9666. +fi
  9667. +echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  9668. +echo "${ECHO_T}$ac_cv_func_shl_load" >&6
  9669. +if test $ac_cv_func_shl_load = yes; then
  9670. + lt_cv_dlopen="shl_load"
  9671. else
  9672. - echo "$ac_t""no" 1>&6
  9673. -echo $ac_n "checking for shl_load""... $ac_c" 1>&6
  9674. -echo "configure:4444: checking for shl_load" >&5
  9675. -if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then
  9676. - echo $ac_n "(cached) $ac_c" 1>&6
  9677. + echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  9678. +echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  9679. +if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  9680. + echo $ECHO_N "(cached) $ECHO_C" >&6
  9681. else
  9682. - cat > conftest.$ac_ext <<EOF
  9683. -#line 4449 "configure"
  9684. -#include "confdefs.h"
  9685. + ac_check_lib_save_LIBS=$LIBS
  9686. +LIBS="-ldld $LIBS"
  9687. +cat >conftest.$ac_ext <<_ACEOF
  9688. +#line $LINENO "configure"
  9689. +/* confdefs.h. */
  9690. +_ACEOF
  9691. +cat confdefs.h >>conftest.$ac_ext
  9692. +cat >>conftest.$ac_ext <<_ACEOF
  9693. +/* end confdefs.h. */
  9694. +
  9695. +/* Override any gcc2 internal prototype to avoid an error. */
  9696. +#ifdef __cplusplus
  9697. +extern "C"
  9698. +#endif
  9699. +/* We use char because int might match the return type of a gcc2
  9700. + builtin and then its argument prototype would still apply. */
  9701. +char shl_load ();
  9702. +int
  9703. +main ()
  9704. +{
  9705. +shl_load ();
  9706. + ;
  9707. + return 0;
  9708. +}
  9709. +_ACEOF
  9710. +rm -f conftest.$ac_objext conftest$ac_exeext
  9711. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9712. + (eval $ac_link) 2>&5
  9713. + ac_status=$?
  9714. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9715. + (exit $ac_status); } &&
  9716. + { ac_try='test -s conftest$ac_exeext'
  9717. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9718. + (eval $ac_try) 2>&5
  9719. + ac_status=$?
  9720. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9721. + (exit $ac_status); }; }; then
  9722. + ac_cv_lib_dld_shl_load=yes
  9723. +else
  9724. + echo "$as_me: failed program was:" >&5
  9725. +sed 's/^/| /' conftest.$ac_ext >&5
  9726. +
  9727. +ac_cv_lib_dld_shl_load=no
  9728. +fi
  9729. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  9730. +LIBS=$ac_check_lib_save_LIBS
  9731. +fi
  9732. +echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  9733. +echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  9734. +if test $ac_cv_lib_dld_shl_load = yes; then
  9735. + lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  9736. +else
  9737. + echo "$as_me:$LINENO: checking for dlopen" >&5
  9738. +echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
  9739. +if test "${ac_cv_func_dlopen+set}" = set; then
  9740. + echo $ECHO_N "(cached) $ECHO_C" >&6
  9741. +else
  9742. + cat >conftest.$ac_ext <<_ACEOF
  9743. +#line $LINENO "configure"
  9744. +/* confdefs.h. */
  9745. +_ACEOF
  9746. +cat confdefs.h >>conftest.$ac_ext
  9747. +cat >>conftest.$ac_ext <<_ACEOF
  9748. +/* end confdefs.h. */
  9749. /* System header to define __stub macros and hopefully few prototypes,
  9750. - which can conflict with char shl_load(); below. */
  9751. -#include <assert.h>
  9752. + which can conflict with char dlopen (); below.
  9753. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9754. + <limits.h> exists even on freestanding compilers. */
  9755. +#ifdef __STDC__
  9756. +# include <limits.h>
  9757. +#else
  9758. +# include <assert.h>
  9759. +#endif
  9760. /* Override any gcc2 internal prototype to avoid an error. */
  9761. +#ifdef __cplusplus
  9762. +extern "C"
  9763. +{
  9764. +#endif
  9765. /* We use char because int might match the return type of a gcc2
  9766. - builtin and then its argument prototype would still apply. */
  9767. -char shl_load();
  9768. -
  9769. -int main() {
  9770. -
  9771. + builtin and then its argument prototype would still apply. */
  9772. +char dlopen ();
  9773. /* The GNU C library defines this for functions which it implements
  9774. to always fail with ENOSYS. Some functions are actually named
  9775. something starting with __ and the normal name is an alias. */
  9776. -#if defined (__stub_shl_load) || defined (__stub___shl_load)
  9777. +#if defined (__stub_dlopen) || defined (__stub___dlopen)
  9778. choke me
  9779. #else
  9780. -shl_load();
  9781. +char (*f) () = dlopen;
  9782. +#endif
  9783. +#ifdef __cplusplus
  9784. +}
  9785. #endif
  9786. -; return 0; }
  9787. -EOF
  9788. -if { (eval echo configure:4472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9789. - rm -rf conftest*
  9790. - eval "ac_cv_func_shl_load=yes"
  9791. +int
  9792. +main ()
  9793. +{
  9794. +return f != dlopen;
  9795. + ;
  9796. + return 0;
  9797. +}
  9798. +_ACEOF
  9799. +rm -f conftest.$ac_objext conftest$ac_exeext
  9800. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9801. + (eval $ac_link) 2>&5
  9802. + ac_status=$?
  9803. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9804. + (exit $ac_status); } &&
  9805. + { ac_try='test -s conftest$ac_exeext'
  9806. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9807. + (eval $ac_try) 2>&5
  9808. + ac_status=$?
  9809. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9810. + (exit $ac_status); }; }; then
  9811. + ac_cv_func_dlopen=yes
  9812. +else
  9813. + echo "$as_me: failed program was:" >&5
  9814. +sed 's/^/| /' conftest.$ac_ext >&5
  9815. +
  9816. +ac_cv_func_dlopen=no
  9817. +fi
  9818. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  9819. +fi
  9820. +echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  9821. +echo "${ECHO_T}$ac_cv_func_dlopen" >&6
  9822. +if test $ac_cv_func_dlopen = yes; then
  9823. + lt_cv_dlopen="dlopen"
  9824. else
  9825. - echo "configure: failed program was:" >&5
  9826. - cat conftest.$ac_ext >&5
  9827. - rm -rf conftest*
  9828. - eval "ac_cv_func_shl_load=no"
  9829. -fi
  9830. -rm -f conftest*
  9831. -fi
  9832. + echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  9833. +echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  9834. +if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  9835. + echo $ECHO_N "(cached) $ECHO_C" >&6
  9836. +else
  9837. + ac_check_lib_save_LIBS=$LIBS
  9838. +LIBS="-ldl $LIBS"
  9839. +cat >conftest.$ac_ext <<_ACEOF
  9840. +#line $LINENO "configure"
  9841. +/* confdefs.h. */
  9842. +_ACEOF
  9843. +cat confdefs.h >>conftest.$ac_ext
  9844. +cat >>conftest.$ac_ext <<_ACEOF
  9845. +/* end confdefs.h. */
  9846. -if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
  9847. - echo "$ac_t""yes" 1>&6
  9848. - lt_cv_dlopen="shl_load"
  9849. +/* Override any gcc2 internal prototype to avoid an error. */
  9850. +#ifdef __cplusplus
  9851. +extern "C"
  9852. +#endif
  9853. +/* We use char because int might match the return type of a gcc2
  9854. + builtin and then its argument prototype would still apply. */
  9855. +char dlopen ();
  9856. +int
  9857. +main ()
  9858. +{
  9859. +dlopen ();
  9860. + ;
  9861. + return 0;
  9862. +}
  9863. +_ACEOF
  9864. +rm -f conftest.$ac_objext conftest$ac_exeext
  9865. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9866. + (eval $ac_link) 2>&5
  9867. + ac_status=$?
  9868. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9869. + (exit $ac_status); } &&
  9870. + { ac_try='test -s conftest$ac_exeext'
  9871. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9872. + (eval $ac_try) 2>&5
  9873. + ac_status=$?
  9874. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9875. + (exit $ac_status); }; }; then
  9876. + ac_cv_lib_dl_dlopen=yes
  9877. +else
  9878. + echo "$as_me: failed program was:" >&5
  9879. +sed 's/^/| /' conftest.$ac_ext >&5
  9880. +
  9881. +ac_cv_lib_dl_dlopen=no
  9882. +fi
  9883. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  9884. +LIBS=$ac_check_lib_save_LIBS
  9885. +fi
  9886. +echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  9887. +echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  9888. +if test $ac_cv_lib_dl_dlopen = yes; then
  9889. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9890. else
  9891. - echo "$ac_t""no" 1>&6
  9892. -echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
  9893. -echo "configure:4490: checking for dlopen in -lsvld" >&5
  9894. -ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-%__p_%'`
  9895. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  9896. - echo $ac_n "(cached) $ac_c" 1>&6
  9897. + echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  9898. +echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
  9899. +if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  9900. + echo $ECHO_N "(cached) $ECHO_C" >&6
  9901. else
  9902. - ac_save_LIBS="$LIBS"
  9903. + ac_check_lib_save_LIBS=$LIBS
  9904. LIBS="-lsvld $LIBS"
  9905. -cat > conftest.$ac_ext <<EOF
  9906. -#line 4498 "configure"
  9907. -#include "confdefs.h"
  9908. +cat >conftest.$ac_ext <<_ACEOF
  9909. +#line $LINENO "configure"
  9910. +/* confdefs.h. */
  9911. +_ACEOF
  9912. +cat confdefs.h >>conftest.$ac_ext
  9913. +cat >>conftest.$ac_ext <<_ACEOF
  9914. +/* end confdefs.h. */
  9915. +
  9916. /* Override any gcc2 internal prototype to avoid an error. */
  9917. +#ifdef __cplusplus
  9918. +extern "C"
  9919. +#endif
  9920. /* We use char because int might match the return type of a gcc2
  9921. - builtin and then its argument prototype would still apply. */
  9922. -char dlopen();
  9923. -
  9924. -int main() {
  9925. -dlopen()
  9926. -; return 0; }
  9927. -EOF
  9928. -if { (eval echo configure:4509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9929. - rm -rf conftest*
  9930. - eval "ac_cv_lib_$ac_lib_var=yes"
  9931. -else
  9932. - echo "configure: failed program was:" >&5
  9933. - cat conftest.$ac_ext >&5
  9934. - rm -rf conftest*
  9935. - eval "ac_cv_lib_$ac_lib_var=no"
  9936. -fi
  9937. -rm -f conftest*
  9938. -LIBS="$ac_save_LIBS"
  9939. -
  9940. -fi
  9941. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9942. - echo "$ac_t""yes" 1>&6
  9943. + builtin and then its argument prototype would still apply. */
  9944. +char dlopen ();
  9945. +int
  9946. +main ()
  9947. +{
  9948. +dlopen ();
  9949. + ;
  9950. + return 0;
  9951. +}
  9952. +_ACEOF
  9953. +rm -f conftest.$ac_objext conftest$ac_exeext
  9954. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9955. + (eval $ac_link) 2>&5
  9956. + ac_status=$?
  9957. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9958. + (exit $ac_status); } &&
  9959. + { ac_try='test -s conftest$ac_exeext'
  9960. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9961. + (eval $ac_try) 2>&5
  9962. + ac_status=$?
  9963. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9964. + (exit $ac_status); }; }; then
  9965. + ac_cv_lib_svld_dlopen=yes
  9966. +else
  9967. + echo "$as_me: failed program was:" >&5
  9968. +sed 's/^/| /' conftest.$ac_ext >&5
  9969. +
  9970. +ac_cv_lib_svld_dlopen=no
  9971. +fi
  9972. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  9973. +LIBS=$ac_check_lib_save_LIBS
  9974. +fi
  9975. +echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  9976. +echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
  9977. +if test $ac_cv_lib_svld_dlopen = yes; then
  9978. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9979. else
  9980. - echo "$ac_t""no" 1>&6
  9981. -echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
  9982. -echo "configure:4528: checking for shl_load in -ldld" >&5
  9983. -ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
  9984. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  9985. - echo $ac_n "(cached) $ac_c" 1>&6
  9986. + echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  9987. +echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
  9988. +if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  9989. + echo $ECHO_N "(cached) $ECHO_C" >&6
  9990. else
  9991. - ac_save_LIBS="$LIBS"
  9992. + ac_check_lib_save_LIBS=$LIBS
  9993. LIBS="-ldld $LIBS"
  9994. -cat > conftest.$ac_ext <<EOF
  9995. -#line 4536 "configure"
  9996. -#include "confdefs.h"
  9997. +cat >conftest.$ac_ext <<_ACEOF
  9998. +#line $LINENO "configure"
  9999. +/* confdefs.h. */
  10000. +_ACEOF
  10001. +cat confdefs.h >>conftest.$ac_ext
  10002. +cat >>conftest.$ac_ext <<_ACEOF
  10003. +/* end confdefs.h. */
  10004. +
  10005. /* Override any gcc2 internal prototype to avoid an error. */
  10006. +#ifdef __cplusplus
  10007. +extern "C"
  10008. +#endif
  10009. /* We use char because int might match the return type of a gcc2
  10010. - builtin and then its argument prototype would still apply. */
  10011. -char shl_load();
  10012. -
  10013. -int main() {
  10014. -shl_load()
  10015. -; return 0; }
  10016. -EOF
  10017. -if { (eval echo configure:4547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10018. - rm -rf conftest*
  10019. - eval "ac_cv_lib_$ac_lib_var=yes"
  10020. -else
  10021. - echo "configure: failed program was:" >&5
  10022. - cat conftest.$ac_ext >&5
  10023. - rm -rf conftest*
  10024. - eval "ac_cv_lib_$ac_lib_var=no"
  10025. + builtin and then its argument prototype would still apply. */
  10026. +char dld_link ();
  10027. +int
  10028. +main ()
  10029. +{
  10030. +dld_link ();
  10031. + ;
  10032. + return 0;
  10033. +}
  10034. +_ACEOF
  10035. +rm -f conftest.$ac_objext conftest$ac_exeext
  10036. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10037. + (eval $ac_link) 2>&5
  10038. + ac_status=$?
  10039. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10040. + (exit $ac_status); } &&
  10041. + { ac_try='test -s conftest$ac_exeext'
  10042. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10043. + (eval $ac_try) 2>&5
  10044. + ac_status=$?
  10045. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10046. + (exit $ac_status); }; }; then
  10047. + ac_cv_lib_dld_dld_link=yes
  10048. +else
  10049. + echo "$as_me: failed program was:" >&5
  10050. +sed 's/^/| /' conftest.$ac_ext >&5
  10051. +
  10052. +ac_cv_lib_dld_dld_link=no
  10053. +fi
  10054. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  10055. +LIBS=$ac_check_lib_save_LIBS
  10056. +fi
  10057. +echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  10058. +echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
  10059. +if test $ac_cv_lib_dld_dld_link = yes; then
  10060. + lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  10061. fi
  10062. -rm -f conftest*
  10063. -LIBS="$ac_save_LIBS"
  10064. -fi
  10065. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  10066. - echo "$ac_t""yes" 1>&6
  10067. - lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  10068. -else
  10069. - echo "$ac_t""no" 1>&6
  10070. +
  10071. fi
  10072. -
  10073. +
  10074. fi
  10075. -
  10076. +
  10077. fi
  10078. -
  10079. +
  10080. fi
  10081. -
  10082. +
  10083. fi
  10084. ;;
  10085. @@ -4595,10 +7112,10 @@
  10086. save_LIBS="$LIBS"
  10087. LIBS="$lt_cv_dlopen_libs $LIBS"
  10088. - echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
  10089. -echo "configure:4600: checking whether a program can dlopen itself" >&5
  10090. -if eval "test \"`echo '$''{'lt_cv_dlopen_self'+set}'`\" = set"; then
  10091. - echo $ac_n "(cached) $ac_c" 1>&6
  10092. + echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  10093. +echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
  10094. +if test "${lt_cv_dlopen_self+set}" = set; then
  10095. + echo $ECHO_N "(cached) $ECHO_C" >&6
  10096. else
  10097. if test "$cross_compiling" = yes; then :
  10098. lt_cv_dlopen_self=cross
  10099. @@ -4606,7 +7123,7 @@
  10100. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10101. lt_status=$lt_dlunknown
  10102. cat > conftest.$ac_ext <<EOF
  10103. -#line 4610 "configure"
  10104. +#line 7126 "configure"
  10105. #include "confdefs.h"
  10106. #if HAVE_DLFCN_H
  10107. @@ -4667,7 +7184,11 @@
  10108. exit (status);
  10109. }
  10110. EOF
  10111. - if { (eval echo configure:4671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10112. + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10113. + (eval $ac_link) 2>&5
  10114. + ac_status=$?
  10115. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10116. + (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  10117. (./conftest; exit; ) 2>/dev/null
  10118. lt_status=$?
  10119. case x$lt_status in
  10120. @@ -4682,17 +7203,17 @@
  10121. fi
  10122. rm -fr conftest*
  10123. -
  10124. -fi
  10125. -echo "$ac_t""$lt_cv_dlopen_self" 1>&6
  10126. +fi
  10127. +echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  10128. +echo "${ECHO_T}$lt_cv_dlopen_self" >&6
  10129. if test "x$lt_cv_dlopen_self" = xyes; then
  10130. LDFLAGS="$LDFLAGS $link_static_flag"
  10131. - echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
  10132. -echo "configure:4694: checking whether a statically linked program can dlopen itself" >&5
  10133. -if eval "test \"`echo '$''{'lt_cv_dlopen_self_static'+set}'`\" = set"; then
  10134. - echo $ac_n "(cached) $ac_c" 1>&6
  10135. + echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  10136. +echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
  10137. +if test "${lt_cv_dlopen_self_static+set}" = set; then
  10138. + echo $ECHO_N "(cached) $ECHO_C" >&6
  10139. else
  10140. if test "$cross_compiling" = yes; then :
  10141. lt_cv_dlopen_self_static=cross
  10142. @@ -4700,7 +7221,7 @@
  10143. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10144. lt_status=$lt_dlunknown
  10145. cat > conftest.$ac_ext <<EOF
  10146. -#line 4704 "configure"
  10147. +#line 7224 "configure"
  10148. #include "confdefs.h"
  10149. #if HAVE_DLFCN_H
  10150. @@ -4761,7 +7282,11 @@
  10151. exit (status);
  10152. }
  10153. EOF
  10154. - if { (eval echo configure:4765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10155. + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10156. + (eval $ac_link) 2>&5
  10157. + ac_status=$?
  10158. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10159. + (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  10160. (./conftest; exit; ) 2>/dev/null
  10161. lt_status=$?
  10162. case x$lt_status in
  10163. @@ -4776,10 +7301,10 @@
  10164. fi
  10165. rm -fr conftest*
  10166. -
  10167. -fi
  10168. -echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
  10169. +fi
  10170. +echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  10171. +echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
  10172. fi
  10173. CPPFLAGS="$save_CPPFLAGS"
  10174. @@ -4809,15 +7334,19 @@
  10175. # Test whether the compiler implicitly links with -lc since on some
  10176. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  10177. # to ld, don't add -lc before -lgcc.
  10178. - echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
  10179. -echo "configure:4814: checking whether -lc should be explicitly linked in" >&5
  10180. - if eval "test \"`echo '$''{'lt_cv_archive_cmds_need_lc'+set}'`\" = set"; then
  10181. - echo $ac_n "(cached) $ac_c" 1>&6
  10182. + echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  10183. +echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  10184. + if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
  10185. + echo $ECHO_N "(cached) $ECHO_C" >&6
  10186. else
  10187. $rm conftest*
  10188. echo 'static int dummy;' > conftest.$ac_ext
  10189. - if { (eval echo configure:4821: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10190. + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10191. + (eval $ac_compile) 2>&5
  10192. + ac_status=$?
  10193. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10194. + (exit $ac_status); }; then
  10195. soname=conftest
  10196. lib=conftest
  10197. libobjs=conftest.$ac_objext
  10198. @@ -4830,7 +7359,11 @@
  10199. libname=conftest
  10200. save_allow_undefined_flag=$allow_undefined_flag
  10201. allow_undefined_flag=
  10202. - if { (eval echo configure:4834: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\") 1>&5; (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5; }
  10203. + if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  10204. + (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  10205. + ac_status=$?
  10206. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10207. + (exit $ac_status); }
  10208. then
  10209. lt_cv_archive_cmds_need_lc=no
  10210. else
  10211. @@ -4842,7 +7375,8 @@
  10212. fi
  10213. fi
  10214. - echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
  10215. + echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
  10216. +echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
  10217. ;;
  10218. esac
  10219. fi
  10220. @@ -4870,7 +7404,7 @@
  10221. # Now quote all the things that may contain metacharacters while being
  10222. # careful not to overquote the AC_SUBSTed values. We take copies of the
  10223. # variables and quote the copies for generation of the libtool script.
  10224. - for var in echo old_CC old_CFLAGS \
  10225. + for var in echo old_CC old_CFLAGS SED \
  10226. AR AR_FLAGS CC LD LN_S NM SHELL \
  10227. reload_flag reload_cmds wl \
  10228. pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
  10229. @@ -4882,6 +7416,7 @@
  10230. old_striplib striplib file_magic_cmd export_symbols_cmds \
  10231. deplibs_check_method allow_undefined_flag no_undefined_flag \
  10232. finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
  10233. + global_symbol_to_c_name_address \
  10234. hardcode_libdir_flag_spec hardcode_libdir_separator \
  10235. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  10236. compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
  10237. @@ -4931,8 +7466,11 @@
  10238. # configuration script generated by Autoconf, you may include it under
  10239. # the same distribution terms that you use for the rest of that program.
  10240. +# A sed that does not truncate output.
  10241. +SED=$lt_SED
  10242. +
  10243. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  10244. -Xsed="sed -e s/^X//"
  10245. +Xsed="${SED} -e s/^X//"
  10246. # The HP-UX ksh and POSIX shell print the target directory to stdout
  10247. # if CDPATH is set.
  10248. @@ -4948,12 +7486,12 @@
  10249. # Whether or not to build shared libraries.
  10250. build_libtool_libs=$enable_shared
  10251. -# Whether or not to add -lc for building shared libraries.
  10252. -build_libtool_need_lc=$need_lc
  10253. -
  10254. # Whether or not to build static libraries.
  10255. build_old_libs=$enable_static
  10256. +# Whether or not to add -lc for building shared libraries.
  10257. +build_libtool_need_lc=$need_lc
  10258. +
  10259. # Whether or not to optimize for fast installation.
  10260. fast_install=$enable_fast_install
  10261. @@ -5119,6 +7657,9 @@
  10262. # Transform the output of nm in a proper C declaration
  10263. global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
  10264. +# Transform the output of nm in a C name address pair
  10265. +global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
  10266. +
  10267. # This is the shared library runtime path variable.
  10268. runpath_var=$runpath_var
  10269. @@ -5241,9 +7782,9 @@
  10270. # return TRUE;
  10271. # }
  10272. # /* ltdll.c ends here */
  10273. - # This is a source program that is used to create import libraries
  10274. - # on Windows for dlls which lack them. Don't remove nor modify the
  10275. - # starting and closing comments
  10276. + # This is a source program that is used to create import libraries
  10277. + # on Windows for dlls which lack them. Don't remove nor modify the
  10278. + # starting and closing comments
  10279. # /* impgen.c starts here */
  10280. # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
  10281. #
  10282. @@ -5411,156 +7952,386 @@
  10283. # Extract the first word of "perl", so it can be a program name with args.
  10284. set dummy perl; ac_word=$2
  10285. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  10286. -echo "configure:5416: checking for $ac_word" >&5
  10287. -if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
  10288. - echo $ac_n "(cached) $ac_c" 1>&6
  10289. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  10290. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  10291. +if test "${ac_cv_path_PERL+set}" = set; then
  10292. + echo $ECHO_N "(cached) $ECHO_C" >&6
  10293. else
  10294. - case "$PERL" in
  10295. - /*)
  10296. + case $PERL in
  10297. + [\\/]* | ?:[\\/]*)
  10298. ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
  10299. ;;
  10300. - ?:/*)
  10301. - ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
  10302. - ;;
  10303. *)
  10304. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  10305. - ac_dummy="$PATH"
  10306. - for ac_dir in $ac_dummy; do
  10307. - test -z "$ac_dir" && ac_dir=.
  10308. - if test -f $ac_dir/$ac_word; then
  10309. - ac_cv_path_PERL="$ac_dir/$ac_word"
  10310. - break
  10311. - fi
  10312. - done
  10313. - IFS="$ac_save_ifs"
  10314. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10315. +for as_dir in $PATH
  10316. +do
  10317. + IFS=$as_save_IFS
  10318. + test -z "$as_dir" && as_dir=.
  10319. + for ac_exec_ext in '' $ac_executable_extensions; do
  10320. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10321. + ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
  10322. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  10323. + break 2
  10324. + fi
  10325. +done
  10326. +done
  10327. +
  10328. ;;
  10329. esac
  10330. fi
  10331. -PERL="$ac_cv_path_PERL"
  10332. +PERL=$ac_cv_path_PERL
  10333. +
  10334. if test -n "$PERL"; then
  10335. - echo "$ac_t""$PERL" 1>&6
  10336. + echo "$as_me:$LINENO: result: $PERL" >&5
  10337. +echo "${ECHO_T}$PERL" >&6
  10338. else
  10339. - echo "$ac_t""no" 1>&6
  10340. + echo "$as_me:$LINENO: result: no" >&5
  10341. +echo "${ECHO_T}no" >&6
  10342. fi
  10343. -ac_safe=`echo "asm/errno.h" | sed 'y%./+-%__p_%'`
  10344. -echo $ac_n "checking for asm/errno.h""... $ac_c" 1>&6
  10345. -echo "configure:5453: checking for asm/errno.h" >&5
  10346. -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  10347. - echo $ac_n "(cached) $ac_c" 1>&6
  10348. +if test "${ac_cv_header_asm_errno_h+set}" = set; then
  10349. + echo "$as_me:$LINENO: checking for asm/errno.h" >&5
  10350. +echo $ECHO_N "checking for asm/errno.h... $ECHO_C" >&6
  10351. +if test "${ac_cv_header_asm_errno_h+set}" = set; then
  10352. + echo $ECHO_N "(cached) $ECHO_C" >&6
  10353. +fi
  10354. +echo "$as_me:$LINENO: result: $ac_cv_header_asm_errno_h" >&5
  10355. +echo "${ECHO_T}$ac_cv_header_asm_errno_h" >&6
  10356. else
  10357. - cat > conftest.$ac_ext <<EOF
  10358. -#line 5458 "configure"
  10359. -#include "confdefs.h"
  10360. + # Is the header compilable?
  10361. +echo "$as_me:$LINENO: checking asm/errno.h usability" >&5
  10362. +echo $ECHO_N "checking asm/errno.h usability... $ECHO_C" >&6
  10363. +cat >conftest.$ac_ext <<_ACEOF
  10364. +#line $LINENO "configure"
  10365. +/* confdefs.h. */
  10366. +_ACEOF
  10367. +cat confdefs.h >>conftest.$ac_ext
  10368. +cat >>conftest.$ac_ext <<_ACEOF
  10369. +/* end confdefs.h. */
  10370. +$ac_includes_default
  10371. #include <asm/errno.h>
  10372. -EOF
  10373. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  10374. -{ (eval echo configure:5463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  10375. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  10376. -if test -z "$ac_err"; then
  10377. - rm -rf conftest*
  10378. - eval "ac_cv_header_$ac_safe=yes"
  10379. +_ACEOF
  10380. +rm -f conftest.$ac_objext
  10381. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10382. + (eval $ac_compile) 2>&5
  10383. + ac_status=$?
  10384. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10385. + (exit $ac_status); } &&
  10386. + { ac_try='test -s conftest.$ac_objext'
  10387. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10388. + (eval $ac_try) 2>&5
  10389. + ac_status=$?
  10390. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10391. + (exit $ac_status); }; }; then
  10392. + ac_header_compiler=yes
  10393. +else
  10394. + echo "$as_me: failed program was:" >&5
  10395. +sed 's/^/| /' conftest.$ac_ext >&5
  10396. +
  10397. +ac_header_compiler=no
  10398. +fi
  10399. +rm -f conftest.$ac_objext conftest.$ac_ext
  10400. +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10401. +echo "${ECHO_T}$ac_header_compiler" >&6
  10402. +
  10403. +# Is the header present?
  10404. +echo "$as_me:$LINENO: checking asm/errno.h presence" >&5
  10405. +echo $ECHO_N "checking asm/errno.h presence... $ECHO_C" >&6
  10406. +cat >conftest.$ac_ext <<_ACEOF
  10407. +#line $LINENO "configure"
  10408. +/* confdefs.h. */
  10409. +_ACEOF
  10410. +cat confdefs.h >>conftest.$ac_ext
  10411. +cat >>conftest.$ac_ext <<_ACEOF
  10412. +/* end confdefs.h. */
  10413. +#include <asm/errno.h>
  10414. +_ACEOF
  10415. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  10416. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  10417. + ac_status=$?
  10418. + grep -v '^ *+' conftest.er1 >conftest.err
  10419. + rm -f conftest.er1
  10420. + cat conftest.err >&5
  10421. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10422. + (exit $ac_status); } >/dev/null; then
  10423. + if test -s conftest.err; then
  10424. + ac_cpp_err=$ac_c_preproc_warn_flag
  10425. + else
  10426. + ac_cpp_err=
  10427. + fi
  10428. else
  10429. - echo "$ac_err" >&5
  10430. - echo "configure: failed program was:" >&5
  10431. - cat conftest.$ac_ext >&5
  10432. - rm -rf conftest*
  10433. - eval "ac_cv_header_$ac_safe=no"
  10434. + ac_cpp_err=yes
  10435. fi
  10436. -rm -f conftest*
  10437. +if test -z "$ac_cpp_err"; then
  10438. + ac_header_preproc=yes
  10439. +else
  10440. + echo "$as_me: failed program was:" >&5
  10441. +sed 's/^/| /' conftest.$ac_ext >&5
  10442. +
  10443. + ac_header_preproc=no
  10444. +fi
  10445. +rm -f conftest.err conftest.$ac_ext
  10446. +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10447. +echo "${ECHO_T}$ac_header_preproc" >&6
  10448. +
  10449. +# So? What about this header?
  10450. +case $ac_header_compiler:$ac_header_preproc in
  10451. + yes:no )
  10452. + { echo "$as_me:$LINENO: WARNING: asm/errno.h: accepted by the compiler, rejected by the preprocessor!" >&5
  10453. +echo "$as_me: WARNING: asm/errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10454. + { echo "$as_me:$LINENO: WARNING: asm/errno.h: proceeding with the preprocessor's result" >&5
  10455. +echo "$as_me: WARNING: asm/errno.h: proceeding with the preprocessor's result" >&2;}
  10456. + (
  10457. + cat <<\_ASBOX
  10458. +## ------------------------------------ ##
  10459. +## Report this to [email protected]. ##
  10460. +## ------------------------------------ ##
  10461. +_ASBOX
  10462. + ) |
  10463. + sed "s/^/$as_me: WARNING: /" >&2
  10464. + ;;
  10465. + no:yes )
  10466. + { echo "$as_me:$LINENO: WARNING: asm/errno.h: present but cannot be compiled" >&5
  10467. +echo "$as_me: WARNING: asm/errno.h: present but cannot be compiled" >&2;}
  10468. + { echo "$as_me:$LINENO: WARNING: asm/errno.h: check for missing prerequisite headers?" >&5
  10469. +echo "$as_me: WARNING: asm/errno.h: check for missing prerequisite headers?" >&2;}
  10470. + { echo "$as_me:$LINENO: WARNING: asm/errno.h: proceeding with the preprocessor's result" >&5
  10471. +echo "$as_me: WARNING: asm/errno.h: proceeding with the preprocessor's result" >&2;}
  10472. + (
  10473. + cat <<\_ASBOX
  10474. +## ------------------------------------ ##
  10475. +## Report this to [email protected]. ##
  10476. +## ------------------------------------ ##
  10477. +_ASBOX
  10478. + ) |
  10479. + sed "s/^/$as_me: WARNING: /" >&2
  10480. + ;;
  10481. +esac
  10482. +echo "$as_me:$LINENO: checking for asm/errno.h" >&5
  10483. +echo $ECHO_N "checking for asm/errno.h... $ECHO_C" >&6
  10484. +if test "${ac_cv_header_asm_errno_h+set}" = set; then
  10485. + echo $ECHO_N "(cached) $ECHO_C" >&6
  10486. +else
  10487. + ac_cv_header_asm_errno_h=$ac_header_preproc
  10488. +fi
  10489. +echo "$as_me:$LINENO: result: $ac_cv_header_asm_errno_h" >&5
  10490. +echo "${ECHO_T}$ac_cv_header_asm_errno_h" >&6
  10491. +
  10492. fi
  10493. -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  10494. - echo "$ac_t""yes" 1>&6
  10495. +if test $ac_cv_header_asm_errno_h = yes; then
  10496. :
  10497. else
  10498. - echo "$ac_t""no" 1>&6
  10499. -{ echo "configure: error: *** Unable to find asm/errno.h!!!" 1>&2; exit 1; }
  10500. + { { echo "$as_me:$LINENO: error: *** Unable to find asm/errno.h!!!" >&5
  10501. +echo "$as_me: error: *** Unable to find asm/errno.h!!!" >&2;}
  10502. + { (exit 1); exit 1; }; }
  10503. fi
  10504. -ac_safe=`echo "linux/atmsap.h" | sed 'y%./+-%__p_%'`
  10505. -echo $ac_n "checking for linux/atmsap.h""... $ac_c" 1>&6
  10506. -echo "configure:5489: checking for linux/atmsap.h" >&5
  10507. -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  10508. - echo $ac_n "(cached) $ac_c" 1>&6
  10509. -else
  10510. - cat > conftest.$ac_ext <<EOF
  10511. -#line 5494 "configure"
  10512. -#include "confdefs.h"
  10513. +
  10514. +if test "${ac_cv_header_linux_atmsap_h+set}" = set; then
  10515. + echo "$as_me:$LINENO: checking for linux/atmsap.h" >&5
  10516. +echo $ECHO_N "checking for linux/atmsap.h... $ECHO_C" >&6
  10517. +if test "${ac_cv_header_linux_atmsap_h+set}" = set; then
  10518. + echo $ECHO_N "(cached) $ECHO_C" >&6
  10519. +fi
  10520. +echo "$as_me:$LINENO: result: $ac_cv_header_linux_atmsap_h" >&5
  10521. +echo "${ECHO_T}$ac_cv_header_linux_atmsap_h" >&6
  10522. +else
  10523. + # Is the header compilable?
  10524. +echo "$as_me:$LINENO: checking linux/atmsap.h usability" >&5
  10525. +echo $ECHO_N "checking linux/atmsap.h usability... $ECHO_C" >&6
  10526. +cat >conftest.$ac_ext <<_ACEOF
  10527. +#line $LINENO "configure"
  10528. +/* confdefs.h. */
  10529. +_ACEOF
  10530. +cat confdefs.h >>conftest.$ac_ext
  10531. +cat >>conftest.$ac_ext <<_ACEOF
  10532. +/* end confdefs.h. */
  10533. +$ac_includes_default
  10534. #include <linux/atmsap.h>
  10535. -EOF
  10536. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  10537. -{ (eval echo configure:5499: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  10538. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  10539. -if test -z "$ac_err"; then
  10540. - rm -rf conftest*
  10541. - eval "ac_cv_header_$ac_safe=yes"
  10542. +_ACEOF
  10543. +rm -f conftest.$ac_objext
  10544. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10545. + (eval $ac_compile) 2>&5
  10546. + ac_status=$?
  10547. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10548. + (exit $ac_status); } &&
  10549. + { ac_try='test -s conftest.$ac_objext'
  10550. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10551. + (eval $ac_try) 2>&5
  10552. + ac_status=$?
  10553. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10554. + (exit $ac_status); }; }; then
  10555. + ac_header_compiler=yes
  10556. +else
  10557. + echo "$as_me: failed program was:" >&5
  10558. +sed 's/^/| /' conftest.$ac_ext >&5
  10559. +
  10560. +ac_header_compiler=no
  10561. +fi
  10562. +rm -f conftest.$ac_objext conftest.$ac_ext
  10563. +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10564. +echo "${ECHO_T}$ac_header_compiler" >&6
  10565. +
  10566. +# Is the header present?
  10567. +echo "$as_me:$LINENO: checking linux/atmsap.h presence" >&5
  10568. +echo $ECHO_N "checking linux/atmsap.h presence... $ECHO_C" >&6
  10569. +cat >conftest.$ac_ext <<_ACEOF
  10570. +#line $LINENO "configure"
  10571. +/* confdefs.h. */
  10572. +_ACEOF
  10573. +cat confdefs.h >>conftest.$ac_ext
  10574. +cat >>conftest.$ac_ext <<_ACEOF
  10575. +/* end confdefs.h. */
  10576. +#include <linux/atmsap.h>
  10577. +_ACEOF
  10578. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  10579. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  10580. + ac_status=$?
  10581. + grep -v '^ *+' conftest.er1 >conftest.err
  10582. + rm -f conftest.er1
  10583. + cat conftest.err >&5
  10584. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10585. + (exit $ac_status); } >/dev/null; then
  10586. + if test -s conftest.err; then
  10587. + ac_cpp_err=$ac_c_preproc_warn_flag
  10588. + else
  10589. + ac_cpp_err=
  10590. + fi
  10591. else
  10592. - echo "$ac_err" >&5
  10593. - echo "configure: failed program was:" >&5
  10594. - cat conftest.$ac_ext >&5
  10595. - rm -rf conftest*
  10596. - eval "ac_cv_header_$ac_safe=no"
  10597. + ac_cpp_err=yes
  10598. fi
  10599. -rm -f conftest*
  10600. +if test -z "$ac_cpp_err"; then
  10601. + ac_header_preproc=yes
  10602. +else
  10603. + echo "$as_me: failed program was:" >&5
  10604. +sed 's/^/| /' conftest.$ac_ext >&5
  10605. +
  10606. + ac_header_preproc=no
  10607. +fi
  10608. +rm -f conftest.err conftest.$ac_ext
  10609. +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10610. +echo "${ECHO_T}$ac_header_preproc" >&6
  10611. +
  10612. +# So? What about this header?
  10613. +case $ac_header_compiler:$ac_header_preproc in
  10614. + yes:no )
  10615. + { echo "$as_me:$LINENO: WARNING: linux/atmsap.h: accepted by the compiler, rejected by the preprocessor!" >&5
  10616. +echo "$as_me: WARNING: linux/atmsap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10617. + { echo "$as_me:$LINENO: WARNING: linux/atmsap.h: proceeding with the preprocessor's result" >&5
  10618. +echo "$as_me: WARNING: linux/atmsap.h: proceeding with the preprocessor's result" >&2;}
  10619. + (
  10620. + cat <<\_ASBOX
  10621. +## ------------------------------------ ##
  10622. +## Report this to [email protected]. ##
  10623. +## ------------------------------------ ##
  10624. +_ASBOX
  10625. + ) |
  10626. + sed "s/^/$as_me: WARNING: /" >&2
  10627. + ;;
  10628. + no:yes )
  10629. + { echo "$as_me:$LINENO: WARNING: linux/atmsap.h: present but cannot be compiled" >&5
  10630. +echo "$as_me: WARNING: linux/atmsap.h: present but cannot be compiled" >&2;}
  10631. + { echo "$as_me:$LINENO: WARNING: linux/atmsap.h: check for missing prerequisite headers?" >&5
  10632. +echo "$as_me: WARNING: linux/atmsap.h: check for missing prerequisite headers?" >&2;}
  10633. + { echo "$as_me:$LINENO: WARNING: linux/atmsap.h: proceeding with the preprocessor's result" >&5
  10634. +echo "$as_me: WARNING: linux/atmsap.h: proceeding with the preprocessor's result" >&2;}
  10635. + (
  10636. + cat <<\_ASBOX
  10637. +## ------------------------------------ ##
  10638. +## Report this to [email protected]. ##
  10639. +## ------------------------------------ ##
  10640. +_ASBOX
  10641. + ) |
  10642. + sed "s/^/$as_me: WARNING: /" >&2
  10643. + ;;
  10644. +esac
  10645. +echo "$as_me:$LINENO: checking for linux/atmsap.h" >&5
  10646. +echo $ECHO_N "checking for linux/atmsap.h... $ECHO_C" >&6
  10647. +if test "${ac_cv_header_linux_atmsap_h+set}" = set; then
  10648. + echo $ECHO_N "(cached) $ECHO_C" >&6
  10649. +else
  10650. + ac_cv_header_linux_atmsap_h=$ac_header_preproc
  10651. fi
  10652. -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  10653. - echo "$ac_t""yes" 1>&6
  10654. +echo "$as_me:$LINENO: result: $ac_cv_header_linux_atmsap_h" >&5
  10655. +echo "${ECHO_T}$ac_cv_header_linux_atmsap_h" >&6
  10656. +
  10657. +fi
  10658. +if test $ac_cv_header_linux_atmsap_h = yes; then
  10659. :
  10660. else
  10661. - echo "$ac_t""no" 1>&6
  10662. -{ echo "configure: error: *** Unable to find linux/atmsap.h!!!" 1>&2; exit 1; }
  10663. + { { echo "$as_me:$LINENO: error: *** Unable to find linux/atmsap.h!!!" >&5
  10664. +echo "$as_me: error: *** Unable to find linux/atmsap.h!!!" >&2;}
  10665. + { (exit 1); exit 1; }; }
  10666. fi
  10667. -echo $ac_n "checking for main in -lresolv""... $ac_c" 1>&6
  10668. -echo "configure:5524: checking for main in -lresolv" >&5
  10669. -ac_lib_var=`echo resolv'_'main | sed 'y%./+-%__p_%'`
  10670. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  10671. - echo $ac_n "(cached) $ac_c" 1>&6
  10672. +
  10673. +
  10674. +echo "$as_me:$LINENO: checking for main in -lresolv" >&5
  10675. +echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
  10676. +if test "${ac_cv_lib_resolv_main+set}" = set; then
  10677. + echo $ECHO_N "(cached) $ECHO_C" >&6
  10678. else
  10679. - ac_save_LIBS="$LIBS"
  10680. + ac_check_lib_save_LIBS=$LIBS
  10681. LIBS="-lresolv $LIBS"
  10682. -cat > conftest.$ac_ext <<EOF
  10683. -#line 5532 "configure"
  10684. -#include "confdefs.h"
  10685. +cat >conftest.$ac_ext <<_ACEOF
  10686. +#line $LINENO "configure"
  10687. +/* confdefs.h. */
  10688. +_ACEOF
  10689. +cat confdefs.h >>conftest.$ac_ext
  10690. +cat >>conftest.$ac_ext <<_ACEOF
  10691. +/* end confdefs.h. */
  10692. -int main() {
  10693. -main()
  10694. -; return 0; }
  10695. -EOF
  10696. -if { (eval echo configure:5539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10697. - rm -rf conftest*
  10698. - eval "ac_cv_lib_$ac_lib_var=yes"
  10699. -else
  10700. - echo "configure: failed program was:" >&5
  10701. - cat conftest.$ac_ext >&5
  10702. - rm -rf conftest*
  10703. - eval "ac_cv_lib_$ac_lib_var=no"
  10704. -fi
  10705. -rm -f conftest*
  10706. -LIBS="$ac_save_LIBS"
  10707. -fi
  10708. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  10709. - echo "$ac_t""yes" 1>&6
  10710. - ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  10711. - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  10712. - cat >> confdefs.h <<EOF
  10713. -#define $ac_tr_lib 1
  10714. -EOF
  10715. +int
  10716. +main ()
  10717. +{
  10718. +main ();
  10719. + ;
  10720. + return 0;
  10721. +}
  10722. +_ACEOF
  10723. +rm -f conftest.$ac_objext conftest$ac_exeext
  10724. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10725. + (eval $ac_link) 2>&5
  10726. + ac_status=$?
  10727. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10728. + (exit $ac_status); } &&
  10729. + { ac_try='test -s conftest$ac_exeext'
  10730. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10731. + (eval $ac_try) 2>&5
  10732. + ac_status=$?
  10733. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10734. + (exit $ac_status); }; }; then
  10735. + ac_cv_lib_resolv_main=yes
  10736. +else
  10737. + echo "$as_me: failed program was:" >&5
  10738. +sed 's/^/| /' conftest.$ac_ext >&5
  10739. +
  10740. +ac_cv_lib_resolv_main=no
  10741. +fi
  10742. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  10743. +LIBS=$ac_check_lib_save_LIBS
  10744. +fi
  10745. +echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
  10746. +echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
  10747. +if test $ac_cv_lib_resolv_main = yes; then
  10748. + cat >>confdefs.h <<_ACEOF
  10749. +#define HAVE_LIBRESOLV 1
  10750. +_ACEOF
  10751. LIBS="-lresolv $LIBS"
  10752. else
  10753. - echo "$ac_t""no" 1>&6
  10754. -{ echo "configure: error: *** Unable to find libresolv!!!" 1>&2; exit 1; }
  10755. + { { echo "$as_me:$LINENO: error: *** Unable to find libresolv!!!" >&5
  10756. +echo "$as_me: error: *** Unable to find libresolv!!!" >&2;}
  10757. + { (exit 1); exit 1; }; }
  10758. fi
  10759. @@ -5571,639 +8342,1417 @@
  10760. CFLAGS="$INCLUDES $CFLAGS -Wall -Wshadow -Wpointer-arith -Wwrite-strings -Wstrict-prototypes"
  10761. YACC="$YACC -d"
  10762. -cat >> confdefs.h <<\EOF
  10763. +cat >>confdefs.h <<\_ACEOF
  10764. #define YY_USE_CONST 1
  10765. -EOF
  10766. +_ACEOF
  10767. atmsigd_conf_dir=` test "x$exec_prefix" = xNONE && exec_prefix=$ac_default_prefix
  10768. test "x$prefix" = xNONE && prefix=${exec_prefix}
  10769. eval echo "$sysconfdir"`
  10770. -cat >> confdefs.h <<EOF
  10771. +cat >>confdefs.h <<_ACEOF
  10772. #define ATMSIGD_CONF "$atmsigd_conf_dir/atmsigd.conf"
  10773. -EOF
  10774. +_ACEOF
  10775. +
  10776. # Check whether --with-uni or --without-uni was given.
  10777. if test "${with_uni+set}" = set; then
  10778. withval="$with_uni"
  10779. -
  10780. +
  10781. case "$with_uni" in
  10782. - "3.0" ) cat >> confdefs.h <<\EOF
  10783. + "3.0" ) cat >>confdefs.h <<\_ACEOF
  10784. #define UNI30 1
  10785. -EOF
  10786. +_ACEOF
  10787. ;;
  10788. - "3.1" ) cat >> confdefs.h <<\EOF
  10789. + "3.1" ) cat >>confdefs.h <<\_ACEOF
  10790. #define UNI31 1
  10791. -EOF
  10792. +_ACEOF
  10793. ;;
  10794. - "4.0" ) cat >> confdefs.h <<\EOF
  10795. + "4.0" ) cat >>confdefs.h <<\_ACEOF
  10796. #define UNI40 1
  10797. -EOF
  10798. +_ACEOF
  10799. ;;
  10800. *)
  10801. - cat >> confdefs.h <<\EOF
  10802. + cat >>confdefs.h <<\_ACEOF
  10803. #define DYNAMIC_UNI 1
  10804. -EOF
  10805. +_ACEOF
  10806. - echo "configure: warning: *** UNI version not specified correctly. Defaulting to dynamic UNI." 1>&2
  10807. + { echo "$as_me:$LINENO: WARNING: *** UNI version not specified correctly. Defaulting to dynamic UNI." >&5
  10808. +echo "$as_me: WARNING: *** UNI version not specified correctly. Defaulting to dynamic UNI." >&2;}
  10809. esac
  10810. -
  10811. +
  10812. else
  10813. - cat >> confdefs.h <<\EOF
  10814. + cat >>confdefs.h <<\_ACEOF
  10815. #define DYNAMIC_UNI 1
  10816. -EOF
  10817. +_ACEOF
  10818. -fi
  10819. -
  10820. +fi;
  10821. # Check whether --enable-allow_uni30 or --disable-allow_uni30 was given.
  10822. if test "${enable_allow_uni30+set}" = set; then
  10823. enableval="$enable_allow_uni30"
  10824. -
  10825. +
  10826. if test "$with_uni" = "3.1" ; then
  10827. - cat >> confdefs.h <<\EOF
  10828. + cat >>confdefs.h <<\_ACEOF
  10829. #define ALLOW_UNI30 1
  10830. -EOF
  10831. +_ACEOF
  10832. else
  10833. - echo "configure: warning: *** Allow UNI 3.0 was not enabled. It is only valid when UNI 3.1 is specified as the default via --with-uni." 1>&2
  10834. + { echo "$as_me:$LINENO: WARNING: *** Allow UNI 3.0 was not enabled. It is only valid when UNI 3.1 is specified as the default via --with-uni." >&5
  10835. +echo "$as_me: WARNING: *** Allow UNI 3.0 was not enabled. It is only valid when UNI 3.1 is specified as the default via --with-uni." >&2;}
  10836. fi
  10837. -
  10838. -fi
  10839. +fi;
  10840. # Check whether --enable-q2963_1 or --disable-q2963_1 was given.
  10841. if test "${enable_q2963_1+set}" = set; then
  10842. enableval="$enable_q2963_1"
  10843. -
  10844. +
  10845. if test "$with_uni" = "4.0" ; then
  10846. - cat >> confdefs.h <<\EOF
  10847. + cat >>confdefs.h <<\_ACEOF
  10848. #define Q2963_1 1
  10849. -EOF
  10850. +_ACEOF
  10851. else
  10852. - echo "configure: warning: *** Q.2963.1 was not enabled. It is only valid when UNI 4.0 is specified as the default via --with-uni." 1>&2
  10853. + { echo "$as_me:$LINENO: WARNING: *** Q.2963.1 was not enabled. It is only valid when UNI 4.0 is specified as the default via --with-uni." >&5
  10854. +echo "$as_me: WARNING: *** Q.2963.1 was not enabled. It is only valid when UNI 4.0 is specified as the default via --with-uni." >&2;}
  10855. fi
  10856. -
  10857. -fi
  10858. +fi;
  10859. # Check whether --enable-cisco or --disable-cisco was given.
  10860. if test "${enable_cisco+set}" = set; then
  10861. enableval="$enable_cisco"
  10862. - cat >> confdefs.h <<\EOF
  10863. + cat >>confdefs.h <<\_ACEOF
  10864. #define CISCO 1
  10865. -EOF
  10866. +_ACEOF
  10867. -fi
  10868. -
  10869. +fi;
  10870. # Check whether --enable-thomflex or --disable-thomflex was given.
  10871. if test "${enable_thomflex+set}" = set; then
  10872. enableval="$enable_thomflex"
  10873. - cat >> confdefs.h <<\EOF
  10874. + cat >>confdefs.h <<\_ACEOF
  10875. #define THOMFLEX 1
  10876. -EOF
  10877. -
  10878. +_ACEOF
  10879. -fi
  10880. +fi;
  10881. -cat >> confdefs.h <<\EOF
  10882. +cat >>confdefs.h <<\_ACEOF
  10883. #define BROKEN_POLL 1
  10884. -EOF
  10885. +_ACEOF
  10886. # Check whether --enable-mpoa_1_1 or --disable-mpoa_1_1 was given.
  10887. if test "${enable_mpoa_1_1+set}" = set; then
  10888. enableval="$enable_mpoa_1_1"
  10889. - cat >> confdefs.h <<\EOF
  10890. + cat >>confdefs.h <<\_ACEOF
  10891. #define MPOA_1_1 1
  10892. -EOF
  10893. -
  10894. +_ACEOF
  10895. -fi
  10896. +fi;
  10897. # Check whether --enable-mpr or --disable-mpr was given.
  10898. if test "${enable_mpr+set}" = set; then
  10899. enableval="$enable_mpr"
  10900. -
  10901. +
  10902. case "$enable_mpr" in
  10903. "" | y | ye | yes | Y | YE | YES )
  10904. - echo $ac_n "checking for main in -lmpr""... $ac_c" 1>&6
  10905. -echo "configure:5704: checking for main in -lmpr" >&5
  10906. -ac_lib_var=`echo mpr'_'main | sed 'y%./+-%__p_%'`
  10907. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  10908. - echo $ac_n "(cached) $ac_c" 1>&6
  10909. +
  10910. +echo "$as_me:$LINENO: checking for main in -lmpr" >&5
  10911. +echo $ECHO_N "checking for main in -lmpr... $ECHO_C" >&6
  10912. +if test "${ac_cv_lib_mpr_main+set}" = set; then
  10913. + echo $ECHO_N "(cached) $ECHO_C" >&6
  10914. else
  10915. - ac_save_LIBS="$LIBS"
  10916. + ac_check_lib_save_LIBS=$LIBS
  10917. LIBS="-lmpr $LIBS"
  10918. -cat > conftest.$ac_ext <<EOF
  10919. -#line 5712 "configure"
  10920. -#include "confdefs.h"
  10921. +cat >conftest.$ac_ext <<_ACEOF
  10922. +#line $LINENO "configure"
  10923. +/* confdefs.h. */
  10924. +_ACEOF
  10925. +cat confdefs.h >>conftest.$ac_ext
  10926. +cat >>conftest.$ac_ext <<_ACEOF
  10927. +/* end confdefs.h. */
  10928. -int main() {
  10929. -main()
  10930. -; return 0; }
  10931. -EOF
  10932. -if { (eval echo configure:5719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10933. - rm -rf conftest*
  10934. - eval "ac_cv_lib_$ac_lib_var=yes"
  10935. -else
  10936. - echo "configure: failed program was:" >&5
  10937. - cat conftest.$ac_ext >&5
  10938. - rm -rf conftest*
  10939. - eval "ac_cv_lib_$ac_lib_var=no"
  10940. -fi
  10941. -rm -f conftest*
  10942. -LIBS="$ac_save_LIBS"
  10943. -fi
  10944. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  10945. - echo "$ac_t""yes" 1>&6
  10946. - ac_tr_lib=HAVE_LIB`echo mpr | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  10947. - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  10948. - cat >> confdefs.h <<EOF
  10949. -#define $ac_tr_lib 1
  10950. -EOF
  10951. +int
  10952. +main ()
  10953. +{
  10954. +main ();
  10955. + ;
  10956. + return 0;
  10957. +}
  10958. +_ACEOF
  10959. +rm -f conftest.$ac_objext conftest$ac_exeext
  10960. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10961. + (eval $ac_link) 2>&5
  10962. + ac_status=$?
  10963. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10964. + (exit $ac_status); } &&
  10965. + { ac_try='test -s conftest$ac_exeext'
  10966. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10967. + (eval $ac_try) 2>&5
  10968. + ac_status=$?
  10969. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10970. + (exit $ac_status); }; }; then
  10971. + ac_cv_lib_mpr_main=yes
  10972. +else
  10973. + echo "$as_me: failed program was:" >&5
  10974. +sed 's/^/| /' conftest.$ac_ext >&5
  10975. +
  10976. +ac_cv_lib_mpr_main=no
  10977. +fi
  10978. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  10979. +LIBS=$ac_check_lib_save_LIBS
  10980. +fi
  10981. +echo "$as_me:$LINENO: result: $ac_cv_lib_mpr_main" >&5
  10982. +echo "${ECHO_T}$ac_cv_lib_mpr_main" >&6
  10983. +if test $ac_cv_lib_mpr_main = yes; then
  10984. + cat >>confdefs.h <<_ACEOF
  10985. +#define HAVE_LIBMPR 1
  10986. +_ACEOF
  10987. LIBS="-lmpr $LIBS"
  10988. else
  10989. - echo "$ac_t""no" 1>&6
  10990. - echo "configure: warning: *** Could not find libmpr! Is MPR installed?" 1>&2
  10991. -
  10992. -
  10993. + { echo "$as_me:$LINENO: WARNING: *** Could not find libmpr! Is MPR installed?" >&5
  10994. +echo "$as_me: WARNING: *** Could not find libmpr! Is MPR installed?" >&2;}
  10995. +
  10996. +
  10997. fi
  10998. ;;
  10999. esac
  11000. -
  11001. -fi
  11002. +fi;
  11003. -trap '' 1 2 15
  11004. -cat > confcache <<\EOF
  11005. + ac_config_files="$ac_config_files Makefile doc/Makefile m4/Makefile src/Makefile src/include/Makefile src/lib/Makefile src/test/Makefile src/debug/Makefile src/qgen/Makefile src/saal/Makefile src/sigd/Makefile src/maint/Makefile src/arpd/Makefile src/ilmid/Makefile src/ilmid/asn1/Makefile src/man/Makefile src/led/Makefile src/lane/Makefile src/mpoad/Makefile src/switch/Makefile src/switch/debug/Makefile src/switch/tcp/Makefile src/config/Makefile src/config/init-redhat/Makefile src/extra/Makefile src/extra/linux-atm.spec src/extra/ANS/Makefile"
  11006. +cat >confcache <<\_ACEOF
  11007. # This file is a shell script that caches the results of configure
  11008. # tests run on this system so they can be shared between configure
  11009. -# scripts and configure runs. It is not useful on other systems.
  11010. -# If it contains results you don't want to keep, you may remove or edit it.
  11011. +# scripts and configure runs, see configure's option --config-cache.
  11012. +# It is not useful on other systems. If it contains results you don't
  11013. +# want to keep, you may remove or edit it.
  11014. #
  11015. -# By default, configure uses ./config.cache as the cache file,
  11016. -# creating it if it does not exist already. You can give configure
  11017. -# the --cache-file=FILE option to use a different cache file; that is
  11018. -# what configure does when it calls configure scripts in
  11019. -# subdirectories, so they share the cache.
  11020. -# Giving --cache-file=/dev/null disables caching, for debugging configure.
  11021. -# config.status only pays attention to the cache file if you give it the
  11022. -# --recheck option to rerun configure.
  11023. +# config.status only pays attention to the cache file if you give it
  11024. +# the --recheck option to rerun configure.
  11025. #
  11026. -EOF
  11027. +# `ac_cv_env_foo' variables (set or unset) will be overridden when
  11028. +# loading this file, other *unset* `ac_cv_foo' will be assigned the
  11029. +# following values.
  11030. +
  11031. +_ACEOF
  11032. +
  11033. # The following way of writing the cache mishandles newlines in values,
  11034. # but we know of no workaround that is simple, portable, and efficient.
  11035. # So, don't put newlines in cache variables' values.
  11036. # Ultrix sh set writes to stderr and can't be redirected directly,
  11037. # and sets the high bit in the cache file unless we assign to the vars.
  11038. -(set) 2>&1 |
  11039. - case `(ac_space=' '; set | grep ac_space) 2>&1` in
  11040. - *ac_space=\ *)
  11041. - # `set' does not quote correctly, so add quotes (double-quote substitution
  11042. - # turns \\\\ into \\, and sed turns \\ into \).
  11043. - sed -n \
  11044. - -e "s/'/'\\\\''/g" \
  11045. - -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  11046. - ;;
  11047. - *)
  11048. - # `set' quotes correctly as required by POSIX, so do not add quotes.
  11049. - sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  11050. - ;;
  11051. - esac >> confcache
  11052. -if cmp -s $cache_file confcache; then
  11053. - :
  11054. -else
  11055. +{
  11056. + (set) 2>&1 |
  11057. + case `(ac_space=' '; set | grep ac_space) 2>&1` in
  11058. + *ac_space=\ *)
  11059. + # `set' does not quote correctly, so add quotes (double-quote
  11060. + # substitution turns \\\\ into \\, and sed turns \\ into \).
  11061. + sed -n \
  11062. + "s/'/'\\\\''/g;
  11063. + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11064. + ;;
  11065. + *)
  11066. + # `set' quotes correctly as required by POSIX, so do not add quotes.
  11067. + sed -n \
  11068. + "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  11069. + ;;
  11070. + esac;
  11071. +} |
  11072. + sed '
  11073. + t clear
  11074. + : clear
  11075. + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11076. + t end
  11077. + /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11078. + : end' >>confcache
  11079. +if diff $cache_file confcache >/dev/null 2>&1; then :; else
  11080. if test -w $cache_file; then
  11081. - echo "updating cache $cache_file"
  11082. - cat confcache > $cache_file
  11083. + test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  11084. + cat confcache >$cache_file
  11085. else
  11086. echo "not updating unwritable cache $cache_file"
  11087. fi
  11088. fi
  11089. rm -f confcache
  11090. -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  11091. -
  11092. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  11093. # Let make expand exec_prefix.
  11094. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  11095. -# Any assignment to VPATH causes Sun make to only execute
  11096. -# the first set of double-colon rules, so remove it if not needed.
  11097. -# If there is a colon in the path, we need to keep it.
  11098. +# VPATH may cause trouble with some makes, so we remove $(srcdir),
  11099. +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  11100. +# trailing colons and then remove the whole line if VPATH becomes empty
  11101. +# (actually we leave an empty line to preserve line numbers).
  11102. if test "x$srcdir" = x.; then
  11103. - ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
  11104. + ac_vpsub='/^[ ]*VPATH[ ]*=/{
  11105. +s/:*\$(srcdir):*/:/;
  11106. +s/:*\${srcdir}:*/:/;
  11107. +s/:*@srcdir@:*/:/;
  11108. +s/^\([^=]*=[ ]*\):*/\1/;
  11109. +s/:*$//;
  11110. +s/^[^=]*=[ ]*$//;
  11111. +}'
  11112. fi
  11113. -trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  11114. -
  11115. DEFS=-DHAVE_CONFIG_H
  11116. -# Without the "./", some shells look in PATH for config.status.
  11117. -: ${CONFIG_STATUS=./config.status}
  11118. +ac_libobjs=
  11119. +ac_ltlibobjs=
  11120. +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  11121. + # 1. Remove the extension, and $U if already installed.
  11122. + ac_i=`echo "$ac_i" |
  11123. + sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  11124. + # 2. Add them.
  11125. + ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  11126. + ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  11127. +done
  11128. +LIBOBJS=$ac_libobjs
  11129. -echo creating $CONFIG_STATUS
  11130. -rm -f $CONFIG_STATUS
  11131. -cat > $CONFIG_STATUS <<EOF
  11132. -#! /bin/sh
  11133. -# Generated automatically by configure.
  11134. +LTLIBOBJS=$ac_ltlibobjs
  11135. +
  11136. +
  11137. +
  11138. +: ${CONFIG_STATUS=./config.status}
  11139. +ac_clean_files_save=$ac_clean_files
  11140. +ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  11141. +{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  11142. +echo "$as_me: creating $CONFIG_STATUS" >&6;}
  11143. +cat >$CONFIG_STATUS <<_ACEOF
  11144. +#! $SHELL
  11145. +# Generated by $as_me.
  11146. # Run this file to recreate the current configuration.
  11147. -# This directory was configured as follows,
  11148. -# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  11149. -#
  11150. -# $0 $ac_configure_args
  11151. -#
  11152. # Compiler output produced by configure, useful for debugging
  11153. -# configure, is in ./config.log if it exists.
  11154. +# configure, is in config.log if it exists.
  11155. -ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  11156. -for ac_option
  11157. +debug=false
  11158. +ac_cs_recheck=false
  11159. +ac_cs_silent=false
  11160. +SHELL=\${CONFIG_SHELL-$SHELL}
  11161. +_ACEOF
  11162. +
  11163. +cat >>$CONFIG_STATUS <<\_ACEOF
  11164. +## --------------------- ##
  11165. +## M4sh Initialization. ##
  11166. +## --------------------- ##
  11167. +
  11168. +# Be Bourne compatible
  11169. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  11170. + emulate sh
  11171. + NULLCMD=:
  11172. + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  11173. + # is contrary to our usage. Disable this feature.
  11174. + alias -g '${1+"$@"}'='"$@"'
  11175. +elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  11176. + set -o posix
  11177. +fi
  11178. +
  11179. +# Support unset when possible.
  11180. +if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
  11181. + as_unset=unset
  11182. +else
  11183. + as_unset=false
  11184. +fi
  11185. +
  11186. +
  11187. +# Work around bugs in pre-3.0 UWIN ksh.
  11188. +$as_unset ENV MAIL MAILPATH
  11189. +PS1='$ '
  11190. +PS2='> '
  11191. +PS4='+ '
  11192. +
  11193. +# NLS nuisances.
  11194. +for as_var in \
  11195. + LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  11196. + LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  11197. + LC_TELEPHONE LC_TIME
  11198. do
  11199. - case "\$ac_option" in
  11200. - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11201. - echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  11202. - exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  11203. - -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  11204. - echo "$CONFIG_STATUS generated by autoconf version 2.13"
  11205. - exit 0 ;;
  11206. - -help | --help | --hel | --he | --h)
  11207. - echo "\$ac_cs_usage"; exit 0 ;;
  11208. - *) echo "\$ac_cs_usage"; exit 1 ;;
  11209. + if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
  11210. + eval $as_var=C; export $as_var
  11211. + else
  11212. + $as_unset $as_var
  11213. + fi
  11214. +done
  11215. +
  11216. +# Required to use basename.
  11217. +if expr a : '\(a\)' >/dev/null 2>&1; then
  11218. + as_expr=expr
  11219. +else
  11220. + as_expr=false
  11221. +fi
  11222. +
  11223. +if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  11224. + as_basename=basename
  11225. +else
  11226. + as_basename=false
  11227. +fi
  11228. +
  11229. +
  11230. +# Name of the executable.
  11231. +as_me=`$as_basename "$0" ||
  11232. +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  11233. + X"$0" : 'X\(//\)$' \| \
  11234. + X"$0" : 'X\(/\)$' \| \
  11235. + . : '\(.\)' 2>/dev/null ||
  11236. +echo X/"$0" |
  11237. + sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  11238. + /^X\/\(\/\/\)$/{ s//\1/; q; }
  11239. + /^X\/\(\/\).*/{ s//\1/; q; }
  11240. + s/.*/./; q'`
  11241. +
  11242. +
  11243. +# PATH needs CR, and LINENO needs CR and PATH.
  11244. +# Avoid depending upon Character Ranges.
  11245. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  11246. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  11247. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  11248. +as_cr_digits='0123456789'
  11249. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  11250. +
  11251. +# The user is always right.
  11252. +if test "${PATH_SEPARATOR+set}" != set; then
  11253. + echo "#! /bin/sh" >conf$$.sh
  11254. + echo "exit 0" >>conf$$.sh
  11255. + chmod +x conf$$.sh
  11256. + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  11257. + PATH_SEPARATOR=';'
  11258. + else
  11259. + PATH_SEPARATOR=:
  11260. + fi
  11261. + rm -f conf$$.sh
  11262. +fi
  11263. +
  11264. +
  11265. + as_lineno_1=$LINENO
  11266. + as_lineno_2=$LINENO
  11267. + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  11268. + test "x$as_lineno_1" != "x$as_lineno_2" &&
  11269. + test "x$as_lineno_3" = "x$as_lineno_2" || {
  11270. + # Find who we are. Look in the path if we contain no path at all
  11271. + # relative or not.
  11272. + case $0 in
  11273. + *[\\/]* ) as_myself=$0 ;;
  11274. + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11275. +for as_dir in $PATH
  11276. +do
  11277. + IFS=$as_save_IFS
  11278. + test -z "$as_dir" && as_dir=.
  11279. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  11280. +done
  11281. +
  11282. + ;;
  11283. esac
  11284. + # We did not find ourselves, most probably we were run as `sh COMMAND'
  11285. + # in which case we are not to be found in the path.
  11286. + if test "x$as_myself" = x; then
  11287. + as_myself=$0
  11288. + fi
  11289. + if test ! -f "$as_myself"; then
  11290. + { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  11291. +echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  11292. + { (exit 1); exit 1; }; }
  11293. + fi
  11294. + case $CONFIG_SHELL in
  11295. + '')
  11296. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11297. +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  11298. +do
  11299. + IFS=$as_save_IFS
  11300. + test -z "$as_dir" && as_dir=.
  11301. + for as_base in sh bash ksh sh5; do
  11302. + case $as_dir in
  11303. + /*)
  11304. + if ("$as_dir/$as_base" -c '
  11305. + as_lineno_1=$LINENO
  11306. + as_lineno_2=$LINENO
  11307. + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  11308. + test "x$as_lineno_1" != "x$as_lineno_2" &&
  11309. + test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  11310. + $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  11311. + $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  11312. + CONFIG_SHELL=$as_dir/$as_base
  11313. + export CONFIG_SHELL
  11314. + exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  11315. + fi;;
  11316. + esac
  11317. + done
  11318. done
  11319. +;;
  11320. + esac
  11321. -ac_given_srcdir=$srcdir
  11322. -ac_given_INSTALL="$INSTALL"
  11323. -
  11324. -trap 'rm -fr `echo "Makefile \
  11325. - doc/Makefile \
  11326. - m4/Makefile \
  11327. - src/Makefile \
  11328. - src/include/Makefile \
  11329. - src/lib/Makefile \
  11330. - src/test/Makefile \
  11331. - src/debug/Makefile \
  11332. - src/qgen/Makefile \
  11333. - src/saal/Makefile \
  11334. - src/sigd/Makefile \
  11335. - src/maint/Makefile \
  11336. - src/arpd/Makefile \
  11337. - src/ilmid/Makefile \
  11338. - src/ilmid/asn1/Makefile \
  11339. - src/man/Makefile \
  11340. - src/led/Makefile \
  11341. - src/lane/Makefile \
  11342. - src/mpoad/Makefile \
  11343. - src/switch/Makefile \
  11344. - src/switch/debug/Makefile \
  11345. - src/switch/tcp/Makefile \
  11346. - src/config/Makefile \
  11347. - src/config/init-redhat/Makefile \
  11348. - src/extra/Makefile \
  11349. - src/extra/linux-atm.spec \
  11350. - src/extra/ANS/Makefile
  11351. - config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  11352. -EOF
  11353. -cat >> $CONFIG_STATUS <<EOF
  11354. + # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  11355. + # uniformly replaced by the line number. The first 'sed' inserts a
  11356. + # line-number line before each line; the second 'sed' does the real
  11357. + # work. The second script uses 'N' to pair each line-number line
  11358. + # with the numbered line, and appends trailing '-' during
  11359. + # substitution so that $LINENO is not a special case at line end.
  11360. + # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  11361. + # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  11362. + sed '=' <$as_myself |
  11363. + sed '
  11364. + N
  11365. + s,$,-,
  11366. + : loop
  11367. + s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  11368. + t loop
  11369. + s,-$,,
  11370. + s,^['$as_cr_digits']*\n,,
  11371. + ' >$as_me.lineno &&
  11372. + chmod +x $as_me.lineno ||
  11373. + { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  11374. +echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  11375. + { (exit 1); exit 1; }; }
  11376. +
  11377. + # Don't try to exec as it changes $[0], causing all sort of problems
  11378. + # (the dirname of $[0] is not the place where we might find the
  11379. + # original and so on. Autoconf is especially sensible to this).
  11380. + . ./$as_me.lineno
  11381. + # Exit status is that of the last command.
  11382. + exit
  11383. +}
  11384. -# Protect against being on the right side of a sed subst in config.status.
  11385. -sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  11386. - s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  11387. -$ac_vpsub
  11388. -$extrasub
  11389. -s%@SHELL@%$SHELL%g
  11390. -s%@CFLAGS@%$CFLAGS%g
  11391. -s%@CPPFLAGS@%$CPPFLAGS%g
  11392. -s%@CXXFLAGS@%$CXXFLAGS%g
  11393. -s%@FFLAGS@%$FFLAGS%g
  11394. -s%@DEFS@%$DEFS%g
  11395. -s%@LDFLAGS@%$LDFLAGS%g
  11396. -s%@LIBS@%$LIBS%g
  11397. -s%@exec_prefix@%$exec_prefix%g
  11398. -s%@prefix@%$prefix%g
  11399. -s%@program_transform_name@%$program_transform_name%g
  11400. -s%@bindir@%$bindir%g
  11401. -s%@sbindir@%$sbindir%g
  11402. -s%@libexecdir@%$libexecdir%g
  11403. -s%@datadir@%$datadir%g
  11404. -s%@sysconfdir@%$sysconfdir%g
  11405. -s%@sharedstatedir@%$sharedstatedir%g
  11406. -s%@localstatedir@%$localstatedir%g
  11407. -s%@libdir@%$libdir%g
  11408. -s%@includedir@%$includedir%g
  11409. -s%@oldincludedir@%$oldincludedir%g
  11410. -s%@infodir@%$infodir%g
  11411. -s%@mandir@%$mandir%g
  11412. -s%@host@%$host%g
  11413. -s%@host_alias@%$host_alias%g
  11414. -s%@host_cpu@%$host_cpu%g
  11415. -s%@host_vendor@%$host_vendor%g
  11416. -s%@host_os@%$host_os%g
  11417. -s%@target@%$target%g
  11418. -s%@target_alias@%$target_alias%g
  11419. -s%@target_cpu@%$target_cpu%g
  11420. -s%@target_vendor@%$target_vendor%g
  11421. -s%@target_os@%$target_os%g
  11422. -s%@build@%$build%g
  11423. -s%@build_alias@%$build_alias%g
  11424. -s%@build_cpu@%$build_cpu%g
  11425. -s%@build_vendor@%$build_vendor%g
  11426. -s%@build_os@%$build_os%g
  11427. -s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  11428. -s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
  11429. -s%@INSTALL_DATA@%$INSTALL_DATA%g
  11430. -s%@PACKAGE@%$PACKAGE%g
  11431. -s%@VERSION@%$VERSION%g
  11432. -s%@ACLOCAL@%$ACLOCAL%g
  11433. -s%@AUTOCONF@%$AUTOCONF%g
  11434. -s%@AUTOMAKE@%$AUTOMAKE%g
  11435. -s%@AUTOHEADER@%$AUTOHEADER%g
  11436. -s%@MAKEINFO@%$MAKEINFO%g
  11437. -s%@SET_MAKE@%$SET_MAKE%g
  11438. -s%@LIBVER_CURRENT@%$LIBVER_CURRENT%g
  11439. -s%@LIBVER_REVISION@%$LIBVER_REVISION%g
  11440. -s%@LIBVER_AGE@%$LIBVER_AGE%g
  11441. -s%@CC@%$CC%g
  11442. -s%@LEX@%$LEX%g
  11443. -s%@LEXLIB@%$LEXLIB%g
  11444. -s%@CPP@%$CPP%g
  11445. -s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
  11446. -s%@YACC@%$YACC%g
  11447. -s%@LN_S@%$LN_S%g
  11448. -s%@OBJEXT@%$OBJEXT%g
  11449. -s%@EXEEXT@%$EXEEXT%g
  11450. -s%@ECHO@%$ECHO%g
  11451. -s%@RANLIB@%$RANLIB%g
  11452. -s%@STRIP@%$STRIP%g
  11453. -s%@LIBTOOL@%$LIBTOOL%g
  11454. -s%@LIBTOOL_DEPS@%$LIBTOOL_DEPS%g
  11455. -s%@PERL@%$PERL%g
  11456. -CEOF
  11457. -EOF
  11458. +case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  11459. + *c*,-n*) ECHO_N= ECHO_C='
  11460. +' ECHO_T=' ' ;;
  11461. + *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  11462. + *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  11463. +esac
  11464. -cat >> $CONFIG_STATUS <<\EOF
  11465. +if expr a : '\(a\)' >/dev/null 2>&1; then
  11466. + as_expr=expr
  11467. +else
  11468. + as_expr=false
  11469. +fi
  11470. -# Split the substitutions into bite-sized pieces for seds with
  11471. -# small command number limits, like on Digital OSF/1 and HP-UX.
  11472. -ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  11473. -ac_file=1 # Number of current file.
  11474. -ac_beg=1 # First line for current file.
  11475. -ac_end=$ac_max_sed_cmds # Line after last line for current file.
  11476. -ac_more_lines=:
  11477. -ac_sed_cmds=""
  11478. -while $ac_more_lines; do
  11479. - if test $ac_beg -gt 1; then
  11480. - sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  11481. - else
  11482. - sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  11483. - fi
  11484. - if test ! -s conftest.s$ac_file; then
  11485. - ac_more_lines=false
  11486. - rm -f conftest.s$ac_file
  11487. +rm -f conf$$ conf$$.exe conf$$.file
  11488. +echo >conf$$.file
  11489. +if ln -s conf$$.file conf$$ 2>/dev/null; then
  11490. + # We could just check for DJGPP; but this test a) works b) is more generic
  11491. + # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  11492. + if test -f conf$$.exe; then
  11493. + # Don't use ln at all; we don't have any links
  11494. + as_ln_s='cp -p'
  11495. else
  11496. - if test -z "$ac_sed_cmds"; then
  11497. - ac_sed_cmds="sed -f conftest.s$ac_file"
  11498. - else
  11499. - ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  11500. - fi
  11501. - ac_file=`expr $ac_file + 1`
  11502. - ac_beg=$ac_end
  11503. - ac_end=`expr $ac_end + $ac_max_sed_cmds`
  11504. + as_ln_s='ln -s'
  11505. fi
  11506. +elif ln conf$$.file conf$$ 2>/dev/null; then
  11507. + as_ln_s=ln
  11508. +else
  11509. + as_ln_s='cp -p'
  11510. +fi
  11511. +rm -f conf$$ conf$$.exe conf$$.file
  11512. +
  11513. +if mkdir -p . 2>/dev/null; then
  11514. + as_mkdir_p=:
  11515. +else
  11516. + as_mkdir_p=false
  11517. +fi
  11518. +
  11519. +as_executable_p="test -f"
  11520. +
  11521. +# Sed expression to map a string onto a valid CPP name.
  11522. +as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
  11523. +
  11524. +# Sed expression to map a string onto a valid variable name.
  11525. +as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
  11526. +
  11527. +
  11528. +# IFS
  11529. +# We need space, tab and new line, in precisely that order.
  11530. +as_nl='
  11531. +'
  11532. +IFS=" $as_nl"
  11533. +
  11534. +# CDPATH.
  11535. +$as_unset CDPATH
  11536. +
  11537. +exec 6>&1
  11538. +
  11539. +# Open the log real soon, to keep \$[0] and so on meaningful, and to
  11540. +# report actual input values of CONFIG_FILES etc. instead of their
  11541. +# values after options handling. Logging --version etc. is OK.
  11542. +exec 5>>config.log
  11543. +{
  11544. + echo
  11545. + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  11546. +## Running $as_me. ##
  11547. +_ASBOX
  11548. +} >&5
  11549. +cat >&5 <<_CSEOF
  11550. +
  11551. +This file was extended by $as_me, which was
  11552. +generated by GNU Autoconf 2.57. Invocation command line was
  11553. +
  11554. + CONFIG_FILES = $CONFIG_FILES
  11555. + CONFIG_HEADERS = $CONFIG_HEADERS
  11556. + CONFIG_LINKS = $CONFIG_LINKS
  11557. + CONFIG_COMMANDS = $CONFIG_COMMANDS
  11558. + $ $0 $@
  11559. +
  11560. +_CSEOF
  11561. +echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  11562. +echo >&5
  11563. +_ACEOF
  11564. +
  11565. +# Files that config.status was made for.
  11566. +if test -n "$ac_config_files"; then
  11567. + echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  11568. +fi
  11569. +
  11570. +if test -n "$ac_config_headers"; then
  11571. + echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  11572. +fi
  11573. +
  11574. +if test -n "$ac_config_links"; then
  11575. + echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  11576. +fi
  11577. +
  11578. +if test -n "$ac_config_commands"; then
  11579. + echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  11580. +fi
  11581. +
  11582. +cat >>$CONFIG_STATUS <<\_ACEOF
  11583. +
  11584. +ac_cs_usage="\
  11585. +\`$as_me' instantiates files from templates according to the
  11586. +current configuration.
  11587. +
  11588. +Usage: $0 [OPTIONS] [FILE]...
  11589. +
  11590. + -h, --help print this help, then exit
  11591. + -V, --version print version number, then exit
  11592. + -q, --quiet do not print progress messages
  11593. + -d, --debug don't remove temporary files
  11594. + --recheck update $as_me by reconfiguring in the same conditions
  11595. + --file=FILE[:TEMPLATE]
  11596. + instantiate the configuration file FILE
  11597. + --header=FILE[:TEMPLATE]
  11598. + instantiate the configuration header FILE
  11599. +
  11600. +Configuration files:
  11601. +$config_files
  11602. +
  11603. +Configuration headers:
  11604. +$config_headers
  11605. +
  11606. +Configuration commands:
  11607. +$config_commands
  11608. +
  11609. +Report bugs to <[email protected]>."
  11610. +_ACEOF
  11611. +
  11612. +cat >>$CONFIG_STATUS <<_ACEOF
  11613. +ac_cs_version="\\
  11614. +config.status
  11615. +configured by $0, generated by GNU Autoconf 2.57,
  11616. + with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  11617. +
  11618. +Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
  11619. +Free Software Foundation, Inc.
  11620. +This config.status script is free software; the Free Software Foundation
  11621. +gives unlimited permission to copy, distribute and modify it."
  11622. +srcdir=$srcdir
  11623. +INSTALL="$INSTALL"
  11624. +_ACEOF
  11625. +
  11626. +cat >>$CONFIG_STATUS <<\_ACEOF
  11627. +# If no file are specified by the user, then we need to provide default
  11628. +# value. By we need to know if files were specified by the user.
  11629. +ac_need_defaults=:
  11630. +while test $# != 0
  11631. +do
  11632. + case $1 in
  11633. + --*=*)
  11634. + ac_option=`expr "x$1" : 'x\([^=]*\)='`
  11635. + ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  11636. + ac_shift=:
  11637. + ;;
  11638. + -*)
  11639. + ac_option=$1
  11640. + ac_optarg=$2
  11641. + ac_shift=shift
  11642. + ;;
  11643. + *) # This is not an option, so the user has probably given explicit
  11644. + # arguments.
  11645. + ac_option=$1
  11646. + ac_need_defaults=false;;
  11647. + esac
  11648. +
  11649. + case $ac_option in
  11650. + # Handling of the options.
  11651. +_ACEOF
  11652. +cat >>$CONFIG_STATUS <<\_ACEOF
  11653. + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11654. + ac_cs_recheck=: ;;
  11655. + --version | --vers* | -V )
  11656. + echo "$ac_cs_version"; exit 0 ;;
  11657. + --he | --h)
  11658. + # Conflict between --help and --header
  11659. + { { echo "$as_me:$LINENO: error: ambiguous option: $1
  11660. +Try \`$0 --help' for more information." >&5
  11661. +echo "$as_me: error: ambiguous option: $1
  11662. +Try \`$0 --help' for more information." >&2;}
  11663. + { (exit 1); exit 1; }; };;
  11664. + --help | --hel | -h )
  11665. + echo "$ac_cs_usage"; exit 0 ;;
  11666. + --debug | --d* | -d )
  11667. + debug=: ;;
  11668. + --file | --fil | --fi | --f )
  11669. + $ac_shift
  11670. + CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  11671. + ac_need_defaults=false;;
  11672. + --header | --heade | --head | --hea )
  11673. + $ac_shift
  11674. + CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  11675. + ac_need_defaults=false;;
  11676. + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  11677. + | -silent | --silent | --silen | --sile | --sil | --si | --s)
  11678. + ac_cs_silent=: ;;
  11679. +
  11680. + # This is an error.
  11681. + -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  11682. +Try \`$0 --help' for more information." >&5
  11683. +echo "$as_me: error: unrecognized option: $1
  11684. +Try \`$0 --help' for more information." >&2;}
  11685. + { (exit 1); exit 1; }; } ;;
  11686. +
  11687. + *) ac_config_targets="$ac_config_targets $1" ;;
  11688. +
  11689. + esac
  11690. + shift
  11691. +done
  11692. +
  11693. +ac_configure_extra_args=
  11694. +
  11695. +if $ac_cs_silent; then
  11696. + exec 6>/dev/null
  11697. + ac_configure_extra_args="$ac_configure_extra_args --silent"
  11698. +fi
  11699. +
  11700. +_ACEOF
  11701. +cat >>$CONFIG_STATUS <<_ACEOF
  11702. +if \$ac_cs_recheck; then
  11703. + echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  11704. + exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  11705. +fi
  11706. +
  11707. +_ACEOF
  11708. +
  11709. +cat >>$CONFIG_STATUS <<_ACEOF
  11710. +#
  11711. +# INIT-COMMANDS section.
  11712. +#
  11713. +
  11714. +
  11715. +
  11716. +_ACEOF
  11717. +
  11718. +
  11719. +
  11720. +cat >>$CONFIG_STATUS <<\_ACEOF
  11721. +for ac_config_target in $ac_config_targets
  11722. +do
  11723. + case "$ac_config_target" in
  11724. + # Handling of arguments.
  11725. + "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  11726. + "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  11727. + "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
  11728. + "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  11729. + "src/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
  11730. + "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
  11731. + "src/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/test/Makefile" ;;
  11732. + "src/debug/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/debug/Makefile" ;;
  11733. + "src/qgen/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/qgen/Makefile" ;;
  11734. + "src/saal/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/saal/Makefile" ;;
  11735. + "src/sigd/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/sigd/Makefile" ;;
  11736. + "src/maint/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/maint/Makefile" ;;
  11737. + "src/arpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/arpd/Makefile" ;;
  11738. + "src/ilmid/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/ilmid/Makefile" ;;
  11739. + "src/ilmid/asn1/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/ilmid/asn1/Makefile" ;;
  11740. + "src/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/man/Makefile" ;;
  11741. + "src/led/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/led/Makefile" ;;
  11742. + "src/lane/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lane/Makefile" ;;
  11743. + "src/mpoad/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/mpoad/Makefile" ;;
  11744. + "src/switch/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/switch/Makefile" ;;
  11745. + "src/switch/debug/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/switch/debug/Makefile" ;;
  11746. + "src/switch/tcp/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/switch/tcp/Makefile" ;;
  11747. + "src/config/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/config/Makefile" ;;
  11748. + "src/config/init-redhat/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/config/init-redhat/Makefile" ;;
  11749. + "src/extra/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/extra/Makefile" ;;
  11750. + "src/extra/linux-atm.spec" ) CONFIG_FILES="$CONFIG_FILES src/extra/linux-atm.spec" ;;
  11751. + "src/extra/ANS/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/extra/ANS/Makefile" ;;
  11752. + "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  11753. + "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  11754. + *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  11755. +echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  11756. + { (exit 1); exit 1; }; };;
  11757. + esac
  11758. done
  11759. -if test -z "$ac_sed_cmds"; then
  11760. - ac_sed_cmds=cat
  11761. +
  11762. +# If the user did not use the arguments to specify the items to instantiate,
  11763. +# then the envvar interface is used. Set only those that are not.
  11764. +# We use the long form for the default assignment because of an extremely
  11765. +# bizarre bug on SunOS 4.1.3.
  11766. +if $ac_need_defaults; then
  11767. + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  11768. + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  11769. + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  11770. fi
  11771. -EOF
  11772. -cat >> $CONFIG_STATUS <<EOF
  11773. +# Have a temporary directory for convenience. Make it in the build tree
  11774. +# simply because there is no reason to put it here, and in addition,
  11775. +# creating and moving files from /tmp can sometimes cause problems.
  11776. +# Create a temporary directory, and hook for its removal unless debugging.
  11777. +$debug ||
  11778. +{
  11779. + trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  11780. + trap '{ (exit 1); exit 1; }' 1 2 13 15
  11781. +}
  11782. -CONFIG_FILES=\${CONFIG_FILES-"Makefile \
  11783. - doc/Makefile \
  11784. - m4/Makefile \
  11785. - src/Makefile \
  11786. - src/include/Makefile \
  11787. - src/lib/Makefile \
  11788. - src/test/Makefile \
  11789. - src/debug/Makefile \
  11790. - src/qgen/Makefile \
  11791. - src/saal/Makefile \
  11792. - src/sigd/Makefile \
  11793. - src/maint/Makefile \
  11794. - src/arpd/Makefile \
  11795. - src/ilmid/Makefile \
  11796. - src/ilmid/asn1/Makefile \
  11797. - src/man/Makefile \
  11798. - src/led/Makefile \
  11799. - src/lane/Makefile \
  11800. - src/mpoad/Makefile \
  11801. - src/switch/Makefile \
  11802. - src/switch/debug/Makefile \
  11803. - src/switch/tcp/Makefile \
  11804. - src/config/Makefile \
  11805. - src/config/init-redhat/Makefile \
  11806. - src/extra/Makefile \
  11807. - src/extra/linux-atm.spec \
  11808. - src/extra/ANS/Makefile
  11809. - "}
  11810. -EOF
  11811. -cat >> $CONFIG_STATUS <<\EOF
  11812. -for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  11813. +# Create a (secure) tmp directory for tmp files.
  11814. +
  11815. +{
  11816. + tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  11817. + test -n "$tmp" && test -d "$tmp"
  11818. +} ||
  11819. +{
  11820. + tmp=./confstat$$-$RANDOM
  11821. + (umask 077 && mkdir $tmp)
  11822. +} ||
  11823. +{
  11824. + echo "$me: cannot create a temporary directory in ." >&2
  11825. + { (exit 1); exit 1; }
  11826. +}
  11827. +
  11828. +_ACEOF
  11829. +
  11830. +cat >>$CONFIG_STATUS <<_ACEOF
  11831. +
  11832. +#
  11833. +# CONFIG_FILES section.
  11834. +#
  11835. +
  11836. +# No need to generate the scripts if there are no CONFIG_FILES.
  11837. +# This happens for instance when ./config.status config.h
  11838. +if test -n "\$CONFIG_FILES"; then
  11839. + # Protect against being on the right side of a sed subst in config.status.
  11840. + sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  11841. + s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  11842. +s,@SHELL@,$SHELL,;t t
  11843. +s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  11844. +s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  11845. +s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  11846. +s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  11847. +s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  11848. +s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  11849. +s,@exec_prefix@,$exec_prefix,;t t
  11850. +s,@prefix@,$prefix,;t t
  11851. +s,@program_transform_name@,$program_transform_name,;t t
  11852. +s,@bindir@,$bindir,;t t
  11853. +s,@sbindir@,$sbindir,;t t
  11854. +s,@libexecdir@,$libexecdir,;t t
  11855. +s,@datadir@,$datadir,;t t
  11856. +s,@sysconfdir@,$sysconfdir,;t t
  11857. +s,@sharedstatedir@,$sharedstatedir,;t t
  11858. +s,@localstatedir@,$localstatedir,;t t
  11859. +s,@libdir@,$libdir,;t t
  11860. +s,@includedir@,$includedir,;t t
  11861. +s,@oldincludedir@,$oldincludedir,;t t
  11862. +s,@infodir@,$infodir,;t t
  11863. +s,@mandir@,$mandir,;t t
  11864. +s,@build_alias@,$build_alias,;t t
  11865. +s,@host_alias@,$host_alias,;t t
  11866. +s,@target_alias@,$target_alias,;t t
  11867. +s,@DEFS@,$DEFS,;t t
  11868. +s,@ECHO_C@,$ECHO_C,;t t
  11869. +s,@ECHO_N@,$ECHO_N,;t t
  11870. +s,@ECHO_T@,$ECHO_T,;t t
  11871. +s,@LIBS@,$LIBS,;t t
  11872. +s,@build@,$build,;t t
  11873. +s,@build_cpu@,$build_cpu,;t t
  11874. +s,@build_vendor@,$build_vendor,;t t
  11875. +s,@build_os@,$build_os,;t t
  11876. +s,@host@,$host,;t t
  11877. +s,@host_cpu@,$host_cpu,;t t
  11878. +s,@host_vendor@,$host_vendor,;t t
  11879. +s,@host_os@,$host_os,;t t
  11880. +s,@target@,$target,;t t
  11881. +s,@target_cpu@,$target_cpu,;t t
  11882. +s,@target_vendor@,$target_vendor,;t t
  11883. +s,@target_os@,$target_os,;t t
  11884. +s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  11885. +s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  11886. +s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  11887. +s,@PACKAGE@,$PACKAGE,;t t
  11888. +s,@VERSION@,$VERSION,;t t
  11889. +s,@ACLOCAL@,$ACLOCAL,;t t
  11890. +s,@AUTOCONF@,$AUTOCONF,;t t
  11891. +s,@AUTOMAKE@,$AUTOMAKE,;t t
  11892. +s,@AUTOHEADER@,$AUTOHEADER,;t t
  11893. +s,@MAKEINFO@,$MAKEINFO,;t t
  11894. +s,@SET_MAKE@,$SET_MAKE,;t t
  11895. +s,@LIBVER_CURRENT@,$LIBVER_CURRENT,;t t
  11896. +s,@LIBVER_REVISION@,$LIBVER_REVISION,;t t
  11897. +s,@LIBVER_AGE@,$LIBVER_AGE,;t t
  11898. +s,@CC@,$CC,;t t
  11899. +s,@CFLAGS@,$CFLAGS,;t t
  11900. +s,@LDFLAGS@,$LDFLAGS,;t t
  11901. +s,@CPPFLAGS@,$CPPFLAGS,;t t
  11902. +s,@ac_ct_CC@,$ac_ct_CC,;t t
  11903. +s,@EXEEXT@,$EXEEXT,;t t
  11904. +s,@OBJEXT@,$OBJEXT,;t t
  11905. +s,@LEX@,$LEX,;t t
  11906. +s,@LEXLIB@,$LEXLIB,;t t
  11907. +s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
  11908. +s,@YACC@,$YACC,;t t
  11909. +s,@LN_S@,$LN_S,;t t
  11910. +s,@ECHO@,$ECHO,;t t
  11911. +s,@RANLIB@,$RANLIB,;t t
  11912. +s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
  11913. +s,@STRIP@,$STRIP,;t t
  11914. +s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
  11915. +s,@CPP@,$CPP,;t t
  11916. +s,@EGREP@,$EGREP,;t t
  11917. +s,@LIBTOOL@,$LIBTOOL,;t t
  11918. +s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
  11919. +s,@PERL@,$PERL,;t t
  11920. +s,@LIBOBJS@,$LIBOBJS,;t t
  11921. +s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  11922. +CEOF
  11923. +
  11924. +_ACEOF
  11925. +
  11926. + cat >>$CONFIG_STATUS <<\_ACEOF
  11927. + # Split the substitutions into bite-sized pieces for seds with
  11928. + # small command number limits, like on Digital OSF/1 and HP-UX.
  11929. + ac_max_sed_lines=48
  11930. + ac_sed_frag=1 # Number of current file.
  11931. + ac_beg=1 # First line for current file.
  11932. + ac_end=$ac_max_sed_lines # Line after last line for current file.
  11933. + ac_more_lines=:
  11934. + ac_sed_cmds=
  11935. + while $ac_more_lines; do
  11936. + if test $ac_beg -gt 1; then
  11937. + sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  11938. + else
  11939. + sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  11940. + fi
  11941. + if test ! -s $tmp/subs.frag; then
  11942. + ac_more_lines=false
  11943. + else
  11944. + # The purpose of the label and of the branching condition is to
  11945. + # speed up the sed processing (if there are no `@' at all, there
  11946. + # is no need to browse any of the substitutions).
  11947. + # These are the two extra sed commands mentioned above.
  11948. + (echo ':t
  11949. + /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  11950. + if test -z "$ac_sed_cmds"; then
  11951. + ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  11952. + else
  11953. + ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  11954. + fi
  11955. + ac_sed_frag=`expr $ac_sed_frag + 1`
  11956. + ac_beg=$ac_end
  11957. + ac_end=`expr $ac_end + $ac_max_sed_lines`
  11958. + fi
  11959. + done
  11960. + if test -z "$ac_sed_cmds"; then
  11961. + ac_sed_cmds=cat
  11962. + fi
  11963. +fi # test -n "$CONFIG_FILES"
  11964. +
  11965. +_ACEOF
  11966. +cat >>$CONFIG_STATUS <<\_ACEOF
  11967. +for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  11968. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11969. - case "$ac_file" in
  11970. - *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  11971. - ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  11972. - *) ac_file_in="${ac_file}.in" ;;
  11973. - esac
  11974. -
  11975. - # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  11976. -
  11977. - # Remove last slash and all that follows it. Not all systems have dirname.
  11978. - ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  11979. - if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  11980. - # The file is in a subdirectory.
  11981. - test ! -d "$ac_dir" && mkdir "$ac_dir"
  11982. - ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  11983. - # A "../" for each directory in $ac_dir_suffix.
  11984. - ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  11985. - else
  11986. - ac_dir_suffix= ac_dots=
  11987. - fi
  11988. -
  11989. - case "$ac_given_srcdir" in
  11990. - .) srcdir=.
  11991. - if test -z "$ac_dots"; then top_srcdir=.
  11992. - else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  11993. - /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  11994. + case $ac_file in
  11995. + - | *:- | *:-:* ) # input from stdin
  11996. + cat >$tmp/stdin
  11997. + ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11998. + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11999. + *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  12000. + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  12001. + * ) ac_file_in=$ac_file.in ;;
  12002. + esac
  12003. +
  12004. + # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  12005. + ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  12006. +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12007. + X"$ac_file" : 'X\(//\)[^/]' \| \
  12008. + X"$ac_file" : 'X\(//\)$' \| \
  12009. + X"$ac_file" : 'X\(/\)' \| \
  12010. + . : '\(.\)' 2>/dev/null ||
  12011. +echo X"$ac_file" |
  12012. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  12013. + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  12014. + /^X\(\/\/\)$/{ s//\1/; q; }
  12015. + /^X\(\/\).*/{ s//\1/; q; }
  12016. + s/.*/./; q'`
  12017. + { if $as_mkdir_p; then
  12018. + mkdir -p "$ac_dir"
  12019. + else
  12020. + as_dir="$ac_dir"
  12021. + as_dirs=
  12022. + while test ! -d "$as_dir"; do
  12023. + as_dirs="$as_dir $as_dirs"
  12024. + as_dir=`(dirname "$as_dir") 2>/dev/null ||
  12025. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12026. + X"$as_dir" : 'X\(//\)[^/]' \| \
  12027. + X"$as_dir" : 'X\(//\)$' \| \
  12028. + X"$as_dir" : 'X\(/\)' \| \
  12029. + . : '\(.\)' 2>/dev/null ||
  12030. +echo X"$as_dir" |
  12031. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  12032. + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  12033. + /^X\(\/\/\)$/{ s//\1/; q; }
  12034. + /^X\(\/\).*/{ s//\1/; q; }
  12035. + s/.*/./; q'`
  12036. + done
  12037. + test ! -n "$as_dirs" || mkdir $as_dirs
  12038. + fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  12039. +echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  12040. + { (exit 1); exit 1; }; }; }
  12041. +
  12042. + ac_builddir=.
  12043. +
  12044. +if test "$ac_dir" != .; then
  12045. + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  12046. + # A "../" for each directory in $ac_dir_suffix.
  12047. + ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  12048. +else
  12049. + ac_dir_suffix= ac_top_builddir=
  12050. +fi
  12051. +
  12052. +case $srcdir in
  12053. + .) # No --srcdir option. We are building in place.
  12054. + ac_srcdir=.
  12055. + if test -z "$ac_top_builddir"; then
  12056. + ac_top_srcdir=.
  12057. + else
  12058. + ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  12059. + fi ;;
  12060. + [\\/]* | ?:[\\/]* ) # Absolute path.
  12061. + ac_srcdir=$srcdir$ac_dir_suffix;
  12062. + ac_top_srcdir=$srcdir ;;
  12063. *) # Relative path.
  12064. - srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  12065. - top_srcdir="$ac_dots$ac_given_srcdir" ;;
  12066. + ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  12067. + ac_top_srcdir=$ac_top_builddir$srcdir ;;
  12068. +esac
  12069. +# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
  12070. +# absolute.
  12071. +ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
  12072. +ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
  12073. +ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
  12074. +ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
  12075. +
  12076. +
  12077. + case $INSTALL in
  12078. + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  12079. + *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  12080. esac
  12081. - case "$ac_given_INSTALL" in
  12082. - [/$]*) INSTALL="$ac_given_INSTALL" ;;
  12083. - *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  12084. - esac
  12085. -
  12086. - echo creating "$ac_file"
  12087. - rm -f "$ac_file"
  12088. - configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  12089. - case "$ac_file" in
  12090. - *Makefile*) ac_comsub="1i\\
  12091. -# $configure_input" ;;
  12092. - *) ac_comsub= ;;
  12093. - esac
  12094. -
  12095. - ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  12096. - sed -e "$ac_comsub
  12097. -s%@configure_input@%$configure_input%g
  12098. -s%@srcdir@%$srcdir%g
  12099. -s%@top_srcdir@%$top_srcdir%g
  12100. -s%@INSTALL@%$INSTALL%g
  12101. -" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  12102. -fi; done
  12103. -rm -f conftest.s*
  12104. + if test x"$ac_file" != x-; then
  12105. + { echo "$as_me:$LINENO: creating $ac_file" >&5
  12106. +echo "$as_me: creating $ac_file" >&6;}
  12107. + rm -f "$ac_file"
  12108. + fi
  12109. + # Let's still pretend it is `configure' which instantiates (i.e., don't
  12110. + # use $as_me), people would be surprised to read:
  12111. + # /* config.h. Generated by config.status. */
  12112. + if test x"$ac_file" = x-; then
  12113. + configure_input=
  12114. + else
  12115. + configure_input="$ac_file. "
  12116. + fi
  12117. + configure_input=$configure_input"Generated from `echo $ac_file_in |
  12118. + sed 's,.*/,,'` by configure."
  12119. +
  12120. + # First look for the input files in the build tree, otherwise in the
  12121. + # src tree.
  12122. + ac_file_inputs=`IFS=:
  12123. + for f in $ac_file_in; do
  12124. + case $f in
  12125. + -) echo $tmp/stdin ;;
  12126. + [\\/$]*)
  12127. + # Absolute (can't be DOS-style, as IFS=:)
  12128. + test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  12129. +echo "$as_me: error: cannot find input file: $f" >&2;}
  12130. + { (exit 1); exit 1; }; }
  12131. + echo $f;;
  12132. + *) # Relative
  12133. + if test -f "$f"; then
  12134. + # Build tree
  12135. + echo $f
  12136. + elif test -f "$srcdir/$f"; then
  12137. + # Source tree
  12138. + echo $srcdir/$f
  12139. + else
  12140. + # /dev/null tree
  12141. + { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  12142. +echo "$as_me: error: cannot find input file: $f" >&2;}
  12143. + { (exit 1); exit 1; }; }
  12144. + fi;;
  12145. + esac
  12146. + done` || { (exit 1); exit 1; }
  12147. +_ACEOF
  12148. +cat >>$CONFIG_STATUS <<_ACEOF
  12149. + sed "$ac_vpsub
  12150. +$extrasub
  12151. +_ACEOF
  12152. +cat >>$CONFIG_STATUS <<\_ACEOF
  12153. +:t
  12154. +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  12155. +s,@configure_input@,$configure_input,;t t
  12156. +s,@srcdir@,$ac_srcdir,;t t
  12157. +s,@abs_srcdir@,$ac_abs_srcdir,;t t
  12158. +s,@top_srcdir@,$ac_top_srcdir,;t t
  12159. +s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  12160. +s,@builddir@,$ac_builddir,;t t
  12161. +s,@abs_builddir@,$ac_abs_builddir,;t t
  12162. +s,@top_builddir@,$ac_top_builddir,;t t
  12163. +s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  12164. +s,@INSTALL@,$ac_INSTALL,;t t
  12165. +" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  12166. + rm -f $tmp/stdin
  12167. + if test x"$ac_file" != x-; then
  12168. + mv $tmp/out $ac_file
  12169. + else
  12170. + cat $tmp/out
  12171. + rm -f $tmp/out
  12172. + fi
  12173. +
  12174. +done
  12175. +_ACEOF
  12176. +cat >>$CONFIG_STATUS <<\_ACEOF
  12177. +
  12178. +#
  12179. +# CONFIG_HEADER section.
  12180. +#
  12181. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  12182. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  12183. #
  12184. # ac_d sets the value in "#define NAME VALUE" lines.
  12185. -ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  12186. -ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
  12187. -ac_dC='\3'
  12188. -ac_dD='%g'
  12189. -# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  12190. -ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  12191. -ac_uB='\([ ]\)%\1#\2define\3'
  12192. +ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  12193. +ac_dB='[ ].*$,\1#\2'
  12194. +ac_dC=' '
  12195. +ac_dD=',;t'
  12196. +# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  12197. +ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  12198. +ac_uB='$,\1#\2define\3'
  12199. ac_uC=' '
  12200. -ac_uD='\4%g'
  12201. -# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  12202. -ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  12203. -ac_eB='$%\1#\2define\3'
  12204. -ac_eC=' '
  12205. -ac_eD='%g'
  12206. +ac_uD=',;t'
  12207. -if test "${CONFIG_HEADERS+set}" != set; then
  12208. -EOF
  12209. -cat >> $CONFIG_STATUS <<EOF
  12210. - CONFIG_HEADERS="config.h"
  12211. -EOF
  12212. -cat >> $CONFIG_STATUS <<\EOF
  12213. -fi
  12214. -for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  12215. +for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  12216. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  12217. - case "$ac_file" in
  12218. - *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  12219. - ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  12220. - *) ac_file_in="${ac_file}.in" ;;
  12221. + case $ac_file in
  12222. + - | *:- | *:-:* ) # input from stdin
  12223. + cat >$tmp/stdin
  12224. + ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  12225. + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  12226. + *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  12227. + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  12228. + * ) ac_file_in=$ac_file.in ;;
  12229. esac
  12230. - echo creating $ac_file
  12231. -
  12232. - rm -f conftest.frag conftest.in conftest.out
  12233. - ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  12234. - cat $ac_file_inputs > conftest.in
  12235. -
  12236. -EOF
  12237. + test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  12238. +echo "$as_me: creating $ac_file" >&6;}
  12239. -# Transform confdefs.h into a sed script conftest.vals that substitutes
  12240. -# the proper values into config.h.in to produce config.h. And first:
  12241. -# Protect against being on the right side of a sed subst in config.status.
  12242. -# Protect against being in an unquoted here document in config.status.
  12243. -rm -f conftest.vals
  12244. -cat > conftest.hdr <<\EOF
  12245. -s/[\\&%]/\\&/g
  12246. -s%[\\$`]%\\&%g
  12247. -s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  12248. -s%ac_d%ac_u%gp
  12249. -s%ac_u%ac_e%gp
  12250. -EOF
  12251. -sed -n -f conftest.hdr confdefs.h > conftest.vals
  12252. -rm -f conftest.hdr
  12253. + # First look for the input files in the build tree, otherwise in the
  12254. + # src tree.
  12255. + ac_file_inputs=`IFS=:
  12256. + for f in $ac_file_in; do
  12257. + case $f in
  12258. + -) echo $tmp/stdin ;;
  12259. + [\\/$]*)
  12260. + # Absolute (can't be DOS-style, as IFS=:)
  12261. + test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  12262. +echo "$as_me: error: cannot find input file: $f" >&2;}
  12263. + { (exit 1); exit 1; }; }
  12264. + echo $f;;
  12265. + *) # Relative
  12266. + if test -f "$f"; then
  12267. + # Build tree
  12268. + echo $f
  12269. + elif test -f "$srcdir/$f"; then
  12270. + # Source tree
  12271. + echo $srcdir/$f
  12272. + else
  12273. + # /dev/null tree
  12274. + { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  12275. +echo "$as_me: error: cannot find input file: $f" >&2;}
  12276. + { (exit 1); exit 1; }; }
  12277. + fi;;
  12278. + esac
  12279. + done` || { (exit 1); exit 1; }
  12280. + # Remove the trailing spaces.
  12281. + sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  12282. +
  12283. +_ACEOF
  12284. +
  12285. +# Transform confdefs.h into two sed scripts, `conftest.defines' and
  12286. +# `conftest.undefs', that substitutes the proper values into
  12287. +# config.h.in to produce config.h. The first handles `#define'
  12288. +# templates, and the second `#undef' templates.
  12289. +# And first: Protect against being on the right side of a sed subst in
  12290. +# config.status. Protect against being in an unquoted here document
  12291. +# in config.status.
  12292. +rm -f conftest.defines conftest.undefs
  12293. +# Using a here document instead of a string reduces the quoting nightmare.
  12294. +# Putting comments in sed scripts is not portable.
  12295. +#
  12296. +# `end' is used to avoid that the second main sed command (meant for
  12297. +# 0-ary CPP macros) applies to n-ary macro definitions.
  12298. +# See the Autoconf documentation for `clear'.
  12299. +cat >confdef2sed.sed <<\_ACEOF
  12300. +s/[\\&,]/\\&/g
  12301. +s,[\\$`],\\&,g
  12302. +t clear
  12303. +: clear
  12304. +s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  12305. +t end
  12306. +s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  12307. +: end
  12308. +_ACEOF
  12309. +# If some macros were called several times there might be several times
  12310. +# the same #defines, which is useless. Nevertheless, we may not want to
  12311. +# sort them, since we want the *last* AC-DEFINE to be honored.
  12312. +uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  12313. +sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  12314. +rm -f confdef2sed.sed
  12315. # This sed command replaces #undef with comments. This is necessary, for
  12316. # example, in the case of _POSIX_SOURCE, which is predefined and required
  12317. # on some systems where configure will not decide to define it.
  12318. -cat >> conftest.vals <<\EOF
  12319. -s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  12320. -EOF
  12321. -
  12322. -# Break up conftest.vals because some shells have a limit on
  12323. -# the size of here documents, and old seds have small limits too.
  12324. -
  12325. +cat >>conftest.undefs <<\_ACEOF
  12326. +s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  12327. +_ACEOF
  12328. +
  12329. +# Break up conftest.defines because some shells have a limit on the size
  12330. +# of here documents, and old seds have small limits too (100 cmds).
  12331. +echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  12332. +echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  12333. +echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  12334. +echo ' :' >>$CONFIG_STATUS
  12335. +rm -f conftest.tail
  12336. +while grep . conftest.defines >/dev/null
  12337. +do
  12338. + # Write a limited-size here document to $tmp/defines.sed.
  12339. + echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  12340. + # Speed up: don't consider the non `#define' lines.
  12341. + echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  12342. + # Work around the forget-to-reset-the-flag bug.
  12343. + echo 't clr' >>$CONFIG_STATUS
  12344. + echo ': clr' >>$CONFIG_STATUS
  12345. + sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  12346. + echo 'CEOF
  12347. + sed -f $tmp/defines.sed $tmp/in >$tmp/out
  12348. + rm -f $tmp/in
  12349. + mv $tmp/out $tmp/in
  12350. +' >>$CONFIG_STATUS
  12351. + sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  12352. + rm -f conftest.defines
  12353. + mv conftest.tail conftest.defines
  12354. +done
  12355. +rm -f conftest.defines
  12356. +echo ' fi # grep' >>$CONFIG_STATUS
  12357. +echo >>$CONFIG_STATUS
  12358. +
  12359. +# Break up conftest.undefs because some shells have a limit on the size
  12360. +# of here documents, and old seds have small limits too (100 cmds).
  12361. +echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  12362. rm -f conftest.tail
  12363. -while :
  12364. +while grep . conftest.undefs >/dev/null
  12365. do
  12366. - ac_lines=`grep -c . conftest.vals`
  12367. - # grep -c gives empty output for an empty file on some AIX systems.
  12368. - if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  12369. - # Write a limited-size here document to conftest.frag.
  12370. - echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  12371. - sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  12372. + # Write a limited-size here document to $tmp/undefs.sed.
  12373. + echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  12374. + # Speed up: don't consider the non `#undef'
  12375. + echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  12376. + # Work around the forget-to-reset-the-flag bug.
  12377. + echo 't clr' >>$CONFIG_STATUS
  12378. + echo ': clr' >>$CONFIG_STATUS
  12379. + sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  12380. echo 'CEOF
  12381. - sed -f conftest.frag conftest.in > conftest.out
  12382. - rm -f conftest.in
  12383. - mv conftest.out conftest.in
  12384. -' >> $CONFIG_STATUS
  12385. - sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  12386. - rm -f conftest.vals
  12387. - mv conftest.tail conftest.vals
  12388. -done
  12389. -rm -f conftest.vals
  12390. -
  12391. -cat >> $CONFIG_STATUS <<\EOF
  12392. - rm -f conftest.frag conftest.h
  12393. - echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
  12394. - cat conftest.in >> conftest.h
  12395. - rm -f conftest.in
  12396. - if cmp -s $ac_file conftest.h 2>/dev/null; then
  12397. - echo "$ac_file is unchanged"
  12398. - rm -f conftest.h
  12399. - else
  12400. - # Remove last slash and all that follows it. Not all systems have dirname.
  12401. - ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  12402. - if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  12403. - # The file is in a subdirectory.
  12404. - test ! -d "$ac_dir" && mkdir "$ac_dir"
  12405. + sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  12406. + rm -f $tmp/in
  12407. + mv $tmp/out $tmp/in
  12408. +' >>$CONFIG_STATUS
  12409. + sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  12410. + rm -f conftest.undefs
  12411. + mv conftest.tail conftest.undefs
  12412. +done
  12413. +rm -f conftest.undefs
  12414. +
  12415. +cat >>$CONFIG_STATUS <<\_ACEOF
  12416. + # Let's still pretend it is `configure' which instantiates (i.e., don't
  12417. + # use $as_me), people would be surprised to read:
  12418. + # /* config.h. Generated by config.status. */
  12419. + if test x"$ac_file" = x-; then
  12420. + echo "/* Generated by configure. */" >$tmp/config.h
  12421. + else
  12422. + echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  12423. + fi
  12424. + cat $tmp/in >>$tmp/config.h
  12425. + rm -f $tmp/in
  12426. + if test x"$ac_file" != x-; then
  12427. + if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  12428. + { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  12429. +echo "$as_me: $ac_file is unchanged" >&6;}
  12430. + else
  12431. + ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  12432. +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12433. + X"$ac_file" : 'X\(//\)[^/]' \| \
  12434. + X"$ac_file" : 'X\(//\)$' \| \
  12435. + X"$ac_file" : 'X\(/\)' \| \
  12436. + . : '\(.\)' 2>/dev/null ||
  12437. +echo X"$ac_file" |
  12438. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  12439. + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  12440. + /^X\(\/\/\)$/{ s//\1/; q; }
  12441. + /^X\(\/\).*/{ s//\1/; q; }
  12442. + s/.*/./; q'`
  12443. + { if $as_mkdir_p; then
  12444. + mkdir -p "$ac_dir"
  12445. + else
  12446. + as_dir="$ac_dir"
  12447. + as_dirs=
  12448. + while test ! -d "$as_dir"; do
  12449. + as_dirs="$as_dir $as_dirs"
  12450. + as_dir=`(dirname "$as_dir") 2>/dev/null ||
  12451. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12452. + X"$as_dir" : 'X\(//\)[^/]' \| \
  12453. + X"$as_dir" : 'X\(//\)$' \| \
  12454. + X"$as_dir" : 'X\(/\)' \| \
  12455. + . : '\(.\)' 2>/dev/null ||
  12456. +echo X"$as_dir" |
  12457. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  12458. + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  12459. + /^X\(\/\/\)$/{ s//\1/; q; }
  12460. + /^X\(\/\).*/{ s//\1/; q; }
  12461. + s/.*/./; q'`
  12462. + done
  12463. + test ! -n "$as_dirs" || mkdir $as_dirs
  12464. + fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  12465. +echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  12466. + { (exit 1); exit 1; }; }; }
  12467. +
  12468. + rm -f $ac_file
  12469. + mv $tmp/config.h $ac_file
  12470. fi
  12471. - rm -f $ac_file
  12472. - mv conftest.h $ac_file
  12473. + else
  12474. + cat $tmp/config.h
  12475. + rm -f $tmp/config.h
  12476. fi
  12477. -fi; done
  12478. +done
  12479. +_ACEOF
  12480. +cat >>$CONFIG_STATUS <<\_ACEOF
  12481. -EOF
  12482. -cat >> $CONFIG_STATUS <<EOF
  12483. +#
  12484. +# CONFIG_COMMANDS section.
  12485. +#
  12486. +for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  12487. + ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  12488. + ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  12489. + ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
  12490. +$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12491. + X"$ac_dest" : 'X\(//\)[^/]' \| \
  12492. + X"$ac_dest" : 'X\(//\)$' \| \
  12493. + X"$ac_dest" : 'X\(/\)' \| \
  12494. + . : '\(.\)' 2>/dev/null ||
  12495. +echo X"$ac_dest" |
  12496. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  12497. + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  12498. + /^X\(\/\/\)$/{ s//\1/; q; }
  12499. + /^X\(\/\).*/{ s//\1/; q; }
  12500. + s/.*/./; q'`
  12501. + ac_builddir=.
  12502. +
  12503. +if test "$ac_dir" != .; then
  12504. + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  12505. + # A "../" for each directory in $ac_dir_suffix.
  12506. + ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  12507. +else
  12508. + ac_dir_suffix= ac_top_builddir=
  12509. +fi
  12510. +
  12511. +case $srcdir in
  12512. + .) # No --srcdir option. We are building in place.
  12513. + ac_srcdir=.
  12514. + if test -z "$ac_top_builddir"; then
  12515. + ac_top_srcdir=.
  12516. + else
  12517. + ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  12518. + fi ;;
  12519. + [\\/]* | ?:[\\/]* ) # Absolute path.
  12520. + ac_srcdir=$srcdir$ac_dir_suffix;
  12521. + ac_top_srcdir=$srcdir ;;
  12522. + *) # Relative path.
  12523. + ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  12524. + ac_top_srcdir=$ac_top_builddir$srcdir ;;
  12525. +esac
  12526. +# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
  12527. +# absolute.
  12528. +ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
  12529. +ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
  12530. +ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
  12531. +ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
  12532. -EOF
  12533. -cat >> $CONFIG_STATUS <<\EOF
  12534. -test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
  12535. + { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
  12536. +echo "$as_me: executing $ac_dest commands" >&6;}
  12537. + case $ac_dest in
  12538. + default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
  12539. + esac
  12540. +done
  12541. +_ACEOF
  12542. -exit 0
  12543. -EOF
  12544. +cat >>$CONFIG_STATUS <<\_ACEOF
  12545. +
  12546. +{ (exit 0); exit 0; }
  12547. +_ACEOF
  12548. chmod +x $CONFIG_STATUS
  12549. -rm -fr confdefs* $ac_clean_files
  12550. -test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  12551. +ac_clean_files=$ac_clean_files_save
  12552. +
  12553. +
  12554. +# configure is writing to config.log, and then calls config.status.
  12555. +# config.status does its own redirection, appending to config.log.
  12556. +# Unfortunately, on DOS this fails, as config.log is still kept open
  12557. +# by configure, so config.status won't be able to write to it; its
  12558. +# output is simply discarded. So we exec the FD to /dev/null,
  12559. +# effectively closing config.log, so it can be properly (re)opened and
  12560. +# appended to by config.status. When coming back to configure, we
  12561. +# need to make the FD available again.
  12562. +if test "$no_create" != yes; then
  12563. + ac_cs_success=:
  12564. + ac_config_status_args=
  12565. + test "$silent" = yes &&
  12566. + ac_config_status_args="$ac_config_status_args --quiet"
  12567. + exec 5>/dev/null
  12568. + $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  12569. + exec 5>>config.log
  12570. + # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  12571. + # would make configure fail if this is the last instruction.
  12572. + $ac_cs_success || { (exit 1); exit 1; }
  12573. +fi
  12574. Index: linux-atm-2.4.1/ltmain.sh
  12575. ===================================================================
  12576. --- linux-atm-2.4.1.orig/ltmain.sh 2007-10-20 19:19:10.870247941 +0200
  12577. +++ linux-atm-2.4.1/ltmain.sh 2007-10-20 19:19:11.774299458 +0200
  12578. @@ -49,14 +49,14 @@
  12579. fi
  12580. # The name of this program.
  12581. -progname=`$echo "$0" | sed 's%^.*/%%'`
  12582. +progname=`$echo "$0" | ${SED} 's%^.*/%%'`
  12583. modename="$progname"
  12584. # Constants.
  12585. PROGRAM=ltmain.sh
  12586. PACKAGE=libtool
  12587. -VERSION=1.4
  12588. -TIMESTAMP=" (1.920 2001/04/24 23:26:18)"
  12589. +VERSION=1.4.3
  12590. +TIMESTAMP=" (1.922.2.111 2002/10/23 02:54:36)"
  12591. default_mode=
  12592. help="Try \`$progname --help' for more information."
  12593. @@ -67,10 +67,19 @@
  12594. # Sed substitution that helps us do robust quoting. It backslashifies
  12595. # metacharacters that are still active within double-quoted strings.
  12596. -Xsed='sed -e 1s/^X//'
  12597. +Xsed="${SED}"' -e 1s/^X//'
  12598. sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
  12599. -SP2NL='tr \040 \012'
  12600. -NL2SP='tr \015\012 \040\040'
  12601. +# test EBCDIC or ASCII
  12602. +case `echo A|od -x` in
  12603. + *[Cc]1*) # EBCDIC based system
  12604. + SP2NL="tr '\100' '\n'"
  12605. + NL2SP="tr '\r\n' '\100\100'"
  12606. + ;;
  12607. + *) # Assume ASCII based system
  12608. + SP2NL="tr '\040' '\012'"
  12609. + NL2SP="tr '\015\012' '\040\040'"
  12610. + ;;
  12611. +esac
  12612. # NLS nuisances.
  12613. # Only set LANG and LC_ALL to C if already set.
  12614. @@ -84,6 +93,9 @@
  12615. save_LANG="$LANG"; LANG=C; export LANG
  12616. fi
  12617. +# Make sure IFS has a sensible default
  12618. +: ${IFS=" "}
  12619. +
  12620. if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
  12621. echo "$modename: not configured to build any kind of library" 1>&2
  12622. echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
  12623. @@ -141,7 +153,7 @@
  12624. ;;
  12625. --config)
  12626. - sed -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $0
  12627. + ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $0
  12628. exit 0
  12629. ;;
  12630. @@ -174,6 +186,8 @@
  12631. --mode) prevopt="--mode" prev=mode ;;
  12632. --mode=*) mode="$optarg" ;;
  12633. + --preserve-dup-deps) duplicate_deps="yes" ;;
  12634. +
  12635. --quiet | --silent)
  12636. show=:
  12637. ;;
  12638. @@ -202,12 +216,17 @@
  12639. exit 1
  12640. fi
  12641. +# If this variable is set in any of the actions, the command in it
  12642. +# will be execed at the end. This prevents here-documents from being
  12643. +# left over by shells.
  12644. +exec_cmd=
  12645. +
  12646. if test -z "$show_help"; then
  12647. # Infer the operation mode.
  12648. if test -z "$mode"; then
  12649. case $nonopt in
  12650. - *cc | *++ | gcc* | *-gcc*)
  12651. + *cc | *++ | gcc* | *-gcc* | g++* | xlc*)
  12652. mode=link
  12653. for arg
  12654. do
  12655. @@ -329,7 +348,7 @@
  12656. -Wc,*)
  12657. args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"`
  12658. lastarg=
  12659. - IFS="${IFS= }"; save_ifs="$IFS"; IFS=','
  12660. + save_ifs="$IFS"; IFS=','
  12661. for arg in $args; do
  12662. IFS="$save_ifs"
  12663. @@ -615,6 +634,10 @@
  12664. # Now arrange that obj and lo_libobj become the same file
  12665. $show "(cd $xdir && $LN_S $baseobj $libobj)"
  12666. if $run eval '(cd $xdir && $LN_S $baseobj $libobj)'; then
  12667. + # Unlock the critical section if it was locked
  12668. + if test "$need_locks" != no; then
  12669. + $run $rm "$lockfile"
  12670. + fi
  12671. exit 0
  12672. else
  12673. error=$?
  12674. @@ -745,6 +768,7 @@
  12675. linker_flags=
  12676. dllsearchpath=
  12677. lib_search_path=`pwd`
  12678. + inst_prefix_dir=
  12679. avoid_version=no
  12680. dlfiles=
  12681. @@ -875,6 +899,11 @@
  12682. prev=
  12683. continue
  12684. ;;
  12685. + inst_prefix)
  12686. + inst_prefix_dir="$arg"
  12687. + prev=
  12688. + continue
  12689. + ;;
  12690. release)
  12691. release="-$arg"
  12692. prev=
  12693. @@ -976,11 +1005,16 @@
  12694. continue
  12695. ;;
  12696. + -inst-prefix-dir)
  12697. + prev=inst_prefix
  12698. + continue
  12699. + ;;
  12700. +
  12701. # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
  12702. # so, if we see these flags be careful not to treat them like -L
  12703. -L[A-Z][A-Z]*:*)
  12704. case $with_gcc/$host in
  12705. - no/*-*-irix*)
  12706. + no/*-*-irix* | no/*-*-nonstopux*)
  12707. compile_command="$compile_command $arg"
  12708. finalize_command="$finalize_command $arg"
  12709. ;;
  12710. @@ -1031,6 +1065,17 @@
  12711. # These systems don't actually have a C library (as such)
  12712. test "X$arg" = "X-lc" && continue
  12713. ;;
  12714. + *-*-openbsd* | *-*-freebsd*)
  12715. + # Do not include libc due to us having libc/libc_r.
  12716. + test "X$arg" = "X-lc" && continue
  12717. + ;;
  12718. + esac
  12719. + elif test "X$arg" = "X-lc_r"; then
  12720. + case $host in
  12721. + *-*-openbsd* | *-*-freebsd*)
  12722. + # Do not include libc_r directly, use -pthread flag.
  12723. + continue
  12724. + ;;
  12725. esac
  12726. fi
  12727. deplibs="$deplibs $arg"
  12728. @@ -1122,7 +1167,7 @@
  12729. -Wc,*)
  12730. args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'`
  12731. arg=
  12732. - IFS="${IFS= }"; save_ifs="$IFS"; IFS=','
  12733. + save_ifs="$IFS"; IFS=','
  12734. for flag in $args; do
  12735. IFS="$save_ifs"
  12736. case $flag in
  12737. @@ -1140,7 +1185,7 @@
  12738. -Wl,*)
  12739. args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'`
  12740. arg=
  12741. - IFS="${IFS= }"; save_ifs="$IFS"; IFS=','
  12742. + save_ifs="$IFS"; IFS=','
  12743. for flag in $args; do
  12744. IFS="$save_ifs"
  12745. case $flag in
  12746. @@ -1307,9 +1352,11 @@
  12747. # Find all interdependent deplibs by searching for libraries
  12748. # that are linked more than once (e.g. -la -lb -la)
  12749. for deplib in $deplibs; do
  12750. - case "$libs " in
  12751. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  12752. - esac
  12753. + if test "X$duplicate_deps" = "Xyes" ; then
  12754. + case "$libs " in
  12755. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  12756. + esac
  12757. + fi
  12758. libs="$libs $deplib"
  12759. done
  12760. deplibs=
  12761. @@ -1343,7 +1390,7 @@
  12762. ;;
  12763. esac
  12764. for pass in $passes; do
  12765. - if test "$linkmode" = prog; then
  12766. + if test $linkmode = prog; then
  12767. # Determine which files to process
  12768. case $pass in
  12769. dlopen)
  12770. @@ -1360,11 +1407,11 @@
  12771. found=no
  12772. case $deplib in
  12773. -l*)
  12774. - if test "$linkmode" = oldlib && test "$linkmode" = obj; then
  12775. + if test $linkmode = oldlib && test $linkmode = obj; then
  12776. $echo "$modename: warning: \`-l' is ignored for archives/objects: $deplib" 1>&2
  12777. continue
  12778. fi
  12779. - if test "$pass" = conv; then
  12780. + if test $pass = conv; then
  12781. deplibs="$deplib $deplibs"
  12782. continue
  12783. fi
  12784. @@ -1384,7 +1431,7 @@
  12785. finalize_deplibs="$deplib $finalize_deplibs"
  12786. else
  12787. deplibs="$deplib $deplibs"
  12788. - test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  12789. + test $linkmode = lib && newdependency_libs="$deplib $newdependency_libs"
  12790. fi
  12791. continue
  12792. fi
  12793. @@ -1393,16 +1440,16 @@
  12794. case $linkmode in
  12795. lib)
  12796. deplibs="$deplib $deplibs"
  12797. - test "$pass" = conv && continue
  12798. + test $pass = conv && continue
  12799. newdependency_libs="$deplib $newdependency_libs"
  12800. newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
  12801. ;;
  12802. prog)
  12803. - if test "$pass" = conv; then
  12804. + if test $pass = conv; then
  12805. deplibs="$deplib $deplibs"
  12806. continue
  12807. fi
  12808. - if test "$pass" = scan; then
  12809. + if test $pass = scan; then
  12810. deplibs="$deplib $deplibs"
  12811. newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
  12812. else
  12813. @@ -1417,7 +1464,7 @@
  12814. continue
  12815. ;; # -L
  12816. -R*)
  12817. - if test "$pass" = link; then
  12818. + if test $pass = link; then
  12819. dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'`
  12820. # Make sure the xrpath contains only unique directories.
  12821. case "$xrpath " in
  12822. @@ -1430,7 +1477,7 @@
  12823. ;;
  12824. *.la) lib="$deplib" ;;
  12825. *.$libext)
  12826. - if test "$pass" = conv; then
  12827. + if test $pass = conv; then
  12828. deplibs="$deplib $deplibs"
  12829. continue
  12830. fi
  12831. @@ -1438,10 +1485,12 @@
  12832. lib)
  12833. if test "$deplibs_check_method" != pass_all; then
  12834. echo
  12835. - echo "*** Warning: This library needs some functionality provided by $deplib."
  12836. + echo "*** Warning: Trying to link with static lib archive $deplib."
  12837. echo "*** I have the capability to make that library automatically link in when"
  12838. echo "*** you link to this library. But I can only do this if you have a"
  12839. - echo "*** shared version of the library, which you do not appear to have."
  12840. + echo "*** shared version of the library, which you do not appear to have"
  12841. + echo "*** because the file extensions .$libext of this argument makes me believe"
  12842. + echo "*** that it is just a static archive that I should not used here."
  12843. else
  12844. echo
  12845. echo "*** Warning: Linking the shared library $output against the"
  12846. @@ -1451,7 +1500,7 @@
  12847. continue
  12848. ;;
  12849. prog)
  12850. - if test "$pass" != link; then
  12851. + if test $pass != link; then
  12852. deplibs="$deplib $deplibs"
  12853. else
  12854. compile_deplibs="$deplib $compile_deplibs"
  12855. @@ -1462,7 +1511,7 @@
  12856. esac # linkmode
  12857. ;; # *.$libext
  12858. *.lo | *.$objext)
  12859. - if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
  12860. + if test $pass = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
  12861. # If there is no dlopen support or we're linking statically,
  12862. # we need to preload.
  12863. newdlprefiles="$newdlprefiles $deplib"
  12864. @@ -1485,7 +1534,7 @@
  12865. fi
  12866. # Check to see that this really is a libtool archive.
  12867. - if (sed -e '2q' $lib | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  12868. + if (${SED} -e '2q' $lib | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  12869. else
  12870. $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  12871. exit 1
  12872. @@ -1512,13 +1561,13 @@
  12873. if test "$linkmode,$pass" = "lib,link" ||
  12874. test "$linkmode,$pass" = "prog,scan" ||
  12875. - { test "$linkmode" = oldlib && test "$linkmode" = obj; }; then
  12876. + { test $linkmode = oldlib && test $linkmode = obj; }; then
  12877. # Add dl[pre]opened files of deplib
  12878. test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
  12879. test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
  12880. fi
  12881. - if test "$pass" = conv; then
  12882. + if test $pass = conv; then
  12883. # Only check for convenience libraries
  12884. deplibs="$lib $deplibs"
  12885. if test -z "$libdir"; then
  12886. @@ -1532,12 +1581,14 @@
  12887. tmp_libs=
  12888. for deplib in $dependency_libs; do
  12889. deplibs="$deplib $deplibs"
  12890. - case "$tmp_libs " in
  12891. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  12892. - esac
  12893. + if test "X$duplicate_deps" = "Xyes" ; then
  12894. + case "$tmp_libs " in
  12895. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  12896. + esac
  12897. + fi
  12898. tmp_libs="$tmp_libs $deplib"
  12899. done
  12900. - elif test "$linkmode" != prog && test "$linkmode" != lib; then
  12901. + elif test $linkmode != prog && test $linkmode != lib; then
  12902. $echo "$modename: \`$lib' is not a convenience library" 1>&2
  12903. exit 1
  12904. fi
  12905. @@ -1555,7 +1606,7 @@
  12906. fi
  12907. # This library was specified with -dlopen.
  12908. - if test "$pass" = dlopen; then
  12909. + if test $pass = dlopen; then
  12910. if test -z "$libdir"; then
  12911. $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2
  12912. exit 1
  12913. @@ -1604,7 +1655,7 @@
  12914. name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
  12915. # This library was specified with -dlpreopen.
  12916. - if test "$pass" = dlpreopen; then
  12917. + if test $pass = dlpreopen; then
  12918. if test -z "$libdir"; then
  12919. $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2
  12920. exit 1
  12921. @@ -1623,7 +1674,7 @@
  12922. if test -z "$libdir"; then
  12923. # Link the convenience library
  12924. - if test "$linkmode" = lib; then
  12925. + if test $linkmode = lib; then
  12926. deplibs="$dir/$old_library $deplibs"
  12927. elif test "$linkmode,$pass" = "prog,link"; then
  12928. compile_deplibs="$dir/$old_library $compile_deplibs"
  12929. @@ -1634,7 +1685,7 @@
  12930. continue
  12931. fi
  12932. - if test "$linkmode" = prog && test "$pass" != link; then
  12933. + if test $linkmode = prog && test $pass != link; then
  12934. newlib_search_path="$newlib_search_path $ladir"
  12935. deplibs="$lib $deplibs"
  12936. @@ -1657,9 +1708,11 @@
  12937. # or/and link against static libraries
  12938. newdependency_libs="$deplib $newdependency_libs"
  12939. fi
  12940. - case "$tmp_libs " in
  12941. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  12942. - esac
  12943. + if test "X$duplicate_deps" = "Xyes" ; then
  12944. + case "$tmp_libs " in
  12945. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  12946. + esac
  12947. + fi
  12948. tmp_libs="$tmp_libs $deplib"
  12949. done # for deplib
  12950. continue
  12951. @@ -1671,7 +1724,7 @@
  12952. # Link against this shared library
  12953. if test "$linkmode,$pass" = "prog,link" ||
  12954. - { test "$linkmode" = lib && test "$hardcode_into_libs" = yes; }; then
  12955. + { test $linkmode = lib && test $hardcode_into_libs = yes; }; then
  12956. # Hardcode the library path.
  12957. # Skip directories that are in the system default run-time
  12958. # search path.
  12959. @@ -1693,7 +1746,7 @@
  12960. esac
  12961. ;;
  12962. esac
  12963. - if test "$linkmode" = prog; then
  12964. + if test $linkmode = prog; then
  12965. # We need to hardcode the library path
  12966. if test -n "$shlibpath_var"; then
  12967. # Make sure the rpath contains only unique directories.
  12968. @@ -1743,14 +1796,14 @@
  12969. # Make a new name for the extract_expsyms_cmds to use
  12970. soroot="$soname"
  12971. - soname=`echo $soroot | sed -e 's/^.*\///'`
  12972. - newlib="libimp-`echo $soname | sed 's/^lib//;s/\.dll$//'`.a"
  12973. + soname=`echo $soroot | ${SED} -e 's/^.*\///'`
  12974. + newlib="libimp-`echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a"
  12975. # If the library has no export list, then create one now
  12976. if test -f "$output_objdir/$soname-def"; then :
  12977. else
  12978. $show "extracting exported symbol list from \`$soname'"
  12979. - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
  12980. + save_ifs="$IFS"; IFS='~'
  12981. eval cmds=\"$extract_expsyms_cmds\"
  12982. for cmd in $cmds; do
  12983. IFS="$save_ifs"
  12984. @@ -1763,7 +1816,7 @@
  12985. # Create $newlib
  12986. if test -f "$output_objdir/$newlib"; then :; else
  12987. $show "generating import library for \`$soname'"
  12988. - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
  12989. + save_ifs="$IFS"; IFS='~'
  12990. eval cmds=\"$old_archive_from_expsyms_cmds\"
  12991. for cmd in $cmds; do
  12992. IFS="$save_ifs"
  12993. @@ -1777,7 +1830,7 @@
  12994. linklib=$newlib
  12995. fi # test -n $old_archive_from_expsyms_cmds
  12996. - if test "$linkmode" = prog || test "$mode" != relink; then
  12997. + if test $linkmode = prog || test "$mode" != relink; then
  12998. add_shlibpath=
  12999. add_dir=
  13000. add=
  13001. @@ -1804,6 +1857,14 @@
  13002. add="$dir/$linklib"
  13003. elif test "$hardcode_minus_L" = yes; then
  13004. add_dir="-L$dir"
  13005. + # Try looking first in the location we're being installed to.
  13006. + if test -n "$inst_prefix_dir"; then
  13007. + case "$libdir" in
  13008. + [\/]*)
  13009. + add_dir="-L$inst_prefix_dir$libdir $add_dir"
  13010. + ;;
  13011. + esac
  13012. + fi
  13013. add="-l$name"
  13014. elif test "$hardcode_shlibpath_var" = yes; then
  13015. add_shlibpath="$dir"
  13016. @@ -1826,7 +1887,7 @@
  13017. *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
  13018. esac
  13019. fi
  13020. - if test "$linkmode" = prog; then
  13021. + if test $linkmode = prog; then
  13022. test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
  13023. test -n "$add" && compile_deplibs="$add $compile_deplibs"
  13024. else
  13025. @@ -1843,7 +1904,7 @@
  13026. fi
  13027. fi
  13028. - if test "$linkmode" = prog || test "$mode" = relink; then
  13029. + if test $linkmode = prog || test "$mode" = relink; then
  13030. add_shlibpath=
  13031. add_dir=
  13032. add=
  13033. @@ -1862,10 +1923,18 @@
  13034. else
  13035. # We cannot seem to hardcode it, guess we'll fake it.
  13036. add_dir="-L$libdir"
  13037. + # Try looking first in the location we're being installed to.
  13038. + if test -n "$inst_prefix_dir"; then
  13039. + case "$libdir" in
  13040. + [\/]*)
  13041. + add_dir="-L$inst_prefix_dir$libdir $add_dir"
  13042. + ;;
  13043. + esac
  13044. + fi
  13045. add="-l$name"
  13046. fi
  13047. - if test "$linkmode" = prog; then
  13048. + if test $linkmode = prog; then
  13049. test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
  13050. test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
  13051. else
  13052. @@ -1873,7 +1942,7 @@
  13053. test -n "$add" && deplibs="$add $deplibs"
  13054. fi
  13055. fi
  13056. - elif test "$linkmode" = prog; then
  13057. + elif test $linkmode = prog; then
  13058. if test "$alldeplibs" = yes &&
  13059. { test "$deplibs_check_method" = pass_all ||
  13060. { test "$build_libtool_libs" = yes &&
  13061. @@ -1903,25 +1972,26 @@
  13062. # Just print a warning and add the library to dependency_libs so
  13063. # that the program can be linked against the static library.
  13064. echo
  13065. - echo "*** Warning: This library needs some functionality provided by $lib."
  13066. + echo "*** Warning: This system can not link to static lib archive $lib."
  13067. echo "*** I have the capability to make that library automatically link in when"
  13068. echo "*** you link to this library. But I can only do this if you have a"
  13069. echo "*** shared version of the library, which you do not appear to have."
  13070. if test "$module" = yes; then
  13071. - echo "*** Therefore, libtool will create a static module, that should work "
  13072. - echo "*** as long as the dlopening application is linked with the -dlopen flag."
  13073. + echo "*** But as you try to build a module library, libtool will still create "
  13074. + echo "*** a static module, that should work as long as the dlopening application"
  13075. + echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
  13076. if test -z "$global_symbol_pipe"; then
  13077. - echo
  13078. - echo "*** However, this would only work if libtool was able to extract symbol"
  13079. - echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
  13080. - echo "*** not find such a program. So, this module is probably useless."
  13081. - echo "*** \`nm' from GNU binutils and a full rebuild may help."
  13082. + echo
  13083. + echo "*** However, this would only work if libtool was able to extract symbol"
  13084. + echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
  13085. + echo "*** not find such a program. So, this module is probably useless."
  13086. + echo "*** \`nm' from GNU binutils and a full rebuild may help."
  13087. fi
  13088. if test "$build_old_libs" = no; then
  13089. - build_libtool_libs=module
  13090. - build_old_libs=yes
  13091. + build_libtool_libs=module
  13092. + build_old_libs=yes
  13093. else
  13094. - build_libtool_libs=no
  13095. + build_libtool_libs=no
  13096. fi
  13097. fi
  13098. else
  13099. @@ -1932,9 +2002,9 @@
  13100. fi
  13101. fi # link shared/static library?
  13102. - if test "$linkmode" = lib; then
  13103. + if test $linkmode = lib; then
  13104. if test -n "$dependency_libs" &&
  13105. - { test "$hardcode_into_libs" != yes || test $build_old_libs = yes ||
  13106. + { test $hardcode_into_libs != yes || test $build_old_libs = yes ||
  13107. test $link_static = yes; }; then
  13108. # Extract -R from dependency_libs
  13109. temp_deplibs=
  13110. @@ -1958,13 +2028,15 @@
  13111. tmp_libs=
  13112. for deplib in $dependency_libs; do
  13113. newdependency_libs="$deplib $newdependency_libs"
  13114. - case "$tmp_libs " in
  13115. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  13116. - esac
  13117. + if test "X$duplicate_deps" = "Xyes" ; then
  13118. + case "$tmp_libs " in
  13119. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  13120. + esac
  13121. + fi
  13122. tmp_libs="$tmp_libs $deplib"
  13123. done
  13124. - if test "$link_all_deplibs" != no; then
  13125. + if test $link_all_deplibs != no; then
  13126. # Add the search paths of all dependency libraries
  13127. for deplib in $dependency_libs; do
  13128. case $deplib in
  13129. @@ -1986,7 +2058,7 @@
  13130. if grep "^installed=no" $deplib > /dev/null; then
  13131. path="-L$absdir/$objdir"
  13132. else
  13133. - eval libdir=`sed -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  13134. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  13135. if test -z "$libdir"; then
  13136. $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
  13137. exit 1
  13138. @@ -2007,15 +2079,15 @@
  13139. fi # link_all_deplibs != no
  13140. fi # linkmode = lib
  13141. done # for deplib in $libs
  13142. - if test "$pass" = dlpreopen; then
  13143. + if test $pass = dlpreopen; then
  13144. # Link the dlpreopened libraries before other libraries
  13145. for deplib in $save_deplibs; do
  13146. deplibs="$deplib $deplibs"
  13147. done
  13148. fi
  13149. - if test "$pass" != dlopen; then
  13150. - test "$pass" != scan && dependency_libs="$newdependency_libs"
  13151. - if test "$pass" != conv; then
  13152. + if test $pass != dlopen; then
  13153. + test $pass != scan && dependency_libs="$newdependency_libs"
  13154. + if test $pass != conv; then
  13155. # Make sure lib_search_path contains only unique directories.
  13156. lib_search_path=
  13157. for dir in $newlib_search_path; do
  13158. @@ -2073,7 +2145,7 @@
  13159. deplibs=
  13160. fi
  13161. done # for pass
  13162. - if test "$linkmode" = prog; then
  13163. + if test $linkmode = prog; then
  13164. dlfiles="$newdlfiles"
  13165. dlprefiles="$newdlprefiles"
  13166. fi
  13167. @@ -2175,7 +2247,7 @@
  13168. else
  13169. # Parse the version information argument.
  13170. - IFS="${IFS= }"; save_ifs="$IFS"; IFS=':'
  13171. + save_ifs="$IFS"; IFS=':'
  13172. set dummy $vinfo 0 0 0
  13173. IFS="$save_ifs"
  13174. @@ -2250,16 +2322,21 @@
  13175. versuffix=".$current";
  13176. ;;
  13177. - irix)
  13178. + irix | nonstopux)
  13179. major=`expr $current - $age + 1`
  13180. - verstring="sgi$major.$revision"
  13181. +
  13182. + case $version_type in
  13183. + nonstopux) verstring_prefix=nonstopux ;;
  13184. + *) verstring_prefix=sgi ;;
  13185. + esac
  13186. + verstring="$verstring_prefix$major.$revision"
  13187. # Add in all the interfaces that we are compatible with.
  13188. loop=$revision
  13189. while test $loop != 0; do
  13190. iface=`expr $revision - $loop`
  13191. loop=`expr $loop - 1`
  13192. - verstring="sgi$major.$iface:$verstring"
  13193. + verstring="$verstring_prefix$major.$iface:$verstring"
  13194. done
  13195. # Before this point, $major must not contain `.'.
  13196. @@ -2273,7 +2350,7 @@
  13197. ;;
  13198. osf)
  13199. - major=`expr $current - $age`
  13200. + major=.`expr $current - $age`
  13201. versuffix=".$current.$age.$revision"
  13202. verstring="$current.$age.$revision"
  13203. @@ -2312,6 +2389,16 @@
  13204. if test -z "$vinfo" && test -n "$release"; then
  13205. major=
  13206. verstring="0.0"
  13207. + case $version_type in
  13208. + darwin)
  13209. + # we can't check for "0.0" in archive_cmds due to quoting
  13210. + # problems, so we reset it completely
  13211. + verstring=""
  13212. + ;;
  13213. + *)
  13214. + verstring="0.0"
  13215. + ;;
  13216. + esac
  13217. if test "$need_version" = no; then
  13218. versuffix=
  13219. else
  13220. @@ -2355,9 +2442,9 @@
  13221. # Eliminate all temporary directories.
  13222. for path in $notinst_path; do
  13223. - lib_search_path=`echo "$lib_search_path " | sed -e 's% $path % %g'`
  13224. - deplibs=`echo "$deplibs " | sed -e 's% -L$path % %g'`
  13225. - dependency_libs=`echo "$dependency_libs " | sed -e 's% -L$path % %g'`
  13226. + lib_search_path=`echo "$lib_search_path " | ${SED} -e 's% $path % %g'`
  13227. + deplibs=`echo "$deplibs " | ${SED} -e 's% -L$path % %g'`
  13228. + dependency_libs=`echo "$dependency_libs " | ${SED} -e 's% -L$path % %g'`
  13229. done
  13230. if test -n "$xrpath"; then
  13231. @@ -2408,9 +2495,12 @@
  13232. *-*-netbsd*)
  13233. # Don't link with libc until the a.out ld.so is fixed.
  13234. ;;
  13235. + *-*-openbsd* | *-*-freebsd*)
  13236. + # Do not include libc due to us having libc/libc_r.
  13237. + ;;
  13238. *)
  13239. # Add libc to deplibs on all other systems if necessary.
  13240. - if test "$build_libtool_need_lc" = "yes"; then
  13241. + if test $build_libtool_need_lc = "yes"; then
  13242. deplibs="$deplibs -lc"
  13243. fi
  13244. ;;
  13245. @@ -2466,18 +2556,20 @@
  13246. else
  13247. droppeddeps=yes
  13248. echo
  13249. - echo "*** Warning: This library needs some functionality provided by $i."
  13250. + echo "*** Warning: dynamic linker does not accept needed library $i."
  13251. echo "*** I have the capability to make that library automatically link in when"
  13252. echo "*** you link to this library. But I can only do this if you have a"
  13253. - echo "*** shared version of the library, which you do not appear to have."
  13254. + echo "*** shared version of the library, which I believe you do not have"
  13255. + echo "*** because a test_compile did reveal that the linker did not use it for"
  13256. + echo "*** its dynamic dependency list that programs get resolved with at runtime."
  13257. fi
  13258. else
  13259. newdeplibs="$newdeplibs $i"
  13260. fi
  13261. done
  13262. else
  13263. - # Error occured in the first compile. Let's try to salvage the situation:
  13264. - # Compile a seperate program for each library.
  13265. + # Error occured in the first compile. Let's try to salvage
  13266. + # the situation: Compile a separate program for each library.
  13267. for i in $deplibs; do
  13268. name="`expr $i : '-l\(.*\)'`"
  13269. # If $name is empty we are operating on a -L argument.
  13270. @@ -2496,10 +2588,12 @@
  13271. else
  13272. droppeddeps=yes
  13273. echo
  13274. - echo "*** Warning: This library needs some functionality provided by $i."
  13275. + echo "*** Warning: dynamic linker does not accept needed library $i."
  13276. echo "*** I have the capability to make that library automatically link in when"
  13277. echo "*** you link to this library. But I can only do this if you have a"
  13278. - echo "*** shared version of the library, which you do not appear to have."
  13279. + echo "*** shared version of the library, which you do not appear to have"
  13280. + echo "*** because a test_compile did reveal that the linker did not use this one"
  13281. + echo "*** as a dynamic dependency that programs can get resolved with at runtime."
  13282. fi
  13283. else
  13284. droppeddeps=yes
  13285. @@ -2538,14 +2632,14 @@
  13286. # but so what?
  13287. potlib="$potent_lib"
  13288. while test -h "$potlib" 2>/dev/null; do
  13289. - potliblink=`ls -ld $potlib | sed 's/.* -> //'`
  13290. + potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
  13291. case $potliblink in
  13292. [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
  13293. *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
  13294. esac
  13295. done
  13296. if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \
  13297. - | sed 10q \
  13298. + | ${SED} 10q \
  13299. | egrep "$file_magic_regex" > /dev/null; then
  13300. newdeplibs="$newdeplibs $a_deplib"
  13301. a_deplib=""
  13302. @@ -2556,10 +2650,17 @@
  13303. if test -n "$a_deplib" ; then
  13304. droppeddeps=yes
  13305. echo
  13306. - echo "*** Warning: This library needs some functionality provided by $a_deplib."
  13307. + echo "*** Warning: linker path does not have real file for library $a_deplib."
  13308. echo "*** I have the capability to make that library automatically link in when"
  13309. echo "*** you link to this library. But I can only do this if you have a"
  13310. - echo "*** shared version of the library, which you do not appear to have."
  13311. + echo "*** shared version of the library, which you do not appear to have"
  13312. + echo "*** because I did check the linker path looking for a file starting"
  13313. + if test -z "$potlib" ; then
  13314. + echo "*** with $libname but no candidates were found. (...for file magic test)"
  13315. + else
  13316. + echo "*** with $libname and none of the candidates passed a file format test"
  13317. + echo "*** using a file magic. Last file checked: $potlib"
  13318. + fi
  13319. fi
  13320. else
  13321. # Add a -L argument.
  13322. @@ -2578,8 +2679,9 @@
  13323. for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  13324. potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  13325. for potent_lib in $potential_libs; do
  13326. + potlib="$potent_lib" # see symlink-check below in file_magic test
  13327. if eval echo \"$potent_lib\" 2>/dev/null \
  13328. - | sed 10q \
  13329. + | ${SED} 10q \
  13330. | egrep "$match_pattern_regex" > /dev/null; then
  13331. newdeplibs="$newdeplibs $a_deplib"
  13332. a_deplib=""
  13333. @@ -2590,10 +2692,17 @@
  13334. if test -n "$a_deplib" ; then
  13335. droppeddeps=yes
  13336. echo
  13337. - echo "*** Warning: This library needs some functionality provided by $a_deplib."
  13338. + echo "*** Warning: linker path does not have real file for library $a_deplib."
  13339. echo "*** I have the capability to make that library automatically link in when"
  13340. echo "*** you link to this library. But I can only do this if you have a"
  13341. - echo "*** shared version of the library, which you do not appear to have."
  13342. + echo "*** shared version of the library, which you do not appear to have"
  13343. + echo "*** because I did check the linker path looking for a file starting"
  13344. + if test -z "$potlib" ; then
  13345. + echo "*** with $libname but no candidates were found. (...for regex pattern test)"
  13346. + else
  13347. + echo "*** with $libname and none of the candidates passed a file format test"
  13348. + echo "*** using a regex pattern. Last file checked: $potlib"
  13349. + fi
  13350. fi
  13351. else
  13352. # Add a -L argument.
  13353. @@ -2683,7 +2792,7 @@
  13354. # Test again, we may have decided not to build it any more
  13355. if test "$build_libtool_libs" = yes; then
  13356. - if test "$hardcode_into_libs" = yes; then
  13357. + if test $hardcode_into_libs = yes; then
  13358. # Hardcode the library paths
  13359. hardcode_libdirs=
  13360. dep_rpath=
  13361. @@ -2784,7 +2893,7 @@
  13362. export_symbols="$output_objdir/$libname.exp"
  13363. $run $rm $export_symbols
  13364. eval cmds=\"$export_symbols_cmds\"
  13365. - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
  13366. + save_ifs="$IFS"; IFS='~'
  13367. for cmd in $cmds; do
  13368. IFS="$save_ifs"
  13369. $show "$cmd"
  13370. @@ -2858,9 +2967,20 @@
  13371. if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  13372. eval cmds=\"$archive_expsym_cmds\"
  13373. else
  13374. + save_deplibs="$deplibs"
  13375. + for conv in $convenience; do
  13376. + tmp_deplibs=
  13377. + for test_deplib in $deplibs; do
  13378. + if test "$test_deplib" != "$conv"; then
  13379. + tmp_deplibs="$tmp_deplibs $test_deplib"
  13380. + fi
  13381. + done
  13382. + deplibs="$tmp_deplibs"
  13383. + done
  13384. eval cmds=\"$archive_cmds\"
  13385. + deplibs="$save_deplibs"
  13386. fi
  13387. - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
  13388. + save_ifs="$IFS"; IFS='~'
  13389. for cmd in $cmds; do
  13390. IFS="$save_ifs"
  13391. $show "$cmd"
  13392. @@ -2988,7 +3108,7 @@
  13393. output="$obj"
  13394. eval cmds=\"$reload_cmds\"
  13395. - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
  13396. + save_ifs="$IFS"; IFS='~'
  13397. for cmd in $cmds; do
  13398. IFS="$save_ifs"
  13399. $show "$cmd"
  13400. @@ -3024,7 +3144,7 @@
  13401. reload_objs="$libobjs $reload_conv_objs"
  13402. output="$libobj"
  13403. eval cmds=\"$reload_cmds\"
  13404. - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
  13405. + save_ifs="$IFS"; IFS='~'
  13406. for cmd in $cmds; do
  13407. IFS="$save_ifs"
  13408. $show "$cmd"
  13409. @@ -3057,7 +3177,7 @@
  13410. prog)
  13411. case $host in
  13412. - *cygwin*) output=`echo $output | sed -e 's,.exe$,,;s,$,.exe,'` ;;
  13413. + *cygwin*) output=`echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;;
  13414. esac
  13415. if test -n "$vinfo"; then
  13416. $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2
  13417. @@ -3079,6 +3199,13 @@
  13418. # On Rhapsody replace the C library is the System framework
  13419. compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
  13420. finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
  13421. + case $host in
  13422. + *darwin*)
  13423. + # Don't allow lazy linking, it breaks C++ global constructors
  13424. + compile_command="$compile_command ${wl}-bind_at_load"
  13425. + finalize_command="$finalize_command ${wl}-bind_at_load"
  13426. + ;;
  13427. + esac
  13428. ;;
  13429. esac
  13430. @@ -3245,9 +3372,9 @@
  13431. if test -z "$export_symbols"; then
  13432. export_symbols="$output_objdir/$output.exp"
  13433. $run $rm $export_symbols
  13434. - $run eval "sed -n -e '/^: @PROGRAM@$/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
  13435. + $run eval "${SED} -n -e '/^: @PROGRAM@$/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
  13436. else
  13437. - $run eval "sed -e 's/\([][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$output.exp"'
  13438. + $run eval "${SED} -e 's/\([][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$output.exp"'
  13439. $run eval 'grep -f "$output_objdir/$output.exp" < "$nlist" > "$nlist"T'
  13440. $run eval 'mv "$nlist"T "$nlist"'
  13441. fi
  13442. @@ -3255,7 +3382,7 @@
  13443. for arg in $dlprefiles; do
  13444. $show "extracting global C symbols from \`$arg'"
  13445. - name=`echo "$arg" | sed -e 's%^.*/%%'`
  13446. + name=`echo "$arg" | ${SED} -e 's%^.*/%%'`
  13447. $run eval 'echo ": $name " >> "$nlist"'
  13448. $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
  13449. done
  13450. @@ -3270,7 +3397,13 @@
  13451. fi
  13452. # Try sorting and uniquifying the output.
  13453. - if grep -v "^: " < "$nlist" | sort +2 | uniq > "$nlist"S; then
  13454. + if grep -v "^: " < "$nlist" |
  13455. + if sort -k 3 </dev/null >/dev/null 2>&1; then
  13456. + sort -k 3
  13457. + else
  13458. + sort +2
  13459. + fi |
  13460. + uniq > "$nlist"S; then
  13461. :
  13462. else
  13463. grep -v "^: " < "$nlist" > "$nlist"S
  13464. @@ -3287,27 +3420,25 @@
  13465. #undef lt_preloaded_symbols
  13466. #if defined (__STDC__) && __STDC__
  13467. -# define lt_ptr_t void *
  13468. +# define lt_ptr void *
  13469. #else
  13470. -# define lt_ptr_t char *
  13471. +# define lt_ptr char *
  13472. # define const
  13473. #endif
  13474. /* The mapping between symbol names and symbols. */
  13475. const struct {
  13476. const char *name;
  13477. - lt_ptr_t address;
  13478. + lt_ptr address;
  13479. }
  13480. lt_preloaded_symbols[] =
  13481. {\
  13482. "
  13483. - sed -n -e 's/^: \([^ ]*\) $/ {\"\1\", (lt_ptr_t) 0},/p' \
  13484. - -e 's/^. \([^ ]*\) \([^ ]*\)$/ {"\2", (lt_ptr_t) \&\2},/p' \
  13485. - < "$nlist" >> "$output_objdir/$dlsyms"
  13486. + eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$dlsyms"
  13487. $echo >> "$output_objdir/$dlsyms" "\
  13488. - {0, (lt_ptr_t) 0}
  13489. + {0, (lt_ptr) 0}
  13490. };
  13491. /* This works around a problem in FreeBSD linker */
  13492. @@ -3494,7 +3625,7 @@
  13493. relink_command="$var=\"$var_value\"; export $var; $relink_command"
  13494. fi
  13495. done
  13496. - relink_command="cd `pwd`; $relink_command"
  13497. + relink_command="(cd `pwd`; $relink_command)"
  13498. relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  13499. fi
  13500. @@ -3514,7 +3645,7 @@
  13501. # win32 will think the script is a binary if it has
  13502. # a .exe suffix, so we strip it off here.
  13503. case $output in
  13504. - *.exe) output=`echo $output|sed 's,.exe$,,'` ;;
  13505. + *.exe) output=`echo $output|${SED} 's,.exe$,,'` ;;
  13506. esac
  13507. # test for cygwin because mv fails w/o .exe extensions
  13508. case $host in
  13509. @@ -3538,7 +3669,7 @@
  13510. # Sed substitution that helps us do robust quoting. It backslashifies
  13511. # metacharacters that are still active within double-quoted strings.
  13512. -Xsed='sed -e 1s/^X//'
  13513. +Xsed="${SED}"' -e 1s/^X//'
  13514. sed_quote_subst='$sed_quote_subst'
  13515. # The HP-UX ksh and POSIX shell print the target directory to stdout
  13516. @@ -3576,7 +3707,7 @@
  13517. test \"x\$thisdir\" = \"x\$file\" && thisdir=.
  13518. # Follow symbolic links until we get to the real thisdir.
  13519. - file=\`ls -ld \"\$file\" | sed -n 's/.*-> //p'\`
  13520. + file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
  13521. while test -n \"\$file\"; do
  13522. destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
  13523. @@ -3589,7 +3720,7 @@
  13524. fi
  13525. file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
  13526. - file=\`ls -ld \"\$thisdir/\$file\" | sed -n 's/.*-> //p'\`
  13527. + file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
  13528. done
  13529. # Try to get the absolute directory name.
  13530. @@ -3603,7 +3734,7 @@
  13531. progdir=\"\$thisdir/$objdir\"
  13532. if test ! -f \"\$progdir/\$program\" || \\
  13533. - { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | sed 1q\`; \\
  13534. + { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
  13535. test \"X\$file\" != \"X\$progdir/\$program\"; }; then
  13536. file=\"\$\$-\$program\"
  13537. @@ -3618,8 +3749,9 @@
  13538. # relink executable if necessary
  13539. if test -n \"\$relink_command\"; then
  13540. - if (eval \$relink_command); then :
  13541. + if relink_command_output=\`eval \$relink_command 2>&1\`; then :
  13542. else
  13543. + $echo \"\$relink_command_output\" >&2
  13544. $rm \"\$progdir/\$file\"
  13545. exit 1
  13546. fi
  13547. @@ -3648,7 +3780,7 @@
  13548. $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
  13549. # Some systems cannot cope with colon-terminated $shlibpath_var
  13550. - # The second colon is a workaround for a bug in BeOS R4 sed
  13551. + # The second colon is a workaround for a bug in BeOS R4 ${SED}
  13552. $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
  13553. export $shlibpath_var
  13554. @@ -3790,7 +3922,7 @@
  13555. eval cmds=\"$old_archive_cmds\"
  13556. fi
  13557. - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
  13558. + save_ifs="$IFS"; IFS='~'
  13559. for cmd in $cmds; do
  13560. IFS="$save_ifs"
  13561. $show "$cmd"
  13562. @@ -3823,7 +3955,7 @@
  13563. fi
  13564. done
  13565. # Quote the link command for shipping.
  13566. - relink_command="cd `pwd`; $SHELL $0 --mode=relink $libtool_args"
  13567. + relink_command="(cd `pwd`; $SHELL $0 --mode=relink $libtool_args @inst_prefix_dir@)"
  13568. relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  13569. # Only create the output if not a dry run.
  13570. @@ -3840,7 +3972,7 @@
  13571. case $deplib in
  13572. *.la)
  13573. name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
  13574. - eval libdir=`sed -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  13575. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  13576. if test -z "$libdir"; then
  13577. $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
  13578. exit 1
  13579. @@ -3854,7 +3986,7 @@
  13580. newdlfiles=
  13581. for lib in $dlfiles; do
  13582. name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  13583. - eval libdir=`sed -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  13584. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  13585. if test -z "$libdir"; then
  13586. $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  13587. exit 1
  13588. @@ -3865,7 +3997,7 @@
  13589. newdlprefiles=
  13590. for lib in $dlprefiles; do
  13591. name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  13592. - eval libdir=`sed -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  13593. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  13594. if test -z "$libdir"; then
  13595. $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  13596. exit 1
  13597. @@ -4089,7 +4221,7 @@
  13598. *.la)
  13599. # Check to see that this really is a libtool archive.
  13600. - if (sed -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  13601. + if (${SED} -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  13602. else
  13603. $echo "$modename: \`$file' is not a valid libtool archive" 1>&2
  13604. $echo "$help" 1>&2
  13605. @@ -4124,12 +4256,30 @@
  13606. dir="$dir$objdir"
  13607. if test -n "$relink_command"; then
  13608. + # Determine the prefix the user has applied to our future dir.
  13609. + inst_prefix_dir=`$echo "$destdir" | sed "s%$libdir\$%%"`
  13610. +
  13611. + # Don't allow the user to place us outside of our expected
  13612. + # location b/c this prevents finding dependent libraries that
  13613. + # are installed to the same prefix.
  13614. + if test "$inst_prefix_dir" = "$destdir"; then
  13615. + $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
  13616. + exit 1
  13617. + fi
  13618. +
  13619. + if test -n "$inst_prefix_dir"; then
  13620. + # Stick the inst_prefix_dir data into the link command.
  13621. + relink_command=`$echo "$relink_command" | sed "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
  13622. + else
  13623. + relink_command=`$echo "$relink_command" | sed "s%@inst_prefix_dir@%%"`
  13624. + fi
  13625. +
  13626. $echo "$modename: warning: relinking \`$file'" 1>&2
  13627. $show "$relink_command"
  13628. if $run eval "$relink_command"; then :
  13629. else
  13630. $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
  13631. - continue
  13632. + exit 1
  13633. fi
  13634. fi
  13635. @@ -4165,7 +4315,7 @@
  13636. # Do each command in the postinstall commands.
  13637. lib="$destdir/$realname"
  13638. eval cmds=\"$postinstall_cmds\"
  13639. - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
  13640. + save_ifs="$IFS"; IFS='~'
  13641. for cmd in $cmds; do
  13642. IFS="$save_ifs"
  13643. $show "$cmd"
  13644. @@ -4238,19 +4388,27 @@
  13645. fi
  13646. # Do a test to see if this is really a libtool program.
  13647. - if (sed -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  13648. + case $host in
  13649. + *cygwin*|*mingw*)
  13650. + wrapper=`echo $file | ${SED} -e 's,.exe$,,'`
  13651. + ;;
  13652. + *)
  13653. + wrapper=$file
  13654. + ;;
  13655. + esac
  13656. + if (${SED} -e '4q' $wrapper | egrep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then
  13657. notinst_deplibs=
  13658. relink_command=
  13659. # If there is no directory component, then add one.
  13660. case $file in
  13661. - */* | *\\*) . $file ;;
  13662. - *) . ./$file ;;
  13663. + */* | *\\*) . $wrapper ;;
  13664. + *) . ./$wrapper ;;
  13665. esac
  13666. # Check the variables that should have been set.
  13667. if test -z "$notinst_deplibs"; then
  13668. - $echo "$modename: invalid libtool wrapper script \`$file'" 1>&2
  13669. + $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2
  13670. exit 1
  13671. fi
  13672. @@ -4275,8 +4433,8 @@
  13673. relink_command=
  13674. # If there is no directory component, then add one.
  13675. case $file in
  13676. - */* | *\\*) . $file ;;
  13677. - *) . ./$file ;;
  13678. + */* | *\\*) . $wrapper ;;
  13679. + *) . ./$wrapper ;;
  13680. esac
  13681. outputname=
  13682. @@ -4324,7 +4482,7 @@
  13683. destfile=$destfile.exe
  13684. ;;
  13685. *:*.exe)
  13686. - destfile=`echo $destfile | sed -e 's,.exe$,,'`
  13687. + destfile=`echo $destfile | ${SED} -e 's,.exe$,,'`
  13688. ;;
  13689. esac
  13690. ;;
  13691. @@ -4352,7 +4510,7 @@
  13692. # Do each command in the postinstall commands.
  13693. eval cmds=\"$old_postinstall_cmds\"
  13694. - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
  13695. + save_ifs="$IFS"; IFS='~'
  13696. for cmd in $cmds; do
  13697. IFS="$save_ifs"
  13698. $show "$cmd"
  13699. @@ -4368,11 +4526,10 @@
  13700. if test -n "$current_libdirs"; then
  13701. # Maybe just do a dry run.
  13702. test -n "$run" && current_libdirs=" -n$current_libdirs"
  13703. - exec $SHELL $0 --finish$current_libdirs
  13704. - exit 1
  13705. + exec_cmd='$SHELL $0 --finish$current_libdirs'
  13706. + else
  13707. + exit 0
  13708. fi
  13709. -
  13710. - exit 0
  13711. ;;
  13712. # libtool finish mode
  13713. @@ -4391,7 +4548,7 @@
  13714. if test -n "$finish_cmds"; then
  13715. # Do each command in the finish commands.
  13716. eval cmds=\"$finish_cmds\"
  13717. - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
  13718. + save_ifs="$IFS"; IFS='~'
  13719. for cmd in $cmds; do
  13720. IFS="$save_ifs"
  13721. $show "$cmd"
  13722. @@ -4473,7 +4630,7 @@
  13723. case $file in
  13724. *.la)
  13725. # Check to see that this really is a libtool archive.
  13726. - if (sed -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  13727. + if (${SED} -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  13728. else
  13729. $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  13730. $echo "$help" 1>&2
  13731. @@ -4544,7 +4701,7 @@
  13732. -*) ;;
  13733. *)
  13734. # Do a test to see if this is really a libtool program.
  13735. - if (sed -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  13736. + if (${SED} -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  13737. # If there is no directory component, then add one.
  13738. case $file in
  13739. */* | *\\*) . $file ;;
  13740. @@ -4575,11 +4732,8 @@
  13741. LANG="$save_LANG"; export LANG
  13742. fi
  13743. - # Now actually exec the command.
  13744. - eval "exec \$cmd$args"
  13745. -
  13746. - $echo "$modename: cannot exec \$cmd$args"
  13747. - exit 1
  13748. + # Now prepare to actually exec the command.
  13749. + exec_cmd="\$cmd$args"
  13750. else
  13751. # Display what would be done.
  13752. if test -n "$shlibpath_var"; then
  13753. @@ -4641,14 +4795,14 @@
  13754. # Don't error if the file doesn't exist and rm -f was used.
  13755. if (test -L "$file") >/dev/null 2>&1 \
  13756. - || (test -h "$file") >/dev/null 2>&1 \
  13757. + || (test -h "$file") >/dev/null 2>&1 \
  13758. || test -f "$file"; then
  13759. - :
  13760. + :
  13761. elif test -d "$file"; then
  13762. - exit_status=1
  13763. + exit_status=1
  13764. continue
  13765. elif test "$rmforce" = yes; then
  13766. - continue
  13767. + continue
  13768. fi
  13769. rmfiles="$file"
  13770. @@ -4656,7 +4810,7 @@
  13771. case $name in
  13772. *.la)
  13773. # Possibly a libtool archive, so verify it.
  13774. - if (sed -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  13775. + if (${SED} -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  13776. . $dir/$name
  13777. # Delete the libtool libraries and symlinks.
  13778. @@ -4670,7 +4824,7 @@
  13779. if test -n "$library_names"; then
  13780. # Do each command in the postuninstall commands.
  13781. eval cmds=\"$postuninstall_cmds\"
  13782. - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
  13783. + save_ifs="$IFS"; IFS='~'
  13784. for cmd in $cmds; do
  13785. IFS="$save_ifs"
  13786. $show "$cmd"
  13787. @@ -4685,7 +4839,7 @@
  13788. if test -n "$old_library"; then
  13789. # Do each command in the old_postuninstall commands.
  13790. eval cmds=\"$old_postuninstall_cmds\"
  13791. - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
  13792. + save_ifs="$IFS"; IFS='~'
  13793. for cmd in $cmds; do
  13794. IFS="$save_ifs"
  13795. $show "$cmd"
  13796. @@ -4711,7 +4865,7 @@
  13797. *)
  13798. # Do a test to see if this is a libtool program.
  13799. if test $mode = clean &&
  13800. - (sed -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  13801. + (${SED} -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  13802. relink_command=
  13803. . $dir/$file
  13804. @@ -4744,11 +4898,18 @@
  13805. ;;
  13806. esac
  13807. - $echo "$modename: invalid operation mode \`$mode'" 1>&2
  13808. - $echo "$generic_help" 1>&2
  13809. - exit 1
  13810. + if test -z "$exec_cmd"; then
  13811. + $echo "$modename: invalid operation mode \`$mode'" 1>&2
  13812. + $echo "$generic_help" 1>&2
  13813. + exit 1
  13814. + fi
  13815. fi # test -z "$show_help"
  13816. +if test -n "$exec_cmd"; then
  13817. + eval exec $exec_cmd
  13818. + exit 1
  13819. +fi
  13820. +
  13821. # We need to display help for each of the modes.
  13822. case $mode in
  13823. "") $echo \
  13824. Index: linux-atm-2.4.1/m4/Makefile.in
  13825. ===================================================================
  13826. --- linux-atm-2.4.1.orig/m4/Makefile.in 2007-10-20 19:19:10.878248392 +0200
  13827. +++ linux-atm-2.4.1/m4/Makefile.in 2007-10-20 19:19:11.778299683 +0200
  13828. @@ -1,4 +1,4 @@
  13829. -# Makefile.in generated automatically by automake 1.4-p5 from Makefile.am
  13830. +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
  13831. # Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
  13832. # This Makefile.in is free software; the Free Software Foundation
  13833. @@ -92,14 +92,14 @@
  13834. DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
  13835. -TAR = gtar
  13836. +TAR = tar
  13837. GZIP_ENV = --best
  13838. all: all-redirect
  13839. .SUFFIXES:
  13840. $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
  13841. - cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps m4/Makefile
  13842. + cd $(top_srcdir) && $(AUTOMAKE) --gnu m4/Makefile
  13843. -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  13844. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
  13845. cd $(top_builddir) \
  13846. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
  13847. @@ -112,6 +112,11 @@
  13848. subdir = m4
  13849. distdir: $(DISTFILES)
  13850. + here=`cd $(top_builddir) && pwd`; \
  13851. + top_distdir=`cd $(top_distdir) && pwd`; \
  13852. + distdir=`cd $(distdir) && pwd`; \
  13853. + cd $(top_srcdir) \
  13854. + && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu m4/Makefile
  13855. @for file in $(DISTFILES); do \
  13856. d=$(srcdir); \
  13857. if test -d $$d/$$file; then \
  13858. Index: linux-atm-2.4.1/src/Makefile.in
  13859. ===================================================================
  13860. --- linux-atm-2.4.1.orig/src/Makefile.in 2007-10-20 19:19:10.886248850 +0200
  13861. +++ linux-atm-2.4.1/src/Makefile.in 2007-10-20 19:19:11.790300372 +0200
  13862. @@ -1,4 +1,4 @@
  13863. -# Makefile.in generated automatically by automake 1.4-p5 from Makefile.am
  13864. +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
  13865. # Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
  13866. # This Makefile.in is free software; the Free Software Foundation
  13867. @@ -85,8 +85,7 @@
  13868. VERSION = @VERSION@
  13869. YACC = @YACC@
  13870. -SUBDIRS = include lib test debug qgen saal sigd maint arpd ilmid man led lane \
  13871. - mpoad switch config extra
  13872. +SUBDIRS = include lib
  13873. mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  13874. CONFIG_HEADER = ../config.h
  13875. @@ -96,14 +95,14 @@
  13876. DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
  13877. -TAR = gtar
  13878. +TAR = tar
  13879. GZIP_ENV = --best
  13880. all: all-redirect
  13881. .SUFFIXES:
  13882. $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
  13883. - cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps src/Makefile
  13884. + cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile
  13885. -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  13886. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
  13887. cd $(top_builddir) \
  13888. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
  13889. @@ -186,7 +185,7 @@
  13890. awk ' { files[$$0] = 1; } \
  13891. END { for (i in files) print i; }'`; \
  13892. test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
  13893. - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
  13894. + || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags $$unique $(LISP))
  13895. mostlyclean-tags:
  13896. @@ -202,6 +201,11 @@
  13897. subdir = src
  13898. distdir: $(DISTFILES)
  13899. + here=`cd $(top_builddir) && pwd`; \
  13900. + top_distdir=`cd $(top_distdir) && pwd`; \
  13901. + distdir=`cd $(distdir) && pwd`; \
  13902. + cd $(top_srcdir) \
  13903. + && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu src/Makefile
  13904. @for file in $(DISTFILES); do \
  13905. d=$(srcdir); \
  13906. if test -d $$d/$$file; then \
  13907. Index: linux-atm-2.4.1/src/include/Makefile.in
  13908. ===================================================================
  13909. --- linux-atm-2.4.1.orig/src/include/Makefile.in 2007-10-20 19:19:10.894249307 +0200
  13910. +++ linux-atm-2.4.1/src/include/Makefile.in 2007-10-20 19:19:11.798300823 +0200
  13911. @@ -1,4 +1,4 @@
  13912. -# Makefile.in generated automatically by automake 1.4-p5 from Makefile.am
  13913. +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
  13914. # Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
  13915. # This Makefile.in is free software; the Free Software Foundation
  13916. @@ -97,14 +97,14 @@
  13917. DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
  13918. -TAR = gtar
  13919. +TAR = tar
  13920. GZIP_ENV = --best
  13921. all: all-redirect
  13922. .SUFFIXES:
  13923. $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
  13924. - cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps src/include/Makefile
  13925. + cd $(top_srcdir) && $(AUTOMAKE) --gnu src/include/Makefile
  13926. -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  13927. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
  13928. cd $(top_builddir) \
  13929. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
  13930. @@ -142,7 +142,7 @@
  13931. awk ' { files[$$0] = 1; } \
  13932. END { for (i in files) print i; }'`; \
  13933. test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
  13934. - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
  13935. + || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags $$unique $(LISP))
  13936. mostlyclean-tags:
  13937. @@ -158,6 +158,11 @@
  13938. subdir = src/include
  13939. distdir: $(DISTFILES)
  13940. + here=`cd $(top_builddir) && pwd`; \
  13941. + top_distdir=`cd $(top_distdir) && pwd`; \
  13942. + distdir=`cd $(distdir) && pwd`; \
  13943. + cd $(top_srcdir) \
  13944. + && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu src/include/Makefile
  13945. @for file in $(DISTFILES); do \
  13946. d=$(srcdir); \
  13947. if test -d $$d/$$file; then \
  13948. Index: linux-atm-2.4.1/src/include/atmd.h
  13949. ===================================================================
  13950. --- linux-atm-2.4.1.orig/src/include/atmd.h 2007-10-20 19:19:10.902249761 +0200
  13951. +++ linux-atm-2.4.1/src/include/atmd.h 2007-10-20 19:19:11.802301052 +0200
  13952. @@ -24,6 +24,10 @@
  13953. (i)->prev = (b)->prev; if ((b)->prev) (b)->prev->next = i; else r = i; \
  13954. (b)->prev = i; } else { (i)->next = r; (i)->prev = NULL; \
  13955. if (r) (r)->prev = i; r = i; } })
  13956. +#define Q_INSERT_BEFORE_TYPED(r,t,i,b) ({ if (b) { (i)->next = b; \
  13957. + (i)->prev = (b)->prev; if ((b)->prev) (b)->prev->next = i; else r = i; \
  13958. + (b)->prev = i; } else { (i)->next = t r; (i)->prev = NULL; \
  13959. + if (t r) (t r)->prev = i; r = i; } })
  13960. #define Q_REMOVE(r,i) ({ if ((i)->next) (i)->next->prev = (i)->prev; \
  13961. if ((i)->prev) (i)->prev->next = (i)->next; else r = (i)->next; })
  13962. Index: linux-atm-2.4.1/src/lib/Makefile.in
  13963. ===================================================================
  13964. --- linux-atm-2.4.1.orig/src/lib/Makefile.in 2007-10-20 19:19:10.910250220 +0200
  13965. +++ linux-atm-2.4.1/src/lib/Makefile.in 2007-10-20 19:19:11.806301281 +0200
  13966. @@ -1,4 +1,4 @@
  13967. -# Makefile.in generated automatically by automake 1.4-p5 from Makefile.am
  13968. +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
  13969. # Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
  13970. # This Makefile.in is free software; the Free Software Foundation
  13971. @@ -92,16 +92,10 @@
  13972. # ATMLIBS_VERSION comes from configure.in in the toplevel directory
  13973. LDFLAGS = -version-info @LIBVER_CURRENT@:@LIBVER_REVISION@:@LIBVER_AGE@
  13974. -libatm_la_SOURCES = text2atm.c atm2text.c atmequal.c sdu2cell.c text2qos.c \
  13975. - qos2text.c qosequal.c sap2text.c text2sap.c sapequal.c \
  13976. - misc.c atmres.h ans.c \
  13977. - common.c diag.c kptr.c text2ip.c timer.c unix.c
  13978. +libatm_la_SOURCES = text2atm.c atm2text.c atmequal.c sdu2cell.c text2qos.c qos2text.c qosequal.c sap2text.c text2sap.c sapequal.c misc.c atmres.h ans.c common.c diag.c kptr.c text2ip.c timer.c unix.c
  13979. libatm_la_LIBADD = -lresolv
  13980. -libatm_la_DEPENDENCIES = $(top_builddir)/src/include/atm.h \
  13981. - $(top_builddir)/src/include/atmsap.h \
  13982. - $(top_builddir)/src/include/stdint.h \
  13983. - $(top_builddir)/src/include/atmd.h
  13984. +libatm_la_DEPENDENCIES = $(top_builddir)/src/include/atm.h $(top_builddir)/src/include/atmsap.h $(top_builddir)/src/include/stdint.h $(top_builddir)/src/include/atmd.h
  13985. mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  13986. CONFIG_HEADER = ../../config.h
  13987. @@ -126,8 +120,13 @@
  13988. DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
  13989. -TAR = gtar
  13990. +TAR = tar
  13991. GZIP_ENV = --best
  13992. +DEP_FILES = .deps/ans.P .deps/atm2text.P .deps/atmequal.P \
  13993. +.deps/common.P .deps/diag.P .deps/kptr.P .deps/misc.P .deps/qos2text.P \
  13994. +.deps/qosequal.P .deps/sap2text.P .deps/sapequal.P .deps/sdu2cell.P \
  13995. +.deps/text2atm.P .deps/text2ip.P .deps/text2qos.P .deps/text2sap.P \
  13996. +.deps/timer.P .deps/unix.P
  13997. SOURCES = $(libatm_la_SOURCES)
  13998. OBJECTS = $(libatm_la_OBJECTS)
  13999. @@ -135,9 +134,9 @@
  14000. .SUFFIXES:
  14001. .SUFFIXES: .S .c .lo .o .obj .s
  14002. $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
  14003. - cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps src/lib/Makefile
  14004. + cd $(top_srcdir) && $(AUTOMAKE) --gnu src/lib/Makefile
  14005. -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  14006. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
  14007. cd $(top_builddir) \
  14008. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
  14009. @@ -167,9 +166,6 @@
  14010. $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$$p; \
  14011. done
  14012. -.c.o:
  14013. - $(COMPILE) -c $<
  14014. -
  14015. # FIXME: We should only use cygpath when building on Windows,
  14016. # and only if it is available.
  14017. .c.obj:
  14018. @@ -192,9 +188,6 @@
  14019. maintainer-clean-compile:
  14020. -.c.lo:
  14021. - $(LIBTOOL) --mode=compile $(COMPILE) -c $<
  14022. -
  14023. .s.lo:
  14024. $(LIBTOOL) --mode=compile $(COMPILE) -c $<
  14025. @@ -232,7 +225,7 @@
  14026. awk ' { files[$$0] = 1; } \
  14027. END { for (i in files) print i; }'`; \
  14028. test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
  14029. - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
  14030. + || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags $$unique $(LISP))
  14031. mostlyclean-tags:
  14032. @@ -248,6 +241,11 @@
  14033. subdir = src/lib
  14034. distdir: $(DISTFILES)
  14035. + here=`cd $(top_builddir) && pwd`; \
  14036. + top_distdir=`cd $(top_distdir) && pwd`; \
  14037. + distdir=`cd $(distdir) && pwd`; \
  14038. + cd $(top_srcdir) \
  14039. + && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu src/lib/Makefile
  14040. @for file in $(DISTFILES); do \
  14041. d=$(srcdir); \
  14042. if test -d $$d/$$file; then \
  14043. @@ -258,48 +256,38 @@
  14044. || cp -p $$d/$$file $(distdir)/$$file || :; \
  14045. fi; \
  14046. done
  14047. -ans.lo ans.o : ans.c ../../config.h ../../src/include/stdint.h \
  14048. - ../../src/include/atm.h atmres.h
  14049. -atm2text.lo atm2text.o : atm2text.c ../../config.h \
  14050. - ../../src/include/atm.h ../../src/include/stdint.h atmres.h
  14051. -atmequal.lo atmequal.o : atmequal.c ../../config.h \
  14052. - ../../src/include/atm.h ../../src/include/stdint.h
  14053. -common.lo common.o : common.c ../../config.h ../../src/include/stdint.h \
  14054. - ../../src/include/atmd.h ../../src/include/atm.h
  14055. -diag.lo diag.o : diag.c ../../config.h ../../src/include/atmd.h \
  14056. - ../../src/include/stdint.h ../../src/include/atm.h
  14057. -kptr.lo kptr.o : kptr.c ../../config.h ../../src/include/atm.h \
  14058. - ../../src/include/stdint.h ../../src/include/atmd.h
  14059. -misc.lo misc.o : misc.c ../../config.h ../../src/include/stdint.h \
  14060. - ../../src/include/atm.h ../../src/include/atmsap.h
  14061. -qos2text.lo qos2text.o : qos2text.c ../../config.h \
  14062. - ../../src/include/atm.h ../../src/include/stdint.h
  14063. -qosequal.lo qosequal.o : qosequal.c ../../config.h \
  14064. - ../../src/include/atm.h ../../src/include/stdint.h
  14065. -sap2text.lo sap2text.o : sap2text.c ../../config.h \
  14066. - ../../src/include/atmsap.h ../../src/include/stdint.h \
  14067. - ../../src/include/atm.h
  14068. -sapequal.lo sapequal.o : sapequal.c ../../config.h \
  14069. - ../../src/include/atm.h ../../src/include/stdint.h \
  14070. - ../../src/include/atmsap.h
  14071. -sdu2cell.lo sdu2cell.o : sdu2cell.c ../../config.h \
  14072. - ../../src/include/atm.h ../../src/include/stdint.h
  14073. -text2atm.lo text2atm.o : text2atm.c ../../config.h \
  14074. - ../../src/include/atm.h ../../src/include/stdint.h \
  14075. - ../../src/include/atmsap.h atmres.h
  14076. -text2ip.lo text2ip.o : text2ip.c ../../config.h \
  14077. - ../../src/include/stdint.h ../../src/include/atm.h \
  14078. - ../../src/include/atmd.h
  14079. -text2qos.lo text2qos.o : text2qos.c ../../config.h \
  14080. - ../../src/include/atm.h ../../src/include/stdint.h
  14081. -text2sap.lo text2sap.o : text2sap.c ../../config.h \
  14082. - ../../src/include/atmsap.h ../../src/include/stdint.h \
  14083. - ../../src/include/atm.h
  14084. -timer.lo timer.o : timer.c ../../config.h ../../src/include/atmd.h \
  14085. - ../../src/include/stdint.h ../../src/include/atm.h
  14086. -unix.lo unix.o : unix.c ../../config.h ../../src/include/atmd.h \
  14087. - ../../src/include/stdint.h ../../src/include/atm.h
  14088. +DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
  14089. +
  14090. +-include $(DEP_FILES)
  14091. +
  14092. +mostlyclean-depend:
  14093. +
  14094. +clean-depend:
  14095. +
  14096. +distclean-depend:
  14097. + -rm -rf .deps
  14098. +
  14099. +maintainer-clean-depend:
  14100. +
  14101. +%.o: %.c
  14102. + @echo '$(COMPILE) -c $<'; \
  14103. + $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
  14104. + @-cp .deps/$(*F).pp .deps/$(*F).P; \
  14105. + tr ' ' '\012' < .deps/$(*F).pp \
  14106. + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
  14107. + >> .deps/$(*F).P; \
  14108. + rm .deps/$(*F).pp
  14109. +
  14110. +%.lo: %.c
  14111. + @echo '$(LTCOMPILE) -c $<'; \
  14112. + $(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
  14113. + @-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \
  14114. + < .deps/$(*F).pp > .deps/$(*F).P; \
  14115. + tr ' ' '\012' < .deps/$(*F).pp \
  14116. + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
  14117. + >> .deps/$(*F).P; \
  14118. + rm -f .deps/$(*F).pp
  14119. info-am:
  14120. info: info-am
  14121. dvi-am:
  14122. @@ -337,27 +325,27 @@
  14123. maintainer-clean-generic:
  14124. mostlyclean-am: mostlyclean-libLTLIBRARIES mostlyclean-compile \
  14125. - mostlyclean-libtool mostlyclean-tags \
  14126. + mostlyclean-libtool mostlyclean-tags mostlyclean-depend \
  14127. mostlyclean-generic
  14128. mostlyclean: mostlyclean-am
  14129. clean-am: clean-libLTLIBRARIES clean-compile clean-libtool clean-tags \
  14130. - clean-generic mostlyclean-am
  14131. + clean-depend clean-generic mostlyclean-am
  14132. clean: clean-am
  14133. distclean-am: distclean-libLTLIBRARIES distclean-compile \
  14134. - distclean-libtool distclean-tags distclean-generic \
  14135. - clean-am
  14136. + distclean-libtool distclean-tags distclean-depend \
  14137. + distclean-generic clean-am
  14138. -rm -f libtool
  14139. distclean: distclean-am
  14140. maintainer-clean-am: maintainer-clean-libLTLIBRARIES \
  14141. maintainer-clean-compile maintainer-clean-libtool \
  14142. - maintainer-clean-tags maintainer-clean-generic \
  14143. - distclean-am
  14144. + maintainer-clean-tags maintainer-clean-depend \
  14145. + maintainer-clean-generic distclean-am
  14146. @echo "This command is intended for maintainers to use;"
  14147. @echo "it deletes files that may require special tools to rebuild."
  14148. @@ -369,12 +357,13 @@
  14149. distclean-compile clean-compile maintainer-clean-compile \
  14150. mostlyclean-libtool distclean-libtool clean-libtool \
  14151. maintainer-clean-libtool tags mostlyclean-tags distclean-tags \
  14152. -clean-tags maintainer-clean-tags distdir info-am info dvi-am dvi check \
  14153. -check-am installcheck-am installcheck install-exec-am install-exec \
  14154. -install-data-am install-data install-am install uninstall-am uninstall \
  14155. -all-redirect all-am all installdirs mostlyclean-generic \
  14156. -distclean-generic clean-generic maintainer-clean-generic clean \
  14157. -mostlyclean distclean maintainer-clean
  14158. +clean-tags maintainer-clean-tags distdir mostlyclean-depend \
  14159. +distclean-depend clean-depend maintainer-clean-depend info-am info \
  14160. +dvi-am dvi check check-am installcheck-am installcheck install-exec-am \
  14161. +install-exec install-data-am install-data install-am install \
  14162. +uninstall-am uninstall all-redirect all-am all installdirs \
  14163. +mostlyclean-generic distclean-generic clean-generic \
  14164. +maintainer-clean-generic clean mostlyclean distclean maintainer-clean
  14165. #libatm_la_SOURCES = text2atm.c atm2text.c atmequal.c sdu2cell.c text2qos.c \
  14166. Index: linux-atm-2.4.1/src/lib/sapequal.c
  14167. ===================================================================
  14168. --- linux-atm-2.4.1.orig/src/lib/sapequal.c 2007-10-20 19:19:10.918250672 +0200
  14169. +++ linux-atm-2.4.1/src/lib/sapequal.c 2007-10-20 19:19:11.822302192 +0200
  14170. @@ -65,6 +65,7 @@
  14171. CHECK(l2.itu.window,a.l2.itu.window > b.l2.itu.window);
  14172. break;
  14173. default:
  14174. + break;
  14175. }
  14176. switch (a.l3_proto) {
  14177. case ATM_L3_X25:
  14178. @@ -83,6 +84,7 @@
  14179. if (a.l3.user != b.l3.user) return 0;
  14180. break;
  14181. default:
  14182. + break;
  14183. }
  14184. return 1;
  14185. }
  14186. Index: linux-atm-2.4.1/src/test/Makefile.in
  14187. ===================================================================
  14188. --- linux-atm-2.4.1.orig/src/test/Makefile.in 2007-10-20 19:19:10.922250901 +0200
  14189. +++ linux-atm-2.4.1/src/test/Makefile.in 2007-10-20 19:19:11.826302420 +0200
  14190. @@ -1,4 +1,4 @@
  14191. -# Makefile.in generated automatically by automake 1.4-p5 from Makefile.am
  14192. +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
  14193. # Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
  14194. # This Makefile.in is free software; the Free Software Foundation
  14195. @@ -168,8 +168,11 @@
  14196. DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
  14197. -TAR = gtar
  14198. +TAR = tar
  14199. GZIP_ENV = --best
  14200. +DEP_FILES = .deps/align.P .deps/aping.P .deps/aread.P .deps/awrite.P \
  14201. +.deps/br.P .deps/bw.P .deps/isp.P .deps/ispl_l.P .deps/ispl_y.P \
  14202. +.deps/ttcp.P .deps/window.P
  14203. SOURCES = $(aread_SOURCES) $(awrite_SOURCES) $(ttcp_atm_SOURCES) $(align_SOURCES) $(aping_SOURCES) $(br_SOURCES) $(bw_SOURCES) $(isp_SOURCES) $(window_SOURCES)
  14204. OBJECTS = $(aread_OBJECTS) $(awrite_OBJECTS) $(ttcp_atm_OBJECTS) $(align_OBJECTS) $(aping_OBJECTS) $(br_OBJECTS) $(bw_OBJECTS) $(isp_OBJECTS) $(window_OBJECTS)
  14205. @@ -177,9 +180,9 @@
  14206. .SUFFIXES:
  14207. .SUFFIXES: .S .c .l .lo .o .obj .s .y
  14208. $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
  14209. - cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps src/test/Makefile
  14210. + cd $(top_srcdir) && $(AUTOMAKE) --gnu src/test/Makefile
  14211. -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  14212. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
  14213. cd $(top_builddir) \
  14214. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
  14215. @@ -218,9 +221,6 @@
  14216. maintainer-clean-noinstPROGRAMS:
  14217. -.c.o:
  14218. - $(COMPILE) -c $<
  14219. -
  14220. # FIXME: We should only use cygpath when building on Windows,
  14221. # and only if it is available.
  14222. .c.obj:
  14223. @@ -243,9 +243,6 @@
  14224. maintainer-clean-compile:
  14225. -.c.lo:
  14226. - $(LIBTOOL) --mode=compile $(COMPILE) -c $<
  14227. -
  14228. .s.lo:
  14229. $(LIBTOOL) --mode=compile $(COMPILE) -c $<
  14230. @@ -325,7 +322,7 @@
  14231. awk ' { files[$$0] = 1; } \
  14232. END { for (i in files) print i; }'`; \
  14233. test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
  14234. - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
  14235. + || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags $$unique $(LISP))
  14236. mostlyclean-tags:
  14237. @@ -341,6 +338,11 @@
  14238. subdir = src/test
  14239. distdir: $(DISTFILES)
  14240. + here=`cd $(top_builddir) && pwd`; \
  14241. + top_distdir=`cd $(top_distdir) && pwd`; \
  14242. + distdir=`cd $(distdir) && pwd`; \
  14243. + cd $(top_srcdir) \
  14244. + && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu src/test/Makefile
  14245. @for file in $(DISTFILES); do \
  14246. d=$(srcdir); \
  14247. if test -d $$d/$$file; then \
  14248. @@ -351,30 +353,38 @@
  14249. || cp -p $$d/$$file $(distdir)/$$file || :; \
  14250. fi; \
  14251. done
  14252. -align.o: align.c ../../config.h ../../src/include/atm.h \
  14253. - ../../src/include/stdint.h
  14254. -aping.o: aping.c ../../config.h ../../src/include/atm.h \
  14255. - ../../src/include/stdint.h
  14256. -aread.o: aread.c ../../config.h ../../src/include/atm.h \
  14257. - ../../src/include/stdint.h
  14258. -awrite.o: awrite.c ../../config.h ../../src/include/atm.h \
  14259. - ../../src/include/stdint.h
  14260. -br.o: br.c ../../config.h ../../src/include/atm.h \
  14261. - ../../src/include/stdint.h
  14262. -bw.o: bw.c ../../config.h ../../src/include/atm.h \
  14263. - ../../src/include/stdint.h
  14264. -isp.o: isp.c ../../config.h ../../src/include/atm.h \
  14265. - ../../src/include/stdint.h ../../src/include/atmd.h isp.h \
  14266. - errnos.inc
  14267. -ispl_l.o: ispl_l.c ../../config.h ../../src/include/stdint.h isp.h \
  14268. - ../../src/include/atm.h ispl_y.h
  14269. -ispl_y.o: ispl_y.c ../../config.h ../../src/include/atm.h \
  14270. - ../../src/include/stdint.h isp.h
  14271. -ttcp.o: ttcp.c ../../config.h ../../src/include/stdint.h \
  14272. - ../../src/include/atm.h ../../src/include/atmsap.h
  14273. -window.o: window.c ../../config.h ../../src/include/atm.h \
  14274. - ../../src/include/stdint.h
  14275. +DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
  14276. +
  14277. +-include $(DEP_FILES)
  14278. +
  14279. +mostlyclean-depend:
  14280. +
  14281. +clean-depend:
  14282. +
  14283. +distclean-depend:
  14284. + -rm -rf .deps
  14285. +
  14286. +maintainer-clean-depend:
  14287. +
  14288. +%.o: %.c
  14289. + @echo '$(COMPILE) -c $<'; \
  14290. + $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
  14291. + @-cp .deps/$(*F).pp .deps/$(*F).P; \
  14292. + tr ' ' '\012' < .deps/$(*F).pp \
  14293. + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
  14294. + >> .deps/$(*F).P; \
  14295. + rm .deps/$(*F).pp
  14296. +
  14297. +%.lo: %.c
  14298. + @echo '$(LTCOMPILE) -c $<'; \
  14299. + $(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
  14300. + @-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \
  14301. + < .deps/$(*F).pp > .deps/$(*F).P; \
  14302. + tr ' ' '\012' < .deps/$(*F).pp \
  14303. + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
  14304. + >> .deps/$(*F).P; \
  14305. + rm -f .deps/$(*F).pp
  14306. info-am:
  14307. info: info-am
  14308. dvi-am:
  14309. @@ -412,21 +422,22 @@
  14310. -rm -f config.cache config.log stamp-h stamp-h[0-9]*
  14311. maintainer-clean-generic:
  14312. - -test -z "ispl_llispl_yhispl_yc" || rm -f ispl_ll ispl_yh ispl_yc
  14313. + -test -z "ispl_lcispl_yhispl_yc" || rm -f ispl_lc ispl_yh ispl_yc
  14314. mostlyclean-am: mostlyclean-binPROGRAMS mostlyclean-noinstPROGRAMS \
  14315. mostlyclean-compile mostlyclean-libtool \
  14316. - mostlyclean-tags mostlyclean-generic
  14317. + mostlyclean-tags mostlyclean-depend mostlyclean-generic
  14318. mostlyclean: mostlyclean-am
  14319. clean-am: clean-binPROGRAMS clean-noinstPROGRAMS clean-compile \
  14320. - clean-libtool clean-tags clean-generic mostlyclean-am
  14321. + clean-libtool clean-tags clean-depend clean-generic \
  14322. + mostlyclean-am
  14323. clean: clean-am
  14324. distclean-am: distclean-binPROGRAMS distclean-noinstPROGRAMS \
  14325. distclean-compile distclean-libtool distclean-tags \
  14326. - distclean-generic clean-am
  14327. + distclean-depend distclean-generic clean-am
  14328. -rm -f libtool
  14329. distclean: distclean-am
  14330. @@ -434,8 +445,8 @@
  14331. maintainer-clean-am: maintainer-clean-binPROGRAMS \
  14332. maintainer-clean-noinstPROGRAMS \
  14333. maintainer-clean-compile maintainer-clean-libtool \
  14334. - maintainer-clean-tags maintainer-clean-generic \
  14335. - distclean-am
  14336. + maintainer-clean-tags maintainer-clean-depend \
  14337. + maintainer-clean-generic distclean-am
  14338. @echo "This command is intended for maintainers to use;"
  14339. @echo "it deletes files that may require special tools to rebuild."
  14340. @@ -448,19 +459,22 @@
  14341. mostlyclean-compile distclean-compile clean-compile \
  14342. maintainer-clean-compile mostlyclean-libtool distclean-libtool \
  14343. clean-libtool maintainer-clean-libtool tags mostlyclean-tags \
  14344. -distclean-tags clean-tags maintainer-clean-tags distdir info-am info \
  14345. -dvi-am dvi check check-am installcheck-am installcheck install-exec-am \
  14346. -install-exec install-data-am install-data install-am install \
  14347. -uninstall-am uninstall all-redirect all-am all installdirs \
  14348. -mostlyclean-generic distclean-generic clean-generic \
  14349. -maintainer-clean-generic clean mostlyclean distclean maintainer-clean
  14350. +distclean-tags clean-tags maintainer-clean-tags distdir \
  14351. +mostlyclean-depend distclean-depend clean-depend \
  14352. +maintainer-clean-depend info-am info dvi-am dvi check check-am \
  14353. +installcheck-am installcheck install-exec-am install-exec \
  14354. +install-data-am install-data install-am install uninstall-am uninstall \
  14355. +all-redirect all-am all installdirs mostlyclean-generic \
  14356. +distclean-generic clean-generic maintainer-clean-generic clean \
  14357. +mostlyclean distclean maintainer-clean
  14358. isp.o: errnos.inc
  14359. errnos.inc: mkerrnos.pl
  14360. - @PERL@ ./mkerrnos.pl </usr/include/asm/errno.h \
  14361. - >errnos.inc || { rm -f errnos.inc; exit 1; }
  14362. + cpp -I/usr/include/ -dM /usr/include/asm/errno.h | grep "^#define E" \
  14363. + | @PERL@ ./mkerrnos.pl | grep -v EMAXERRNO >errnos.inc \
  14364. + || { rm -f errnos.inc; exit 1; }
  14365. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  14366. # Otherwise a system limit (for SysV at least) may be exceeded.
  14367. Index: linux-atm-2.4.1/src/test/Makefile.am
  14368. ===================================================================
  14369. --- linux-atm-2.4.1.orig/src/test/Makefile.am 2007-10-20 19:19:10.946252269 +0200
  14370. +++ linux-atm-2.4.1/src/test/Makefile.am 2007-10-20 19:19:11.858304242 +0200
  14371. @@ -26,6 +26,7 @@
  14372. isp.o: errnos.inc
  14373. errnos.inc: mkerrnos.pl
  14374. - @PERL@ ./mkerrnos.pl </usr/include/asm/errno.h \
  14375. - >errnos.inc || { rm -f errnos.inc; exit 1; }
  14376. -
  14377. + cpp -I/usr/include/ -dM /usr/include/asm/errno.h | grep "^#define E" \
  14378. + | @PERL@ ./mkerrnos.pl | grep -v EMAXERRNO >errnos.inc \
  14379. + || { rm -f errnos.inc; exit 1; }
  14380. +
  14381. Index: linux-atm-2.4.1/src/test/ttcp.c
  14382. ===================================================================
  14383. --- linux-atm-2.4.1.orig/src/test/ttcp.c 2007-10-20 19:19:10.954252727 +0200
  14384. +++ linux-atm-2.4.1/src/test/ttcp.c 2007-10-20 19:19:11.866304700 +0200
  14385. @@ -55,6 +55,8 @@
  14386. /* #define SYSV */ /* required on SGI IRIX releases before 3.3 */
  14387. #include <stdio.h>
  14388. +#include <stdlib.h>
  14389. +#include <string.h>
  14390. #include <signal.h>
  14391. #include <ctype.h>
  14392. #include <errno.h>
  14393. @@ -67,6 +69,7 @@
  14394. #include <sys/time.h> /* struct timeval */
  14395. #include <atm.h>
  14396. #include <atmsap.h>
  14397. +#include <unistd.h>
  14398. #if defined(SYSV)
  14399. #include <sys/times.h>
  14400. @@ -85,7 +88,8 @@
  14401. struct sockaddr_atmsvc satm;
  14402. struct atm_qos qos;
  14403. -int domain, fromlen;
  14404. +int domain;
  14405. +socklen_t fromlen;
  14406. int fd; /* fd of network socket */
  14407. int buflen = 8 * 1024; /* length of buffer */
  14408. @@ -120,7 +124,6 @@
  14409. static struct rusage ru0; /* Resource utilization at the start */
  14410. struct hostent *addr;
  14411. -extern int errno;
  14412. extern int optind;
  14413. extern char *optarg;
  14414. @@ -158,23 +161,21 @@
  14415. unsigned long numCalls; /* # of I/O system calls */
  14416. double cput, realt; /* user, real time (seconds) */
  14417. -void err();
  14418. -void mes();
  14419. -int pattern();
  14420. -void prep_timer();
  14421. -double read_timer();
  14422. -int Nread();
  14423. -int Nwrite();
  14424. -void delay();
  14425. -int mread();
  14426. -char *outfmt();
  14427. -static void prusage();
  14428. -static void tvadd();
  14429. -static void tvsub();
  14430. -static void psecs();
  14431. +void err(const char *s);
  14432. +void mes(const char *s);
  14433. +void prep_timer(void);
  14434. +void pattern(char *cp, int cnt);
  14435. +int Nread(int nfd, char *Nbuf, int count);
  14436. +int Nwrite(int nfd, char *Nbuf, int count);
  14437. +void delay(int us);
  14438. +int mread(int mfd, char *bufp, unsigned n);
  14439. +char *outfmt(double b);
  14440. +static void prusage(struct rusage *r0, struct rusage *r1, struct timeval *e, struct timeval *b, char *outp);
  14441. +static void tvadd(struct timeval *tsum, struct timeval *t0, struct timeval *t1);
  14442. +static void tvsub(struct timeval *tdiff, struct timeval *t1, struct timeval *t0);
  14443. +static void psecs(long l, char *cp);
  14444. -void
  14445. -sigpipe()
  14446. +void sigpipe(int unused)
  14447. {
  14448. }
  14449. @@ -183,16 +184,14 @@
  14450. * main -
  14451. *-------------------------------------------------------------------------
  14452. */
  14453. -main(argc,argv)
  14454. -int argc;
  14455. -char **argv;
  14456. +int main(int argc,char **argv)
  14457. {
  14458. struct timeval td;
  14459. unsigned long addr_tmp;
  14460. const char *port_name = NULL,*tos = NULL;
  14461. int c;
  14462. double mbps;
  14463. -int no_check = 0;
  14464. + int no_check = 0;
  14465. if (argc < 2) goto usage;
  14466. @@ -275,7 +274,7 @@
  14467. }
  14468. }
  14469. - if (port_name)
  14470. + if (port_name) {
  14471. if (atm) goto usage;
  14472. else {
  14473. struct servent *se;
  14474. @@ -283,13 +282,13 @@
  14475. se = getservbyname(port_name,udp ? "udp" : "tcp");
  14476. if (se) port = ntohs(se->s_port);
  14477. else {
  14478. - const char *end;
  14479. + char *end;
  14480. port = strtoul(port_name,&end,0);
  14481. if (*end) goto usage;
  14482. }
  14483. }
  14484. -
  14485. + }
  14486. host = argv[optind];
  14487. if (atm) {
  14488. @@ -435,9 +434,9 @@
  14489. #endif
  14490. if (!atm || satm.sas_family == AF_ATMPVC || !trans)
  14491. - if (bind(fd, atm ? &satm : &sinme, atm ? satm.sas_family == AF_ATMPVC ?
  14492. - sizeof(struct sockaddr_atmpvc) : sizeof(struct sockaddr_atmsvc) :
  14493. - sizeof(sinme)) < 0)
  14494. + if (bind(fd, atm ?
  14495. + (struct sockaddr *)&satm : (struct sockaddr *)&sinme,
  14496. + atm ? satm.sas_family == AF_ATMPVC ? sizeof(struct sockaddr_atmpvc) : sizeof(struct sockaddr_atmsvc) : sizeof(sinme)) < 0)
  14497. err("bind");
  14498. if (!udp || (atm && satm.sas_family == AF_ATMSVC)) {
  14499. @@ -453,8 +452,8 @@
  14500. err("setsockopt");
  14501. }
  14502. - if (connect(fd, atm ? &satm : &sinhim, atm ? sizeof(satm) :
  14503. - sizeof(sinhim)) < 0)
  14504. + if (connect(fd,
  14505. + atm ? (struct sockaddr *)&satm : (struct sockaddr *)&sinhim, atm ? sizeof(satm) : sizeof(sinhim)) < 0)
  14506. err("connect");
  14507. mes("connect");
  14508. @@ -482,13 +481,13 @@
  14509. fromlen = sizeof(frominet);
  14510. domain = AF_INET;
  14511. - if ((fd=accept(fd, &frominet, &fromlen) ) < 0)
  14512. + if ((fd=accept(fd, (struct sockaddr *)&frominet, &fromlen) ) < 0)
  14513. err("accept");
  14514. {
  14515. struct sockaddr_atmsvc peer;
  14516. int peerlen = sizeof(peer);
  14517. - if (getpeername(fd, (struct sockaddr_in *) &peer,
  14518. + if (getpeername(fd, (struct sockaddr *) &peer,
  14519. &peerlen) < 0) {
  14520. err("getpeername");
  14521. }
  14522. @@ -638,13 +637,13 @@
  14523. nbytes, cput, outfmt((double)nbytes/cput));
  14524. fprintf(stdout,
  14525. - "ttcp%s: %d I/O calls, msec/call = %.2f, calls/sec = %.2f\n",
  14526. + "ttcp%s: %lu I/O calls, msec/call = %.2f, calls/sec = %.2f\n",
  14527. trans?"-t":"-r",
  14528. numCalls,
  14529. 1000.0 * realt/((double)numCalls),
  14530. ((double)numCalls)/realt);
  14531. fprintf(stdout,
  14532. - "ttcp%s: buffer address %#x\n",
  14533. + "ttcp%s: buffer address %p\n",
  14534. trans?"-t":"-r",
  14535. buf);
  14536. }
  14537. @@ -656,8 +655,7 @@
  14538. }
  14539. void
  14540. -err(s)
  14541. -char *s;
  14542. +err(const char *s)
  14543. {
  14544. int en = errno;
  14545. @@ -670,8 +668,7 @@
  14546. }
  14547. void
  14548. -mes(s)
  14549. -char *s;
  14550. +mes(const char *s)
  14551. {
  14552. fprintf(stderr,"ttcp%s: %s\n", trans?"-t":"-r", s);
  14553. }
  14554. @@ -681,9 +678,7 @@
  14555. * pattern -
  14556. *-------------------------------------------------------------------------
  14557. */
  14558. -pattern(cp, cnt)
  14559. -register char *cp;
  14560. -register int cnt;
  14561. +void pattern(char *cp, int cnt)
  14562. {
  14563. register char c;
  14564. c = 0;
  14565. @@ -694,9 +689,7 @@
  14566. }
  14567. -char *
  14568. -outfmt(b)
  14569. -double b;
  14570. +char *outfmt(double b)
  14571. {
  14572. static char obuf[50];
  14573. switch (fmt) {
  14574. @@ -758,7 +751,7 @@
  14575. * P R E P _ T I M E R
  14576. */
  14577. void
  14578. -prep_timer()
  14579. +prep_timer(void)
  14580. {
  14581. gettimeofday(&start_time, (struct timezone *)0);
  14582. getrusage(RUSAGE_SELF, &ru0);
  14583. @@ -768,8 +761,7 @@
  14584. * read_timer -
  14585. *-------------------------------------------------------------------------
  14586. */
  14587. -double read_timer(str,len)
  14588. -char *str;
  14589. +double read_timer(char *str,int len)
  14590. {
  14591. struct rusage ru1;
  14592. struct timeval tend, tstart, td;
  14593. @@ -788,15 +780,11 @@
  14594. return( cput );
  14595. }
  14596. -static void
  14597. -prusage(r0, r1, e, b, outp)
  14598. - register struct rusage *r0, *r1;
  14599. - struct timeval *e, *b;
  14600. - char *outp;
  14601. +static void prusage(struct rusage *r0, struct rusage *r1, struct timeval *e, struct timeval *b, char *outp)
  14602. {
  14603. struct timeval tdiff;
  14604. register time_t t;
  14605. - register char *cp;
  14606. + register const char *cp;
  14607. register int i;
  14608. int ms;
  14609. @@ -823,13 +811,13 @@
  14610. case 'U':
  14611. tvsub(&tdiff, &r1->ru_utime, &r0->ru_utime);
  14612. - sprintf(outp,"%d.%01d", tdiff.tv_sec, tdiff.tv_usec/100000);
  14613. + sprintf(outp,"%ld.%01ld", tdiff.tv_sec, tdiff.tv_usec/100000);
  14614. END(outp);
  14615. break;
  14616. case 'S':
  14617. tvsub(&tdiff, &r1->ru_stime, &r0->ru_stime);
  14618. - sprintf(outp,"%d.%01d", tdiff.tv_sec, tdiff.tv_usec/100000);
  14619. + sprintf(outp,"%ld.%01ld", tdiff.tv_sec, tdiff.tv_usec/100000);
  14620. END(outp);
  14621. break;
  14622. @@ -851,49 +839,49 @@
  14623. break;
  14624. case 'X':
  14625. - sprintf(outp,"%d", t == 0 ? 0 : (r1->ru_ixrss-r0->ru_ixrss)/t);
  14626. + sprintf(outp,"%ld", t == 0 ? 0 : (r1->ru_ixrss-r0->ru_ixrss)/t);
  14627. END(outp);
  14628. break;
  14629. case 'D':
  14630. - sprintf(outp,"%d", t == 0 ? 0 :
  14631. + sprintf(outp,"%ld", t == 0 ? 0 :
  14632. (r1->ru_idrss+r1->ru_isrss-(r0->ru_idrss+r0->ru_isrss))/t);
  14633. END(outp);
  14634. break;
  14635. case 'K':
  14636. - sprintf(outp,"%d", t == 0 ? 0 :
  14637. + sprintf(outp,"%ld", t == 0 ? 0 :
  14638. ((r1->ru_ixrss+r1->ru_isrss+r1->ru_idrss) -
  14639. (r0->ru_ixrss+r0->ru_idrss+r0->ru_isrss))/t);
  14640. END(outp);
  14641. break;
  14642. case 'M':
  14643. - sprintf(outp,"%d", r1->ru_maxrss/2);
  14644. + sprintf(outp,"%ld", r1->ru_maxrss/2);
  14645. END(outp);
  14646. break;
  14647. case 'F':
  14648. - sprintf(outp,"%d", r1->ru_majflt-r0->ru_majflt);
  14649. + sprintf(outp,"%ld", r1->ru_majflt-r0->ru_majflt);
  14650. END(outp);
  14651. break;
  14652. case 'R':
  14653. - sprintf(outp,"%d", r1->ru_minflt-r0->ru_minflt);
  14654. + sprintf(outp,"%ld", r1->ru_minflt-r0->ru_minflt);
  14655. END(outp);
  14656. break;
  14657. case 'I':
  14658. - sprintf(outp,"%d", r1->ru_inblock-r0->ru_inblock);
  14659. + sprintf(outp,"%ld", r1->ru_inblock-r0->ru_inblock);
  14660. END(outp);
  14661. break;
  14662. case 'O':
  14663. - sprintf(outp,"%d", r1->ru_oublock-r0->ru_oublock);
  14664. + sprintf(outp,"%ld", r1->ru_oublock-r0->ru_oublock);
  14665. END(outp);
  14666. break;
  14667. case 'C':
  14668. - sprintf(outp,"%d+%d", r1->ru_nvcsw-r0->ru_nvcsw,
  14669. + sprintf(outp,"%ld+%ld", r1->ru_nvcsw-r0->ru_nvcsw,
  14670. r1->ru_nivcsw-r0->ru_nivcsw );
  14671. END(outp);
  14672. break;
  14673. @@ -903,9 +891,7 @@
  14674. *outp = '\0';
  14675. }
  14676. -static void
  14677. -tvadd(tsum, t0, t1)
  14678. - struct timeval *tsum, *t0, *t1;
  14679. +static void tvadd(struct timeval *tsum, struct timeval *t0, struct timeval *t1)
  14680. {
  14681. tsum->tv_sec = t0->tv_sec + t1->tv_sec;
  14682. @@ -919,8 +905,7 @@
  14683. * tvsub - tdiff = t1 - t0
  14684. *-------------------------------------------------------------------------
  14685. */
  14686. -static void tvsub(tdiff, t1, t0)
  14687. - struct timeval *tdiff, *t1, *t0;
  14688. +static void tvsub(struct timeval *tdiff, struct timeval *t1, struct timeval *t0)
  14689. {
  14690. tdiff->tv_sec = t1->tv_sec - t0->tv_sec;
  14691. @@ -931,10 +916,7 @@
  14692. }
  14693. }
  14694. -static void
  14695. -psecs(l,cp)
  14696. -long l;
  14697. -register char *cp;
  14698. +static void psecs(long l, char *cp)
  14699. {
  14700. register int i;
  14701. @@ -958,26 +940,23 @@
  14702. /*
  14703. * N R E A D
  14704. */
  14705. -Nread( fd, buf, count )
  14706. -int fd;
  14707. -char *buf;
  14708. -int count;
  14709. +int Nread( int nfd, char *Nbuf, int count )
  14710. {
  14711. struct sockaddr_in from;
  14712. int len = sizeof(from);
  14713. register int cnt;
  14714. if( udp ) {
  14715. #if 0
  14716. - cnt = recvfrom( fd, buf, count, 0, &from, &len );
  14717. + cnt = recvfrom( nfd, Nbuf, count, 0, &from, &len );
  14718. #else
  14719. - cnt = recv( fd, buf, count, 0);
  14720. + cnt = recv( nfd, Nbuf, count, 0);
  14721. #endif
  14722. numCalls++;
  14723. } else {
  14724. if( b_flag )
  14725. - cnt = mread( fd, buf, count ); /* fill buf */
  14726. + cnt = mread( nfd, Nbuf, count ); /* fill buf */
  14727. else {
  14728. - cnt = read( fd, buf, count );
  14729. + cnt = read( nfd, Nbuf, count );
  14730. numCalls++;
  14731. }
  14732. if (touchdata && cnt > 0) {
  14733. @@ -994,17 +973,15 @@
  14734. * Nwrite -
  14735. *-------------------------------------------------------------------------
  14736. */
  14737. -Nwrite(fd, buf, count)
  14738. -int fd;
  14739. -char *buf;
  14740. -int count;
  14741. +int Nwrite(int nfd, char *Nbuf, int count)
  14742. {
  14743. register int cnt;
  14744. if (udp) {
  14745. again:
  14746. - if (atm) cnt = write(fd, buf, count);
  14747. - else cnt = sendto(fd, buf, count, 0, &sinhim, sizeof(sinhim));
  14748. + if (atm) cnt = write(nfd, Nbuf, count);
  14749. + else cnt = sendto(nfd, Nbuf, count, 0, (struct sockaddr *)&sinhim,
  14750. + sizeof(sinhim));
  14751. numCalls++;
  14752. if ( cnt<0 && errno == ENOBUFS ) {
  14753. delay(18000);
  14754. @@ -1012,7 +989,7 @@
  14755. goto again;
  14756. }
  14757. } else {
  14758. - cnt = write(fd, buf, count);
  14759. + cnt = write(nfd, Nbuf, count);
  14760. numCalls++;
  14761. }
  14762. if (cnt < 0) perror("WA:write");
  14763. @@ -1020,13 +997,13 @@
  14764. }
  14765. void
  14766. -delay(us)
  14767. +delay(int us)
  14768. {
  14769. struct timeval tv;
  14770. tv.tv_sec = 0;
  14771. tv.tv_usec = us;
  14772. - (void)select( 1, (char *)0, (char *)0, (char *)0, &tv );
  14773. + (void)select( 1, NULL, NULL, NULL, &tv );
  14774. }
  14775. /*
  14776. @@ -1038,17 +1015,13 @@
  14777. * network connections don't deliver data with the same
  14778. * grouping as it is written with. Written by Robert S. Miles, BRL.
  14779. */
  14780. -int
  14781. -mread(fd, bufp, n)
  14782. -int fd;
  14783. -register char *bufp;
  14784. -unsigned n;
  14785. +int mread(int mfd, char *bufp, unsigned n)
  14786. {
  14787. register unsigned count = 0;
  14788. register int nread;
  14789. do {
  14790. - nread = read(fd, bufp, n-count);
  14791. + nread = read(mfd, bufp, n-count);
  14792. numCalls++;
  14793. if(nread < 0) {
  14794. perror("ttcp_mread");
  14795. Index: linux-atm-2.4.1/src/debug/Makefile.in
  14796. ===================================================================
  14797. --- linux-atm-2.4.1.orig/src/debug/Makefile.in 2007-10-20 19:19:10.962253180 +0200
  14798. +++ linux-atm-2.4.1/src/debug/Makefile.in 2007-10-20 19:19:11.894306297 +0200
  14799. @@ -1,4 +1,4 @@
  14800. -# Makefile.in generated automatically by automake 1.4-p5 from Makefile.am
  14801. +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
  14802. # Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
  14803. # This Makefile.in is free software; the Free Software Foundation
  14804. @@ -129,8 +129,9 @@
  14805. DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
  14806. -TAR = gtar
  14807. +TAR = tar
  14808. GZIP_ENV = --best
  14809. +DEP_FILES = .deps/delay.P .deps/svctor.P
  14810. SOURCES = $(delay_SOURCES) $(svctor_SOURCES)
  14811. OBJECTS = $(delay_OBJECTS) $(svctor_OBJECTS)
  14812. @@ -138,9 +139,9 @@
  14813. .SUFFIXES:
  14814. .SUFFIXES: .S .c .lo .o .obj .s
  14815. $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
  14816. - cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps src/debug/Makefile
  14817. + cd $(top_srcdir) && $(AUTOMAKE) --gnu src/debug/Makefile
  14818. -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  14819. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
  14820. cd $(top_builddir) \
  14821. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
  14822. @@ -154,9 +155,6 @@
  14823. maintainer-clean-noinstPROGRAMS:
  14824. -.c.o:
  14825. - $(COMPILE) -c $<
  14826. -
  14827. # FIXME: We should only use cygpath when building on Windows,
  14828. # and only if it is available.
  14829. .c.obj:
  14830. @@ -179,9 +177,6 @@
  14831. maintainer-clean-compile:
  14832. -.c.lo:
  14833. - $(LIBTOOL) --mode=compile $(COMPILE) -c $<
  14834. -
  14835. .s.lo:
  14836. $(LIBTOOL) --mode=compile $(COMPILE) -c $<
  14837. @@ -224,7 +219,7 @@
  14838. awk ' { files[$$0] = 1; } \
  14839. END { for (i in files) print i; }'`; \
  14840. test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
  14841. - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
  14842. + || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags $$unique $(LISP))
  14843. mostlyclean-tags:
  14844. @@ -240,6 +235,11 @@
  14845. subdir = src/debug
  14846. distdir: $(DISTFILES)
  14847. + here=`cd $(top_builddir) && pwd`; \
  14848. + top_distdir=`cd $(top_distdir) && pwd`; \
  14849. + distdir=`cd $(distdir) && pwd`; \
  14850. + cd $(top_srcdir) \
  14851. + && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu src/debug/Makefile
  14852. @for file in $(DISTFILES); do \
  14853. d=$(srcdir); \
  14854. if test -d $$d/$$file; then \
  14855. @@ -250,11 +250,38 @@
  14856. || cp -p $$d/$$file $(distdir)/$$file || :; \
  14857. fi; \
  14858. done
  14859. -delay.o: delay.c ../../config.h ../../src/include/atm.h \
  14860. - ../../src/include/stdint.h
  14861. -svctor.o: svctor.c ../../config.h ../../src/include/atm.h \
  14862. - ../../src/include/stdint.h
  14863. +DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
  14864. +
  14865. +-include $(DEP_FILES)
  14866. +
  14867. +mostlyclean-depend:
  14868. +
  14869. +clean-depend:
  14870. +
  14871. +distclean-depend:
  14872. + -rm -rf .deps
  14873. +
  14874. +maintainer-clean-depend:
  14875. +
  14876. +%.o: %.c
  14877. + @echo '$(COMPILE) -c $<'; \
  14878. + $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
  14879. + @-cp .deps/$(*F).pp .deps/$(*F).P; \
  14880. + tr ' ' '\012' < .deps/$(*F).pp \
  14881. + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
  14882. + >> .deps/$(*F).P; \
  14883. + rm .deps/$(*F).pp
  14884. +
  14885. +%.lo: %.c
  14886. + @echo '$(LTCOMPILE) -c $<'; \
  14887. + $(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
  14888. + @-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \
  14889. + < .deps/$(*F).pp > .deps/$(*F).P; \
  14890. + tr ' ' '\012' < .deps/$(*F).pp \
  14891. + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
  14892. + >> .deps/$(*F).P; \
  14893. + rm -f .deps/$(*F).pp
  14894. info-am:
  14895. info: info-am
  14896. dvi-am:
  14897. @@ -291,27 +318,27 @@
  14898. maintainer-clean-generic:
  14899. mostlyclean-am: mostlyclean-noinstPROGRAMS mostlyclean-compile \
  14900. - mostlyclean-libtool mostlyclean-tags \
  14901. + mostlyclean-libtool mostlyclean-tags mostlyclean-depend \
  14902. mostlyclean-generic
  14903. mostlyclean: mostlyclean-am
  14904. clean-am: clean-noinstPROGRAMS clean-compile clean-libtool clean-tags \
  14905. - clean-generic mostlyclean-am
  14906. + clean-depend clean-generic mostlyclean-am
  14907. clean: clean-am
  14908. distclean-am: distclean-noinstPROGRAMS distclean-compile \
  14909. - distclean-libtool distclean-tags distclean-generic \
  14910. - clean-am
  14911. + distclean-libtool distclean-tags distclean-depend \
  14912. + distclean-generic clean-am
  14913. -rm -f libtool
  14914. distclean: distclean-am
  14915. maintainer-clean-am: maintainer-clean-noinstPROGRAMS \
  14916. maintainer-clean-compile maintainer-clean-libtool \
  14917. - maintainer-clean-tags maintainer-clean-generic \
  14918. - distclean-am
  14919. + maintainer-clean-tags maintainer-clean-depend \
  14920. + maintainer-clean-generic distclean-am
  14921. @echo "This command is intended for maintainers to use;"
  14922. @echo "it deletes files that may require special tools to rebuild."
  14923. @@ -322,12 +349,14 @@
  14924. mostlyclean-compile distclean-compile clean-compile \
  14925. maintainer-clean-compile mostlyclean-libtool distclean-libtool \
  14926. clean-libtool maintainer-clean-libtool tags mostlyclean-tags \
  14927. -distclean-tags clean-tags maintainer-clean-tags distdir info-am info \
  14928. -dvi-am dvi check check-am installcheck-am installcheck install-exec-am \
  14929. -install-exec install-data-am install-data install-am install \
  14930. -uninstall-am uninstall all-redirect all-am all installdirs \
  14931. -mostlyclean-generic distclean-generic clean-generic \
  14932. -maintainer-clean-generic clean mostlyclean distclean maintainer-clean
  14933. +distclean-tags clean-tags maintainer-clean-tags distdir \
  14934. +mostlyclean-depend distclean-depend clean-depend \
  14935. +maintainer-clean-depend info-am info dvi-am dvi check check-am \
  14936. +installcheck-am installcheck install-exec-am install-exec \
  14937. +install-data-am install-data install-am install uninstall-am uninstall \
  14938. +all-redirect all-am all installdirs mostlyclean-generic \
  14939. +distclean-generic clean-generic maintainer-clean-generic clean \
  14940. +mostlyclean distclean maintainer-clean
  14941. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  14942. Index: linux-atm-2.4.1/src/qgen/Makefile.in
  14943. ===================================================================
  14944. --- linux-atm-2.4.1.orig/src/qgen/Makefile.in 2007-10-20 19:19:10.966253409 +0200
  14945. +++ linux-atm-2.4.1/src/qgen/Makefile.in 2007-10-20 19:19:11.898306522 +0200
  14946. @@ -1,4 +1,4 @@
  14947. -# Makefile.in generated automatically by automake 1.4-p5 from Makefile.am
  14948. +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
  14949. # Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
  14950. # This Makefile.in is free software; the Free Software Foundation
  14951. @@ -88,8 +88,7 @@
  14952. noinst_PROGRAMS = qgen q.dump # q40.out.o
  14953. check_PROGRAMS = q.test
  14954. -qgen_SOURCES = common.c common.h file.c file.h first.c ql_y.y ql_l.l qgen.c \
  14955. - qgen.h second.c third.c
  14956. +qgen_SOURCES = common.c common.h file.c file.h first.c ql_y.y ql_l.l qgen.c qgen.h second.c third.c
  14957. qgen_LDADD = -lfl
  14958. @@ -108,17 +107,10 @@
  14959. EXTRA_DIST = ql_y.h incl.pl mknl.pl msg.fmt TODO
  14960. -CLEANFILES = q.out.h q.out.c q.test.c qd.out.h qd.out.c qd.dump.c qd.test.c \
  14961. - default.nl # q40.out.h q40.out.c q40.test.c
  14962. +CLEANFILES = q.out.h q.out.c q.test.c qd.out.h qd.out.c qd.dump.c qd.test.c default.nl # q40.out.h q40.out.c q40.test.c
  14963. -NLS = atm_ai_msg atm_ai_ie atm_loc atm_cv atm_pu atm_na atm_cond atm_ie \
  14964. - atm_msg atm_np atm_ton atm_sat atm_prs atm_scrn atm_vpa atm_poe \
  14965. - q2931_cs atm_td atm_bc atm_tc atm_stc atm_upcc q2931_proto atm_flag \
  14966. - atm_aalp atm_fd atm_tag atm_l2 atm_l3 atm_tt atm_mc atm_hl atm_imd \
  14967. - atm_tdl atm_tni atm_nip atm_shi atm_oci atm_unfm atm_ofi atm_irs \
  14968. - atm_it atm_lit atm_lsi atm_tcs atm_css atm_eqo atm_eqp atm_aap \
  14969. - atm_asp atm_tor
  14970. +NLS = atm_ai_msg atm_ai_ie atm_loc atm_cv atm_pu atm_na atm_cond atm_ie atm_msg atm_np atm_ton atm_sat atm_prs atm_scrn atm_vpa atm_poe q2931_cs atm_td atm_bc atm_tc atm_stc atm_upcc q2931_proto atm_flag atm_aalp atm_fd atm_tag atm_l2 atm_l3 atm_tt atm_mc atm_hl atm_imd atm_tdl atm_tni atm_nip atm_shi atm_oci atm_unfm atm_ofi atm_irs atm_it atm_lit atm_lsi atm_tcs atm_css atm_eqo atm_eqp atm_aap atm_asp atm_tor
  14971. SYMFILES = uni.h $(shell @PERL@ incl.pl $(CFLAGS) linux/atmsap.h)
  14972. mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  14973. @@ -155,8 +147,11 @@
  14974. DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
  14975. -TAR = gtar
  14976. +TAR = tar
  14977. GZIP_ENV = --best
  14978. +DEP_FILES = .deps/common.P .deps/file.P .deps/first.P .deps/qgen.P \
  14979. +.deps/ql_l.P .deps/ql_y.P .deps/qlib.P .deps/qtest.P .deps/second.P \
  14980. +.deps/third.P
  14981. SOURCES = $(q_test_SOURCES) $(qgen_SOURCES) $(q_dump_SOURCES) $(EXTRA_q_dump_SOURCES)
  14982. OBJECTS = $(q_test_OBJECTS) $(qgen_OBJECTS) $(q_dump_OBJECTS)
  14983. @@ -164,9 +159,9 @@
  14984. .SUFFIXES:
  14985. .SUFFIXES: .S .c .l .lo .o .obj .s .y
  14986. $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
  14987. - cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps src/qgen/Makefile
  14988. + cd $(top_srcdir) && $(AUTOMAKE) --gnu src/qgen/Makefile
  14989. -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  14990. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
  14991. cd $(top_builddir) \
  14992. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
  14993. @@ -189,9 +184,6 @@
  14994. maintainer-clean-noinstPROGRAMS:
  14995. -.c.o:
  14996. - $(COMPILE) -c $<
  14997. -
  14998. # FIXME: We should only use cygpath when building on Windows,
  14999. # and only if it is available.
  15000. .c.obj:
  15001. @@ -214,9 +206,6 @@
  15002. maintainer-clean-compile:
  15003. -.c.lo:
  15004. - $(LIBTOOL) --mode=compile $(COMPILE) -c $<
  15005. -
  15006. .s.lo:
  15007. $(LIBTOOL) --mode=compile $(COMPILE) -c $<
  15008. @@ -272,7 +261,7 @@
  15009. awk ' { files[$$0] = 1; } \
  15010. END { for (i in files) print i; }'`; \
  15011. test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
  15012. - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
  15013. + || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags $$unique $(LISP))
  15014. mostlyclean-tags:
  15015. @@ -288,6 +277,11 @@
  15016. subdir = src/qgen
  15017. distdir: $(DISTFILES)
  15018. + here=`cd $(top_builddir) && pwd`; \
  15019. + top_distdir=`cd $(top_distdir) && pwd`; \
  15020. + distdir=`cd $(distdir) && pwd`; \
  15021. + cd $(top_srcdir) \
  15022. + && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu src/qgen/Makefile
  15023. @for file in $(DISTFILES); do \
  15024. d=$(srcdir); \
  15025. if test -d $$d/$$file; then \
  15026. @@ -298,15 +292,38 @@
  15027. || cp -p $$d/$$file $(distdir)/$$file || :; \
  15028. fi; \
  15029. done
  15030. -common.o: common.c ../../config.h common.h
  15031. -file.o: file.c ../../config.h common.h file.h
  15032. -first.o: first.c ../../config.h common.h qgen.h file.h
  15033. -qgen.o: qgen.c ../../config.h common.h file.h qgen.h
  15034. -ql_l.o: ql_l.c ../../config.h common.h qgen.h ql_y.h
  15035. -ql_y.o: ql_y.c ../../config.h common.h qgen.h file.h
  15036. -second.o: second.c ../../config.h common.h qgen.h file.h
  15037. -third.o: third.c ../../config.h common.h qgen.h file.h
  15038. +DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
  15039. +
  15040. +-include $(DEP_FILES)
  15041. +
  15042. +mostlyclean-depend:
  15043. +
  15044. +clean-depend:
  15045. +
  15046. +distclean-depend:
  15047. + -rm -rf .deps
  15048. +
  15049. +maintainer-clean-depend:
  15050. +
  15051. +%.o: %.c
  15052. + @echo '$(COMPILE) -c $<'; \
  15053. + $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
  15054. + @-cp .deps/$(*F).pp .deps/$(*F).P; \
  15055. + tr ' ' '\012' < .deps/$(*F).pp \
  15056. + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
  15057. + >> .deps/$(*F).P; \
  15058. + rm .deps/$(*F).pp
  15059. +
  15060. +%.lo: %.c
  15061. + @echo '$(LTCOMPILE) -c $<'; \
  15062. + $(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
  15063. + @-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \
  15064. + < .deps/$(*F).pp > .deps/$(*F).P; \
  15065. + tr ' ' '\012' < .deps/$(*F).pp \
  15066. + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
  15067. + >> .deps/$(*F).P; \
  15068. + rm -f .deps/$(*F).pp
  15069. info-am:
  15070. info: info-am
  15071. dvi-am:
  15072. @@ -344,21 +361,22 @@
  15073. -rm -f config.cache config.log stamp-h stamp-h[0-9]*
  15074. maintainer-clean-generic:
  15075. - -test -z "ql_llql_yhql_yc" || rm -f ql_ll ql_yh ql_yc
  15076. + -test -z "ql_lcql_yhql_yc" || rm -f ql_lc ql_yh ql_yc
  15077. mostlyclean-am: mostlyclean-checkPROGRAMS mostlyclean-noinstPROGRAMS \
  15078. mostlyclean-compile mostlyclean-libtool \
  15079. - mostlyclean-tags mostlyclean-generic
  15080. + mostlyclean-tags mostlyclean-depend mostlyclean-generic
  15081. mostlyclean: mostlyclean-am
  15082. clean-am: clean-checkPROGRAMS clean-noinstPROGRAMS clean-compile \
  15083. - clean-libtool clean-tags clean-generic mostlyclean-am
  15084. + clean-libtool clean-tags clean-depend clean-generic \
  15085. + mostlyclean-am
  15086. clean: clean-am
  15087. distclean-am: distclean-checkPROGRAMS distclean-noinstPROGRAMS \
  15088. distclean-compile distclean-libtool distclean-tags \
  15089. - distclean-generic clean-am
  15090. + distclean-depend distclean-generic clean-am
  15091. -rm -f libtool
  15092. distclean: distclean-am
  15093. @@ -366,8 +384,8 @@
  15094. maintainer-clean-am: maintainer-clean-checkPROGRAMS \
  15095. maintainer-clean-noinstPROGRAMS \
  15096. maintainer-clean-compile maintainer-clean-libtool \
  15097. - maintainer-clean-tags maintainer-clean-generic \
  15098. - distclean-am
  15099. + maintainer-clean-tags maintainer-clean-depend \
  15100. + maintainer-clean-generic distclean-am
  15101. @echo "This command is intended for maintainers to use;"
  15102. @echo "it deletes files that may require special tools to rebuild."
  15103. @@ -380,12 +398,14 @@
  15104. mostlyclean-compile distclean-compile clean-compile \
  15105. maintainer-clean-compile mostlyclean-libtool distclean-libtool \
  15106. clean-libtool maintainer-clean-libtool tags mostlyclean-tags \
  15107. -distclean-tags clean-tags maintainer-clean-tags distdir info-am info \
  15108. -dvi-am dvi check check-am installcheck-am installcheck install-exec-am \
  15109. -install-exec install-data-am install-data install-am install \
  15110. -uninstall-am uninstall all-redirect all-am all installdirs \
  15111. -mostlyclean-generic distclean-generic clean-generic \
  15112. -maintainer-clean-generic clean mostlyclean distclean maintainer-clean
  15113. +distclean-tags clean-tags maintainer-clean-tags distdir \
  15114. +mostlyclean-depend distclean-depend clean-depend \
  15115. +maintainer-clean-depend info-am info dvi-am dvi check check-am \
  15116. +installcheck-am installcheck install-exec-am install-exec \
  15117. +install-data-am install-data install-am install uninstall-am uninstall \
  15118. +all-redirect all-am all installdirs mostlyclean-generic \
  15119. +distclean-generic clean-generic maintainer-clean-generic clean \
  15120. +mostlyclean distclean maintainer-clean
  15121. default.nl: mknl.pl $(SYMFILES)
  15122. Index: linux-atm-2.4.1/src/qgen/ql_l.c
  15123. ===================================================================
  15124. --- linux-atm-2.4.1.orig/src/qgen/ql_l.c 2007-10-20 19:19:10.974253866 +0200
  15125. +++ linux-atm-2.4.1/src/qgen/ql_l.c 2007-10-20 19:19:11.906306980 +0200
  15126. @@ -1,32 +1,85 @@
  15127. -/* A lexical scanner generated by flex */
  15128. -/* Scanner skeleton version:
  15129. - * $Header: /home/daffy/u0/vern/flex/RCS/flex.skl,v 2.91 96/09/10 16:58:48 vern Exp $
  15130. - */
  15131. +#line 3 "lex.yy.c"
  15132. +
  15133. +#define YY_INT_ALIGNED short int
  15134. +
  15135. +/* A lexical scanner generated by flex */
  15136. #define FLEX_SCANNER
  15137. #define YY_FLEX_MAJOR_VERSION 2
  15138. #define YY_FLEX_MINOR_VERSION 5
  15139. +#define YY_FLEX_SUBMINOR_VERSION 31
  15140. +#if YY_FLEX_SUBMINOR_VERSION > 0
  15141. +#define FLEX_BETA
  15142. +#endif
  15143. +/* First, we deal with platform-specific or compiler-specific issues. */
  15144. +
  15145. +/* begin standard C headers. */
  15146. #include <stdio.h>
  15147. -#include <unistd.h>
  15148. +#include <string.h>
  15149. +#include <errno.h>
  15150. +#include <stdlib.h>
  15151. +/* end standard C headers. */
  15152. -/* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */
  15153. -#ifdef c_plusplus
  15154. -#ifndef __cplusplus
  15155. -#define __cplusplus
  15156. +/* flex integer type definitions */
  15157. +
  15158. +#ifndef FLEXINT_H
  15159. +#define FLEXINT_H
  15160. +
  15161. +/* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
  15162. +
  15163. +#if defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L
  15164. +#include <inttypes.h>
  15165. +typedef int8_t flex_int8_t;
  15166. +typedef uint8_t flex_uint8_t;
  15167. +typedef int16_t flex_int16_t;
  15168. +typedef uint16_t flex_uint16_t;
  15169. +typedef int32_t flex_int32_t;
  15170. +typedef uint32_t flex_uint32_t;
  15171. +#else
  15172. +typedef signed char flex_int8_t;
  15173. +typedef short int flex_int16_t;
  15174. +typedef int flex_int32_t;
  15175. +typedef unsigned char flex_uint8_t;
  15176. +typedef unsigned short int flex_uint16_t;
  15177. +typedef unsigned int flex_uint32_t;
  15178. +#endif /* ! C99 */
  15179. +
  15180. +/* Limits of integral types. */
  15181. +#ifndef INT8_MIN
  15182. +#define INT8_MIN (-128)
  15183. +#endif
  15184. +#ifndef INT16_MIN
  15185. +#define INT16_MIN (-32767-1)
  15186. +#endif
  15187. +#ifndef INT32_MIN
  15188. +#define INT32_MIN (-2147483647-1)
  15189. #endif
  15190. +#ifndef INT8_MAX
  15191. +#define INT8_MAX (127)
  15192. +#endif
  15193. +#ifndef INT16_MAX
  15194. +#define INT16_MAX (32767)
  15195. +#endif
  15196. +#ifndef INT32_MAX
  15197. +#define INT32_MAX (2147483647)
  15198. +#endif
  15199. +#ifndef UINT8_MAX
  15200. +#define UINT8_MAX (255U)
  15201. +#endif
  15202. +#ifndef UINT16_MAX
  15203. +#define UINT16_MAX (65535U)
  15204. +#endif
  15205. +#ifndef UINT32_MAX
  15206. +#define UINT32_MAX (4294967295U)
  15207. #endif
  15208. +#endif /* ! FLEXINT_H */
  15209. #ifdef __cplusplus
  15210. -#include <stdlib.h>
  15211. -
  15212. -/* Use prototypes in function declarations. */
  15213. -#define YY_USE_PROTOS
  15214. -
  15215. /* The "const" storage-class-modifier is valid. */
  15216. #define YY_USE_CONST
  15217. @@ -34,34 +87,17 @@
  15218. #if __STDC__
  15219. -#define YY_USE_PROTOS
  15220. #define YY_USE_CONST
  15221. #endif /* __STDC__ */
  15222. #endif /* ! __cplusplus */
  15223. -#ifdef __TURBOC__
  15224. - #pragma warn -rch
  15225. - #pragma warn -use
  15226. -#include <io.h>
  15227. -#include <stdlib.h>
  15228. -#define YY_USE_CONST
  15229. -#define YY_USE_PROTOS
  15230. -#endif
  15231. -
  15232. #ifdef YY_USE_CONST
  15233. #define yyconst const
  15234. #else
  15235. #define yyconst
  15236. #endif
  15237. -
  15238. -#ifdef YY_USE_PROTOS
  15239. -#define YY_PROTO(proto) proto
  15240. -#else
  15241. -#define YY_PROTO(proto) ()
  15242. -#endif
  15243. -
  15244. /* Returned upon end-of-file. */
  15245. #define YY_NULL 0
  15246. @@ -76,71 +112,71 @@
  15247. * but we do it the disgusting crufty way forced on us by the ()-less
  15248. * definition of BEGIN.
  15249. */
  15250. -#define BEGIN yy_start = 1 + 2 *
  15251. +#define BEGIN (yy_start) = 1 + 2 *
  15252. /* Translate the current start state into a value that can be later handed
  15253. * to BEGIN to return to the state. The YYSTATE alias is for lex
  15254. * compatibility.
  15255. */
  15256. -#define YY_START ((yy_start - 1) / 2)
  15257. +#define YY_START (((yy_start) - 1) / 2)
  15258. #define YYSTATE YY_START
  15259. /* Action number for EOF rule of a given start state. */
  15260. #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
  15261. /* Special action meaning "start processing a new file". */
  15262. -#define YY_NEW_FILE yyrestart( yyin )
  15263. +#define YY_NEW_FILE yyrestart(yyin )
  15264. #define YY_END_OF_BUFFER_CHAR 0
  15265. /* Size of default input buffer. */
  15266. +#ifndef YY_BUF_SIZE
  15267. #define YY_BUF_SIZE 16384
  15268. +#endif
  15269. +#ifndef YY_TYPEDEF_YY_BUFFER_STATE
  15270. +#define YY_TYPEDEF_YY_BUFFER_STATE
  15271. typedef struct yy_buffer_state *YY_BUFFER_STATE;
  15272. +#endif
  15273. extern int yyleng;
  15274. +
  15275. extern FILE *yyin, *yyout;
  15276. #define EOB_ACT_CONTINUE_SCAN 0
  15277. #define EOB_ACT_END_OF_FILE 1
  15278. #define EOB_ACT_LAST_MATCH 2
  15279. -/* The funky do-while in the following #define is used to turn the definition
  15280. - * int a single C statement (which needs a semi-colon terminator). This
  15281. - * avoids problems with code like:
  15282. - *
  15283. - * if ( condition_holds )
  15284. - * yyless( 5 );
  15285. - * else
  15286. - * do_something_else();
  15287. - *
  15288. - * Prior to using the do-while the compiler would get upset at the
  15289. - * "else" because it interpreted the "if" statement as being all
  15290. - * done when it reached the ';' after the yyless() call.
  15291. - */
  15292. -
  15293. -/* Return all but the first 'n' matched characters back to the input stream. */
  15294. -
  15295. + #define YY_LESS_LINENO(n)
  15296. +
  15297. +/* Return all but the first "n" matched characters back to the input stream. */
  15298. #define yyless(n) \
  15299. do \
  15300. { \
  15301. /* Undo effects of setting up yytext. */ \
  15302. - *yy_cp = yy_hold_char; \
  15303. + int yyless_macro_arg = (n); \
  15304. + YY_LESS_LINENO(yyless_macro_arg);\
  15305. + *yy_cp = (yy_hold_char); \
  15306. YY_RESTORE_YY_MORE_OFFSET \
  15307. - yy_c_buf_p = yy_cp = yy_bp + n - YY_MORE_ADJ; \
  15308. + (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
  15309. YY_DO_BEFORE_ACTION; /* set up yytext again */ \
  15310. } \
  15311. while ( 0 )
  15312. -#define unput(c) yyunput( c, yytext_ptr )
  15313. +#define unput(c) yyunput( c, (yytext_ptr) )
  15314. /* The following is because we cannot portably get our hands on size_t
  15315. * (without autoconf's help, which isn't available because we want
  15316. * flex-generated scanners to compile on their own).
  15317. */
  15318. -typedef unsigned int yy_size_t;
  15319. +#ifndef YY_TYPEDEF_YY_SIZE_T
  15320. +#define YY_TYPEDEF_YY_SIZE_T
  15321. +typedef unsigned int yy_size_t;
  15322. +#endif
  15323. +#ifndef YY_STRUCT_YY_BUFFER_STATE
  15324. +#define YY_STRUCT_YY_BUFFER_STATE
  15325. struct yy_buffer_state
  15326. {
  15327. FILE *yy_input_file;
  15328. @@ -177,12 +213,16 @@
  15329. */
  15330. int yy_at_bol;
  15331. + int yy_bs_lineno; /**< The line count. */
  15332. + int yy_bs_column; /**< The column count. */
  15333. +
  15334. /* Whether to try to fill the input buffer when we reach the
  15335. * end of it.
  15336. */
  15337. int yy_fill_buffer;
  15338. int yy_buffer_status;
  15339. +
  15340. #define YY_BUFFER_NEW 0
  15341. #define YY_BUFFER_NORMAL 1
  15342. /* When an EOF's been seen but there's still some text to process
  15343. @@ -196,23 +236,33 @@
  15344. * just pointing yyin at a new input file.
  15345. */
  15346. #define YY_BUFFER_EOF_PENDING 2
  15347. +
  15348. };
  15349. +#endif /* !YY_STRUCT_YY_BUFFER_STATE */
  15350. -static YY_BUFFER_STATE yy_current_buffer = 0;
  15351. +/* Stack of input buffers. */
  15352. +static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */
  15353. +static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */
  15354. +static YY_BUFFER_STATE * yy_buffer_stack = 0; /**< Stack as an array. */
  15355. /* We provide macros for accessing buffer states in case in the
  15356. * future we want to put the buffer states in a more general
  15357. * "scanner state".
  15358. + *
  15359. + * Returns the top of the stack, or NULL.
  15360. */
  15361. -#define YY_CURRENT_BUFFER yy_current_buffer
  15362. +#define YY_CURRENT_BUFFER ( (yy_buffer_stack) \
  15363. + ? (yy_buffer_stack)[(yy_buffer_stack_top)] \
  15364. + : NULL)
  15365. +/* Same as previous macro, but useful when we know that the buffer stack is not
  15366. + * NULL or when we need an lvalue. For internal use only.
  15367. + */
  15368. +#define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)]
  15369. /* yy_hold_char holds the character lost when yytext is formed. */
  15370. static char yy_hold_char;
  15371. -
  15372. static int yy_n_chars; /* number of characters read into yy_ch_buf */
  15373. -
  15374. -
  15375. int yyleng;
  15376. /* Points to current character in buffer. */
  15377. @@ -225,66 +275,92 @@
  15378. */
  15379. static int yy_did_buffer_switch_on_eof;
  15380. -void yyrestart YY_PROTO(( FILE *input_file ));
  15381. -
  15382. -void yy_switch_to_buffer YY_PROTO(( YY_BUFFER_STATE new_buffer ));
  15383. -void yy_load_buffer_state YY_PROTO(( void ));
  15384. -YY_BUFFER_STATE yy_create_buffer YY_PROTO(( FILE *file, int size ));
  15385. -void yy_delete_buffer YY_PROTO(( YY_BUFFER_STATE b ));
  15386. -void yy_init_buffer YY_PROTO(( YY_BUFFER_STATE b, FILE *file ));
  15387. -void yy_flush_buffer YY_PROTO(( YY_BUFFER_STATE b ));
  15388. -#define YY_FLUSH_BUFFER yy_flush_buffer( yy_current_buffer )
  15389. -
  15390. -YY_BUFFER_STATE yy_scan_buffer YY_PROTO(( char *base, yy_size_t size ));
  15391. -YY_BUFFER_STATE yy_scan_string YY_PROTO(( yyconst char *yy_str ));
  15392. -YY_BUFFER_STATE yy_scan_bytes YY_PROTO(( yyconst char *bytes, int len ));
  15393. -
  15394. -static void *yy_flex_alloc YY_PROTO(( yy_size_t ));
  15395. -static void *yy_flex_realloc YY_PROTO(( void *, yy_size_t ));
  15396. -static void yy_flex_free YY_PROTO(( void * ));
  15397. +void yyrestart (FILE *input_file );
  15398. +void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer );
  15399. +YY_BUFFER_STATE yy_create_buffer (FILE *file,int size );
  15400. +void yy_delete_buffer (YY_BUFFER_STATE b );
  15401. +void yy_flush_buffer (YY_BUFFER_STATE b );
  15402. +void yypush_buffer_state (YY_BUFFER_STATE new_buffer );
  15403. +void yypop_buffer_state (void );
  15404. +
  15405. +static void yyensure_buffer_stack (void );
  15406. +static void yy_load_buffer_state (void );
  15407. +static void yy_init_buffer (YY_BUFFER_STATE b,FILE *file );
  15408. +
  15409. +#define YY_FLUSH_BUFFER yy_flush_buffer(YY_CURRENT_BUFFER )
  15410. +
  15411. +YY_BUFFER_STATE yy_scan_buffer (char *base,yy_size_t size );
  15412. +YY_BUFFER_STATE yy_scan_string (yyconst char *yy_str );
  15413. +YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,int len );
  15414. +
  15415. +void *yyalloc (yy_size_t );
  15416. +void *yyrealloc (void *,yy_size_t );
  15417. +void yyfree (void * );
  15418. #define yy_new_buffer yy_create_buffer
  15419. #define yy_set_interactive(is_interactive) \
  15420. { \
  15421. - if ( ! yy_current_buffer ) \
  15422. - yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
  15423. - yy_current_buffer->yy_is_interactive = is_interactive; \
  15424. + if ( ! YY_CURRENT_BUFFER ){ \
  15425. + yyensure_buffer_stack (); \
  15426. + YY_CURRENT_BUFFER_LVALUE = \
  15427. + yy_create_buffer(yyin,YY_BUF_SIZE ); \
  15428. + } \
  15429. + YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
  15430. }
  15431. #define yy_set_bol(at_bol) \
  15432. { \
  15433. - if ( ! yy_current_buffer ) \
  15434. - yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
  15435. - yy_current_buffer->yy_at_bol = at_bol; \
  15436. + if ( ! YY_CURRENT_BUFFER ){\
  15437. + yyensure_buffer_stack (); \
  15438. + YY_CURRENT_BUFFER_LVALUE = \
  15439. + yy_create_buffer(yyin,YY_BUF_SIZE ); \
  15440. + } \
  15441. + YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
  15442. }
  15443. -#define YY_AT_BOL() (yy_current_buffer->yy_at_bol)
  15444. +#define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
  15445. +
  15446. +/* Begin user sect3 */
  15447. typedef unsigned char YY_CHAR;
  15448. +
  15449. FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
  15450. +
  15451. typedef int yy_state_type;
  15452. +
  15453. +extern int yylineno;
  15454. +
  15455. +int yylineno = 1;
  15456. +
  15457. extern char *yytext;
  15458. #define yytext_ptr yytext
  15459. -static yy_state_type yy_get_previous_state YY_PROTO(( void ));
  15460. -static yy_state_type yy_try_NUL_trans YY_PROTO(( yy_state_type current_state ));
  15461. -static int yy_get_next_buffer YY_PROTO(( void ));
  15462. -static void yy_fatal_error YY_PROTO(( yyconst char msg[] ));
  15463. +static yy_state_type yy_get_previous_state (void );
  15464. +static yy_state_type yy_try_NUL_trans (yy_state_type current_state );
  15465. +static int yy_get_next_buffer (void );
  15466. +static void yy_fatal_error (yyconst char msg[] );
  15467. /* Done after the current pattern has been matched and before the
  15468. * corresponding action - sets up yytext.
  15469. */
  15470. #define YY_DO_BEFORE_ACTION \
  15471. - yytext_ptr = yy_bp; \
  15472. - yyleng = (int) (yy_cp - yy_bp); \
  15473. - yy_hold_char = *yy_cp; \
  15474. + (yytext_ptr) = yy_bp; \
  15475. + yyleng = (size_t) (yy_cp - yy_bp); \
  15476. + (yy_hold_char) = *yy_cp; \
  15477. *yy_cp = '\0'; \
  15478. - yy_c_buf_p = yy_cp;
  15479. + (yy_c_buf_p) = yy_cp;
  15480. #define YY_NUM_RULES 16
  15481. #define YY_END_OF_BUFFER 17
  15482. -static yyconst short int yy_accept[70] =
  15483. +/* This struct is not used in this scanner,
  15484. + but its presence is necessary. */
  15485. +struct yy_trans_info
  15486. + {
  15487. + flex_int32_t yy_verify;
  15488. + flex_int32_t yy_nxt;
  15489. + };
  15490. +static yyconst flex_int16_t yy_accept[70] =
  15491. { 0,
  15492. 10, 10, 17, 15, 10, 10, 15, 15, 9, 9,
  15493. 9, 9, 9, 9, 9, 9, 9, 10, 0, 0,
  15494. @@ -295,7 +371,7 @@
  15495. 7, 0, 0, 0, 0, 0, 11, 12, 0
  15496. } ;
  15497. -static yyconst int yy_ec[256] =
  15498. +static yyconst flex_int32_t yy_ec[256] =
  15499. { 0,
  15500. 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
  15501. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  15502. @@ -327,14 +403,14 @@
  15503. 1, 1, 1, 1, 1
  15504. } ;
  15505. -static yyconst int yy_meta[29] =
  15506. +static yyconst flex_int32_t yy_meta[29] =
  15507. { 0,
  15508. 1, 2, 2, 1, 3, 1, 4, 5, 5, 4,
  15509. 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
  15510. 4, 4, 4, 4, 4, 4, 4, 4
  15511. } ;
  15512. -static yyconst short int yy_base[75] =
  15513. +static yyconst flex_int16_t yy_base[75] =
  15514. { 0,
  15515. 0, 0, 99, 100, 27, 28, 0, 95, 0, 86,
  15516. 72, 85, 80, 71, 78, 64, 76, 31, 84, 85,
  15517. @@ -346,7 +422,7 @@
  15518. 48, 34, 53, 58
  15519. } ;
  15520. -static yyconst short int yy_def[75] =
  15521. +static yyconst flex_int16_t yy_def[75] =
  15522. { 0,
  15523. 69, 1, 69, 69, 69, 69, 70, 71, 72, 72,
  15524. 72, 72, 72, 72, 72, 72, 72, 69, 70, 71,
  15525. @@ -358,7 +434,7 @@
  15526. 69, 69, 69, 69
  15527. } ;
  15528. -static yyconst short int yy_nxt[129] =
  15529. +static yyconst flex_int16_t yy_nxt[129] =
  15530. { 0,
  15531. 4, 5, 6, 5, 7, 8, 9, 4, 4, 10,
  15532. 11, 12, 13, 9, 9, 9, 9, 14, 9, 15,
  15533. @@ -376,7 +452,7 @@
  15534. 69, 69, 69, 69, 69, 69, 69, 69
  15535. } ;
  15536. -static yyconst short int yy_chk[129] =
  15537. +static yyconst flex_int16_t yy_chk[129] =
  15538. { 0,
  15539. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  15540. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  15541. @@ -397,6 +473,9 @@
  15542. static yy_state_type yy_last_accepting_state;
  15543. static char *yy_last_accepting_cpos;
  15544. +extern int yy_flex_debug;
  15545. +int yy_flex_debug = 0;
  15546. +
  15547. /* The intent behind this definition is that it'll catch
  15548. * any uses of REJECT which flex missed.
  15549. */
  15550. @@ -406,7 +485,6 @@
  15551. #define YY_RESTORE_YY_MORE_OFFSET
  15552. char *yytext;
  15553. #line 1 "ql_l.l"
  15554. -#define INITIAL 0
  15555. #line 2 "ql_l.l"
  15556. /* ql.l - Q.2931 data structures description language */
  15557. @@ -451,7 +529,21 @@
  15558. return (*walk)->str;
  15559. }
  15560. -#line 455 "lex.yy.c"
  15561. +#line 533 "lex.yy.c"
  15562. +
  15563. +#define INITIAL 0
  15564. +
  15565. +#ifndef YY_NO_UNISTD_H
  15566. +/* Special case for "unistd.h", since it is non-ANSI. We include it way
  15567. + * down here because we want the user's section 1 to have been scanned first.
  15568. + * The user has a chance to override it with an option.
  15569. + */
  15570. +#include <unistd.h>
  15571. +#endif
  15572. +
  15573. +#ifndef YY_EXTRA_TYPE
  15574. +#define YY_EXTRA_TYPE void *
  15575. +#endif
  15576. /* Macros after this point can all be overridden by user definitions in
  15577. * section 1.
  15578. @@ -459,65 +551,30 @@
  15579. #ifndef YY_SKIP_YYWRAP
  15580. #ifdef __cplusplus
  15581. -extern "C" int yywrap YY_PROTO(( void ));
  15582. +extern "C" int yywrap (void );
  15583. #else
  15584. -extern int yywrap YY_PROTO(( void ));
  15585. +extern int yywrap (void );
  15586. #endif
  15587. #endif
  15588. -#ifndef YY_NO_UNPUT
  15589. -static void yyunput YY_PROTO(( int c, char *buf_ptr ));
  15590. -#endif
  15591. -
  15592. + static void yyunput (int c,char *buf_ptr );
  15593. +
  15594. #ifndef yytext_ptr
  15595. -static void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, int ));
  15596. +static void yy_flex_strncpy (char *,yyconst char *,int );
  15597. #endif
  15598. #ifdef YY_NEED_STRLEN
  15599. -static int yy_flex_strlen YY_PROTO(( yyconst char * ));
  15600. +static int yy_flex_strlen (yyconst char * );
  15601. #endif
  15602. #ifndef YY_NO_INPUT
  15603. +
  15604. #ifdef __cplusplus
  15605. -static int yyinput YY_PROTO(( void ));
  15606. +static int yyinput (void );
  15607. #else
  15608. -static int input YY_PROTO(( void ));
  15609. -#endif
  15610. -#endif
  15611. -
  15612. -#if YY_STACK_USED
  15613. -static int yy_start_stack_ptr = 0;
  15614. -static int yy_start_stack_depth = 0;
  15615. -static int *yy_start_stack = 0;
  15616. -#ifndef YY_NO_PUSH_STATE
  15617. -static void yy_push_state YY_PROTO(( int new_state ));
  15618. -#endif
  15619. -#ifndef YY_NO_POP_STATE
  15620. -static void yy_pop_state YY_PROTO(( void ));
  15621. -#endif
  15622. -#ifndef YY_NO_TOP_STATE
  15623. -static int yy_top_state YY_PROTO(( void ));
  15624. +static int input (void );
  15625. #endif
  15626. -#else
  15627. -#define YY_NO_PUSH_STATE 1
  15628. -#define YY_NO_POP_STATE 1
  15629. -#define YY_NO_TOP_STATE 1
  15630. -#endif
  15631. -
  15632. -#ifdef YY_MALLOC_DECL
  15633. -YY_MALLOC_DECL
  15634. -#else
  15635. -#if __STDC__
  15636. -#ifndef __cplusplus
  15637. -#include <stdlib.h>
  15638. -#endif
  15639. -#else
  15640. -/* Just try to get by without declaring the routines. This will fail
  15641. - * miserably on non-ANSI systems for which sizeof(size_t) != sizeof(int)
  15642. - * or sizeof(void*) != sizeof(int).
  15643. - */
  15644. -#endif
  15645. #endif
  15646. /* Amount of stuff to slurp up with each read. */
  15647. @@ -526,7 +583,6 @@
  15648. #endif
  15649. /* Copy whatever the last rule matched to the standard output. */
  15650. -
  15651. #ifndef ECHO
  15652. /* This used to be an fputs(), but since the string might contain NUL's,
  15653. * we now use fwrite().
  15654. @@ -539,9 +595,10 @@
  15655. */
  15656. #ifndef YY_INPUT
  15657. #define YY_INPUT(buf,result,max_size) \
  15658. - if ( yy_current_buffer->yy_is_interactive ) \
  15659. + if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
  15660. { \
  15661. - int c = '*', n; \
  15662. + int c = '*'; \
  15663. + size_t n; \
  15664. for ( n = 0; n < max_size && \
  15665. (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
  15666. buf[n] = (char) c; \
  15667. @@ -551,9 +608,22 @@
  15668. YY_FATAL_ERROR( "input in flex scanner failed" ); \
  15669. result = n; \
  15670. } \
  15671. - else if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \
  15672. - && ferror( yyin ) ) \
  15673. - YY_FATAL_ERROR( "input in flex scanner failed" );
  15674. + else \
  15675. + { \
  15676. + errno=0; \
  15677. + while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \
  15678. + { \
  15679. + if( errno != EINTR) \
  15680. + { \
  15681. + YY_FATAL_ERROR( "input in flex scanner failed" ); \
  15682. + break; \
  15683. + } \
  15684. + errno=0; \
  15685. + clearerr(yyin); \
  15686. + } \
  15687. + }\
  15688. +\
  15689. +
  15690. #endif
  15691. /* No semi-colon after return; correct usage is to write "yyterminate();" -
  15692. @@ -574,12 +644,18 @@
  15693. #define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
  15694. #endif
  15695. +/* end tables serialization structures and prototypes */
  15696. +
  15697. /* Default declaration of generated scanner - a define so the user can
  15698. * easily add parameters.
  15699. */
  15700. #ifndef YY_DECL
  15701. -#define YY_DECL int yylex YY_PROTO(( void ))
  15702. -#endif
  15703. +#define YY_DECL_IS_OURS 1
  15704. +
  15705. +extern int yylex (void);
  15706. +
  15707. +#define YY_DECL int yylex (void)
  15708. +#endif /* !YY_DECL */
  15709. /* Code executed at the beginning of each rule, after yytext and yyleng
  15710. * have been set up.
  15711. @@ -596,27 +672,29 @@
  15712. #define YY_RULE_SETUP \
  15713. YY_USER_ACTION
  15714. +/** The main scanner function which does all the work.
  15715. + */
  15716. YY_DECL
  15717. - {
  15718. +{
  15719. register yy_state_type yy_current_state;
  15720. - register char *yy_cp = NULL, *yy_bp = NULL;
  15721. + register char *yy_cp, *yy_bp;
  15722. register int yy_act;
  15723. -
  15724. +
  15725. #line 47 "ql_l.l"
  15726. -#line 609 "lex.yy.c"
  15727. +#line 687 "lex.yy.c"
  15728. - if ( yy_init )
  15729. + if ( (yy_init) )
  15730. {
  15731. - yy_init = 0;
  15732. + (yy_init) = 0;
  15733. #ifdef YY_USER_INIT
  15734. YY_USER_INIT;
  15735. #endif
  15736. - if ( ! yy_start )
  15737. - yy_start = 1; /* first start state */
  15738. + if ( ! (yy_start) )
  15739. + (yy_start) = 1; /* first start state */
  15740. if ( ! yyin )
  15741. yyin = stdin;
  15742. @@ -624,34 +702,36 @@
  15743. if ( ! yyout )
  15744. yyout = stdout;
  15745. - if ( ! yy_current_buffer )
  15746. - yy_current_buffer =
  15747. - yy_create_buffer( yyin, YY_BUF_SIZE );
  15748. + if ( ! YY_CURRENT_BUFFER ) {
  15749. + yyensure_buffer_stack ();
  15750. + YY_CURRENT_BUFFER_LVALUE =
  15751. + yy_create_buffer(yyin,YY_BUF_SIZE );
  15752. + }
  15753. - yy_load_buffer_state();
  15754. + yy_load_buffer_state( );
  15755. }
  15756. while ( 1 ) /* loops until end-of-file is reached */
  15757. {
  15758. - yy_cp = yy_c_buf_p;
  15759. + yy_cp = (yy_c_buf_p);
  15760. /* Support of yytext. */
  15761. - *yy_cp = yy_hold_char;
  15762. + *yy_cp = (yy_hold_char);
  15763. /* yy_bp points to the position in yy_ch_buf of the start of
  15764. * the current run.
  15765. */
  15766. yy_bp = yy_cp;
  15767. - yy_current_state = yy_start;
  15768. + yy_current_state = (yy_start);
  15769. yy_match:
  15770. do
  15771. {
  15772. register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
  15773. if ( yy_accept[yy_current_state] )
  15774. {
  15775. - yy_last_accepting_state = yy_current_state;
  15776. - yy_last_accepting_cpos = yy_cp;
  15777. + (yy_last_accepting_state) = yy_current_state;
  15778. + (yy_last_accepting_cpos) = yy_cp;
  15779. }
  15780. while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
  15781. {
  15782. @@ -668,24 +748,22 @@
  15783. yy_act = yy_accept[yy_current_state];
  15784. if ( yy_act == 0 )
  15785. { /* have to back up */
  15786. - yy_cp = yy_last_accepting_cpos;
  15787. - yy_current_state = yy_last_accepting_state;
  15788. + yy_cp = (yy_last_accepting_cpos);
  15789. + yy_current_state = (yy_last_accepting_state);
  15790. yy_act = yy_accept[yy_current_state];
  15791. }
  15792. YY_DO_BEFORE_ACTION;
  15793. -
  15794. do_action: /* This label is used only to access EOF actions. */
  15795. -
  15796. switch ( yy_act )
  15797. { /* beginning of action switch */
  15798. case 0: /* must back up */
  15799. /* undo the effects of YY_DO_BEFORE_ACTION */
  15800. - *yy_cp = yy_hold_char;
  15801. - yy_cp = yy_last_accepting_cpos;
  15802. - yy_current_state = yy_last_accepting_state;
  15803. + *yy_cp = (yy_hold_char);
  15804. + yy_cp = (yy_last_accepting_cpos);
  15805. + yy_current_state = (yy_last_accepting_state);
  15806. goto yy_find_action;
  15807. case 1:
  15808. @@ -735,6 +813,7 @@
  15809. return TOK_ID; }
  15810. YY_BREAK
  15811. case 10:
  15812. +/* rule 10 can match eol */
  15813. YY_RULE_SETUP
  15814. #line 59 "ql_l.l"
  15815. lineno += *yytext == '\n';
  15816. @@ -755,6 +834,7 @@
  15817. return TOK_STRING; }
  15818. YY_BREAK
  15819. case 14:
  15820. +/* rule 14 can match eol */
  15821. YY_RULE_SETUP
  15822. #line 66 "ql_l.l"
  15823. lineno++;
  15824. @@ -769,33 +849,33 @@
  15825. #line 69 "ql_l.l"
  15826. ECHO;
  15827. YY_BREAK
  15828. -#line 773 "lex.yy.c"
  15829. +#line 853 "lex.yy.c"
  15830. case YY_STATE_EOF(INITIAL):
  15831. yyterminate();
  15832. case YY_END_OF_BUFFER:
  15833. {
  15834. /* Amount of text matched not including the EOB char. */
  15835. - int yy_amount_of_matched_text = (int) (yy_cp - yytext_ptr) - 1;
  15836. + int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1;
  15837. /* Undo the effects of YY_DO_BEFORE_ACTION. */
  15838. - *yy_cp = yy_hold_char;
  15839. + *yy_cp = (yy_hold_char);
  15840. YY_RESTORE_YY_MORE_OFFSET
  15841. - if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_NEW )
  15842. + if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW )
  15843. {
  15844. /* We're scanning a new file or input source. It's
  15845. * possible that this happened because the user
  15846. * just pointed yyin at a new source and called
  15847. * yylex(). If so, then we have to assure
  15848. - * consistency between yy_current_buffer and our
  15849. + * consistency between YY_CURRENT_BUFFER and our
  15850. * globals. Here is the right place to do so, because
  15851. * this is the first action (other than possibly a
  15852. * back-up) that will match for the new input source.
  15853. */
  15854. - yy_n_chars = yy_current_buffer->yy_n_chars;
  15855. - yy_current_buffer->yy_input_file = yyin;
  15856. - yy_current_buffer->yy_buffer_status = YY_BUFFER_NORMAL;
  15857. + (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
  15858. + YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin;
  15859. + YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL;
  15860. }
  15861. /* Note that here we test for yy_c_buf_p "<=" to the position
  15862. @@ -805,13 +885,13 @@
  15863. * end-of-buffer state). Contrast this with the test
  15864. * in input().
  15865. */
  15866. - if ( yy_c_buf_p <= &yy_current_buffer->yy_ch_buf[yy_n_chars] )
  15867. + if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
  15868. { /* This was really a NUL. */
  15869. yy_state_type yy_next_state;
  15870. - yy_c_buf_p = yytext_ptr + yy_amount_of_matched_text;
  15871. + (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text;
  15872. - yy_current_state = yy_get_previous_state();
  15873. + yy_current_state = yy_get_previous_state( );
  15874. /* Okay, we're now positioned to make the NUL
  15875. * transition. We couldn't have
  15876. @@ -824,30 +904,30 @@
  15877. yy_next_state = yy_try_NUL_trans( yy_current_state );
  15878. - yy_bp = yytext_ptr + YY_MORE_ADJ;
  15879. + yy_bp = (yytext_ptr) + YY_MORE_ADJ;
  15880. if ( yy_next_state )
  15881. {
  15882. /* Consume the NUL. */
  15883. - yy_cp = ++yy_c_buf_p;
  15884. + yy_cp = ++(yy_c_buf_p);
  15885. yy_current_state = yy_next_state;
  15886. goto yy_match;
  15887. }
  15888. else
  15889. {
  15890. - yy_cp = yy_c_buf_p;
  15891. + yy_cp = (yy_c_buf_p);
  15892. goto yy_find_action;
  15893. }
  15894. }
  15895. - else switch ( yy_get_next_buffer() )
  15896. + else switch ( yy_get_next_buffer( ) )
  15897. {
  15898. case EOB_ACT_END_OF_FILE:
  15899. {
  15900. - yy_did_buffer_switch_on_eof = 0;
  15901. + (yy_did_buffer_switch_on_eof) = 0;
  15902. - if ( yywrap() )
  15903. + if ( yywrap( ) )
  15904. {
  15905. /* Note: because we've taken care in
  15906. * yy_get_next_buffer() to have set up
  15907. @@ -858,7 +938,7 @@
  15908. * YY_NULL, it'll still work - another
  15909. * YY_NULL will get returned.
  15910. */
  15911. - yy_c_buf_p = yytext_ptr + YY_MORE_ADJ;
  15912. + (yy_c_buf_p) = (yytext_ptr) + YY_MORE_ADJ;
  15913. yy_act = YY_STATE_EOF(YY_START);
  15914. goto do_action;
  15915. @@ -866,30 +946,30 @@
  15916. else
  15917. {
  15918. - if ( ! yy_did_buffer_switch_on_eof )
  15919. + if ( ! (yy_did_buffer_switch_on_eof) )
  15920. YY_NEW_FILE;
  15921. }
  15922. break;
  15923. }
  15924. case EOB_ACT_CONTINUE_SCAN:
  15925. - yy_c_buf_p =
  15926. - yytext_ptr + yy_amount_of_matched_text;
  15927. + (yy_c_buf_p) =
  15928. + (yytext_ptr) + yy_amount_of_matched_text;
  15929. - yy_current_state = yy_get_previous_state();
  15930. + yy_current_state = yy_get_previous_state( );
  15931. - yy_cp = yy_c_buf_p;
  15932. - yy_bp = yytext_ptr + YY_MORE_ADJ;
  15933. + yy_cp = (yy_c_buf_p);
  15934. + yy_bp = (yytext_ptr) + YY_MORE_ADJ;
  15935. goto yy_match;
  15936. case EOB_ACT_LAST_MATCH:
  15937. - yy_c_buf_p =
  15938. - &yy_current_buffer->yy_ch_buf[yy_n_chars];
  15939. + (yy_c_buf_p) =
  15940. + &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)];
  15941. - yy_current_state = yy_get_previous_state();
  15942. + yy_current_state = yy_get_previous_state( );
  15943. - yy_cp = yy_c_buf_p;
  15944. - yy_bp = yytext_ptr + YY_MORE_ADJ;
  15945. + yy_cp = (yy_c_buf_p);
  15946. + yy_bp = (yytext_ptr) + YY_MORE_ADJ;
  15947. goto yy_find_action;
  15948. }
  15949. break;
  15950. @@ -900,8 +980,7 @@
  15951. "fatal flex scanner internal error--no action found" );
  15952. } /* end of action switch */
  15953. } /* end of scanning one token */
  15954. - } /* end of yylex */
  15955. -
  15956. +} /* end of yylex */
  15957. /* yy_get_next_buffer - try to read in a new buffer
  15958. *
  15959. @@ -910,21 +989,20 @@
  15960. * EOB_ACT_CONTINUE_SCAN - continue scanning from current position
  15961. * EOB_ACT_END_OF_FILE - end of file
  15962. */
  15963. -
  15964. -static int yy_get_next_buffer()
  15965. - {
  15966. - register char *dest = yy_current_buffer->yy_ch_buf;
  15967. - register char *source = yytext_ptr;
  15968. +static int yy_get_next_buffer (void)
  15969. +{
  15970. + register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
  15971. + register char *source = (yytext_ptr);
  15972. register int number_to_move, i;
  15973. int ret_val;
  15974. - if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] )
  15975. + if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] )
  15976. YY_FATAL_ERROR(
  15977. "fatal flex scanner internal error--end of buffer missed" );
  15978. - if ( yy_current_buffer->yy_fill_buffer == 0 )
  15979. + if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 )
  15980. { /* Don't try to fill the buffer, so this is an EOF. */
  15981. - if ( yy_c_buf_p - yytext_ptr - YY_MORE_ADJ == 1 )
  15982. + if ( (yy_c_buf_p) - (yytext_ptr) - YY_MORE_ADJ == 1 )
  15983. {
  15984. /* We matched a single character, the EOB, so
  15985. * treat this as a final EOF.
  15986. @@ -944,34 +1022,30 @@
  15987. /* Try to read more data. */
  15988. /* First move last chars to start of buffer. */
  15989. - number_to_move = (int) (yy_c_buf_p - yytext_ptr) - 1;
  15990. + number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr)) - 1;
  15991. for ( i = 0; i < number_to_move; ++i )
  15992. *(dest++) = *(source++);
  15993. - if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_EOF_PENDING )
  15994. + if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING )
  15995. /* don't do the read, it's not guaranteed to return an EOF,
  15996. * just force an EOF
  15997. */
  15998. - yy_current_buffer->yy_n_chars = yy_n_chars = 0;
  15999. + YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0;
  16000. else
  16001. {
  16002. - int num_to_read =
  16003. - yy_current_buffer->yy_buf_size - number_to_move - 1;
  16004. + size_t num_to_read =
  16005. + YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
  16006. while ( num_to_read <= 0 )
  16007. { /* Not enough room in the buffer - grow it. */
  16008. -#ifdef YY_USES_REJECT
  16009. - YY_FATAL_ERROR(
  16010. -"input buffer overflow, can't enlarge buffer because scanner uses REJECT" );
  16011. -#else
  16012. /* just a shorter name for the current buffer */
  16013. - YY_BUFFER_STATE b = yy_current_buffer;
  16014. + YY_BUFFER_STATE b = YY_CURRENT_BUFFER;
  16015. int yy_c_buf_p_offset =
  16016. - (int) (yy_c_buf_p - b->yy_ch_buf);
  16017. + (int) ((yy_c_buf_p) - b->yy_ch_buf);
  16018. if ( b->yy_is_our_buffer )
  16019. {
  16020. @@ -984,8 +1058,7 @@
  16021. b->yy_ch_buf = (char *)
  16022. /* Include room in for 2 EOB chars. */
  16023. - yy_flex_realloc( (void *) b->yy_ch_buf,
  16024. - b->yy_buf_size + 2 );
  16025. + yyrealloc((void *) b->yy_ch_buf,b->yy_buf_size + 2 );
  16026. }
  16027. else
  16028. /* Can't grow it, we don't own it. */
  16029. @@ -995,35 +1068,35 @@
  16030. YY_FATAL_ERROR(
  16031. "fatal error - scanner input buffer overflow" );
  16032. - yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset];
  16033. + (yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset];
  16034. - num_to_read = yy_current_buffer->yy_buf_size -
  16035. + num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size -
  16036. number_to_move - 1;
  16037. -#endif
  16038. +
  16039. }
  16040. if ( num_to_read > YY_READ_BUF_SIZE )
  16041. num_to_read = YY_READ_BUF_SIZE;
  16042. /* Read in more data. */
  16043. - YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]),
  16044. - yy_n_chars, num_to_read );
  16045. + YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
  16046. + (yy_n_chars), num_to_read );
  16047. - yy_current_buffer->yy_n_chars = yy_n_chars;
  16048. + YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
  16049. }
  16050. - if ( yy_n_chars == 0 )
  16051. + if ( (yy_n_chars) == 0 )
  16052. {
  16053. if ( number_to_move == YY_MORE_ADJ )
  16054. {
  16055. ret_val = EOB_ACT_END_OF_FILE;
  16056. - yyrestart( yyin );
  16057. + yyrestart(yyin );
  16058. }
  16059. else
  16060. {
  16061. ret_val = EOB_ACT_LAST_MATCH;
  16062. - yy_current_buffer->yy_buffer_status =
  16063. + YY_CURRENT_BUFFER_LVALUE->yy_buffer_status =
  16064. YY_BUFFER_EOF_PENDING;
  16065. }
  16066. }
  16067. @@ -1031,32 +1104,31 @@
  16068. else
  16069. ret_val = EOB_ACT_CONTINUE_SCAN;
  16070. - yy_n_chars += number_to_move;
  16071. - yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR;
  16072. - yy_current_buffer->yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;
  16073. + (yy_n_chars) += number_to_move;
  16074. + YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR;
  16075. + YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR;
  16076. - yytext_ptr = &yy_current_buffer->yy_ch_buf[0];
  16077. + (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
  16078. return ret_val;
  16079. - }
  16080. -
  16081. +}
  16082. /* yy_get_previous_state - get the state just before the EOB char was reached */
  16083. -static yy_state_type yy_get_previous_state()
  16084. - {
  16085. + static yy_state_type yy_get_previous_state (void)
  16086. +{
  16087. register yy_state_type yy_current_state;
  16088. register char *yy_cp;
  16089. +
  16090. + yy_current_state = (yy_start);
  16091. - yy_current_state = yy_start;
  16092. -
  16093. - for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp )
  16094. + for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp )
  16095. {
  16096. register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
  16097. if ( yy_accept[yy_current_state] )
  16098. {
  16099. - yy_last_accepting_state = yy_current_state;
  16100. - yy_last_accepting_cpos = yy_cp;
  16101. + (yy_last_accepting_state) = yy_current_state;
  16102. + (yy_last_accepting_cpos) = yy_cp;
  16103. }
  16104. while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
  16105. {
  16106. @@ -1068,30 +1140,23 @@
  16107. }
  16108. return yy_current_state;
  16109. - }
  16110. -
  16111. +}
  16112. /* yy_try_NUL_trans - try to make a transition on the NUL character
  16113. *
  16114. * synopsis
  16115. * next_state = yy_try_NUL_trans( current_state );
  16116. */
  16117. -
  16118. -#ifdef YY_USE_PROTOS
  16119. -static yy_state_type yy_try_NUL_trans( yy_state_type yy_current_state )
  16120. -#else
  16121. -static yy_state_type yy_try_NUL_trans( yy_current_state )
  16122. -yy_state_type yy_current_state;
  16123. -#endif
  16124. - {
  16125. + static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state )
  16126. +{
  16127. register int yy_is_jam;
  16128. - register char *yy_cp = yy_c_buf_p;
  16129. + register char *yy_cp = (yy_c_buf_p);
  16130. register YY_CHAR yy_c = 1;
  16131. if ( yy_accept[yy_current_state] )
  16132. {
  16133. - yy_last_accepting_state = yy_current_state;
  16134. - yy_last_accepting_cpos = yy_cp;
  16135. + (yy_last_accepting_state) = yy_current_state;
  16136. + (yy_last_accepting_cpos) = yy_cp;
  16137. }
  16138. while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
  16139. {
  16140. @@ -1103,80 +1168,73 @@
  16141. yy_is_jam = (yy_current_state == 69);
  16142. return yy_is_jam ? 0 : yy_current_state;
  16143. - }
  16144. -
  16145. +}
  16146. -#ifndef YY_NO_UNPUT
  16147. -#ifdef YY_USE_PROTOS
  16148. -static void yyunput( int c, register char *yy_bp )
  16149. -#else
  16150. -static void yyunput( c, yy_bp )
  16151. -int c;
  16152. -register char *yy_bp;
  16153. -#endif
  16154. - {
  16155. - register char *yy_cp = yy_c_buf_p;
  16156. + static void yyunput (int c, register char * yy_bp )
  16157. +{
  16158. + register char *yy_cp;
  16159. +
  16160. + yy_cp = (yy_c_buf_p);
  16161. /* undo effects of setting up yytext */
  16162. - *yy_cp = yy_hold_char;
  16163. + *yy_cp = (yy_hold_char);
  16164. - if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
  16165. + if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
  16166. { /* need to shift things up to make room */
  16167. /* +2 for EOB chars. */
  16168. - register int number_to_move = yy_n_chars + 2;
  16169. - register char *dest = &yy_current_buffer->yy_ch_buf[
  16170. - yy_current_buffer->yy_buf_size + 2];
  16171. + register int number_to_move = (yy_n_chars) + 2;
  16172. + register char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[
  16173. + YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2];
  16174. register char *source =
  16175. - &yy_current_buffer->yy_ch_buf[number_to_move];
  16176. + &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move];
  16177. - while ( source > yy_current_buffer->yy_ch_buf )
  16178. + while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
  16179. *--dest = *--source;
  16180. yy_cp += (int) (dest - source);
  16181. yy_bp += (int) (dest - source);
  16182. - yy_current_buffer->yy_n_chars =
  16183. - yy_n_chars = yy_current_buffer->yy_buf_size;
  16184. + YY_CURRENT_BUFFER_LVALUE->yy_n_chars =
  16185. + (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_buf_size;
  16186. - if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
  16187. + if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
  16188. YY_FATAL_ERROR( "flex scanner push-back overflow" );
  16189. }
  16190. *--yy_cp = (char) c;
  16191. + (yytext_ptr) = yy_bp;
  16192. + (yy_hold_char) = *yy_cp;
  16193. + (yy_c_buf_p) = yy_cp;
  16194. +}
  16195. - yytext_ptr = yy_bp;
  16196. - yy_hold_char = *yy_cp;
  16197. - yy_c_buf_p = yy_cp;
  16198. - }
  16199. -#endif /* ifndef YY_NO_UNPUT */
  16200. -
  16201. -
  16202. +#ifndef YY_NO_INPUT
  16203. #ifdef __cplusplus
  16204. -static int yyinput()
  16205. + static int yyinput (void)
  16206. #else
  16207. -static int input()
  16208. + static int input (void)
  16209. #endif
  16210. - {
  16211. - int c;
  16212. - *yy_c_buf_p = yy_hold_char;
  16213. +{
  16214. + int c;
  16215. +
  16216. + *(yy_c_buf_p) = (yy_hold_char);
  16217. - if ( *yy_c_buf_p == YY_END_OF_BUFFER_CHAR )
  16218. + if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR )
  16219. {
  16220. /* yy_c_buf_p now points to the character we want to return.
  16221. * If this occurs *before* the EOB characters, then it's a
  16222. * valid NUL; if not, then we've hit the end of the buffer.
  16223. */
  16224. - if ( yy_c_buf_p < &yy_current_buffer->yy_ch_buf[yy_n_chars] )
  16225. + if ( (yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
  16226. /* This was really a NUL. */
  16227. - *yy_c_buf_p = '\0';
  16228. + *(yy_c_buf_p) = '\0';
  16229. else
  16230. { /* need more input */
  16231. - int offset = yy_c_buf_p - yytext_ptr;
  16232. - ++yy_c_buf_p;
  16233. + int offset = (yy_c_buf_p) - (yytext_ptr);
  16234. + ++(yy_c_buf_p);
  16235. - switch ( yy_get_next_buffer() )
  16236. + switch ( yy_get_next_buffer( ) )
  16237. {
  16238. case EOB_ACT_LAST_MATCH:
  16239. /* This happens because yy_g_n_b()
  16240. @@ -1190,16 +1248,16 @@
  16241. */
  16242. /* Reset buffer status. */
  16243. - yyrestart( yyin );
  16244. + yyrestart(yyin );
  16245. - /* fall through */
  16246. + /*FALLTHROUGH*/
  16247. case EOB_ACT_END_OF_FILE:
  16248. {
  16249. - if ( yywrap() )
  16250. + if ( yywrap( ) )
  16251. return EOF;
  16252. - if ( ! yy_did_buffer_switch_on_eof )
  16253. + if ( ! (yy_did_buffer_switch_on_eof) )
  16254. YY_NEW_FILE;
  16255. #ifdef __cplusplus
  16256. return yyinput();
  16257. @@ -1209,90 +1267,92 @@
  16258. }
  16259. case EOB_ACT_CONTINUE_SCAN:
  16260. - yy_c_buf_p = yytext_ptr + offset;
  16261. + (yy_c_buf_p) = (yytext_ptr) + offset;
  16262. break;
  16263. }
  16264. }
  16265. }
  16266. - c = *(unsigned char *) yy_c_buf_p; /* cast for 8-bit char's */
  16267. - *yy_c_buf_p = '\0'; /* preserve yytext */
  16268. - yy_hold_char = *++yy_c_buf_p;
  16269. -
  16270. + c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */
  16271. + *(yy_c_buf_p) = '\0'; /* preserve yytext */
  16272. + (yy_hold_char) = *++(yy_c_buf_p);
  16273. return c;
  16274. - }
  16275. -
  16276. -
  16277. -#ifdef YY_USE_PROTOS
  16278. -void yyrestart( FILE *input_file )
  16279. -#else
  16280. -void yyrestart( input_file )
  16281. -FILE *input_file;
  16282. -#endif
  16283. - {
  16284. - if ( ! yy_current_buffer )
  16285. - yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE );
  16286. +}
  16287. +#endif /* ifndef YY_NO_INPUT */
  16288. - yy_init_buffer( yy_current_buffer, input_file );
  16289. - yy_load_buffer_state();
  16290. +/** Immediately switch to a different input stream.
  16291. + * @param input_file A readable stream.
  16292. + *
  16293. + * @note This function does not reset the start condition to @c INITIAL .
  16294. + */
  16295. + void yyrestart (FILE * input_file )
  16296. +{
  16297. +
  16298. + if ( ! YY_CURRENT_BUFFER ){
  16299. + yyensure_buffer_stack ();
  16300. + YY_CURRENT_BUFFER_LVALUE =
  16301. + yy_create_buffer(yyin,YY_BUF_SIZE );
  16302. }
  16303. + yy_init_buffer(YY_CURRENT_BUFFER,input_file );
  16304. + yy_load_buffer_state( );
  16305. +}
  16306. -#ifdef YY_USE_PROTOS
  16307. -void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer )
  16308. -#else
  16309. -void yy_switch_to_buffer( new_buffer )
  16310. -YY_BUFFER_STATE new_buffer;
  16311. -#endif
  16312. - {
  16313. - if ( yy_current_buffer == new_buffer )
  16314. +/** Switch to a different input buffer.
  16315. + * @param new_buffer The new input buffer.
  16316. + *
  16317. + */
  16318. + void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer )
  16319. +{
  16320. +
  16321. + /* TODO. We should be able to replace this entire function body
  16322. + * with
  16323. + * yypop_buffer_state();
  16324. + * yypush_buffer_state(new_buffer);
  16325. + */
  16326. + yyensure_buffer_stack ();
  16327. + if ( YY_CURRENT_BUFFER == new_buffer )
  16328. return;
  16329. - if ( yy_current_buffer )
  16330. + if ( YY_CURRENT_BUFFER )
  16331. {
  16332. /* Flush out information for old buffer. */
  16333. - *yy_c_buf_p = yy_hold_char;
  16334. - yy_current_buffer->yy_buf_pos = yy_c_buf_p;
  16335. - yy_current_buffer->yy_n_chars = yy_n_chars;
  16336. + *(yy_c_buf_p) = (yy_hold_char);
  16337. + YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
  16338. + YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
  16339. }
  16340. - yy_current_buffer = new_buffer;
  16341. - yy_load_buffer_state();
  16342. + YY_CURRENT_BUFFER_LVALUE = new_buffer;
  16343. + yy_load_buffer_state( );
  16344. /* We don't actually know whether we did this switch during
  16345. * EOF (yywrap()) processing, but the only time this flag
  16346. * is looked at is after yywrap() is called, so it's safe
  16347. * to go ahead and always set it.
  16348. */
  16349. - yy_did_buffer_switch_on_eof = 1;
  16350. - }
  16351. -
  16352. -
  16353. -#ifdef YY_USE_PROTOS
  16354. -void yy_load_buffer_state( void )
  16355. -#else
  16356. -void yy_load_buffer_state()
  16357. -#endif
  16358. - {
  16359. - yy_n_chars = yy_current_buffer->yy_n_chars;
  16360. - yytext_ptr = yy_c_buf_p = yy_current_buffer->yy_buf_pos;
  16361. - yyin = yy_current_buffer->yy_input_file;
  16362. - yy_hold_char = *yy_c_buf_p;
  16363. - }
  16364. + (yy_did_buffer_switch_on_eof) = 1;
  16365. +}
  16366. +static void yy_load_buffer_state (void)
  16367. +{
  16368. + (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
  16369. + (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
  16370. + yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
  16371. + (yy_hold_char) = *(yy_c_buf_p);
  16372. +}
  16373. -#ifdef YY_USE_PROTOS
  16374. -YY_BUFFER_STATE yy_create_buffer( FILE *file, int size )
  16375. -#else
  16376. -YY_BUFFER_STATE yy_create_buffer( file, size )
  16377. -FILE *file;
  16378. -int size;
  16379. -#endif
  16380. - {
  16381. +/** Allocate and initialize an input buffer state.
  16382. + * @param file A readable stream.
  16383. + * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE.
  16384. + *
  16385. + * @return the allocated buffer state.
  16386. + */
  16387. + YY_BUFFER_STATE yy_create_buffer (FILE * file, int size )
  16388. +{
  16389. YY_BUFFER_STATE b;
  16390. -
  16391. - b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
  16392. +
  16393. + b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) );
  16394. if ( ! b )
  16395. YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
  16396. @@ -1301,75 +1361,75 @@
  16397. /* yy_ch_buf has to be 2 characters longer than the size given because
  16398. * we need to put in 2 end-of-buffer characters.
  16399. */
  16400. - b->yy_ch_buf = (char *) yy_flex_alloc( b->yy_buf_size + 2 );
  16401. + b->yy_ch_buf = (char *) yyalloc(b->yy_buf_size + 2 );
  16402. if ( ! b->yy_ch_buf )
  16403. YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
  16404. b->yy_is_our_buffer = 1;
  16405. - yy_init_buffer( b, file );
  16406. + yy_init_buffer(b,file );
  16407. return b;
  16408. - }
  16409. -
  16410. +}
  16411. -#ifdef YY_USE_PROTOS
  16412. -void yy_delete_buffer( YY_BUFFER_STATE b )
  16413. -#else
  16414. -void yy_delete_buffer( b )
  16415. -YY_BUFFER_STATE b;
  16416. -#endif
  16417. - {
  16418. +/** Destroy the buffer.
  16419. + * @param b a buffer created with yy_create_buffer()
  16420. + *
  16421. + */
  16422. + void yy_delete_buffer (YY_BUFFER_STATE b )
  16423. +{
  16424. +
  16425. if ( ! b )
  16426. return;
  16427. - if ( b == yy_current_buffer )
  16428. - yy_current_buffer = (YY_BUFFER_STATE) 0;
  16429. + if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */
  16430. + YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0;
  16431. if ( b->yy_is_our_buffer )
  16432. - yy_flex_free( (void *) b->yy_ch_buf );
  16433. + yyfree((void *) b->yy_ch_buf );
  16434. - yy_flex_free( (void *) b );
  16435. - }
  16436. -
  16437. -
  16438. -
  16439. -#ifdef YY_USE_PROTOS
  16440. -void yy_init_buffer( YY_BUFFER_STATE b, FILE *file )
  16441. -#else
  16442. -void yy_init_buffer( b, file )
  16443. -YY_BUFFER_STATE b;
  16444. -FILE *file;
  16445. -#endif
  16446. + yyfree((void *) b );
  16447. +}
  16448. +#ifndef __cplusplus
  16449. +extern int isatty (int );
  16450. +#endif /* __cplusplus */
  16451. +
  16452. +/* Initializes or reinitializes a buffer.
  16453. + * This function is sometimes called more than once on the same buffer,
  16454. + * such as during a yyrestart() or at EOF.
  16455. + */
  16456. + static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file )
  16457. - {
  16458. - yy_flush_buffer( b );
  16459. +{
  16460. + int oerrno = errno;
  16461. +
  16462. + yy_flush_buffer(b );
  16463. b->yy_input_file = file;
  16464. b->yy_fill_buffer = 1;
  16465. -#if YY_ALWAYS_INTERACTIVE
  16466. - b->yy_is_interactive = 1;
  16467. -#else
  16468. -#if YY_NEVER_INTERACTIVE
  16469. - b->yy_is_interactive = 0;
  16470. -#else
  16471. - b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
  16472. -#endif
  16473. -#endif
  16474. - }
  16475. -
  16476. + /* If b is the current buffer, then yy_init_buffer was _probably_
  16477. + * called from yyrestart() or through yy_get_next_buffer.
  16478. + * In that case, we don't want to reset the lineno or column.
  16479. + */
  16480. + if (b != YY_CURRENT_BUFFER){
  16481. + b->yy_bs_lineno = 1;
  16482. + b->yy_bs_column = 0;
  16483. + }
  16484. -#ifdef YY_USE_PROTOS
  16485. -void yy_flush_buffer( YY_BUFFER_STATE b )
  16486. -#else
  16487. -void yy_flush_buffer( b )
  16488. -YY_BUFFER_STATE b;
  16489. -#endif
  16490. + b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
  16491. +
  16492. + errno = oerrno;
  16493. +}
  16494. - {
  16495. - if ( ! b )
  16496. +/** Discard all buffered characters. On the next scan, YY_INPUT will be called.
  16497. + * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER.
  16498. + *
  16499. + */
  16500. + void yy_flush_buffer (YY_BUFFER_STATE b )
  16501. +{
  16502. + if ( ! b )
  16503. return;
  16504. b->yy_n_chars = 0;
  16505. @@ -1386,29 +1446,121 @@
  16506. b->yy_at_bol = 1;
  16507. b->yy_buffer_status = YY_BUFFER_NEW;
  16508. - if ( b == yy_current_buffer )
  16509. - yy_load_buffer_state();
  16510. + if ( b == YY_CURRENT_BUFFER )
  16511. + yy_load_buffer_state( );
  16512. +}
  16513. +
  16514. +/** Pushes the new state onto the stack. The new state becomes
  16515. + * the current state. This function will allocate the stack
  16516. + * if necessary.
  16517. + * @param new_buffer The new state.
  16518. + *
  16519. + */
  16520. +void yypush_buffer_state (YY_BUFFER_STATE new_buffer )
  16521. +{
  16522. + if (new_buffer == NULL)
  16523. + return;
  16524. +
  16525. + yyensure_buffer_stack();
  16526. +
  16527. + /* This block is copied from yy_switch_to_buffer. */
  16528. + if ( YY_CURRENT_BUFFER )
  16529. + {
  16530. + /* Flush out information for old buffer. */
  16531. + *(yy_c_buf_p) = (yy_hold_char);
  16532. + YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
  16533. + YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
  16534. + }
  16535. +
  16536. + /* Only push if top exists. Otherwise, replace top. */
  16537. + if (YY_CURRENT_BUFFER)
  16538. + (yy_buffer_stack_top)++;
  16539. + YY_CURRENT_BUFFER_LVALUE = new_buffer;
  16540. +
  16541. + /* copied from yy_switch_to_buffer. */
  16542. + yy_load_buffer_state( );
  16543. + (yy_did_buffer_switch_on_eof) = 1;
  16544. +}
  16545. +
  16546. +/** Removes and deletes the top of the stack, if present.
  16547. + * The next element becomes the new top.
  16548. + *
  16549. + */
  16550. +void yypop_buffer_state (void)
  16551. +{
  16552. + if (!YY_CURRENT_BUFFER)
  16553. + return;
  16554. +
  16555. + yy_delete_buffer(YY_CURRENT_BUFFER );
  16556. + YY_CURRENT_BUFFER_LVALUE = NULL;
  16557. + if ((yy_buffer_stack_top) > 0)
  16558. + --(yy_buffer_stack_top);
  16559. +
  16560. + if (YY_CURRENT_BUFFER) {
  16561. + yy_load_buffer_state( );
  16562. + (yy_did_buffer_switch_on_eof) = 1;
  16563. }
  16564. +}
  16565. +/* Allocates the stack if it does not exist.
  16566. + * Guarantees space for at least one push.
  16567. + */
  16568. +static void yyensure_buffer_stack (void)
  16569. +{
  16570. + int num_to_alloc;
  16571. +
  16572. + if (!(yy_buffer_stack)) {
  16573. +
  16574. + /* First allocation is just for 2 elements, since we don't know if this
  16575. + * scanner will even need a stack. We use 2 instead of 1 to avoid an
  16576. + * immediate realloc on the next call.
  16577. + */
  16578. + num_to_alloc = 1;
  16579. + (yy_buffer_stack) = (struct yy_buffer_state**)yyalloc
  16580. + (num_to_alloc * sizeof(struct yy_buffer_state*)
  16581. + );
  16582. +
  16583. + memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*));
  16584. +
  16585. + (yy_buffer_stack_max) = num_to_alloc;
  16586. + (yy_buffer_stack_top) = 0;
  16587. + return;
  16588. + }
  16589. -#ifndef YY_NO_SCAN_BUFFER
  16590. -#ifdef YY_USE_PROTOS
  16591. -YY_BUFFER_STATE yy_scan_buffer( char *base, yy_size_t size )
  16592. -#else
  16593. -YY_BUFFER_STATE yy_scan_buffer( base, size )
  16594. -char *base;
  16595. -yy_size_t size;
  16596. -#endif
  16597. - {
  16598. - YY_BUFFER_STATE b;
  16599. + if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){
  16600. +
  16601. + /* Increase the buffer to prepare for a possible push. */
  16602. + int grow_size = 8 /* arbitrary grow size */;
  16603. + num_to_alloc = (yy_buffer_stack_max) + grow_size;
  16604. + (yy_buffer_stack) = (struct yy_buffer_state**)yyrealloc
  16605. + ((yy_buffer_stack),
  16606. + num_to_alloc * sizeof(struct yy_buffer_state*)
  16607. + );
  16608. +
  16609. + /* zero only the new slots.*/
  16610. + memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*));
  16611. + (yy_buffer_stack_max) = num_to_alloc;
  16612. + }
  16613. +}
  16614. +
  16615. +/** Setup the input buffer state to scan directly from a user-specified character buffer.
  16616. + * @param base the character buffer
  16617. + * @param size the size in bytes of the character buffer
  16618. + *
  16619. + * @return the newly allocated buffer state object.
  16620. + */
  16621. +YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size )
  16622. +{
  16623. + YY_BUFFER_STATE b;
  16624. +
  16625. if ( size < 2 ||
  16626. base[size-2] != YY_END_OF_BUFFER_CHAR ||
  16627. base[size-1] != YY_END_OF_BUFFER_CHAR )
  16628. /* They forgot to leave room for the EOB's. */
  16629. return 0;
  16630. - b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
  16631. + b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) );
  16632. if ( ! b )
  16633. YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
  16634. @@ -1422,47 +1574,42 @@
  16635. b->yy_fill_buffer = 0;
  16636. b->yy_buffer_status = YY_BUFFER_NEW;
  16637. - yy_switch_to_buffer( b );
  16638. + yy_switch_to_buffer(b );
  16639. return b;
  16640. - }
  16641. -#endif
  16642. -
  16643. -
  16644. -#ifndef YY_NO_SCAN_STRING
  16645. -#ifdef YY_USE_PROTOS
  16646. -YY_BUFFER_STATE yy_scan_string( yyconst char *yy_str )
  16647. -#else
  16648. -YY_BUFFER_STATE yy_scan_string( yy_str )
  16649. -yyconst char *yy_str;
  16650. -#endif
  16651. - {
  16652. - int len;
  16653. - for ( len = 0; yy_str[len]; ++len )
  16654. - ;
  16655. -
  16656. - return yy_scan_bytes( yy_str, len );
  16657. - }
  16658. -#endif
  16659. +}
  16660. +/** Setup the input buffer state to scan a string. The next call to yylex() will
  16661. + * scan from a @e copy of @a str.
  16662. + * @param str a NUL-terminated string to scan
  16663. + *
  16664. + * @return the newly allocated buffer state object.
  16665. + * @note If you want to scan bytes that may contain NUL values, then use
  16666. + * yy_scan_bytes() instead.
  16667. + */
  16668. +YY_BUFFER_STATE yy_scan_string (yyconst char * yy_str )
  16669. +{
  16670. +
  16671. + return yy_scan_bytes(yy_str,strlen(yy_str) );
  16672. +}
  16673. -#ifndef YY_NO_SCAN_BYTES
  16674. -#ifdef YY_USE_PROTOS
  16675. -YY_BUFFER_STATE yy_scan_bytes( yyconst char *bytes, int len )
  16676. -#else
  16677. -YY_BUFFER_STATE yy_scan_bytes( bytes, len )
  16678. -yyconst char *bytes;
  16679. -int len;
  16680. -#endif
  16681. - {
  16682. +/** Setup the input buffer state to scan the given bytes. The next call to yylex() will
  16683. + * scan from a @e copy of @a bytes.
  16684. + * @param bytes the byte buffer to scan
  16685. + * @param len the number of bytes in the buffer pointed to by @a bytes.
  16686. + *
  16687. + * @return the newly allocated buffer state object.
  16688. + */
  16689. +YY_BUFFER_STATE yy_scan_bytes (yyconst char * bytes, int len )
  16690. +{
  16691. YY_BUFFER_STATE b;
  16692. char *buf;
  16693. yy_size_t n;
  16694. int i;
  16695. -
  16696. +
  16697. /* Get memory for full buffer, including space for trailing EOB's. */
  16698. n = len + 2;
  16699. - buf = (char *) yy_flex_alloc( n );
  16700. + buf = (char *) yyalloc(n );
  16701. if ( ! buf )
  16702. YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
  16703. @@ -1471,7 +1618,7 @@
  16704. buf[len] = buf[len+1] = YY_END_OF_BUFFER_CHAR;
  16705. - b = yy_scan_buffer( buf, n );
  16706. + b = yy_scan_buffer(buf,n );
  16707. if ( ! b )
  16708. YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
  16709. @@ -1481,148 +1628,164 @@
  16710. b->yy_is_our_buffer = 1;
  16711. return b;
  16712. - }
  16713. -#endif
  16714. -
  16715. +}
  16716. -#ifndef YY_NO_PUSH_STATE
  16717. -#ifdef YY_USE_PROTOS
  16718. -static void yy_push_state( int new_state )
  16719. -#else
  16720. -static void yy_push_state( new_state )
  16721. -int new_state;
  16722. +#ifndef YY_EXIT_FAILURE
  16723. +#define YY_EXIT_FAILURE 2
  16724. #endif
  16725. - {
  16726. - if ( yy_start_stack_ptr >= yy_start_stack_depth )
  16727. - {
  16728. - yy_size_t new_size;
  16729. - yy_start_stack_depth += YY_START_STACK_INCR;
  16730. - new_size = yy_start_stack_depth * sizeof( int );
  16731. +static void yy_fatal_error (yyconst char* msg )
  16732. +{
  16733. + (void) fprintf( stderr, "%s\n", msg );
  16734. + exit( YY_EXIT_FAILURE );
  16735. +}
  16736. - if ( ! yy_start_stack )
  16737. - yy_start_stack = (int *) yy_flex_alloc( new_size );
  16738. +/* Redefine yyless() so it works in section 3 code. */
  16739. - else
  16740. - yy_start_stack = (int *) yy_flex_realloc(
  16741. - (void *) yy_start_stack, new_size );
  16742. +#undef yyless
  16743. +#define yyless(n) \
  16744. + do \
  16745. + { \
  16746. + /* Undo effects of setting up yytext. */ \
  16747. + int yyless_macro_arg = (n); \
  16748. + YY_LESS_LINENO(yyless_macro_arg);\
  16749. + yytext[yyleng] = (yy_hold_char); \
  16750. + (yy_c_buf_p) = yytext + yyless_macro_arg; \
  16751. + (yy_hold_char) = *(yy_c_buf_p); \
  16752. + *(yy_c_buf_p) = '\0'; \
  16753. + yyleng = yyless_macro_arg; \
  16754. + } \
  16755. + while ( 0 )
  16756. - if ( ! yy_start_stack )
  16757. - YY_FATAL_ERROR(
  16758. - "out of memory expanding start-condition stack" );
  16759. - }
  16760. +/* Accessor methods (get/set functions) to struct members. */
  16761. - yy_start_stack[yy_start_stack_ptr++] = YY_START;
  16762. +/** Get the current line number.
  16763. + *
  16764. + */
  16765. +int yyget_lineno (void)
  16766. +{
  16767. +
  16768. + return yylineno;
  16769. +}
  16770. - BEGIN(new_state);
  16771. - }
  16772. -#endif
  16773. +/** Get the input stream.
  16774. + *
  16775. + */
  16776. +FILE *yyget_in (void)
  16777. +{
  16778. + return yyin;
  16779. +}
  16780. +/** Get the output stream.
  16781. + *
  16782. + */
  16783. +FILE *yyget_out (void)
  16784. +{
  16785. + return yyout;
  16786. +}
  16787. -#ifndef YY_NO_POP_STATE
  16788. -static void yy_pop_state()
  16789. - {
  16790. - if ( --yy_start_stack_ptr < 0 )
  16791. - YY_FATAL_ERROR( "start-condition stack underflow" );
  16792. +/** Get the length of the current token.
  16793. + *
  16794. + */
  16795. +int yyget_leng (void)
  16796. +{
  16797. + return yyleng;
  16798. +}
  16799. - BEGIN(yy_start_stack[yy_start_stack_ptr]);
  16800. - }
  16801. -#endif
  16802. +/** Get the current token.
  16803. + *
  16804. + */
  16805. +char *yyget_text (void)
  16806. +{
  16807. + return yytext;
  16808. +}
  16809. -#ifndef YY_NO_TOP_STATE
  16810. -static int yy_top_state()
  16811. - {
  16812. - return yy_start_stack[yy_start_stack_ptr - 1];
  16813. - }
  16814. -#endif
  16815. +/** Set the current line number.
  16816. + * @param line_number
  16817. + *
  16818. + */
  16819. +void yyset_lineno (int line_number )
  16820. +{
  16821. +
  16822. + yylineno = line_number;
  16823. +}
  16824. -#ifndef YY_EXIT_FAILURE
  16825. -#define YY_EXIT_FAILURE 2
  16826. -#endif
  16827. +/** Set the input stream. This does not discard the current
  16828. + * input buffer.
  16829. + * @param in_str A readable stream.
  16830. + *
  16831. + * @see yy_switch_to_buffer
  16832. + */
  16833. +void yyset_in (FILE * in_str )
  16834. +{
  16835. + yyin = in_str ;
  16836. +}
  16837. -#ifdef YY_USE_PROTOS
  16838. -static void yy_fatal_error( yyconst char msg[] )
  16839. -#else
  16840. -static void yy_fatal_error( msg )
  16841. -char msg[];
  16842. -#endif
  16843. - {
  16844. - (void) fprintf( stderr, "%s\n", msg );
  16845. - exit( YY_EXIT_FAILURE );
  16846. - }
  16847. +void yyset_out (FILE * out_str )
  16848. +{
  16849. + yyout = out_str ;
  16850. +}
  16851. +int yyget_debug (void)
  16852. +{
  16853. + return yy_flex_debug;
  16854. +}
  16855. +void yyset_debug (int bdebug )
  16856. +{
  16857. + yy_flex_debug = bdebug ;
  16858. +}
  16859. -/* Redefine yyless() so it works in section 3 code. */
  16860. +/* yylex_destroy is for both reentrant and non-reentrant scanners. */
  16861. +int yylex_destroy (void)
  16862. +{
  16863. +
  16864. + /* Pop the buffer stack, destroying each element. */
  16865. + while(YY_CURRENT_BUFFER){
  16866. + yy_delete_buffer(YY_CURRENT_BUFFER );
  16867. + YY_CURRENT_BUFFER_LVALUE = NULL;
  16868. + yypop_buffer_state();
  16869. + }
  16870. -#undef yyless
  16871. -#define yyless(n) \
  16872. - do \
  16873. - { \
  16874. - /* Undo effects of setting up yytext. */ \
  16875. - yytext[yyleng] = yy_hold_char; \
  16876. - yy_c_buf_p = yytext + n; \
  16877. - yy_hold_char = *yy_c_buf_p; \
  16878. - *yy_c_buf_p = '\0'; \
  16879. - yyleng = n; \
  16880. - } \
  16881. - while ( 0 )
  16882. + /* Destroy the stack itself. */
  16883. + yyfree((yy_buffer_stack) );
  16884. + (yy_buffer_stack) = NULL;
  16885. + return 0;
  16886. +}
  16887. -/* Internal utility routines. */
  16888. +/*
  16889. + * Internal utility routines.
  16890. + */
  16891. #ifndef yytext_ptr
  16892. -#ifdef YY_USE_PROTOS
  16893. -static void yy_flex_strncpy( char *s1, yyconst char *s2, int n )
  16894. -#else
  16895. -static void yy_flex_strncpy( s1, s2, n )
  16896. -char *s1;
  16897. -yyconst char *s2;
  16898. -int n;
  16899. -#endif
  16900. - {
  16901. +static void yy_flex_strncpy (char* s1, yyconst char * s2, int n )
  16902. +{
  16903. register int i;
  16904. - for ( i = 0; i < n; ++i )
  16905. + for ( i = 0; i < n; ++i )
  16906. s1[i] = s2[i];
  16907. - }
  16908. +}
  16909. #endif
  16910. #ifdef YY_NEED_STRLEN
  16911. -#ifdef YY_USE_PROTOS
  16912. -static int yy_flex_strlen( yyconst char *s )
  16913. -#else
  16914. -static int yy_flex_strlen( s )
  16915. -yyconst char *s;
  16916. -#endif
  16917. - {
  16918. +static int yy_flex_strlen (yyconst char * s )
  16919. +{
  16920. register int n;
  16921. - for ( n = 0; s[n]; ++n )
  16922. + for ( n = 0; s[n]; ++n )
  16923. ;
  16924. return n;
  16925. - }
  16926. +}
  16927. #endif
  16928. -
  16929. -#ifdef YY_USE_PROTOS
  16930. -static void *yy_flex_alloc( yy_size_t size )
  16931. -#else
  16932. -static void *yy_flex_alloc( size )
  16933. -yy_size_t size;
  16934. -#endif
  16935. - {
  16936. +void *yyalloc (yy_size_t size )
  16937. +{
  16938. return (void *) malloc( size );
  16939. - }
  16940. +}
  16941. -#ifdef YY_USE_PROTOS
  16942. -static void *yy_flex_realloc( void *ptr, yy_size_t size )
  16943. -#else
  16944. -static void *yy_flex_realloc( ptr, size )
  16945. -void *ptr;
  16946. -yy_size_t size;
  16947. -#endif
  16948. - {
  16949. +void *yyrealloc (void * ptr, yy_size_t size )
  16950. +{
  16951. /* The cast to (char *) in the following accommodates both
  16952. * implementations that use char* generic pointers, and those
  16953. * that use void* generic pointers. It works with the latter
  16954. @@ -1631,30 +1794,34 @@
  16955. * as though doing an assignment.
  16956. */
  16957. return (void *) realloc( (char *) ptr, size );
  16958. - }
  16959. +}
  16960. -#ifdef YY_USE_PROTOS
  16961. -static void yy_flex_free( void *ptr )
  16962. -#else
  16963. -static void yy_flex_free( ptr )
  16964. -void *ptr;
  16965. -#endif
  16966. - {
  16967. - free( ptr );
  16968. - }
  16969. +void yyfree (void * ptr )
  16970. +{
  16971. + free( (char *) ptr ); /* see yyrealloc() for (char *) cast */
  16972. +}
  16973. -#if YY_MAIN
  16974. -int main()
  16975. - {
  16976. - yylex();
  16977. - return 0;
  16978. - }
  16979. +#define YYTABLES_NAME "yytables"
  16980. +
  16981. +#undef YY_NEW_FILE
  16982. +#undef YY_FLUSH_BUFFER
  16983. +#undef yy_set_bol
  16984. +#undef yy_new_buffer
  16985. +#undef yy_set_interactive
  16986. +#undef yytext_ptr
  16987. +#undef YY_DO_BEFORE_ACTION
  16988. +
  16989. +#ifdef YY_DECL_IS_OURS
  16990. +#undef YY_DECL_IS_OURS
  16991. +#undef YY_DECL
  16992. #endif
  16993. #line 69 "ql_l.l"
  16994. -void yyerror(char *s)
  16995. +
  16996. +void yyerror(const char *s)
  16997. {
  16998. fprintf(stderr,"line %d: %s near \"%s\"\n",lineno,s,yytext);
  16999. exit(1);
  17000. }
  17001. +
  17002. Index: linux-atm-2.4.1/src/qgen/ql_y.c
  17003. ===================================================================
  17004. --- linux-atm-2.4.1.orig/src/qgen/ql_y.c 2007-10-20 19:19:10.982254320 +0200
  17005. +++ linux-atm-2.4.1/src/qgen/ql_y.c 2007-10-20 19:19:11.938308801 +0200
  17006. @@ -1,21 +1,87 @@
  17007. +/* A Bison parser, made by GNU Bison 1.875d. */
  17008. -/* A Bison parser, made from ql_y.y
  17009. - by GNU Bison version 1.28 */
  17010. +/* Skeleton parser for Yacc-like parsing with Bison,
  17011. + Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
  17012. -#define YYBISON 1 /* Identify Bison output. */
  17013. + This program is free software; you can redistribute it and/or modify
  17014. + it under the terms of the GNU General Public License as published by
  17015. + the Free Software Foundation; either version 2, or (at your option)
  17016. + any later version.
  17017. -#define TOK_BREAK 257
  17018. -#define TOK_CASE 258
  17019. -#define TOK_DEF 259
  17020. -#define TOK_DEFAULT 260
  17021. -#define TOK_LENGTH 261
  17022. -#define TOK_MULTI 262
  17023. -#define TOK_RECOVER 263
  17024. -#define TOK_ABORT 264
  17025. -#define TOK_ID 265
  17026. -#define TOK_INCLUDE 266
  17027. -#define TOK_STRING 267
  17028. + This program is distributed in the hope that it will be useful,
  17029. + but WITHOUT ANY WARRANTY; without even the implied warranty of
  17030. + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17031. + GNU General Public License for more details.
  17032. + You should have received a copy of the GNU General Public License
  17033. + along with this program; if not, write to the Free Software
  17034. + Foundation, Inc., 59 Temple Place - Suite 330,
  17035. + Boston, MA 02111-1307, USA. */
  17036. +
  17037. +/* As a special exception, when this file is copied by Bison into a
  17038. + Bison output file, you may use that output file without restriction.
  17039. + This special exception was added by the Free Software Foundation
  17040. + in version 1.24 of Bison. */
  17041. +
  17042. +/* Written by Richard Stallman by simplifying the original so called
  17043. + ``semantic'' parser. */
  17044. +
  17045. +/* All symbols defined below should begin with yy or YY, to avoid
  17046. + infringing on user name space. This should be done even for local
  17047. + variables, as they might otherwise be expanded by user macros.
  17048. + There are some unavoidable exceptions within include files to
  17049. + define necessary library symbols; they are noted "INFRINGES ON
  17050. + USER NAME SPACE" below. */
  17051. +
  17052. +/* Identify Bison output. */
  17053. +#define YYBISON 1
  17054. +
  17055. +/* Skeleton name. */
  17056. +#define YYSKELETON_NAME "yacc.c"
  17057. +
  17058. +/* Pure parsers. */
  17059. +#define YYPURE 0
  17060. +
  17061. +/* Using locations. */
  17062. +#define YYLSP_NEEDED 0
  17063. +
  17064. +
  17065. +
  17066. +/* Tokens. */
  17067. +#ifndef YYTOKENTYPE
  17068. +# define YYTOKENTYPE
  17069. + /* Put the tokens into the symbol table, so that GDB and other debuggers
  17070. + know about them. */
  17071. + enum yytokentype {
  17072. + TOK_BREAK = 258,
  17073. + TOK_CASE = 259,
  17074. + TOK_DEF = 260,
  17075. + TOK_DEFAULT = 261,
  17076. + TOK_LENGTH = 262,
  17077. + TOK_MULTI = 263,
  17078. + TOK_RECOVER = 264,
  17079. + TOK_ABORT = 265,
  17080. + TOK_ID = 266,
  17081. + TOK_INCLUDE = 267,
  17082. + TOK_STRING = 268
  17083. + };
  17084. +#endif
  17085. +#define TOK_BREAK 258
  17086. +#define TOK_CASE 259
  17087. +#define TOK_DEF 260
  17088. +#define TOK_DEFAULT 261
  17089. +#define TOK_LENGTH 262
  17090. +#define TOK_MULTI 263
  17091. +#define TOK_RECOVER 264
  17092. +#define TOK_ABORT 265
  17093. +#define TOK_ID 266
  17094. +#define TOK_INCLUDE 267
  17095. +#define TOK_STRING 268
  17096. +
  17097. +
  17098. +
  17099. +
  17100. +/* Copy the first part of user declarations. */
  17101. #line 1 "ql_y.y"
  17102. /* ql.y - Q.2931 data structures description language */
  17103. @@ -36,6 +102,8 @@
  17104. #include "qgen.h"
  17105. #include "file.h"
  17106. +extern void yyerror(const char *s);
  17107. +
  17108. #define MAX_TOKEN 256
  17109. #define DEFAULT_NAMELIST_FILE "default.nl"
  17110. @@ -77,9 +145,10 @@
  17111. for (walk = strchr(start,0)-1; walk > start && isspace(*walk); walk--)
  17112. *walk = 0;
  17113. if (*start == ':') {
  17114. - if (!(searching = strcmp(start+1,name)))
  17115. + if (!(searching = strcmp(start+1,name))) {
  17116. if (found) yyerror("multiple entries");
  17117. else found = 1;
  17118. + }
  17119. continue;
  17120. }
  17121. if (searching) continue;
  17122. @@ -154,8 +223,23 @@
  17123. -#line 139 "ql_y.y"
  17124. -typedef union {
  17125. +
  17126. +/* Enabling traces. */
  17127. +#ifndef YYDEBUG
  17128. +# define YYDEBUG 0
  17129. +#endif
  17130. +
  17131. +/* Enabling verbose error messages. */
  17132. +#ifdef YYERROR_VERBOSE
  17133. +# undef YYERROR_VERBOSE
  17134. +# define YYERROR_VERBOSE 1
  17135. +#else
  17136. +# define YYERROR_VERBOSE 0
  17137. +#endif
  17138. +
  17139. +#if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
  17140. +#line 142 "ql_y.y"
  17141. +typedef union YYSTYPE {
  17142. const char *str;
  17143. int num;
  17144. FIELD *field;
  17145. @@ -164,470 +248,762 @@
  17146. TAG *tag;
  17147. NAME_LIST *nlist;
  17148. } YYSTYPE;
  17149. -#include <stdio.h>
  17150. +/* Line 191 of yacc.c. */
  17151. +#line 253 "y.tab.c"
  17152. +# define yystype YYSTYPE /* obsolescent; will be withdrawn */
  17153. +# define YYSTYPE_IS_DECLARED 1
  17154. +# define YYSTYPE_IS_TRIVIAL 1
  17155. +#endif
  17156. +
  17157. +
  17158. +
  17159. +/* Copy the second part of user declarations. */
  17160. +
  17161. +
  17162. +/* Line 214 of yacc.c. */
  17163. +#line 265 "y.tab.c"
  17164. +
  17165. +#if ! defined (yyoverflow) || YYERROR_VERBOSE
  17166. +
  17167. +# ifndef YYFREE
  17168. +# define YYFREE free
  17169. +# endif
  17170. +# ifndef YYMALLOC
  17171. +# define YYMALLOC malloc
  17172. +# endif
  17173. +
  17174. +/* The parser invokes alloca or malloc; define the necessary symbols. */
  17175. +
  17176. +# ifdef YYSTACK_USE_ALLOCA
  17177. +# if YYSTACK_USE_ALLOCA
  17178. +# define YYSTACK_ALLOC alloca
  17179. +# endif
  17180. +# else
  17181. +# if defined (alloca) || defined (_ALLOCA_H)
  17182. +# define YYSTACK_ALLOC alloca
  17183. +# else
  17184. +# ifdef __GNUC__
  17185. +# define YYSTACK_ALLOC __builtin_alloca
  17186. +# endif
  17187. +# endif
  17188. +# endif
  17189. +
  17190. +# ifdef YYSTACK_ALLOC
  17191. + /* Pacify GCC's `empty if-body' warning. */
  17192. +# define YYSTACK_FREE(Ptr) do { /* empty */; } while (0)
  17193. +# else
  17194. +# if defined (__STDC__) || defined (__cplusplus)
  17195. +# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
  17196. +# define YYSIZE_T size_t
  17197. +# endif
  17198. +# define YYSTACK_ALLOC YYMALLOC
  17199. +# define YYSTACK_FREE YYFREE
  17200. +# endif
  17201. +#endif /* ! defined (yyoverflow) || YYERROR_VERBOSE */
  17202. +
  17203. +
  17204. +#if (! defined (yyoverflow) \
  17205. + && (! defined (__cplusplus) \
  17206. + || (defined (YYSTYPE_IS_TRIVIAL) && YYSTYPE_IS_TRIVIAL)))
  17207. +
  17208. +/* A type that is properly aligned for any stack member. */
  17209. +union yyalloc
  17210. +{
  17211. + short int yyss;
  17212. + YYSTYPE yyvs;
  17213. + };
  17214. +
  17215. +/* The size of the maximum gap between one aligned stack and the next. */
  17216. +# define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1)
  17217. +
  17218. +/* The size of an array large to enough to hold all stacks, each with
  17219. + N elements. */
  17220. +# define YYSTACK_BYTES(N) \
  17221. + ((N) * (sizeof (short int) + sizeof (YYSTYPE)) \
  17222. + + YYSTACK_GAP_MAXIMUM)
  17223. +
  17224. +/* Copy COUNT objects from FROM to TO. The source and destination do
  17225. + not overlap. */
  17226. +# ifndef YYCOPY
  17227. +# if defined (__GNUC__) && 1 < __GNUC__
  17228. +# define YYCOPY(To, From, Count) \
  17229. + __builtin_memcpy (To, From, (Count) * sizeof (*(From)))
  17230. +# else
  17231. +# define YYCOPY(To, From, Count) \
  17232. + do \
  17233. + { \
  17234. + register YYSIZE_T yyi; \
  17235. + for (yyi = 0; yyi < (Count); yyi++) \
  17236. + (To)[yyi] = (From)[yyi]; \
  17237. + } \
  17238. + while (0)
  17239. +# endif
  17240. +# endif
  17241. +
  17242. +/* Relocate STACK from its old location to the new one. The
  17243. + local variables YYSIZE and YYSTACKSIZE give the old and new number of
  17244. + elements in the stack, and YYPTR gives the new location of the
  17245. + stack. Advance YYPTR to a properly aligned location for the next
  17246. + stack. */
  17247. +# define YYSTACK_RELOCATE(Stack) \
  17248. + do \
  17249. + { \
  17250. + YYSIZE_T yynewbytes; \
  17251. + YYCOPY (&yyptr->Stack, Stack, yysize); \
  17252. + Stack = &yyptr->Stack; \
  17253. + yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
  17254. + yyptr += yynewbytes / sizeof (*yyptr); \
  17255. + } \
  17256. + while (0)
  17257. -#ifndef __cplusplus
  17258. -#ifndef __STDC__
  17259. -#define const
  17260. -#endif
  17261. #endif
  17262. +#if defined (__STDC__) || defined (__cplusplus)
  17263. + typedef signed char yysigned_char;
  17264. +#else
  17265. + typedef short int yysigned_char;
  17266. +#endif
  17267. -
  17268. -#define YYFINAL 86
  17269. -#define YYFLAG -32768
  17270. -#define YYNTBASE 23
  17271. -
  17272. -#define YYTRANSLATE(x) ((unsigned)(x) <= 267 ? yytranslate[x] : 47)
  17273. -
  17274. -static const char yytranslate[] = { 0,
  17275. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  17276. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  17277. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  17278. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  17279. - 2, 2, 2, 21, 18, 2, 2, 2, 2, 2,
  17280. - 2, 2, 2, 2, 2, 2, 2, 22, 2, 17,
  17281. - 14, 19, 2, 20, 2, 2, 2, 2, 2, 2,
  17282. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  17283. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  17284. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  17285. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  17286. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  17287. - 2, 2, 15, 2, 16, 2, 2, 2, 2, 2,
  17288. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  17289. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  17290. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  17291. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  17292. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  17293. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  17294. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  17295. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  17296. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  17297. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  17298. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  17299. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  17300. - 2, 2, 2, 2, 2, 1, 3, 4, 5, 6,
  17301. - 7, 8, 9, 10, 11, 12, 13
  17302. +/* YYFINAL -- State number of the termination state. */
  17303. +#define YYFINAL 5
  17304. +/* YYLAST -- Last index in YYTABLE. */
  17305. +#define YYLAST 65
  17306. +
  17307. +/* YYNTOKENS -- Number of terminals. */
  17308. +#define YYNTOKENS 23
  17309. +/* YYNNTS -- Number of nonterminals. */
  17310. +#define YYNNTS 25
  17311. +/* YYNRULES -- Number of rules. */
  17312. +#define YYNRULES 46
  17313. +/* YYNRULES -- Number of states. */
  17314. +#define YYNSTATES 86
  17315. +
  17316. +/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */
  17317. +#define YYUNDEFTOK 2
  17318. +#define YYMAXUTOK 268
  17319. +
  17320. +#define YYTRANSLATE(YYX) \
  17321. + ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
  17322. +
  17323. +/* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */
  17324. +static const unsigned char yytranslate[] =
  17325. +{
  17326. + 0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  17327. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  17328. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  17329. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  17330. + 2, 2, 2, 2, 21, 18, 2, 2, 2, 2,
  17331. + 2, 2, 2, 2, 2, 2, 2, 2, 22, 2,
  17332. + 17, 14, 19, 2, 20, 2, 2, 2, 2, 2,
  17333. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  17334. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  17335. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  17336. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  17337. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  17338. + 2, 2, 2, 15, 2, 16, 2, 2, 2, 2,
  17339. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  17340. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  17341. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  17342. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  17343. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  17344. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  17345. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  17346. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  17347. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  17348. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  17349. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  17350. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  17351. + 2, 2, 2, 2, 2, 2, 1, 2, 3, 4,
  17352. + 5, 6, 7, 8, 9, 10, 11, 12, 13
  17353. };
  17354. -#if YYDEBUG != 0
  17355. -static const short yyprhs[] = { 0,
  17356. - 0, 4, 5, 8, 9, 12, 17, 18, 21, 23,
  17357. - 27, 30, 31, 34, 40, 41, 43, 47, 53, 54,
  17358. - 57, 59, 60, 63, 64, 67, 69, 74, 79, 83,
  17359. - 84, 87, 88, 90, 91, 97, 98, 105, 106, 112,
  17360. - 113, 120, 121, 124, 125
  17361. +#if YYDEBUG
  17362. +/* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
  17363. + YYRHS. */
  17364. +static const unsigned char yyprhs[] =
  17365. +{
  17366. + 0, 0, 3, 7, 8, 11, 12, 15, 20, 21,
  17367. + 24, 26, 30, 33, 34, 37, 43, 44, 46, 50,
  17368. + 56, 57, 60, 62, 63, 66, 67, 70, 72, 77,
  17369. + 82, 86, 87, 90, 91, 93, 94, 100, 101, 108,
  17370. + 109, 115, 116, 123, 124, 127, 128
  17371. };
  17372. -static const short yyrhs[] = { 24,
  17373. - 25, 29, 0, 0, 12, 24, 0, 0, 25, 26,
  17374. - 0, 5, 11, 14, 29, 0, 0, 28, 29, 0,
  17375. - 11, 0, 15, 30, 16, 0, 10, 11, 0, 0,
  17376. - 31, 30, 0, 32, 11, 40, 17, 33, 0, 0,
  17377. - 3, 0, 18, 35, 19, 0, 35, 34, 36, 19,
  17378. - 37, 0, 0, 20, 35, 0, 11, 0, 0, 21,
  17379. - 11, 0, 0, 14, 38, 0, 11, 0, 4, 15,
  17380. - 41, 16, 0, 8, 15, 43, 16, 0, 39, 7,
  17381. - 29, 0, 0, 9, 11, 0, 0, 13, 0, 0,
  17382. - 6, 11, 45, 46, 29, 0, 0, 11, 45, 46,
  17383. - 29, 42, 41, 0, 0, 6, 11, 45, 46, 27,
  17384. - 0, 0, 11, 45, 46, 27, 44, 43, 0, 0,
  17385. - 22, 11, 0, 0, 21, 11, 46, 0
  17386. +/* YYRHS -- A `-1'-separated list of the rules' RHS. */
  17387. +static const yysigned_char yyrhs[] =
  17388. +{
  17389. + 24, 0, -1, 25, 26, 30, -1, -1, 12, 25,
  17390. + -1, -1, 26, 27, -1, 5, 11, 14, 30, -1,
  17391. + -1, 29, 30, -1, 11, -1, 15, 31, 16, -1,
  17392. + 10, 11, -1, -1, 32, 31, -1, 33, 11, 41,
  17393. + 17, 34, -1, -1, 3, -1, 18, 36, 19, -1,
  17394. + 36, 35, 37, 19, 38, -1, -1, 20, 36, -1,
  17395. + 11, -1, -1, 21, 11, -1, -1, 14, 39, -1,
  17396. + 11, -1, 4, 15, 42, 16, -1, 8, 15, 44,
  17397. + 16, -1, 40, 7, 30, -1, -1, 9, 11, -1,
  17398. + -1, 13, -1, -1, 6, 11, 46, 47, 30, -1,
  17399. + -1, 11, 46, 47, 30, 43, 42, -1, -1, 6,
  17400. + 11, 46, 47, 28, -1, -1, 11, 46, 47, 28,
  17401. + 45, 44, -1, -1, 22, 11, -1, -1, 21, 11,
  17402. + 47, -1
  17403. };
  17404. -#endif
  17405. -
  17406. -#if YYDEBUG != 0
  17407. -static const short yyrline[] = { 0,
  17408. - 163, 175, 176, 184, 185, 188, 202, 207, 212, 231,
  17409. - 236, 243, 247, 254, 278, 282, 288, 301, 318, 322,
  17410. - 329, 339, 343, 350, 354, 360, 367, 374, 380, 390,
  17411. - 394, 400, 404, 410, 414, 431, 437, 454, 458, 474,
  17412. - 480, 497, 501, 507, 511
  17413. +/* YYRLINE[YYN] -- source line where rule number YYN was defined. */
  17414. +static const unsigned short int yyrline[] =
  17415. +{
  17416. + 0, 167, 167, 178, 179, 187, 188, 192, 206, 206,
  17417. + 216, 234, 239, 247, 250, 258, 282, 285, 292, 304,
  17418. + 323, 326, 334, 344, 347, 355, 358, 365, 371, 378,
  17419. + 384, 395, 398, 405, 408, 415, 418, 436, 435, 459,
  17420. + 462, 479, 478, 502, 505, 512, 515
  17421. };
  17422. #endif
  17423. -
  17424. -#if YYDEBUG != 0 || defined (YYERROR_VERBOSE)
  17425. -
  17426. -static const char * const yytname[] = { "$","error","$undefined.","TOK_BREAK",
  17427. -"TOK_CASE","TOK_DEF","TOK_DEFAULT","TOK_LENGTH","TOK_MULTI","TOK_RECOVER","TOK_ABORT",
  17428. -"TOK_ID","TOK_INCLUDE","TOK_STRING","'='","'{'","'}'","'<'","'-'","'>'","'@'",
  17429. -"','","':'","all","includes","structures","structure","rep_block","@1","block",
  17430. -"fields","field","opt_break","field_cont","opt_pos","decimal","opt_more","opt_val",
  17431. -"value","opt_recover","opt_name_list","tags","@2","rep_tags","@3","opt_id","list", NULL
  17432. +#if YYDEBUG || YYERROR_VERBOSE
  17433. +/* YYTNME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
  17434. + First, the terminals, then, starting at YYNTOKENS, nonterminals. */
  17435. +static const char *const yytname[] =
  17436. +{
  17437. + "$end", "error", "$undefined", "TOK_BREAK", "TOK_CASE", "TOK_DEF",
  17438. + "TOK_DEFAULT", "TOK_LENGTH", "TOK_MULTI", "TOK_RECOVER", "TOK_ABORT",
  17439. + "TOK_ID", "TOK_INCLUDE", "TOK_STRING", "'='", "'{'", "'}'", "'<'", "'-'",
  17440. + "'>'", "'@'", "','", "':'", "$accept", "all", "includes", "structures",
  17441. + "structure", "rep_block", "@1", "block", "fields", "field", "opt_break",
  17442. + "field_cont", "opt_pos", "decimal", "opt_more", "opt_val", "value",
  17443. + "opt_recover", "opt_name_list", "tags", "@2", "rep_tags", "@3", "opt_id",
  17444. + "list", 0
  17445. };
  17446. #endif
  17447. -static const short yyr1[] = { 0,
  17448. - 23, 24, 24, 25, 25, 26, 28, 27, 29, 29,
  17449. - 29, 30, 30, 31, 32, 32, 33, 33, 34, 34,
  17450. - 35, 36, 36, 37, 37, 38, 38, 38, 38, 39,
  17451. - 39, 40, 40, 41, 41, 42, 41, 43, 43, 44,
  17452. - 43, 45, 45, 46, 46
  17453. +# ifdef YYPRINT
  17454. +/* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to
  17455. + token YYLEX-NUM. */
  17456. +static const unsigned short int yytoknum[] =
  17457. +{
  17458. + 0, 256, 257, 258, 259, 260, 261, 262, 263, 264,
  17459. + 265, 266, 267, 268, 61, 123, 125, 60, 45, 62,
  17460. + 64, 44, 58
  17461. };
  17462. +# endif
  17463. -static const short yyr2[] = { 0,
  17464. - 3, 0, 2, 0, 2, 4, 0, 2, 1, 3,
  17465. - 2, 0, 2, 5, 0, 1, 3, 5, 0, 2,
  17466. - 1, 0, 2, 0, 2, 1, 4, 4, 3, 0,
  17467. - 2, 0, 1, 0, 5, 0, 6, 0, 5, 0,
  17468. - 6, 0, 2, 0, 3
  17469. +/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
  17470. +static const unsigned char yyr1[] =
  17471. +{
  17472. + 0, 23, 24, 25, 25, 26, 26, 27, 29, 28,
  17473. + 30, 30, 30, 31, 31, 32, 33, 33, 34, 34,
  17474. + 35, 35, 36, 37, 37, 38, 38, 39, 39, 39,
  17475. + 39, 40, 40, 41, 41, 42, 42, 43, 42, 44,
  17476. + 44, 45, 44, 46, 46, 47, 47
  17477. };
  17478. -static const short yydefact[] = { 2,
  17479. - 2, 4, 3, 0, 0, 0, 9, 12, 5, 1,
  17480. - 0, 11, 16, 0, 12, 0, 0, 10, 13, 32,
  17481. - 6, 33, 0, 0, 21, 0, 14, 19, 0, 0,
  17482. - 22, 17, 20, 0, 0, 23, 24, 30, 18, 0,
  17483. - 0, 0, 26, 25, 0, 34, 38, 31, 0, 0,
  17484. - 42, 0, 0, 42, 0, 29, 42, 0, 44, 27,
  17485. - 42, 44, 28, 44, 43, 0, 0, 44, 7, 0,
  17486. - 44, 36, 7, 40, 0, 35, 45, 34, 39, 38,
  17487. - 8, 37, 41, 0, 0, 0
  17488. +/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */
  17489. +static const unsigned char yyr2[] =
  17490. +{
  17491. + 0, 2, 3, 0, 2, 0, 2, 4, 0, 2,
  17492. + 1, 3, 2, 0, 2, 5, 0, 1, 3, 5,
  17493. + 0, 2, 1, 0, 2, 0, 2, 1, 4, 4,
  17494. + 3, 0, 2, 0, 1, 0, 5, 0, 6, 0,
  17495. + 5, 0, 6, 0, 2, 0, 3
  17496. };
  17497. -static const short yydefgoto[] = { 84,
  17498. - 2, 4, 9, 74, 75, 10, 14, 15, 16, 27,
  17499. - 31, 28, 35, 39, 44, 45, 23, 52, 78, 55,
  17500. - 80, 59, 67
  17501. +/* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state
  17502. + STATE-NUM when YYTABLE doesn't specify something else to do. Zero
  17503. + means the default is an error. */
  17504. +static const unsigned char yydefact[] =
  17505. +{
  17506. + 3, 3, 0, 5, 4, 1, 0, 0, 0, 10,
  17507. + 13, 6, 2, 0, 12, 17, 0, 13, 0, 0,
  17508. + 11, 14, 33, 7, 34, 0, 0, 22, 0, 15,
  17509. + 20, 0, 0, 23, 18, 21, 0, 0, 24, 25,
  17510. + 31, 19, 0, 0, 0, 27, 26, 0, 35, 39,
  17511. + 32, 0, 0, 43, 0, 0, 43, 0, 30, 43,
  17512. + 0, 45, 28, 43, 45, 29, 45, 44, 0, 0,
  17513. + 45, 8, 0, 45, 37, 8, 41, 0, 36, 46,
  17514. + 35, 40, 39, 9, 38, 42
  17515. };
  17516. -static const short yypact[] = { -8,
  17517. - -8,-32768,-32768, -4, 3, 17,-32768, -1,-32768,-32768,
  17518. - 20,-32768,-32768, 21, -1, 22, 11,-32768,-32768, 23,
  17519. --32768,-32768, 24, -3,-32768, 27,-32768, 15, 25, 27,
  17520. - 26,-32768,-32768, 28, 29,-32768, 31, 9,-32768, 34,
  17521. - 36, 32,-32768,-32768, 33, 18, 19,-32768, 11, 35,
  17522. - 30, 38, 44, 30, 40,-32768, 30, 46, 39,-32768,
  17523. - 30, 39,-32768, 39,-32768, 48, 11, 39,-32768, 11,
  17524. - 39,-32768,-32768,-32768, 11,-32768,-32768, 18,-32768, 19,
  17525. --32768,-32768,-32768, 42, 61,-32768
  17526. +/* YYDEFGOTO[NTERM-NUM]. */
  17527. +static const yysigned_char yydefgoto[] =
  17528. +{
  17529. + -1, 2, 3, 6, 11, 76, 77, 12, 16, 17,
  17530. + 18, 29, 33, 30, 37, 41, 46, 47, 25, 54,
  17531. + 80, 57, 82, 61, 69
  17532. };
  17533. -static const short yypgoto[] = {-32768,
  17534. - 62,-32768,-32768, -11,-32768, -17, 49,-32768,-32768,-32768,
  17535. --32768, 1,-32768,-32768,-32768,-32768,-32768, -13,-32768, -14,
  17536. --32768, -38, -59
  17537. +/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
  17538. + STATE-NUM. */
  17539. +#define YYPACT_NINF -62
  17540. +static const yysigned_char yypact[] =
  17541. +{
  17542. + -8, -8, 14, -62, -62, -62, -4, 16, 17, -62,
  17543. + -1, -62, -62, 20, -62, -62, 21, -1, 22, 11,
  17544. + -62, -62, 23, -62, -62, 24, -3, -62, 27, -62,
  17545. + 25, 28, 27, 30, -62, -62, 29, 33, -62, 32,
  17546. + 9, -62, 34, 39, 31, -62, -62, 36, 18, 19,
  17547. + -62, 11, 37, 35, 40, 44, 35, 43, -62, 35,
  17548. + 49, 41, -62, 35, 41, -62, 41, -62, 50, 11,
  17549. + 41, -62, 11, 41, -62, -62, -62, 11, -62, -62,
  17550. + 18, -62, 19, -62, -62, -62
  17551. };
  17552. -
  17553. -#define YYLAST 66
  17554. -
  17555. -
  17556. -static const short yytable[] = { 21,
  17557. - 5, 13, 69, 1, 70, 6, 7, 25, 73, -15,
  17558. - 8, 77, 40, 11, 26, 62, 41, 42, 64, 43,
  17559. - 6, 7, 68, 50, 53, 8, 29, 12, 51, 54,
  17560. - 33, 56, 20, 17, 30, 22, 18, 25, 36, 49,
  17561. - 24, 85, 48, 32, 38, 57, 34, 37, 46, 72,
  17562. - 47, 58, 76, 60, 61, 63, 65, 81, 71, 66,
  17563. - 86, 79, 3, 19, 82, 83
  17564. +/* YYPGOTO[NTERM-NUM]. */
  17565. +static const yysigned_char yypgoto[] =
  17566. +{
  17567. + -62, -62, 38, -62, -62, -31, -62, -19, 46, -62,
  17568. + -62, -62, -62, 3, -62, -62, -62, -62, -62, -16,
  17569. + -62, -17, -62, -40, -61
  17570. };
  17571. -static const short yycheck[] = { 17,
  17572. - 5, 3, 62, 12, 64, 10, 11, 11, 68, 11,
  17573. - 15, 71, 4, 11, 18, 54, 8, 9, 57, 11,
  17574. - 10, 11, 61, 6, 6, 15, 26, 11, 11, 11,
  17575. - 30, 49, 11, 14, 20, 13, 16, 11, 11, 7,
  17576. - 17, 0, 11, 19, 14, 11, 21, 19, 15, 67,
  17577. - 15, 22, 70, 16, 11, 16, 11, 75, 11, 21,
  17578. - 0, 73, 1, 15, 78, 80
  17579. +/* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If
  17580. + positive, shift that token. If negative, reduce the rule which
  17581. + number is the opposite. If zero, do what YYDEFACT says.
  17582. + If YYTABLE_NINF, syntax error. */
  17583. +#define YYTABLE_NINF -17
  17584. +static const yysigned_char yytable[] =
  17585. +{
  17586. + 23, 7, 15, 71, 1, 72, 8, 9, 27, 75,
  17587. + -16, 10, 79, 42, 5, 28, 64, 43, 44, 66,
  17588. + 45, 8, 9, 70, 52, 55, 10, 13, 14, 53,
  17589. + 56, 31, 58, 22, 19, 35, 24, 20, 27, 4,
  17590. + 38, 26, 50, 51, 81, 32, 40, 34, 59, 48,
  17591. + 74, 36, 39, 78, 49, 63, 62, 60, 83, 65,
  17592. + 67, 73, 68, 21, 84, 85
  17593. };
  17594. -/* -*-C-*- Note some compilers choke on comments on `#line' lines. */
  17595. -#line 3 "/usr/lib/bison.simple"
  17596. -/* This file comes from bison-1.28. */
  17597. -/* Skeleton output parser for bison,
  17598. - Copyright (C) 1984, 1989, 1990 Free Software Foundation, Inc.
  17599. -
  17600. - This program is free software; you can redistribute it and/or modify
  17601. - it under the terms of the GNU General Public License as published by
  17602. - the Free Software Foundation; either version 2, or (at your option)
  17603. - any later version.
  17604. -
  17605. - This program is distributed in the hope that it will be useful,
  17606. - but WITHOUT ANY WARRANTY; without even the implied warranty of
  17607. - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17608. - GNU General Public License for more details.
  17609. -
  17610. - You should have received a copy of the GNU General Public License
  17611. - along with this program; if not, write to the Free Software
  17612. - Foundation, Inc., 59 Temple Place - Suite 330,
  17613. - Boston, MA 02111-1307, USA. */
  17614. -
  17615. -/* As a special exception, when this file is copied by Bison into a
  17616. - Bison output file, you may use that output file without restriction.
  17617. - This special exception was added by the Free Software Foundation
  17618. - in version 1.24 of Bison. */
  17619. +static const unsigned char yycheck[] =
  17620. +{
  17621. + 19, 5, 3, 64, 12, 66, 10, 11, 11, 70,
  17622. + 11, 15, 73, 4, 0, 18, 56, 8, 9, 59,
  17623. + 11, 10, 11, 63, 6, 6, 15, 11, 11, 11,
  17624. + 11, 28, 51, 11, 14, 32, 13, 16, 11, 1,
  17625. + 11, 17, 11, 7, 75, 20, 14, 19, 11, 15,
  17626. + 69, 21, 19, 72, 15, 11, 16, 22, 77, 16,
  17627. + 11, 11, 21, 17, 80, 82
  17628. +};
  17629. -/* This is the parser code that is written into each bison parser
  17630. - when the %semantic_parser declaration is not specified in the grammar.
  17631. - It was written by Richard Stallman by simplifying the hairy parser
  17632. - used when %semantic_parser is specified. */
  17633. -
  17634. -#ifndef YYSTACK_USE_ALLOCA
  17635. -#ifdef alloca
  17636. -#define YYSTACK_USE_ALLOCA
  17637. -#else /* alloca not defined */
  17638. -#ifdef __GNUC__
  17639. -#define YYSTACK_USE_ALLOCA
  17640. -#define alloca __builtin_alloca
  17641. -#else /* not GNU C. */
  17642. -#if (!defined (__STDC__) && defined (sparc)) || defined (__sparc__) || defined (__sparc) || defined (__sgi) || (defined (__sun) && defined (__i386))
  17643. -#define YYSTACK_USE_ALLOCA
  17644. -#include <alloca.h>
  17645. -#else /* not sparc */
  17646. -/* We think this test detects Watcom and Microsoft C. */
  17647. -/* This used to test MSDOS, but that is a bad idea
  17648. - since that symbol is in the user namespace. */
  17649. -#if (defined (_MSDOS) || defined (_MSDOS_)) && !defined (__TURBOC__)
  17650. -#if 0 /* No need for malloc.h, which pollutes the namespace;
  17651. - instead, just don't use alloca. */
  17652. -#include <malloc.h>
  17653. -#endif
  17654. -#else /* not MSDOS, or __TURBOC__ */
  17655. -#if defined(_AIX)
  17656. -/* I don't know what this was needed for, but it pollutes the namespace.
  17657. - So I turned it off. rms, 2 May 1997. */
  17658. -/* #include <malloc.h> */
  17659. - #pragma alloca
  17660. -#define YYSTACK_USE_ALLOCA
  17661. -#else /* not MSDOS, or __TURBOC__, or _AIX */
  17662. -#if 0
  17663. -#ifdef __hpux /* [email protected] says this works for HPUX 9.05 and up,
  17664. - and on HPUX 10. Eventually we can turn this on. */
  17665. -#define YYSTACK_USE_ALLOCA
  17666. -#define alloca __builtin_alloca
  17667. -#endif /* __hpux */
  17668. -#endif
  17669. -#endif /* not _AIX */
  17670. -#endif /* not MSDOS, or __TURBOC__ */
  17671. -#endif /* not sparc */
  17672. -#endif /* not GNU C */
  17673. -#endif /* alloca not defined */
  17674. -#endif /* YYSTACK_USE_ALLOCA not defined */
  17675. +/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
  17676. + symbol of state STATE-NUM. */
  17677. +static const unsigned char yystos[] =
  17678. +{
  17679. + 0, 12, 24, 25, 25, 0, 26, 5, 10, 11,
  17680. + 15, 27, 30, 11, 11, 3, 31, 32, 33, 14,
  17681. + 16, 31, 11, 30, 13, 41, 17, 11, 18, 34,
  17682. + 36, 36, 20, 35, 19, 36, 21, 37, 11, 19,
  17683. + 14, 38, 4, 8, 9, 11, 39, 40, 15, 15,
  17684. + 11, 7, 6, 11, 42, 6, 11, 44, 30, 11,
  17685. + 22, 46, 16, 11, 46, 16, 46, 11, 21, 47,
  17686. + 46, 47, 47, 11, 30, 47, 28, 29, 30, 47,
  17687. + 43, 28, 45, 30, 42, 44
  17688. +};
  17689. -#ifdef YYSTACK_USE_ALLOCA
  17690. -#define YYSTACK_ALLOC alloca
  17691. -#else
  17692. -#define YYSTACK_ALLOC malloc
  17693. +#if ! defined (YYSIZE_T) && defined (__SIZE_TYPE__)
  17694. +# define YYSIZE_T __SIZE_TYPE__
  17695. +#endif
  17696. +#if ! defined (YYSIZE_T) && defined (size_t)
  17697. +# define YYSIZE_T size_t
  17698. +#endif
  17699. +#if ! defined (YYSIZE_T)
  17700. +# if defined (__STDC__) || defined (__cplusplus)
  17701. +# include <stddef.h> /* INFRINGES ON USER NAME SPACE */
  17702. +# define YYSIZE_T size_t
  17703. +# endif
  17704. +#endif
  17705. +#if ! defined (YYSIZE_T)
  17706. +# define YYSIZE_T unsigned int
  17707. #endif
  17708. -
  17709. -/* Note: there must be only one dollar sign in this file.
  17710. - It is replaced by the list of actions, each action
  17711. - as one case of the switch. */
  17712. #define yyerrok (yyerrstatus = 0)
  17713. #define yyclearin (yychar = YYEMPTY)
  17714. -#define YYEMPTY -2
  17715. +#define YYEMPTY (-2)
  17716. #define YYEOF 0
  17717. +
  17718. #define YYACCEPT goto yyacceptlab
  17719. -#define YYABORT goto yyabortlab
  17720. -#define YYERROR goto yyerrlab1
  17721. -/* Like YYERROR except do call yyerror.
  17722. - This remains here temporarily to ease the
  17723. - transition to the new meaning of YYERROR, for GCC.
  17724. +#define YYABORT goto yyabortlab
  17725. +#define YYERROR goto yyerrorlab
  17726. +
  17727. +
  17728. +/* Like YYERROR except do call yyerror. This remains here temporarily
  17729. + to ease the transition to the new meaning of YYERROR, for GCC.
  17730. Once GCC version 2 has supplanted version 1, this can go. */
  17731. +
  17732. #define YYFAIL goto yyerrlab
  17733. +
  17734. #define YYRECOVERING() (!!yyerrstatus)
  17735. -#define YYBACKUP(token, value) \
  17736. +
  17737. +#define YYBACKUP(Token, Value) \
  17738. do \
  17739. if (yychar == YYEMPTY && yylen == 1) \
  17740. - { yychar = (token), yylval = (value); \
  17741. - yychar1 = YYTRANSLATE (yychar); \
  17742. + { \
  17743. + yychar = (Token); \
  17744. + yylval = (Value); \
  17745. + yytoken = YYTRANSLATE (yychar); \
  17746. YYPOPSTACK; \
  17747. goto yybackup; \
  17748. } \
  17749. else \
  17750. - { yyerror ("syntax error: cannot back up"); YYERROR; } \
  17751. + { \
  17752. + yyerror ("syntax error: cannot back up");\
  17753. + YYERROR; \
  17754. + } \
  17755. while (0)
  17756. #define YYTERROR 1
  17757. #define YYERRCODE 256
  17758. -#ifndef YYPURE
  17759. -#define YYLEX yylex()
  17760. -#endif
  17761. +/* YYLLOC_DEFAULT -- Compute the default location (before the actions
  17762. + are run). */
  17763. -#ifdef YYPURE
  17764. -#ifdef YYLSP_NEEDED
  17765. -#ifdef YYLEX_PARAM
  17766. -#define YYLEX yylex(&yylval, &yylloc, YYLEX_PARAM)
  17767. -#else
  17768. -#define YYLEX yylex(&yylval, &yylloc)
  17769. +#ifndef YYLLOC_DEFAULT
  17770. +# define YYLLOC_DEFAULT(Current, Rhs, N) \
  17771. + ((Current).first_line = (Rhs)[1].first_line, \
  17772. + (Current).first_column = (Rhs)[1].first_column, \
  17773. + (Current).last_line = (Rhs)[N].last_line, \
  17774. + (Current).last_column = (Rhs)[N].last_column)
  17775. #endif
  17776. -#else /* not YYLSP_NEEDED */
  17777. +
  17778. +/* YYLEX -- calling `yylex' with the right arguments. */
  17779. +
  17780. #ifdef YYLEX_PARAM
  17781. -#define YYLEX yylex(&yylval, YYLEX_PARAM)
  17782. +# define YYLEX yylex (YYLEX_PARAM)
  17783. #else
  17784. -#define YYLEX yylex(&yylval)
  17785. -#endif
  17786. -#endif /* not YYLSP_NEEDED */
  17787. +# define YYLEX yylex ()
  17788. #endif
  17789. -/* If nonreentrant, generate the variables here */
  17790. +/* Enable debugging if requested. */
  17791. +#if YYDEBUG
  17792. -#ifndef YYPURE
  17793. +# ifndef YYFPRINTF
  17794. +# include <stdio.h> /* INFRINGES ON USER NAME SPACE */
  17795. +# define YYFPRINTF fprintf
  17796. +# endif
  17797. +
  17798. +# define YYDPRINTF(Args) \
  17799. +do { \
  17800. + if (yydebug) \
  17801. + YYFPRINTF Args; \
  17802. +} while (0)
  17803. +
  17804. +# define YYDSYMPRINT(Args) \
  17805. +do { \
  17806. + if (yydebug) \
  17807. + yysymprint Args; \
  17808. +} while (0)
  17809. +
  17810. +# define YYDSYMPRINTF(Title, Token, Value, Location) \
  17811. +do { \
  17812. + if (yydebug) \
  17813. + { \
  17814. + YYFPRINTF (stderr, "%s ", Title); \
  17815. + yysymprint (stderr, \
  17816. + Token, Value); \
  17817. + YYFPRINTF (stderr, "\n"); \
  17818. + } \
  17819. +} while (0)
  17820. -int yychar; /* the lookahead symbol */
  17821. -YYSTYPE yylval; /* the semantic value of the */
  17822. - /* lookahead symbol */
  17823. +/*------------------------------------------------------------------.
  17824. +| yy_stack_print -- Print the state stack from its BOTTOM up to its |
  17825. +| TOP (included). |
  17826. +`------------------------------------------------------------------*/
  17827. -#ifdef YYLSP_NEEDED
  17828. -YYLTYPE yylloc; /* location data for the lookahead */
  17829. - /* symbol */
  17830. +#if defined (__STDC__) || defined (__cplusplus)
  17831. +static void
  17832. +yy_stack_print (short int *bottom, short int *top)
  17833. +#else
  17834. +static void
  17835. +yy_stack_print (bottom, top)
  17836. + short int *bottom;
  17837. + short int *top;
  17838. #endif
  17839. +{
  17840. + YYFPRINTF (stderr, "Stack now");
  17841. + for (/* Nothing. */; bottom <= top; ++bottom)
  17842. + YYFPRINTF (stderr, " %d", *bottom);
  17843. + YYFPRINTF (stderr, "\n");
  17844. +}
  17845. -int yynerrs; /* number of parse errors so far */
  17846. -#endif /* not YYPURE */
  17847. +# define YY_STACK_PRINT(Bottom, Top) \
  17848. +do { \
  17849. + if (yydebug) \
  17850. + yy_stack_print ((Bottom), (Top)); \
  17851. +} while (0)
  17852. -#if YYDEBUG != 0
  17853. -int yydebug; /* nonzero means print parse trace */
  17854. -/* Since this is uninitialized, it does not stop multiple parsers
  17855. - from coexisting. */
  17856. +
  17857. +/*------------------------------------------------.
  17858. +| Report that the YYRULE is going to be reduced. |
  17859. +`------------------------------------------------*/
  17860. +
  17861. +#if defined (__STDC__) || defined (__cplusplus)
  17862. +static void
  17863. +yy_reduce_print (int yyrule)
  17864. +#else
  17865. +static void
  17866. +yy_reduce_print (yyrule)
  17867. + int yyrule;
  17868. #endif
  17869. +{
  17870. + int yyi;
  17871. + unsigned int yylno = yyrline[yyrule];
  17872. + YYFPRINTF (stderr, "Reducing stack by rule %d (line %u), ",
  17873. + yyrule - 1, yylno);
  17874. + /* Print the symbols being reduced, and their result. */
  17875. + for (yyi = yyprhs[yyrule]; 0 <= yyrhs[yyi]; yyi++)
  17876. + YYFPRINTF (stderr, "%s ", yytname [yyrhs[yyi]]);
  17877. + YYFPRINTF (stderr, "-> %s\n", yytname [yyr1[yyrule]]);
  17878. +}
  17879. -/* YYINITDEPTH indicates the initial size of the parser's stacks */
  17880. +# define YY_REDUCE_PRINT(Rule) \
  17881. +do { \
  17882. + if (yydebug) \
  17883. + yy_reduce_print (Rule); \
  17884. +} while (0)
  17885. +
  17886. +/* Nonzero means print parse trace. It is left uninitialized so that
  17887. + multiple parsers can coexist. */
  17888. +int yydebug;
  17889. +#else /* !YYDEBUG */
  17890. +# define YYDPRINTF(Args)
  17891. +# define YYDSYMPRINT(Args)
  17892. +# define YYDSYMPRINTF(Title, Token, Value, Location)
  17893. +# define YY_STACK_PRINT(Bottom, Top)
  17894. +# define YY_REDUCE_PRINT(Rule)
  17895. +#endif /* !YYDEBUG */
  17896. +
  17897. +/* YYINITDEPTH -- initial size of the parser's stacks. */
  17898. #ifndef YYINITDEPTH
  17899. -#define YYINITDEPTH 200
  17900. +# define YYINITDEPTH 200
  17901. #endif
  17902. -/* YYMAXDEPTH is the maximum size the stacks can grow to
  17903. - (effective only if the built-in stack extension method is used). */
  17904. +/* YYMAXDEPTH -- maximum size the stacks can grow to (effective only
  17905. + if the built-in stack extension method is used).
  17906. +
  17907. + Do not make this value too large; the results are undefined if
  17908. + SIZE_MAX < YYSTACK_BYTES (YYMAXDEPTH)
  17909. + evaluated with infinite-precision integer arithmetic. */
  17910. -#if YYMAXDEPTH == 0
  17911. -#undef YYMAXDEPTH
  17912. +#if defined (YYMAXDEPTH) && YYMAXDEPTH == 0
  17913. +# undef YYMAXDEPTH
  17914. #endif
  17915. #ifndef YYMAXDEPTH
  17916. -#define YYMAXDEPTH 10000
  17917. +# define YYMAXDEPTH 10000
  17918. #endif
  17919. +
  17920. -/* Define __yy_memcpy. Note that the size argument
  17921. - should be passed with type unsigned int, because that is what the non-GCC
  17922. - definitions require. With GCC, __builtin_memcpy takes an arg
  17923. - of type size_t, but it can handle unsigned int. */
  17924. -
  17925. -#if __GNUC__ > 1 /* GNU C and GNU C++ define this. */
  17926. -#define __yy_memcpy(TO,FROM,COUNT) __builtin_memcpy(TO,FROM,COUNT)
  17927. -#else /* not GNU C or C++ */
  17928. -#ifndef __cplusplus
  17929. -/* This is the most reliable way to avoid incompatibilities
  17930. - in available built-in functions on various systems. */
  17931. -static void
  17932. -__yy_memcpy (to, from, count)
  17933. - char *to;
  17934. - char *from;
  17935. - unsigned int count;
  17936. -{
  17937. - register char *f = from;
  17938. - register char *t = to;
  17939. - register int i = count;
  17940. +#if YYERROR_VERBOSE
  17941. +
  17942. +# ifndef yystrlen
  17943. +# if defined (__GLIBC__) && defined (_STRING_H)
  17944. +# define yystrlen strlen
  17945. +# else
  17946. +/* Return the length of YYSTR. */
  17947. +static YYSIZE_T
  17948. +# if defined (__STDC__) || defined (__cplusplus)
  17949. +yystrlen (const char *yystr)
  17950. +# else
  17951. +yystrlen (yystr)
  17952. + const char *yystr;
  17953. +# endif
  17954. +{
  17955. + register const char *yys = yystr;
  17956. +
  17957. + while (*yys++ != '\0')
  17958. + continue;
  17959. - while (i-- > 0)
  17960. - *t++ = *f++;
  17961. + return yys - yystr - 1;
  17962. }
  17963. +# endif
  17964. +# endif
  17965. -#else /* __cplusplus */
  17966. +# ifndef yystpcpy
  17967. +# if defined (__GLIBC__) && defined (_STRING_H) && defined (_GNU_SOURCE)
  17968. +# define yystpcpy stpcpy
  17969. +# else
  17970. +/* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in
  17971. + YYDEST. */
  17972. +static char *
  17973. +# if defined (__STDC__) || defined (__cplusplus)
  17974. +yystpcpy (char *yydest, const char *yysrc)
  17975. +# else
  17976. +yystpcpy (yydest, yysrc)
  17977. + char *yydest;
  17978. + const char *yysrc;
  17979. +# endif
  17980. +{
  17981. + register char *yyd = yydest;
  17982. + register const char *yys = yysrc;
  17983. +
  17984. + while ((*yyd++ = *yys++) != '\0')
  17985. + continue;
  17986. +
  17987. + return yyd - 1;
  17988. +}
  17989. +# endif
  17990. +# endif
  17991. +
  17992. +#endif /* !YYERROR_VERBOSE */
  17993. +
  17994. +
  17995. +
  17996. +#if YYDEBUG
  17997. +/*--------------------------------.
  17998. +| Print this symbol on YYOUTPUT. |
  17999. +`--------------------------------*/
  18000. -/* This is the most reliable way to avoid incompatibilities
  18001. - in available built-in functions on various systems. */
  18002. +#if defined (__STDC__) || defined (__cplusplus)
  18003. static void
  18004. -__yy_memcpy (char *to, char *from, unsigned int count)
  18005. +yysymprint (FILE *yyoutput, int yytype, YYSTYPE *yyvaluep)
  18006. +#else
  18007. +static void
  18008. +yysymprint (yyoutput, yytype, yyvaluep)
  18009. + FILE *yyoutput;
  18010. + int yytype;
  18011. + YYSTYPE *yyvaluep;
  18012. +#endif
  18013. {
  18014. - register char *t = to;
  18015. - register char *f = from;
  18016. - register int i = count;
  18017. + /* Pacify ``unused variable'' warnings. */
  18018. + (void) yyvaluep;
  18019. +
  18020. + if (yytype < YYNTOKENS)
  18021. + {
  18022. + YYFPRINTF (yyoutput, "token %s (", yytname[yytype]);
  18023. +# ifdef YYPRINT
  18024. + YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
  18025. +# endif
  18026. + }
  18027. + else
  18028. + YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]);
  18029. - while (i-- > 0)
  18030. - *t++ = *f++;
  18031. + switch (yytype)
  18032. + {
  18033. + default:
  18034. + break;
  18035. + }
  18036. + YYFPRINTF (yyoutput, ")");
  18037. }
  18038. +#endif /* ! YYDEBUG */
  18039. +/*-----------------------------------------------.
  18040. +| Release the memory associated to this symbol. |
  18041. +`-----------------------------------------------*/
  18042. +
  18043. +#if defined (__STDC__) || defined (__cplusplus)
  18044. +static void
  18045. +yydestruct (int yytype, YYSTYPE *yyvaluep)
  18046. +#else
  18047. +static void
  18048. +yydestruct (yytype, yyvaluep)
  18049. + int yytype;
  18050. + YYSTYPE *yyvaluep;
  18051. #endif
  18052. -#endif
  18053. +{
  18054. + /* Pacify ``unused variable'' warnings. */
  18055. + (void) yyvaluep;
  18056. +
  18057. + switch (yytype)
  18058. + {
  18059. +
  18060. + default:
  18061. + break;
  18062. + }
  18063. +}
  18064. -#line 217 "/usr/lib/bison.simple"
  18065. -/* The user can define YYPARSE_PARAM as the name of an argument to be passed
  18066. - into yyparse. The argument should have type void *.
  18067. - It should actually point to an object.
  18068. - Grammar actions can access the variable by casting it
  18069. - to the proper pointer type. */
  18070. +/* Prevent warnings from -Wmissing-prototypes. */
  18071. #ifdef YYPARSE_PARAM
  18072. -#ifdef __cplusplus
  18073. -#define YYPARSE_PARAM_ARG void *YYPARSE_PARAM
  18074. -#define YYPARSE_PARAM_DECL
  18075. -#else /* not __cplusplus */
  18076. -#define YYPARSE_PARAM_ARG YYPARSE_PARAM
  18077. -#define YYPARSE_PARAM_DECL void *YYPARSE_PARAM;
  18078. -#endif /* not __cplusplus */
  18079. -#else /* not YYPARSE_PARAM */
  18080. -#define YYPARSE_PARAM_ARG
  18081. -#define YYPARSE_PARAM_DECL
  18082. -#endif /* not YYPARSE_PARAM */
  18083. +# if defined (__STDC__) || defined (__cplusplus)
  18084. +int yyparse (void *YYPARSE_PARAM);
  18085. +# else
  18086. +int yyparse ();
  18087. +# endif
  18088. +#else /* ! YYPARSE_PARAM */
  18089. +#if defined (__STDC__) || defined (__cplusplus)
  18090. +int yyparse (void);
  18091. +#else
  18092. +int yyparse ();
  18093. +#endif
  18094. +#endif /* ! YYPARSE_PARAM */
  18095. +
  18096. +
  18097. +
  18098. +/* The lookahead symbol. */
  18099. +int yychar;
  18100. +
  18101. +/* The semantic value of the lookahead symbol. */
  18102. +YYSTYPE yylval;
  18103. +
  18104. +/* Number of syntax errors so far. */
  18105. +int yynerrs;
  18106. +
  18107. +
  18108. +
  18109. +/*----------.
  18110. +| yyparse. |
  18111. +`----------*/
  18112. -/* Prevent warning if -Wstrict-prototypes. */
  18113. -#ifdef __GNUC__
  18114. #ifdef YYPARSE_PARAM
  18115. -int yyparse (void *);
  18116. +# if defined (__STDC__) || defined (__cplusplus)
  18117. +int yyparse (void *YYPARSE_PARAM)
  18118. +# else
  18119. +int yyparse (YYPARSE_PARAM)
  18120. + void *YYPARSE_PARAM;
  18121. +# endif
  18122. +#else /* ! YYPARSE_PARAM */
  18123. +#if defined (__STDC__) || defined (__cplusplus)
  18124. +int
  18125. +yyparse (void)
  18126. #else
  18127. -int yyparse (void);
  18128. +int
  18129. +yyparse ()
  18130. +
  18131. #endif
  18132. #endif
  18133. -
  18134. -int
  18135. -yyparse(YYPARSE_PARAM_ARG)
  18136. - YYPARSE_PARAM_DECL
  18137. {
  18138. +
  18139. register int yystate;
  18140. register int yyn;
  18141. - register short *yyssp;
  18142. + int yyresult;
  18143. + /* Number of tokens to shift before error messages enabled. */
  18144. + int yyerrstatus;
  18145. + /* Lookahead token as an internal (translated) token number. */
  18146. + int yytoken = 0;
  18147. +
  18148. + /* Three stacks and their tools:
  18149. + `yyss': related to states,
  18150. + `yyvs': related to semantic values,
  18151. + `yyls': related to locations.
  18152. +
  18153. + Refer to the stacks thru separate pointers, to allow yyoverflow
  18154. + to reallocate them elsewhere. */
  18155. +
  18156. + /* The state stack. */
  18157. + short int yyssa[YYINITDEPTH];
  18158. + short int *yyss = yyssa;
  18159. + register short int *yyssp;
  18160. +
  18161. + /* The semantic value stack. */
  18162. + YYSTYPE yyvsa[YYINITDEPTH];
  18163. + YYSTYPE *yyvs = yyvsa;
  18164. register YYSTYPE *yyvsp;
  18165. - int yyerrstatus; /* number of tokens to shift before error messages enabled */
  18166. - int yychar1 = 0; /* lookahead token as an internal (translated) token number */
  18167. - short yyssa[YYINITDEPTH]; /* the state stack */
  18168. - YYSTYPE yyvsa[YYINITDEPTH]; /* the semantic value stack */
  18169. - short *yyss = yyssa; /* refer to the stacks thru separate pointers */
  18170. - YYSTYPE *yyvs = yyvsa; /* to allow yyoverflow to reallocate them elsewhere */
  18171. -#ifdef YYLSP_NEEDED
  18172. - YYLTYPE yylsa[YYINITDEPTH]; /* the location stack */
  18173. - YYLTYPE *yyls = yylsa;
  18174. - YYLTYPE *yylsp;
  18175. -
  18176. -#define YYPOPSTACK (yyvsp--, yyssp--, yylsp--)
  18177. -#else
  18178. #define YYPOPSTACK (yyvsp--, yyssp--)
  18179. -#endif
  18180. - int yystacksize = YYINITDEPTH;
  18181. - int yyfree_stacks = 0;
  18182. + YYSIZE_T yystacksize = YYINITDEPTH;
  18183. -#ifdef YYPURE
  18184. - int yychar;
  18185. - YYSTYPE yylval;
  18186. - int yynerrs;
  18187. -#ifdef YYLSP_NEEDED
  18188. - YYLTYPE yylloc;
  18189. -#endif
  18190. -#endif
  18191. + /* The variables used to return semantic value and location from the
  18192. + action routines. */
  18193. + YYSTYPE yyval;
  18194. - YYSTYPE yyval; /* the variable used to return */
  18195. - /* semantic values from the action */
  18196. - /* routines */
  18197. + /* When reducing, the number of symbols on the RHS of the reduced
  18198. + rule. */
  18199. int yylen;
  18200. -#if YYDEBUG != 0
  18201. - if (yydebug)
  18202. - fprintf(stderr, "Starting parse\n");
  18203. -#endif
  18204. + YYDPRINTF ((stderr, "Starting parse\n"));
  18205. yystate = 0;
  18206. yyerrstatus = 0;
  18207. @@ -639,110 +1015,97 @@
  18208. so that they stay on the same level as the state stack.
  18209. The wasted elements are never initialized. */
  18210. - yyssp = yyss - 1;
  18211. + yyssp = yyss;
  18212. yyvsp = yyvs;
  18213. -#ifdef YYLSP_NEEDED
  18214. - yylsp = yyls;
  18215. -#endif
  18216. -/* Push a new state, which is found in yystate . */
  18217. -/* In all cases, when you get here, the value and location stacks
  18218. - have just been pushed. so pushing a state here evens the stacks. */
  18219. -yynewstate:
  18220. - *++yyssp = yystate;
  18221. + goto yysetstate;
  18222. - if (yyssp >= yyss + yystacksize - 1)
  18223. - {
  18224. - /* Give user a chance to reallocate the stack */
  18225. - /* Use copies of these so that the &'s don't force the real ones into memory. */
  18226. - YYSTYPE *yyvs1 = yyvs;
  18227. - short *yyss1 = yyss;
  18228. -#ifdef YYLSP_NEEDED
  18229. - YYLTYPE *yyls1 = yyls;
  18230. -#endif
  18231. +/*------------------------------------------------------------.
  18232. +| yynewstate -- Push a new state, which is found in yystate. |
  18233. +`------------------------------------------------------------*/
  18234. + yynewstate:
  18235. + /* In all cases, when you get here, the value and location stacks
  18236. + have just been pushed. so pushing a state here evens the stacks.
  18237. + */
  18238. + yyssp++;
  18239. + yysetstate:
  18240. + *yyssp = yystate;
  18241. +
  18242. + if (yyss + yystacksize - 1 <= yyssp)
  18243. + {
  18244. /* Get the current used size of the three stacks, in elements. */
  18245. - int size = yyssp - yyss + 1;
  18246. + YYSIZE_T yysize = yyssp - yyss + 1;
  18247. #ifdef yyoverflow
  18248. - /* Each stack pointer address is followed by the size of
  18249. - the data in use in that stack, in bytes. */
  18250. -#ifdef YYLSP_NEEDED
  18251. - /* This used to be a conditional around just the two extra args,
  18252. - but that might be undefined if yyoverflow is a macro. */
  18253. - yyoverflow("parser stack overflow",
  18254. - &yyss1, size * sizeof (*yyssp),
  18255. - &yyvs1, size * sizeof (*yyvsp),
  18256. - &yyls1, size * sizeof (*yylsp),
  18257. - &yystacksize);
  18258. -#else
  18259. - yyoverflow("parser stack overflow",
  18260. - &yyss1, size * sizeof (*yyssp),
  18261. - &yyvs1, size * sizeof (*yyvsp),
  18262. - &yystacksize);
  18263. -#endif
  18264. -
  18265. - yyss = yyss1; yyvs = yyvs1;
  18266. -#ifdef YYLSP_NEEDED
  18267. - yyls = yyls1;
  18268. -#endif
  18269. + {
  18270. + /* Give user a chance to reallocate the stack. Use copies of
  18271. + these so that the &'s don't force the real ones into
  18272. + memory. */
  18273. + YYSTYPE *yyvs1 = yyvs;
  18274. + short int *yyss1 = yyss;
  18275. +
  18276. +
  18277. + /* Each stack pointer address is followed by the size of the
  18278. + data in use in that stack, in bytes. This used to be a
  18279. + conditional around just the two extra args, but that might
  18280. + be undefined if yyoverflow is a macro. */
  18281. + yyoverflow ("parser stack overflow",
  18282. + &yyss1, yysize * sizeof (*yyssp),
  18283. + &yyvs1, yysize * sizeof (*yyvsp),
  18284. +
  18285. + &yystacksize);
  18286. +
  18287. + yyss = yyss1;
  18288. + yyvs = yyvs1;
  18289. + }
  18290. #else /* no yyoverflow */
  18291. +# ifndef YYSTACK_RELOCATE
  18292. + goto yyoverflowlab;
  18293. +# else
  18294. /* Extend the stack our own way. */
  18295. - if (yystacksize >= YYMAXDEPTH)
  18296. - {
  18297. - yyerror("parser stack overflow");
  18298. - if (yyfree_stacks)
  18299. - {
  18300. - free (yyss);
  18301. - free (yyvs);
  18302. -#ifdef YYLSP_NEEDED
  18303. - free (yyls);
  18304. -#endif
  18305. - }
  18306. - return 2;
  18307. - }
  18308. + if (YYMAXDEPTH <= yystacksize)
  18309. + goto yyoverflowlab;
  18310. yystacksize *= 2;
  18311. - if (yystacksize > YYMAXDEPTH)
  18312. + if (YYMAXDEPTH < yystacksize)
  18313. yystacksize = YYMAXDEPTH;
  18314. -#ifndef YYSTACK_USE_ALLOCA
  18315. - yyfree_stacks = 1;
  18316. -#endif
  18317. - yyss = (short *) YYSTACK_ALLOC (yystacksize * sizeof (*yyssp));
  18318. - __yy_memcpy ((char *)yyss, (char *)yyss1,
  18319. - size * (unsigned int) sizeof (*yyssp));
  18320. - yyvs = (YYSTYPE *) YYSTACK_ALLOC (yystacksize * sizeof (*yyvsp));
  18321. - __yy_memcpy ((char *)yyvs, (char *)yyvs1,
  18322. - size * (unsigned int) sizeof (*yyvsp));
  18323. -#ifdef YYLSP_NEEDED
  18324. - yyls = (YYLTYPE *) YYSTACK_ALLOC (yystacksize * sizeof (*yylsp));
  18325. - __yy_memcpy ((char *)yyls, (char *)yyls1,
  18326. - size * (unsigned int) sizeof (*yylsp));
  18327. -#endif
  18328. +
  18329. + {
  18330. + short int *yyss1 = yyss;
  18331. + union yyalloc *yyptr =
  18332. + (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));
  18333. + if (! yyptr)
  18334. + goto yyoverflowlab;
  18335. + YYSTACK_RELOCATE (yyss);
  18336. + YYSTACK_RELOCATE (yyvs);
  18337. +
  18338. +# undef YYSTACK_RELOCATE
  18339. + if (yyss1 != yyssa)
  18340. + YYSTACK_FREE (yyss1);
  18341. + }
  18342. +# endif
  18343. #endif /* no yyoverflow */
  18344. - yyssp = yyss + size - 1;
  18345. - yyvsp = yyvs + size - 1;
  18346. -#ifdef YYLSP_NEEDED
  18347. - yylsp = yyls + size - 1;
  18348. -#endif
  18349. + yyssp = yyss + yysize - 1;
  18350. + yyvsp = yyvs + yysize - 1;
  18351. -#if YYDEBUG != 0
  18352. - if (yydebug)
  18353. - fprintf(stderr, "Stack size increased to %d\n", yystacksize);
  18354. -#endif
  18355. - if (yyssp >= yyss + yystacksize - 1)
  18356. + YYDPRINTF ((stderr, "Stack size increased to %lu\n",
  18357. + (unsigned long int) yystacksize));
  18358. +
  18359. + if (yyss + yystacksize - 1 <= yyssp)
  18360. YYABORT;
  18361. }
  18362. -#if YYDEBUG != 0
  18363. - if (yydebug)
  18364. - fprintf(stderr, "Entering state %d\n", yystate);
  18365. -#endif
  18366. + YYDPRINTF ((stderr, "Entering state %d\n", yystate));
  18367. goto yybackup;
  18368. - yybackup:
  18369. +
  18370. +/*-----------.
  18371. +| yybackup. |
  18372. +`-----------*/
  18373. +yybackup:
  18374. /* Do appropriate processing given the current state. */
  18375. /* Read a lookahead token if we need one and don't already have one. */
  18376. @@ -751,154 +1114,120 @@
  18377. /* First try to decide what to do without reference to lookahead token. */
  18378. yyn = yypact[yystate];
  18379. - if (yyn == YYFLAG)
  18380. + if (yyn == YYPACT_NINF)
  18381. goto yydefault;
  18382. /* Not known => get a lookahead token if don't already have one. */
  18383. - /* yychar is either YYEMPTY or YYEOF
  18384. - or a valid token in external form. */
  18385. -
  18386. + /* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol. */
  18387. if (yychar == YYEMPTY)
  18388. {
  18389. -#if YYDEBUG != 0
  18390. - if (yydebug)
  18391. - fprintf(stderr, "Reading a token: ");
  18392. -#endif
  18393. + YYDPRINTF ((stderr, "Reading a token: "));
  18394. yychar = YYLEX;
  18395. }
  18396. - /* Convert token to internal form (in yychar1) for indexing tables with */
  18397. -
  18398. - if (yychar <= 0) /* This means end of input. */
  18399. + if (yychar <= YYEOF)
  18400. {
  18401. - yychar1 = 0;
  18402. - yychar = YYEOF; /* Don't call YYLEX any more */
  18403. -
  18404. -#if YYDEBUG != 0
  18405. - if (yydebug)
  18406. - fprintf(stderr, "Now at end of input.\n");
  18407. -#endif
  18408. + yychar = yytoken = YYEOF;
  18409. + YYDPRINTF ((stderr, "Now at end of input.\n"));
  18410. }
  18411. else
  18412. {
  18413. - yychar1 = YYTRANSLATE(yychar);
  18414. -
  18415. -#if YYDEBUG != 0
  18416. - if (yydebug)
  18417. - {
  18418. - fprintf (stderr, "Next token is %d (%s", yychar, yytname[yychar1]);
  18419. - /* Give the individual parser a way to print the precise meaning
  18420. - of a token, for further debugging info. */
  18421. -#ifdef YYPRINT
  18422. - YYPRINT (stderr, yychar, yylval);
  18423. -#endif
  18424. - fprintf (stderr, ")\n");
  18425. - }
  18426. -#endif
  18427. + yytoken = YYTRANSLATE (yychar);
  18428. + YYDSYMPRINTF ("Next token is", yytoken, &yylval, &yylloc);
  18429. }
  18430. - yyn += yychar1;
  18431. - if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != yychar1)
  18432. + /* If the proper action on seeing token YYTOKEN is to reduce or to
  18433. + detect an error, take that action. */
  18434. + yyn += yytoken;
  18435. + if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken)
  18436. goto yydefault;
  18437. -
  18438. yyn = yytable[yyn];
  18439. -
  18440. - /* yyn is what to do for this token type in this state.
  18441. - Negative => reduce, -yyn is rule number.
  18442. - Positive => shift, yyn is new state.
  18443. - New state is final state => don't bother to shift,
  18444. - just return success.
  18445. - 0, or most negative number => error. */
  18446. -
  18447. - if (yyn < 0)
  18448. + if (yyn <= 0)
  18449. {
  18450. - if (yyn == YYFLAG)
  18451. + if (yyn == 0 || yyn == YYTABLE_NINF)
  18452. goto yyerrlab;
  18453. yyn = -yyn;
  18454. goto yyreduce;
  18455. }
  18456. - else if (yyn == 0)
  18457. - goto yyerrlab;
  18458. if (yyn == YYFINAL)
  18459. YYACCEPT;
  18460. /* Shift the lookahead token. */
  18461. -
  18462. -#if YYDEBUG != 0
  18463. - if (yydebug)
  18464. - fprintf(stderr, "Shifting token %d (%s), ", yychar, yytname[yychar1]);
  18465. -#endif
  18466. + YYDPRINTF ((stderr, "Shifting token %s, ", yytname[yytoken]));
  18467. /* Discard the token being shifted unless it is eof. */
  18468. if (yychar != YYEOF)
  18469. yychar = YYEMPTY;
  18470. *++yyvsp = yylval;
  18471. -#ifdef YYLSP_NEEDED
  18472. - *++yylsp = yylloc;
  18473. -#endif
  18474. - /* count tokens shifted since error; after three, turn off error status. */
  18475. - if (yyerrstatus) yyerrstatus--;
  18476. +
  18477. + /* Count tokens shifted since error; after three, turn off error
  18478. + status. */
  18479. + if (yyerrstatus)
  18480. + yyerrstatus--;
  18481. yystate = yyn;
  18482. goto yynewstate;
  18483. -/* Do the default action for the current state. */
  18484. -yydefault:
  18485. +/*-----------------------------------------------------------.
  18486. +| yydefault -- do the default action for the current state. |
  18487. +`-----------------------------------------------------------*/
  18488. +yydefault:
  18489. yyn = yydefact[yystate];
  18490. if (yyn == 0)
  18491. goto yyerrlab;
  18492. + goto yyreduce;
  18493. -/* Do a reduction. yyn is the number of a rule to reduce with. */
  18494. +
  18495. +/*-----------------------------.
  18496. +| yyreduce -- Do a reduction. |
  18497. +`-----------------------------*/
  18498. yyreduce:
  18499. + /* yyn is the number of a rule to reduce with. */
  18500. yylen = yyr2[yyn];
  18501. - if (yylen > 0)
  18502. - yyval = yyvsp[1-yylen]; /* implement default value of the action */
  18503. -#if YYDEBUG != 0
  18504. - if (yydebug)
  18505. - {
  18506. - int i;
  18507. + /* If YYLEN is nonzero, implement the default value of the action:
  18508. + `$$ = $1'.
  18509. - fprintf (stderr, "Reducing via rule %d (line %d), ",
  18510. - yyn, yyrline[yyn]);
  18511. + Otherwise, the following line sets YYVAL to garbage.
  18512. + This behavior is undocumented and Bison
  18513. + users should not rely upon it. Assigning to YYVAL
  18514. + unconditionally makes the parser a bit smaller, and it avoids a
  18515. + GCC warning that YYVAL may be used uninitialized. */
  18516. + yyval = yyvsp[1-yylen];
  18517. - /* Print the symbols being reduced, and their result. */
  18518. - for (i = yyprhs[yyn]; yyrhs[i] > 0; i++)
  18519. - fprintf (stderr, "%s ", yytname[yyrhs[i]]);
  18520. - fprintf (stderr, " -> %s\n", yytname[yyr1[yyn]]);
  18521. - }
  18522. -#endif
  18523. -
  18524. - switch (yyn) {
  18525. -
  18526. -case 1:
  18527. -#line 165 "ql_y.y"
  18528. -{
  18529. + YY_REDUCE_PRINT (yyn);
  18530. + switch (yyn)
  18531. + {
  18532. + case 2:
  18533. +#line 168 "ql_y.y"
  18534. + {
  18535. STRUCTURE *walk;
  18536. def = yyvsp[0].field;
  18537. for (walk = structures; walk; walk = walk->next)
  18538. if (!walk->instances)
  18539. fprintf(stderr,"unused structure: %s\n",walk->id);
  18540. - ;
  18541. - break;}
  18542. -case 3:
  18543. -#line 177 "ql_y.y"
  18544. -{
  18545. + }
  18546. + break;
  18547. +
  18548. + case 4:
  18549. +#line 180 "ql_y.y"
  18550. + {
  18551. to_c("#%s\n",yyvsp[-1].str);
  18552. to_test("#%s\n",yyvsp[-1].str);
  18553. if (dump) to_dump("#%s\n",yyvsp[-1].str);
  18554. - ;
  18555. - break;}
  18556. -case 6:
  18557. -#line 190 "ql_y.y"
  18558. -{
  18559. + }
  18560. + break;
  18561. +
  18562. + case 7:
  18563. +#line 193 "ql_y.y"
  18564. + {
  18565. STRUCTURE *n;
  18566. n = alloc_t(STRUCTURE);
  18567. @@ -907,23 +1236,26 @@
  18568. n->instances = 0;
  18569. n->next = structures;
  18570. structures = n;
  18571. - ;
  18572. - break;}
  18573. -case 7:
  18574. -#line 203 "ql_y.y"
  18575. -{
  18576. + }
  18577. + break;
  18578. +
  18579. + case 8:
  18580. +#line 206 "ql_y.y"
  18581. + {
  18582. abort_id = NULL;
  18583. - ;
  18584. - break;}
  18585. -case 8:
  18586. -#line 207 "ql_y.y"
  18587. -{
  18588. + }
  18589. + break;
  18590. +
  18591. + case 9:
  18592. +#line 210 "ql_y.y"
  18593. + {
  18594. yyval.field = yyvsp[0].field;
  18595. - ;
  18596. - break;}
  18597. -case 9:
  18598. -#line 214 "ql_y.y"
  18599. -{
  18600. + }
  18601. + break;
  18602. +
  18603. + case 10:
  18604. +#line 217 "ql_y.y"
  18605. + {
  18606. STRUCTURE *walk;
  18607. for (walk = structures; walk; walk = walk->next)
  18608. @@ -939,38 +1271,43 @@
  18609. yyval.field->my_block = copy_block(walk->block);
  18610. yyval.field->next = NULL;
  18611. abort_id = NULL;
  18612. - ;
  18613. - break;}
  18614. -case 10:
  18615. -#line 232 "ql_y.y"
  18616. -{
  18617. + }
  18618. + break;
  18619. +
  18620. + case 11:
  18621. +#line 235 "ql_y.y"
  18622. + {
  18623. yyval.field = yyvsp[-1].field;
  18624. abort_id = NULL;
  18625. - ;
  18626. - break;}
  18627. -case 11:
  18628. -#line 237 "ql_y.y"
  18629. -{
  18630. + }
  18631. + break;
  18632. +
  18633. + case 12:
  18634. +#line 240 "ql_y.y"
  18635. + {
  18636. yyval.field = NULL;
  18637. abort_id = yyvsp[0].str;
  18638. - ;
  18639. - break;}
  18640. -case 12:
  18641. -#line 244 "ql_y.y"
  18642. -{
  18643. + }
  18644. + break;
  18645. +
  18646. + case 13:
  18647. +#line 247 "ql_y.y"
  18648. + {
  18649. yyval.field = NULL;
  18650. - ;
  18651. - break;}
  18652. -case 13:
  18653. -#line 248 "ql_y.y"
  18654. -{
  18655. + }
  18656. + break;
  18657. +
  18658. + case 14:
  18659. +#line 251 "ql_y.y"
  18660. + {
  18661. yyval.field = yyvsp[-1].field;
  18662. yyvsp[-1].field->next = yyvsp[0].field;
  18663. - ;
  18664. - break;}
  18665. -case 14:
  18666. -#line 256 "ql_y.y"
  18667. -{
  18668. + }
  18669. + break;
  18670. +
  18671. + case 15:
  18672. +#line 259 "ql_y.y"
  18673. + {
  18674. TAG *walk;
  18675. yyval.field = yyvsp[0].field;
  18676. @@ -989,23 +1326,26 @@
  18677. "selections");
  18678. if (*yyval.field->id != '_' && yyval.field->value && yyval.field->value->type == vt_multi)
  18679. yyerror("multi selectors must be unnamed");
  18680. - ;
  18681. - break;}
  18682. -case 15:
  18683. -#line 279 "ql_y.y"
  18684. -{
  18685. + }
  18686. + break;
  18687. +
  18688. + case 16:
  18689. +#line 282 "ql_y.y"
  18690. + {
  18691. yyval.num = 0;
  18692. - ;
  18693. - break;}
  18694. -case 16:
  18695. -#line 283 "ql_y.y"
  18696. -{
  18697. + }
  18698. + break;
  18699. +
  18700. + case 17:
  18701. +#line 286 "ql_y.y"
  18702. + {
  18703. yyval.num = 1;
  18704. - ;
  18705. - break;}
  18706. -case 17:
  18707. -#line 290 "ql_y.y"
  18708. -{
  18709. + }
  18710. + break;
  18711. +
  18712. + case 18:
  18713. +#line 293 "ql_y.y"
  18714. + {
  18715. yyval.field = alloc_t(FIELD);
  18716. yyval.field->size = yyvsp[-1].num;
  18717. yyval.field->var_len = -2; /* hack */
  18718. @@ -1015,140 +1355,159 @@
  18719. yyval.field->value = NULL;
  18720. yyval.field->structure = NULL;
  18721. yyval.field->next = NULL;
  18722. - ;
  18723. - break;}
  18724. -case 18:
  18725. -#line 302 "ql_y.y"
  18726. -{
  18727. + }
  18728. + break;
  18729. +
  18730. + case 19:
  18731. +#line 305 "ql_y.y"
  18732. + {
  18733. yyval.field = alloc_t(FIELD);
  18734. yyval.field->size = yyvsp[-4].num;
  18735. yyval.field->var_len = -1;
  18736. yyval.field->pos = yyvsp[-3].num;
  18737. yyval.field->flush = !yyvsp[-2].num;
  18738. - if (yyval.field->pos == -1)
  18739. + if (yyval.field->pos == -1) {
  18740. if (yyval.field->size & 7)
  18741. yyerror("position required for small fields");
  18742. else yyval.field->pos = 0;
  18743. + }
  18744. yyval.field->value = yyvsp[0].value;
  18745. yyval.field->structure = NULL;
  18746. yyval.field->next = NULL;
  18747. - ;
  18748. - break;}
  18749. -case 19:
  18750. -#line 319 "ql_y.y"
  18751. -{
  18752. - yyval.num = -1;
  18753. - ;
  18754. - break;}
  18755. -case 20:
  18756. + }
  18757. + break;
  18758. +
  18759. + case 20:
  18760. #line 323 "ql_y.y"
  18761. -{
  18762. + {
  18763. + yyval.num = -1;
  18764. + }
  18765. + break;
  18766. +
  18767. + case 21:
  18768. +#line 327 "ql_y.y"
  18769. + {
  18770. yyval.num = yyvsp[0].num-1;
  18771. if (yyval.num < 0 || yyval.num > 7) yyerror("invalid position");
  18772. - ;
  18773. - break;}
  18774. -case 21:
  18775. -#line 331 "ql_y.y"
  18776. -{
  18777. + }
  18778. + break;
  18779. +
  18780. + case 22:
  18781. +#line 335 "ql_y.y"
  18782. + {
  18783. char *end;
  18784. yyval.num = strtoul(yyvsp[0].str,&end,10);
  18785. if (*end) yyerror("no a decimal number");
  18786. - ;
  18787. - break;}
  18788. -case 22:
  18789. -#line 340 "ql_y.y"
  18790. -{
  18791. - yyval.num = 0;
  18792. - ;
  18793. - break;}
  18794. -case 23:
  18795. + }
  18796. + break;
  18797. +
  18798. + case 23:
  18799. #line 344 "ql_y.y"
  18800. -{
  18801. + {
  18802. + yyval.num = 0;
  18803. + }
  18804. + break;
  18805. +
  18806. + case 24:
  18807. +#line 348 "ql_y.y"
  18808. + {
  18809. if (strcmp(yyvsp[0].str,"more")) yyerror("\"more\" expected");
  18810. yyval.num = 1;
  18811. - ;
  18812. - break;}
  18813. -case 24:
  18814. -#line 351 "ql_y.y"
  18815. -{
  18816. - yyval.value = NULL;
  18817. - ;
  18818. - break;}
  18819. -case 25:
  18820. + }
  18821. + break;
  18822. +
  18823. + case 25:
  18824. #line 355 "ql_y.y"
  18825. -{
  18826. + {
  18827. + yyval.value = NULL;
  18828. + }
  18829. + break;
  18830. +
  18831. + case 26:
  18832. +#line 359 "ql_y.y"
  18833. + {
  18834. yyval.value = yyvsp[0].value;
  18835. - ;
  18836. - break;}
  18837. -case 26:
  18838. -#line 362 "ql_y.y"
  18839. -{
  18840. + }
  18841. + break;
  18842. +
  18843. + case 27:
  18844. +#line 366 "ql_y.y"
  18845. + {
  18846. yyval.value = alloc_t(VALUE);
  18847. yyval.value->type = vt_id;
  18848. yyval.value->id = yyvsp[0].str;
  18849. - ;
  18850. - break;}
  18851. -case 27:
  18852. -#line 368 "ql_y.y"
  18853. -{
  18854. + }
  18855. + break;
  18856. +
  18857. + case 28:
  18858. +#line 372 "ql_y.y"
  18859. + {
  18860. yyval.value = alloc_t(VALUE);
  18861. yyval.value->type = vt_case;
  18862. yyval.value->id = NULL;
  18863. yyval.value->tags = yyvsp[-1].tag;
  18864. - ;
  18865. - break;}
  18866. -case 28:
  18867. -#line 375 "ql_y.y"
  18868. -{
  18869. + }
  18870. + break;
  18871. +
  18872. + case 29:
  18873. +#line 379 "ql_y.y"
  18874. + {
  18875. yyval.value = alloc_t(VALUE);
  18876. yyval.value->type = vt_multi;
  18877. yyval.value->tags = yyvsp[-1].tag;
  18878. - ;
  18879. - break;}
  18880. -case 29:
  18881. -#line 381 "ql_y.y"
  18882. -{
  18883. + }
  18884. + break;
  18885. +
  18886. + case 30:
  18887. +#line 385 "ql_y.y"
  18888. + {
  18889. yyval.value = alloc_t(VALUE);
  18890. yyval.value->type = vt_length;
  18891. yyval.value->recovery = yyvsp[-2].str;
  18892. yyval.value->block = yyvsp[0].field;
  18893. yyval.value->abort_id = abort_id;
  18894. - ;
  18895. - break;}
  18896. -case 30:
  18897. -#line 391 "ql_y.y"
  18898. -{
  18899. - yyval.str = NULL;
  18900. - ;
  18901. - break;}
  18902. -case 31:
  18903. + }
  18904. + break;
  18905. +
  18906. + case 31:
  18907. #line 395 "ql_y.y"
  18908. -{
  18909. + {
  18910. + yyval.str = NULL;
  18911. + }
  18912. + break;
  18913. +
  18914. + case 32:
  18915. +#line 399 "ql_y.y"
  18916. + {
  18917. yyval.str = yyvsp[0].str;
  18918. - ;
  18919. - break;}
  18920. -case 32:
  18921. -#line 401 "ql_y.y"
  18922. -{
  18923. - yyval.nlist = NULL;
  18924. - ;
  18925. - break;}
  18926. -case 33:
  18927. + }
  18928. + break;
  18929. +
  18930. + case 33:
  18931. #line 405 "ql_y.y"
  18932. -{
  18933. + {
  18934. + yyval.nlist = NULL;
  18935. + }
  18936. + break;
  18937. +
  18938. + case 34:
  18939. +#line 409 "ql_y.y"
  18940. + {
  18941. yyval.nlist = get_name_list(yyvsp[0].str);
  18942. - ;
  18943. - break;}
  18944. -case 34:
  18945. -#line 411 "ql_y.y"
  18946. -{
  18947. - yyval.tag = NULL;
  18948. - ;
  18949. - break;}
  18950. -case 35:
  18951. + }
  18952. + break;
  18953. +
  18954. + case 35:
  18955. #line 415 "ql_y.y"
  18956. -{
  18957. + {
  18958. + yyval.tag = NULL;
  18959. + }
  18960. + break;
  18961. +
  18962. + case 36:
  18963. +#line 419 "ql_y.y"
  18964. + {
  18965. yyval.tag = alloc_t(TAG);
  18966. yyval.tag->deflt = 1;
  18967. if (yyvsp[-2].str) {
  18968. @@ -1163,18 +1522,20 @@
  18969. yyval.tag->block = yyvsp[0].field;
  18970. yyval.tag->next = NULL;
  18971. yyval.tag->abort_id = abort_id;
  18972. - ;
  18973. - break;}
  18974. -case 36:
  18975. -#line 432 "ql_y.y"
  18976. -{
  18977. + }
  18978. + break;
  18979. +
  18980. + case 37:
  18981. +#line 436 "ql_y.y"
  18982. + {
  18983. yyval.tag = alloc_t(TAG);
  18984. yyval.tag->abort_id = abort_id;
  18985. - ;
  18986. - break;}
  18987. -case 37:
  18988. -#line 437 "ql_y.y"
  18989. -{
  18990. + }
  18991. + break;
  18992. +
  18993. + case 38:
  18994. +#line 441 "ql_y.y"
  18995. + {
  18996. yyval.tag = yyvsp[-1].tag;
  18997. yyval.tag->deflt = 0;
  18998. if (yyvsp[-4].str) {
  18999. @@ -1188,17 +1549,19 @@
  19000. yyval.tag->more = yyvsp[-3].list;
  19001. yyval.tag->block = yyvsp[-2].field;
  19002. yyval.tag->next = yyvsp[0].tag;
  19003. - ;
  19004. - break;}
  19005. -case 38:
  19006. -#line 455 "ql_y.y"
  19007. -{
  19008. - yyval.tag = NULL;
  19009. - ;
  19010. - break;}
  19011. -case 39:
  19012. + }
  19013. + break;
  19014. +
  19015. + case 39:
  19016. #line 459 "ql_y.y"
  19017. -{
  19018. + {
  19019. + yyval.tag = NULL;
  19020. + }
  19021. + break;
  19022. +
  19023. + case 40:
  19024. +#line 463 "ql_y.y"
  19025. + {
  19026. yyval.tag = alloc_t(TAG);
  19027. yyval.tag->deflt = 1;
  19028. if (yyvsp[-2].str) {
  19029. @@ -1212,18 +1575,20 @@
  19030. yyval.tag->more = yyvsp[-1].list;
  19031. yyval.tag->block = yyvsp[0].field;
  19032. yyval.tag->next = NULL;
  19033. - ;
  19034. - break;}
  19035. -case 40:
  19036. -#line 475 "ql_y.y"
  19037. -{
  19038. + }
  19039. + break;
  19040. +
  19041. + case 41:
  19042. +#line 479 "ql_y.y"
  19043. + {
  19044. yyval.tag = alloc_t(TAG);
  19045. yyval.tag->abort_id = abort_id;
  19046. - ;
  19047. - break;}
  19048. -case 41:
  19049. -#line 480 "ql_y.y"
  19050. -{
  19051. + }
  19052. + break;
  19053. +
  19054. + case 42:
  19055. +#line 484 "ql_y.y"
  19056. + {
  19057. yyval.tag = yyvsp[-1].tag;
  19058. yyval.tag->deflt = 0;
  19059. if (yyvsp[-4].str) {
  19060. @@ -1237,254 +1602,266 @@
  19061. yyval.tag->more = yyvsp[-3].list;
  19062. yyval.tag->block = yyvsp[-2].field;
  19063. yyval.tag->next = yyvsp[0].tag;
  19064. - ;
  19065. - break;}
  19066. -case 42:
  19067. -#line 498 "ql_y.y"
  19068. -{
  19069. - yyval.str = NULL;
  19070. - ;
  19071. - break;}
  19072. -case 43:
  19073. + }
  19074. + break;
  19075. +
  19076. + case 43:
  19077. #line 502 "ql_y.y"
  19078. -{
  19079. + {
  19080. + yyval.str = NULL;
  19081. + }
  19082. + break;
  19083. +
  19084. + case 44:
  19085. +#line 506 "ql_y.y"
  19086. + {
  19087. yyval.str = yyvsp[0].str;
  19088. - ;
  19089. - break;}
  19090. -case 44:
  19091. -#line 508 "ql_y.y"
  19092. -{
  19093. - yyval.list = NULL;
  19094. - ;
  19095. - break;}
  19096. -case 45:
  19097. + }
  19098. + break;
  19099. +
  19100. + case 45:
  19101. #line 512 "ql_y.y"
  19102. -{
  19103. + {
  19104. + yyval.list = NULL;
  19105. + }
  19106. + break;
  19107. +
  19108. + case 46:
  19109. +#line 516 "ql_y.y"
  19110. + {
  19111. yyval.list = alloc_t(VALUE_LIST);
  19112. yyval.list->value = yyvsp[-1].str;
  19113. yyval.list->next = yyvsp[0].list;
  19114. - ;
  19115. - break;}
  19116. -}
  19117. - /* the action file gets copied in in place of this dollarsign */
  19118. -#line 543 "/usr/lib/bison.simple"
  19119. + }
  19120. + break;
  19121. +
  19122. +
  19123. + }
  19124. +
  19125. +/* Line 1010 of yacc.c. */
  19126. +#line 1643 "y.tab.c"
  19127. yyvsp -= yylen;
  19128. yyssp -= yylen;
  19129. -#ifdef YYLSP_NEEDED
  19130. - yylsp -= yylen;
  19131. -#endif
  19132. -#if YYDEBUG != 0
  19133. - if (yydebug)
  19134. - {
  19135. - short *ssp1 = yyss - 1;
  19136. - fprintf (stderr, "state stack now");
  19137. - while (ssp1 != yyssp)
  19138. - fprintf (stderr, " %d", *++ssp1);
  19139. - fprintf (stderr, "\n");
  19140. - }
  19141. -#endif
  19142. +
  19143. + YY_STACK_PRINT (yyss, yyssp);
  19144. *++yyvsp = yyval;
  19145. -#ifdef YYLSP_NEEDED
  19146. - yylsp++;
  19147. - if (yylen == 0)
  19148. - {
  19149. - yylsp->first_line = yylloc.first_line;
  19150. - yylsp->first_column = yylloc.first_column;
  19151. - yylsp->last_line = (yylsp-1)->last_line;
  19152. - yylsp->last_column = (yylsp-1)->last_column;
  19153. - yylsp->text = 0;
  19154. - }
  19155. - else
  19156. - {
  19157. - yylsp->last_line = (yylsp+yylen-1)->last_line;
  19158. - yylsp->last_column = (yylsp+yylen-1)->last_column;
  19159. - }
  19160. -#endif
  19161. - /* Now "shift" the result of the reduction.
  19162. - Determine what state that goes to,
  19163. - based on the state we popped back to
  19164. - and the rule number reduced by. */
  19165. + /* Now `shift' the result of the reduction. Determine what state
  19166. + that goes to, based on the state we popped back to and the rule
  19167. + number reduced by. */
  19168. yyn = yyr1[yyn];
  19169. - yystate = yypgoto[yyn - YYNTBASE] + *yyssp;
  19170. - if (yystate >= 0 && yystate <= YYLAST && yycheck[yystate] == *yyssp)
  19171. + yystate = yypgoto[yyn - YYNTOKENS] + *yyssp;
  19172. + if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp)
  19173. yystate = yytable[yystate];
  19174. else
  19175. - yystate = yydefgoto[yyn - YYNTBASE];
  19176. + yystate = yydefgoto[yyn - YYNTOKENS];
  19177. goto yynewstate;
  19178. -yyerrlab: /* here on detecting error */
  19179. - if (! yyerrstatus)
  19180. - /* If not already recovering from an error, report this error. */
  19181. +/*------------------------------------.
  19182. +| yyerrlab -- here on detecting error |
  19183. +`------------------------------------*/
  19184. +yyerrlab:
  19185. + /* If not already recovering from an error, report this error. */
  19186. + if (!yyerrstatus)
  19187. {
  19188. ++yynerrs;
  19189. -
  19190. -#ifdef YYERROR_VERBOSE
  19191. +#if YYERROR_VERBOSE
  19192. yyn = yypact[yystate];
  19193. - if (yyn > YYFLAG && yyn < YYLAST)
  19194. + if (YYPACT_NINF < yyn && yyn < YYLAST)
  19195. {
  19196. - int size = 0;
  19197. - char *msg;
  19198. - int x, count;
  19199. -
  19200. - count = 0;
  19201. - /* Start X at -yyn if nec to avoid negative indexes in yycheck. */
  19202. - for (x = (yyn < 0 ? -yyn : 0);
  19203. - x < (sizeof(yytname) / sizeof(char *)); x++)
  19204. - if (yycheck[x + yyn] == x)
  19205. - size += strlen(yytname[x]) + 15, count++;
  19206. - msg = (char *) malloc(size + 15);
  19207. - if (msg != 0)
  19208. + YYSIZE_T yysize = 0;
  19209. + int yytype = YYTRANSLATE (yychar);
  19210. + const char* yyprefix;
  19211. + char *yymsg;
  19212. + int yyx;
  19213. +
  19214. + /* Start YYX at -YYN if negative to avoid negative indexes in
  19215. + YYCHECK. */
  19216. + int yyxbegin = yyn < 0 ? -yyn : 0;
  19217. +
  19218. + /* Stay within bounds of both yycheck and yytname. */
  19219. + int yychecklim = YYLAST - yyn;
  19220. + int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;
  19221. + int yycount = 0;
  19222. +
  19223. + yyprefix = ", expecting ";
  19224. + for (yyx = yyxbegin; yyx < yyxend; ++yyx)
  19225. + if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR)
  19226. + {
  19227. + yysize += yystrlen (yyprefix) + yystrlen (yytname [yyx]);
  19228. + yycount += 1;
  19229. + if (yycount == 5)
  19230. + {
  19231. + yysize = 0;
  19232. + break;
  19233. + }
  19234. + }
  19235. + yysize += (sizeof ("syntax error, unexpected ")
  19236. + + yystrlen (yytname[yytype]));
  19237. + yymsg = (char *) YYSTACK_ALLOC (yysize);
  19238. + if (yymsg != 0)
  19239. {
  19240. - strcpy(msg, "parse error");
  19241. + char *yyp = yystpcpy (yymsg, "syntax error, unexpected ");
  19242. + yyp = yystpcpy (yyp, yytname[yytype]);
  19243. - if (count < 5)
  19244. + if (yycount < 5)
  19245. {
  19246. - count = 0;
  19247. - for (x = (yyn < 0 ? -yyn : 0);
  19248. - x < (sizeof(yytname) / sizeof(char *)); x++)
  19249. - if (yycheck[x + yyn] == x)
  19250. + yyprefix = ", expecting ";
  19251. + for (yyx = yyxbegin; yyx < yyxend; ++yyx)
  19252. + if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR)
  19253. {
  19254. - strcat(msg, count == 0 ? ", expecting `" : " or `");
  19255. - strcat(msg, yytname[x]);
  19256. - strcat(msg, "'");
  19257. - count++;
  19258. + yyp = yystpcpy (yyp, yyprefix);
  19259. + yyp = yystpcpy (yyp, yytname[yyx]);
  19260. + yyprefix = " or ";
  19261. }
  19262. }
  19263. - yyerror(msg);
  19264. - free(msg);
  19265. + yyerror (yymsg);
  19266. + YYSTACK_FREE (yymsg);
  19267. }
  19268. else
  19269. - yyerror ("parse error; also virtual memory exceeded");
  19270. + yyerror ("syntax error; also virtual memory exhausted");
  19271. }
  19272. else
  19273. #endif /* YYERROR_VERBOSE */
  19274. - yyerror("parse error");
  19275. + yyerror ("syntax error");
  19276. }
  19277. - goto yyerrlab1;
  19278. -yyerrlab1: /* here on error raised explicitly by an action */
  19279. +
  19280. if (yyerrstatus == 3)
  19281. {
  19282. - /* if just tried and failed to reuse lookahead token after an error, discard it. */
  19283. + /* If just tried and failed to reuse lookahead token after an
  19284. + error, discard it. */
  19285. - /* return failure if at end of input */
  19286. - if (yychar == YYEOF)
  19287. - YYABORT;
  19288. -
  19289. -#if YYDEBUG != 0
  19290. - if (yydebug)
  19291. - fprintf(stderr, "Discarding token %d (%s).\n", yychar, yytname[yychar1]);
  19292. -#endif
  19293. + if (yychar <= YYEOF)
  19294. + {
  19295. + /* If at end of input, pop the error token,
  19296. + then the rest of the stack, then return failure. */
  19297. + if (yychar == YYEOF)
  19298. + for (;;)
  19299. + {
  19300. + YYPOPSTACK;
  19301. + if (yyssp == yyss)
  19302. + YYABORT;
  19303. + YYDSYMPRINTF ("Error: popping", yystos[*yyssp], yyvsp, yylsp);
  19304. + yydestruct (yystos[*yyssp], yyvsp);
  19305. + }
  19306. + }
  19307. + else
  19308. + {
  19309. + YYDSYMPRINTF ("Error: discarding", yytoken, &yylval, &yylloc);
  19310. + yydestruct (yytoken, &yylval);
  19311. + yychar = YYEMPTY;
  19312. - yychar = YYEMPTY;
  19313. + }
  19314. }
  19315. - /* Else will try to reuse lookahead token
  19316. - after shifting the error token. */
  19317. -
  19318. - yyerrstatus = 3; /* Each real token shifted decrements this */
  19319. + /* Else will try to reuse lookahead token after shifting the error
  19320. + token. */
  19321. + goto yyerrlab1;
  19322. - goto yyerrhandle;
  19323. -yyerrdefault: /* current state does not do anything special for the error token. */
  19324. +/*---------------------------------------------------.
  19325. +| yyerrorlab -- error raised explicitly by YYERROR. |
  19326. +`---------------------------------------------------*/
  19327. +yyerrorlab:
  19328. -#if 0
  19329. - /* This is wrong; only states that explicitly want error tokens
  19330. - should shift them. */
  19331. - yyn = yydefact[yystate]; /* If its default is to accept any token, ok. Otherwise pop it.*/
  19332. - if (yyn) goto yydefault;
  19333. +#ifdef __GNUC__
  19334. + /* Pacify GCC when the user code never invokes YYERROR and the label
  19335. + yyerrorlab therefore never appears in user code. */
  19336. + if (0)
  19337. + goto yyerrorlab;
  19338. #endif
  19339. -yyerrpop: /* pop the current state because it cannot handle the error token */
  19340. -
  19341. - if (yyssp == yyss) YYABORT;
  19342. - yyvsp--;
  19343. - yystate = *--yyssp;
  19344. -#ifdef YYLSP_NEEDED
  19345. - yylsp--;
  19346. -#endif
  19347. + yyvsp -= yylen;
  19348. + yyssp -= yylen;
  19349. + yystate = *yyssp;
  19350. + goto yyerrlab1;
  19351. -#if YYDEBUG != 0
  19352. - if (yydebug)
  19353. - {
  19354. - short *ssp1 = yyss - 1;
  19355. - fprintf (stderr, "Error: state stack now");
  19356. - while (ssp1 != yyssp)
  19357. - fprintf (stderr, " %d", *++ssp1);
  19358. - fprintf (stderr, "\n");
  19359. - }
  19360. -#endif
  19361. -yyerrhandle:
  19362. +/*-------------------------------------------------------------.
  19363. +| yyerrlab1 -- common code for both syntax error and YYERROR. |
  19364. +`-------------------------------------------------------------*/
  19365. +yyerrlab1:
  19366. + yyerrstatus = 3; /* Each real token shifted decrements this. */
  19367. - yyn = yypact[yystate];
  19368. - if (yyn == YYFLAG)
  19369. - goto yyerrdefault;
  19370. + for (;;)
  19371. + {
  19372. + yyn = yypact[yystate];
  19373. + if (yyn != YYPACT_NINF)
  19374. + {
  19375. + yyn += YYTERROR;
  19376. + if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR)
  19377. + {
  19378. + yyn = yytable[yyn];
  19379. + if (0 < yyn)
  19380. + break;
  19381. + }
  19382. + }
  19383. - yyn += YYTERROR;
  19384. - if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != YYTERROR)
  19385. - goto yyerrdefault;
  19386. + /* Pop the current state because it cannot handle the error token. */
  19387. + if (yyssp == yyss)
  19388. + YYABORT;
  19389. - yyn = yytable[yyn];
  19390. - if (yyn < 0)
  19391. - {
  19392. - if (yyn == YYFLAG)
  19393. - goto yyerrpop;
  19394. - yyn = -yyn;
  19395. - goto yyreduce;
  19396. + YYDSYMPRINTF ("Error: popping", yystos[*yyssp], yyvsp, yylsp);
  19397. + yydestruct (yystos[yystate], yyvsp);
  19398. + YYPOPSTACK;
  19399. + yystate = *yyssp;
  19400. + YY_STACK_PRINT (yyss, yyssp);
  19401. }
  19402. - else if (yyn == 0)
  19403. - goto yyerrpop;
  19404. if (yyn == YYFINAL)
  19405. YYACCEPT;
  19406. -#if YYDEBUG != 0
  19407. - if (yydebug)
  19408. - fprintf(stderr, "Shifting error token, ");
  19409. -#endif
  19410. + YYDPRINTF ((stderr, "Shifting error token, "));
  19411. *++yyvsp = yylval;
  19412. -#ifdef YYLSP_NEEDED
  19413. - *++yylsp = yylloc;
  19414. -#endif
  19415. +
  19416. yystate = yyn;
  19417. goto yynewstate;
  19418. - yyacceptlab:
  19419. - /* YYACCEPT comes here. */
  19420. - if (yyfree_stacks)
  19421. - {
  19422. - free (yyss);
  19423. - free (yyvs);
  19424. -#ifdef YYLSP_NEEDED
  19425. - free (yyls);
  19426. -#endif
  19427. - }
  19428. - return 0;
  19429. - yyabortlab:
  19430. - /* YYABORT comes here. */
  19431. - if (yyfree_stacks)
  19432. - {
  19433. - free (yyss);
  19434. - free (yyvs);
  19435. -#ifdef YYLSP_NEEDED
  19436. - free (yyls);
  19437. +/*-------------------------------------.
  19438. +| yyacceptlab -- YYACCEPT comes here. |
  19439. +`-------------------------------------*/
  19440. +yyacceptlab:
  19441. + yyresult = 0;
  19442. + goto yyreturn;
  19443. +
  19444. +/*-----------------------------------.
  19445. +| yyabortlab -- YYABORT comes here. |
  19446. +`-----------------------------------*/
  19447. +yyabortlab:
  19448. + yyresult = 1;
  19449. + goto yyreturn;
  19450. +
  19451. +#ifndef yyoverflow
  19452. +/*----------------------------------------------.
  19453. +| yyoverflowlab -- parser overflow comes here. |
  19454. +`----------------------------------------------*/
  19455. +yyoverflowlab:
  19456. + yyerror ("parser stack overflow");
  19457. + yyresult = 2;
  19458. + /* Fall through. */
  19459. +#endif
  19460. +
  19461. +yyreturn:
  19462. +#ifndef yyoverflow
  19463. + if (yyss != yyssa)
  19464. + YYSTACK_FREE (yyss);
  19465. #endif
  19466. - }
  19467. - return 1;
  19468. + return yyresult;
  19469. }
  19470. -#line 518 "ql_y.y"
  19471. +
  19472. +
  19473. +
  19474. Index: linux-atm-2.4.1/src/qgen/ql_y.y
  19475. ===================================================================
  19476. --- linux-atm-2.4.1.orig/src/qgen/ql_y.y 2007-10-20 19:19:10.990254780 +0200
  19477. +++ linux-atm-2.4.1/src/qgen/ql_y.y 2007-10-20 19:19:11.946309259 +0200
  19478. @@ -17,6 +17,8 @@
  19479. #include "qgen.h"
  19480. #include "file.h"
  19481. +extern void yyerror(const char *s);
  19482. +
  19483. #define MAX_TOKEN 256
  19484. #define DEFAULT_NAMELIST_FILE "default.nl"
  19485. @@ -58,9 +60,10 @@
  19486. for (walk = strchr(start,0)-1; walk > start && isspace(*walk); walk--)
  19487. *walk = 0;
  19488. if (*start == ':') {
  19489. - if (!(searching = strcmp(start+1,name)))
  19490. + if (!(searching = strcmp(start+1,name))) {
  19491. if (found) yyerror("multiple entries");
  19492. else found = 1;
  19493. + }
  19494. continue;
  19495. }
  19496. if (searching) continue;
  19497. @@ -305,10 +308,11 @@
  19498. $$->var_len = -1;
  19499. $$->pos = $2;
  19500. $$->flush = !$3;
  19501. - if ($$->pos == -1)
  19502. + if ($$->pos == -1) {
  19503. if ($$->size & 7)
  19504. yyerror("position required for small fields");
  19505. else $$->pos = 0;
  19506. + }
  19507. $$->value = $5;
  19508. $$->structure = NULL;
  19509. $$->next = NULL;
  19510. Index: linux-atm-2.4.1/src/qgen/ql_l.l
  19511. ===================================================================
  19512. --- linux-atm-2.4.1.orig/src/qgen/ql_l.l 2007-10-20 19:19:10.994255006 +0200
  19513. +++ linux-atm-2.4.1/src/qgen/ql_l.l 2007-10-20 19:19:11.946309259 +0200
  19514. @@ -68,7 +68,7 @@
  19515. %%
  19516. -void yyerror(char *s)
  19517. +void yyerror(const char *s)
  19518. {
  19519. fprintf(stderr,"line %d: %s near \"%s\"\n",lineno,s,yytext);
  19520. exit(1);
  19521. Index: linux-atm-2.4.1/src/qgen/qlib.c
  19522. ===================================================================
  19523. --- linux-atm-2.4.1.orig/src/qgen/qlib.c 2007-10-20 19:19:11.002255460 +0200
  19524. +++ linux-atm-2.4.1/src/qgen/qlib.c 2007-10-20 19:19:11.954309717 +0200
  19525. @@ -26,14 +26,14 @@
  19526. #include "op.h"
  19527. -static int debug = 0;
  19528. +static int q_debug = 0;
  19529. void PREFIX(report)(int severity,const char *msg,...)
  19530. {
  19531. va_list ap;
  19532. - if (!debug && severity > Q_ERROR) return;
  19533. + if (!q_debug && severity > Q_ERROR) return;
  19534. va_start(ap,msg);
  19535. vprintf(msg,ap);
  19536. printf("\n");
  19537. @@ -836,7 +836,7 @@
  19538. Q_DSC dsc;
  19539. int len,c;
  19540. - debug = argc != 1;
  19541. + q_debug = argc != 1;
  19542. len = 0;
  19543. while (scanf("%x",&c) == 1) msg[len++] = c;
  19544. qd_start();
  19545. Index: linux-atm-2.4.1/src/qgen/qlib.h
  19546. ===================================================================
  19547. --- linux-atm-2.4.1.orig/src/qgen/qlib.h 2007-10-20 19:19:11.010255919 +0200
  19548. +++ linux-atm-2.4.1/src/qgen/qlib.h 2007-10-20 19:19:11.958309941 +0200
  19549. @@ -23,7 +23,9 @@
  19550. #define Q_FATAL -1
  19551. +#ifndef DUMP_MODE
  19552. extern int q_dump;
  19553. +#endif
  19554. extern void q_report(int severity,const char *msg,...);
  19555. #ifdef DUMP_MODE
  19556. Index: linux-atm-2.4.1/src/qgen/ql_y.h
  19557. ===================================================================
  19558. --- linux-atm-2.4.1.orig/src/qgen/ql_y.h 2007-10-20 19:19:11.014256146 +0200
  19559. +++ linux-atm-2.4.1/src/qgen/ql_y.h 2007-10-20 19:19:11.970310630 +0200
  19560. @@ -1,4 +1,65 @@
  19561. -typedef union {
  19562. +/* A Bison parser, made by GNU Bison 1.875d. */
  19563. +
  19564. +/* Skeleton parser for Yacc-like parsing with Bison,
  19565. + Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
  19566. +
  19567. + This program is free software; you can redistribute it and/or modify
  19568. + it under the terms of the GNU General Public License as published by
  19569. + the Free Software Foundation; either version 2, or (at your option)
  19570. + any later version.
  19571. +
  19572. + This program is distributed in the hope that it will be useful,
  19573. + but WITHOUT ANY WARRANTY; without even the implied warranty of
  19574. + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19575. + GNU General Public License for more details.
  19576. +
  19577. + You should have received a copy of the GNU General Public License
  19578. + along with this program; if not, write to the Free Software
  19579. + Foundation, Inc., 59 Temple Place - Suite 330,
  19580. + Boston, MA 02111-1307, USA. */
  19581. +
  19582. +/* As a special exception, when this file is copied by Bison into a
  19583. + Bison output file, you may use that output file without restriction.
  19584. + This special exception was added by the Free Software Foundation
  19585. + in version 1.24 of Bison. */
  19586. +
  19587. +/* Tokens. */
  19588. +#ifndef YYTOKENTYPE
  19589. +# define YYTOKENTYPE
  19590. + /* Put the tokens into the symbol table, so that GDB and other debuggers
  19591. + know about them. */
  19592. + enum yytokentype {
  19593. + TOK_BREAK = 258,
  19594. + TOK_CASE = 259,
  19595. + TOK_DEF = 260,
  19596. + TOK_DEFAULT = 261,
  19597. + TOK_LENGTH = 262,
  19598. + TOK_MULTI = 263,
  19599. + TOK_RECOVER = 264,
  19600. + TOK_ABORT = 265,
  19601. + TOK_ID = 266,
  19602. + TOK_INCLUDE = 267,
  19603. + TOK_STRING = 268
  19604. + };
  19605. +#endif
  19606. +#define TOK_BREAK 258
  19607. +#define TOK_CASE 259
  19608. +#define TOK_DEF 260
  19609. +#define TOK_DEFAULT 261
  19610. +#define TOK_LENGTH 262
  19611. +#define TOK_MULTI 263
  19612. +#define TOK_RECOVER 264
  19613. +#define TOK_ABORT 265
  19614. +#define TOK_ID 266
  19615. +#define TOK_INCLUDE 267
  19616. +#define TOK_STRING 268
  19617. +
  19618. +
  19619. +
  19620. +
  19621. +#if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
  19622. +#line 142 "ql_y.y"
  19623. +typedef union YYSTYPE {
  19624. const char *str;
  19625. int num;
  19626. FIELD *field;
  19627. @@ -7,17 +68,14 @@
  19628. TAG *tag;
  19629. NAME_LIST *nlist;
  19630. } YYSTYPE;
  19631. -#define TOK_BREAK 257
  19632. -#define TOK_CASE 258
  19633. -#define TOK_DEF 259
  19634. -#define TOK_DEFAULT 260
  19635. -#define TOK_LENGTH 261
  19636. -#define TOK_MULTI 262
  19637. -#define TOK_RECOVER 263
  19638. -#define TOK_ABORT 264
  19639. -#define TOK_ID 265
  19640. -#define TOK_INCLUDE 266
  19641. -#define TOK_STRING 267
  19642. -
  19643. +/* Line 1285 of yacc.c. */
  19644. +#line 73 "y.tab.h"
  19645. +# define yystype YYSTYPE /* obsolescent; will be withdrawn */
  19646. +# define YYSTYPE_IS_DECLARED 1
  19647. +# define YYSTYPE_IS_TRIVIAL 1
  19648. +#endif
  19649. extern YYSTYPE yylval;
  19650. +
  19651. +
  19652. +
  19653. Index: linux-atm-2.4.1/src/qgen/incl.pl
  19654. ===================================================================
  19655. --- linux-atm-2.4.1.orig/src/qgen/incl.pl 2007-10-20 19:19:11.022256600 +0200
  19656. +++ linux-atm-2.4.1/src/qgen/incl.pl 2007-10-20 19:19:11.990311770 +0200
  19657. @@ -24,7 +24,7 @@
  19658. }
  19659. die "no include file specified" unless defined $last;
  19660. for (@STD,@USR) {
  19661. - next unless defined stat $_."/".$last;
  19662. + next unless -e "$_/$last";
  19663. print $_."/".$last."\n" || die "print STDOUT: $!";
  19664. exit 0;
  19665. }
  19666. Index: linux-atm-2.4.1/src/qgen/msg.fmt
  19667. ===================================================================
  19668. --- linux-atm-2.4.1.orig/src/qgen/msg.fmt 2007-10-20 19:19:11.030257059 +0200
  19669. +++ linux-atm-2.4.1/src/qgen/msg.fmt 2007-10-20 19:19:11.998312221 +0200
  19670. @@ -53,7 +53,7 @@
  19671. ATM_TD_FW_PCR_0 { p##fw_pcr_0 <24> } \
  19672. ATM_TD_BW_PCR_0 { p##bw_pcr_0 <24> } \
  19673. ATM_TD_FW_PCR_01 { p##fw_pcr_01 <24> } \
  19674. - ATM_TD_BW_PCR_01 { p##bw_pcr_01 <24> } \
  19675. + ATM_TD_BW_PCR_01 { p##bw_pcr_01 <24> }
  19676. #define TRAFFIC_DESCRIPTOR_VBR(p) \
  19677. ATM_TD_FW_SCR_0 { p##fw_scr_0 <24> } \
  19678. @@ -63,15 +63,15 @@
  19679. ATM_TD_FW_MBS_0 { p##fw_mbs_0 <24> } \
  19680. ATM_TD_BW_MBS_0 { p##bw_mbs_0 <24> } \
  19681. ATM_TD_FW_MBS_01 { p##fw_mbs_01 <24> } \
  19682. - ATM_TD_BW_MBS_01 { p##bw_mbs_01 <24> } \
  19683. + ATM_TD_BW_MBS_01 { p##bw_mbs_01 <24> }
  19684. #define TRAFFIC_DESCRIPTOR_BE(p) \
  19685. - ATM_TD_BEST_EFFORT { p##best_effort <0> } \
  19686. + ATM_TD_BEST_EFFORT { p##best_effort <0> }
  19687. #if defined(UNI40) || defined(DYNAMIC_UNI)
  19688. #define TRAFFIC_DESCRIPTOR_ABR(p) \
  19689. ATM_TD_FW_MCR_01 { p##fw_mcr_01 <24> } \
  19690. - ATM_TD_BW_MCR_01 { p##bw_mcr_01 <24> } \
  19691. + ATM_TD_BW_MCR_01 { p##bw_mcr_01 <24> }
  19692. #else
  19693. #define TRAFFIC_DESCRIPTOR_ABR(p) /* not yet */
  19694. Index: linux-atm-2.4.1/src/qgen/output
  19695. ===================================================================
  19696. --- /dev/null 1970-01-01 00:00:00.000000000 +0000
  19697. +++ linux-atm-2.4.1/src/qgen/output 2007-10-20 19:19:12.006312679 +0200
  19698. @@ -0,0 +1,704 @@
  19699. +# 1 "<stdin>"
  19700. +# 1 "<built-in>"
  19701. +# 1 "<command line>"
  19702. +# 1 "<stdin>"
  19703. +
  19704. +
  19705. +
  19706. +
  19707. +
  19708. +# 1 "../../config.h" 1
  19709. +# 7 "<stdin>" 2
  19710. +
  19711. +
  19712. +
  19713. +
  19714. +include "atmsap.h"
  19715. +include "uni.h"
  19716. +# 26 "<stdin>"
  19717. +def ie_aal = {
  19718. + _ext <1@8,more> = 1 _cs "q2931_cs" <2@6,more> = Q2931_CS_ITU _flag "atm_flag" <1@5,more> = ATM_FLAG_NO _action_ind "atm_ai_ie" <3@1> = 0 _ie_len <16> = recover RECOV_IND_IE length {
  19719. + aal_type <8> = case {
  19720. + 5 {
  19721. + _id "atm_aalp" <8> = multi {
  19722. + ATM_AALP_FW_MAX_SDU {
  19723. + fw_max_sdu <16>
  19724. + }
  19725. + ATM_AALP_BW_MAX_SDU {
  19726. + bw_max_sdu <16>
  19727. + }
  19728. +
  19729. + ATM_AALP_AAL_MODE {
  19730. + aal_mode <8> # UNI 3.0 only
  19731. + }
  19732. +
  19733. + ATM_AALP_SSCS {
  19734. + sscs_type <8>
  19735. + }
  19736. + }
  19737. + }
  19738. + }
  19739. + }
  19740. +}
  19741. +# 90 "<stdin>"
  19742. +def ie_td = { # UNI 3.0 calls this "User Cell Rate"
  19743. + _ext <1@8,more> = 1 _cs "q2931_cs" <2@6,more> = Q2931_CS_ITU _flag "atm_flag" <1@5,more> = ATM_FLAG_NO _action_ind "atm_ai_ie" <3@1> = 0 _ie_len <16> = recover RECOV_IND_IE length {
  19744. + _id "atm_td" <8> = multi {
  19745. + ATM_TD_FW_PCR_0 { _dummy <0> = length {}fw_pcr_0 <24> } ATM_TD_BW_PCR_0 { _dummy <0> = length {}bw_pcr_0 <24> } ATM_TD_FW_PCR_01 { _dummy <0> = length {}fw_pcr_01 <24> } ATM_TD_BW_PCR_01 { _dummy <0> = length {}bw_pcr_01 <24> } ATM_TD_FW_SCR_0 { _dummy <0> = length {}fw_scr_0 <24> } ATM_TD_BW_SCR_0 { _dummy <0> = length {}bw_scr_0 <24> } ATM_TD_FW_SCR_01 { _dummy <0> = length {}fw_scr_01 <24> } ATM_TD_BW_SCR_01 { _dummy <0> = length {}bw_scr_01 <24> } ATM_TD_FW_MBS_0 { _dummy <0> = length {}fw_mbs_0 <24> } ATM_TD_BW_MBS_0 { _dummy <0> = length {}bw_mbs_0 <24> } ATM_TD_FW_MBS_01 { _dummy <0> = length {}fw_mbs_01 <24> } ATM_TD_BW_MBS_01 { _dummy <0> = length {}bw_mbs_01 <24> } ATM_TD_BEST_EFFORT { _dummy <0> = length {}best_effort <0> }
  19746. +# 104 "<stdin>"
  19747. + ATM_TD_TM_OPT { # @@@ should this also go into the TD macro ?
  19748. +
  19749. + fw_fdisc "atm_fd" <1@8,more> = ATM_FD_NO
  19750. + bw_fdisc "atm_fd" <1@7,more> = ATM_FD_NO
  19751. +
  19752. + bw_tag "atm_tag" <1@2,more> = ATM_TAG_NO
  19753. + fw_tag "atm_tag" <1@1> = ATM_TAG_NO
  19754. + }
  19755. + }
  19756. + }
  19757. +}
  19758. +
  19759. +
  19760. +def ie_bbcap = {
  19761. + _ext <1@8,more> = 1 _cs "q2931_cs" <2@6,more> = Q2931_CS_ITU _flag "atm_flag" <1@5,more> = ATM_FLAG_NO _action_ind "atm_ai_ie" <3@1> = 0 _ie_len <16> = recover RECOV_IND_IE length {
  19762. + bearer_class "atm_bc" <5@1,more>
  19763. + _ext <1@8> = case {
  19764. + 0 {
  19765. + _ext <1@8,more> = 1
  19766. + trans_cap "atm_tc" <7@1>
  19767. + }
  19768. + default 1 {}
  19769. + }
  19770. + _ext <1@8,more> = 1
  19771. + susc_clip "atm_stc" <2@6,more> = ATM_STC_NO
  19772. + upcc "atm_upcc" <2@1> = ATM_UPCC_P2P
  19773. + }
  19774. +}
  19775. +
  19776. +
  19777. +def ie_bhli = {
  19778. + _ext <1@8,more> = 1 _cs "q2931_cs" <2@6,more> = Q2931_CS_ITU _flag "atm_flag" <1@5,more> = ATM_FLAG_NO _action_ind "atm_ai_ie" <3@1> = 0 _ie_len <16> = recover RECOV_IND_IE length {
  19779. + _ext <1@8,more> = 1
  19780. + hli_type <7@1> = case {
  19781. +
  19782. +
  19783. + 0 { # ISO
  19784. + iso_hli <-64>
  19785. + }
  19786. + 1 { # User Specific
  19787. + user_hli <-64>
  19788. + }
  19789. +
  19790. + 2 { # High layer profile - UNI 3.0 only
  19791. + hlp <32>
  19792. + }
  19793. +
  19794. + 3 { # Vendor-Specific Application identifier
  19795. + hli_oui <24>
  19796. + app_id <32>
  19797. + }
  19798. +
  19799. + 4 { # Reference to ITU-T SG 1 B-ISDN Teleservice Recommendation
  19800. + tobedefined <8>
  19801. + }
  19802. +
  19803. + }
  19804. + }
  19805. +}
  19806. +
  19807. +
  19808. +def ie_blli = {
  19809. + _ext <1@8,more> = 1 _cs "q2931_cs" <2@6,more> = Q2931_CS_ITU _flag "atm_flag" <1@5,more> = ATM_FLAG_NO _action_ind "atm_ai_ie" <3@1> = 0 _ie_len <16> = recover RECOV_IND_IE length {
  19810. + _lid <2@6,more> = multi {
  19811. + 1 {
  19812. + _ext <1@8,more> = 1
  19813. + uil1_proto <5@1>
  19814. + }
  19815. + 2 {
  19816. + uil2_proto "atm_l2" <5@1,more> = case {
  19817. + ATM_L2_X25_LL,ATM_L2_X25_ML,ATM_L2_HDLC_ARM,
  19818. + ATM_L2_HDLC_NRM,ATM_L2_HDLC_ABM,ATM_L2_Q922,
  19819. + ATM_L2_ISO7776 { # CCITT encoding
  19820. + _ext <1@8> = case {
  19821. + 0 {
  19822. + l2_mode "atm_imd" <2@6,more> = ATM_IMD_NORMAL
  19823. + q933 <2@1,more> = 0
  19824. + _ext <1@8> = case {
  19825. + 0 {
  19826. + window_size <7@1,more>
  19827. + _ext <1@8> = 1
  19828. + }
  19829. + default 1 {}
  19830. + }
  19831. + }
  19832. + default 1 {}
  19833. + }
  19834. + }
  19835. + ATM_L2_USER { # User specified
  19836. + _ext <1@8> = 0
  19837. + user_l2 <7@1,more>
  19838. + _ext <1@8> = 1
  19839. + }
  19840. + default ATM_L2_ISO1745,ATM_L2_Q291,ATM_L2_LAPB,
  19841. + ATM_L2_ISO8802,ATM_L2_X75 { # No additional data
  19842. + _ext <1@8> = 1
  19843. + }
  19844. + }
  19845. + }
  19846. + 3 {
  19847. + uil3_proto "atm_l3" <5@1,more> = case {
  19848. + ATM_L3_X25,ATM_L3_ISO8208,ATM_L3_X223 { # CCITT coding
  19849. + _ext <1@8> = case {
  19850. + 0 {
  19851. + l3_mode "atm_imd" <2@6,more> = ATM_IMD_NORMAL
  19852. + _ext <1@8> = case {
  19853. + 0 {
  19854. + def_pck_size <4@1,more>
  19855. + _ext <1@8> = case {
  19856. + 0 {
  19857. + _ext <1@8> = 1
  19858. + pck_win_size <7@1>
  19859. + }
  19860. + default 1 {}
  19861. + }
  19862. + }
  19863. + default 1 {}
  19864. + }
  19865. + }
  19866. + default 1 {}
  19867. + }
  19868. + }
  19869. +
  19870. + ATM_L3_H310 { # ITU-T Rec. H.310
  19871. + _ext <1@8> = case {
  19872. + 0 {
  19873. + term_type "atm_tt" <4@1,more> = ATM_TT_RXTX
  19874. + _ext <1@8> = case {
  19875. + 0 {
  19876. + _ext <1@8,more> = 1
  19877. + fw_mpx_cap "atm_mc" <3@4,more> =
  19878. + ATM_MC_NONE
  19879. + bw_mpx_cap "atm_mc" <3@1> = ATM_MC_NONE
  19880. + }
  19881. + default 1 {}
  19882. + }
  19883. + }
  19884. + default 1 {}
  19885. + }
  19886. + }
  19887. +
  19888. + ATM_L3_TR9577 { # ISO/IEC TR9577
  19889. + _ext <1@8> = case {
  19890. + 0 {
  19891. + _ext <1@8,more> = 0
  19892. + ipi_high <7@1> = case {
  19893. + 0x40 { # SNAP hack
  19894. + _ext <1@8,more> = 1
  19895. + _ipi_low <1@7> = case { # ugly
  19896. + 0 {
  19897. + _ext <1@8,more> = 1
  19898. + _snap_id <2@6> = 0
  19899. + oui <24>
  19900. + pid <16>
  19901. + }
  19902. + default 1 {}
  19903. + }
  19904. + }
  19905. + default 0x0 { # ugly
  19906. + _ext <1@8,more> = 1
  19907. + ipi_low <1@7>
  19908. + }
  19909. + }
  19910. + }
  19911. + default 1 {}
  19912. + }
  19913. + }
  19914. + ATM_L3_USER { # User specified
  19915. + _ext <1@8> = 0
  19916. + user_l3 <7@1,more>
  19917. + _ext <1@8> = 1
  19918. + }
  19919. + }
  19920. + }
  19921. + }
  19922. + }
  19923. +}
  19924. +
  19925. +
  19926. +def ie_call_state = {
  19927. + _ext <1@8,more> = 1 _cs "q2931_cs" <2@6,more> = Q2931_CS_ITU _flag "atm_flag" <1@5,more> = ATM_FLAG_NO _action_ind "atm_ai_ie" <3@1> = 0 _ie_len <16> = recover RECOV_IND_IE length {
  19928. + call_state <6@1>
  19929. + }
  19930. +}
  19931. +
  19932. +
  19933. +def ie_cdpn = {
  19934. + _ext <1@8,more> = 1 _cs "q2931_cs" <2@6,more> = Q2931_CS_ITU _flag "atm_flag" <1@5,more> = ATM_FLAG_NO _action_ind "atm_ai_ie" <3@1> = 0 _ie_len <16> = recover RECOV_IND_IE length {
  19935. + _ext <1@8,more> = 1
  19936. + _plan "atm_np" <4@1,more> = case {
  19937. + ATM_NP_E164 {
  19938. + _type "atm_ton" <3@5> = ATM_TON_INTRNTNL
  19939. + cdpn_e164 <-96>
  19940. + }
  19941. + ATM_NP_AEA { # ATM Endsystem Address
  19942. + _type "atm_ton" <3@5> = ATM_TON_UNKNOWN
  19943. + cdpn_esa <-160>
  19944. + }
  19945. + }
  19946. + }
  19947. +}
  19948. +
  19949. +
  19950. +def ie_cdps = {
  19951. + _ext <1@8,more> = 1 _cs "q2931_cs" <2@6,more> = Q2931_CS_ITU _flag "atm_flag" <1@5,more> = ATM_FLAG_NO _action_ind "atm_ai_ie" <3@1> = 0 _ie_len <16> = recover RECOV_IND_IE length {
  19952. + _ext <1@8,more> = 1
  19953. +
  19954. +
  19955. +
  19956. +
  19957. + cdps_type "atm_sat" <3@5,more> = ATM_SAT_AEA
  19958. +
  19959. + _oddeven <1@4> = 0
  19960. + cdps <-160>
  19961. + }
  19962. +}
  19963. +
  19964. +
  19965. +def ie_cgpn = { # @@@ extend language to allow same trick as for cdpn
  19966. + _ext <1@8,more> = 1 _cs "q2931_cs" <2@6,more> = Q2931_CS_ITU _flag "atm_flag" <1@5,more> = ATM_FLAG_NO _action_ind "atm_ai_ie" <3@1> = 0 _ie_len <16> = recover RECOV_IND_IE length {
  19967. + cgpn_plan "atm_np" <4@1,more>
  19968. + cgpn_type "atm_ton" <3@5,more>
  19969. + _ext <1@8> = case {
  19970. + 0 {
  19971. + _ext <1@8,more> = 1
  19972. + pres_ind "atm_prs" <2@6,more> = ATM_PRS_ALLOW
  19973. + scr_ind "atm_scrn" <2@1> = ATM_SCRN_UP_NS
  19974. + }
  19975. + default 1 {}
  19976. + }
  19977. + cgpn <-160>
  19978. + }
  19979. +}
  19980. +
  19981. +
  19982. +def ie_cgps = {
  19983. + _ext <1@8,more> = 1 _cs "q2931_cs" <2@6,more> = Q2931_CS_ITU _flag "atm_flag" <1@5,more> = ATM_FLAG_NO _action_ind "atm_ai_ie" <3@1> = 0 _ie_len <16> = recover RECOV_IND_IE length {
  19984. + _ext <1@8,more> = 1
  19985. +
  19986. +
  19987. +
  19988. +
  19989. + cgps_type "atm_sat" <3@5,more> = ATM_SAT_AEA
  19990. +
  19991. + _oddeven <1@4> = 0
  19992. + cgps <-160>
  19993. + }
  19994. +}
  19995. +
  19996. +
  19997. +def ie_cause = {
  19998. + _ext <1@8,more> = 1 cause_cs "q2931_cs" <2@6,more> = Q2931_CS_ITU _flag "atm_flag" <1@5,more> = ATM_FLAG_NO _action_ind "atm_ai_ie" <3@1> = 0 _ie_len <16> = recover RECOV_IND_IE length {
  19999. + _ext <1@8,more> = 1
  20000. + location "atm_loc" <4@1> = ATM_LOC_USER
  20001. + _ext <1@8,more> = 1
  20002. + cause "atm_cv" <7@1> = case {
  20003. + ATM_CV_UNALLOC,ATM_CV_NO_ROUTE_DEST,ATM_CV_QOS_UNAVAIL { # Note 2
  20004. + break
  20005. + _ext <1@8,more> = 1
  20006. + pu "atm_pu" <1@4,more> = ATM_PU_USER
  20007. + na "atm_na" <1@3,more> = ATM_NA_NORMAL
  20008. + cond2 "atm_cond" <2@1> = ATM_COND_UNKNOWN
  20009. + }
  20010. + ATM_CV_CALL_REJ { # Note 3
  20011. + break
  20012. + _ext <1@8,more> = 1
  20013. + cond3 "atm_cond" <2@1,more> = ATM_COND_UNKNOWN
  20014. + reason <5@3> = case {
  20015. + ATM_RSN_USER {
  20016. + user_diag <-216>
  20017. + }
  20018. + ATM_RSN_IE_MISS,ATM_RSN_IE_INSUFF {
  20019. + ie_id3 "atm_ie" <8>
  20020. + }
  20021. + }
  20022. + }
  20023. + ATM_CV_NUM_CHANGED { # Note 4
  20024. + break
  20025. + new_dest <-224> # good luck ...
  20026. + }
  20027. + ATM_CV_REJ_CLIR { # Note 5
  20028. + break
  20029. + invalid <8> # not supported
  20030. + }
  20031. + ATM_CV_ACC_INF_DISC,ATM_CV_INCOMP_DEST,ATM_CV_MAND_IE_MISSING,
  20032. + ATM_CV_UNKNOWN_IE,ATM_CV_INVALID_IE { # Note 6
  20033. + break
  20034. + ie_id6 <-224>
  20035. + }
  20036. +
  20037. + ATM_CV_UCR_UNAVAIL_OLD,ATM_CV_UCR_UNAVAIL_NEW { # Note 8
  20038. +
  20039. +
  20040. +
  20041. +
  20042. +
  20043. +
  20044. +
  20045. + break
  20046. + ucr_id <-224>
  20047. + }
  20048. + ATM_CV_NO_SUCH_CHAN { # Note 9
  20049. + break
  20050. + unav_vpci <16>
  20051. + unav_vci <16>
  20052. + }
  20053. + ATM_CV_UNKNOWN_MSG_TYPE,ATM_CV_INCOMP_MSG { # Note 10
  20054. + break
  20055. + bad_msg_type "atm_msg" <8>
  20056. + }
  20057. + ATM_CV_TIMER_EXP { # Note 11
  20058. + break
  20059. + timer <24>
  20060. + }
  20061. + default 0 {}
  20062. + }
  20063. + }
  20064. +}
  20065. +
  20066. +
  20067. +def ie_conn_id = {
  20068. + _ext <1@8,more> = 1 _cs "q2931_cs" <2@6,more> = Q2931_CS_ITU _flag "atm_flag" <1@5,more> = ATM_FLAG_NO _action_ind "atm_ai_ie" <3@1> = 0 _ie_len <16> = recover RECOV_IND_IE length {
  20069. + _ext <1@8,more> = 1
  20070. + _vp_ass "atm_vpa" <2@4,more> = ATM_VPA_EXPL
  20071. + _pref_exc "atm_poe" <3@1> = 0
  20072. + vpi <16>
  20073. + vci <16>
  20074. + }
  20075. +}
  20076. +
  20077. +
  20078. +
  20079. +
  20080. +def ie_e2e_tdl = {
  20081. + _ext <1@8,more> = 1 _cs "q2931_cs" <2@6,more> = Q2931_CS_ITU _flag "atm_flag" <1@5,more> = ATM_FLAG_NO _action_ind "atm_ai_ie" <3@1> = 0 _ie_len <16> = recover RECOV_IND_IE length {
  20082. + _id "atm_tdl" <8> = multi {
  20083. + ATM_TDL_CUM {
  20084. + cum_delay <16>
  20085. + }
  20086. + ATM_TDL_E2EMAX {
  20087. + max_delay <16>
  20088. + }
  20089. + ATM_TDL_NGI {}
  20090. + }
  20091. +
  20092. + }
  20093. +}
  20094. +
  20095. +
  20096. +
  20097. +
  20098. +def ie_qos = {
  20099. +# 467 "<stdin>"
  20100. + _ext <1@8,more> = 1 qos_cs "q2931_cs" <2@6,more> = Q2931_CS_NET _flag "atm_flag" <1@5,more> = ATM_FLAG_NO _action_ind "atm_ai_ie" <3@1> = 0 _ie_len <16> = recover RECOV_IND_IE length {
  20101. +
  20102. + qos_fw <8> = 0
  20103. + qos_bw <8> = 0
  20104. + }
  20105. +}
  20106. +
  20107. +
  20108. +def ie_bbrep = {
  20109. + _ext <1@8,more> = 1 _cs "q2931_cs" <2@6,more> = Q2931_CS_ITU _flag "atm_flag" <1@5,more> = ATM_FLAG_NO _action_ind "atm_ai_ie" <3@1> = 0 _ie_len <16> = recover RECOV_IND_IE length {
  20110. + _ext <1@8,more> = 1
  20111. + rep_ind <4@1> = 2
  20112. + }
  20113. +}
  20114. +
  20115. +
  20116. +def ie_restart = {
  20117. + _ext <1@8,more> = 1 _cs "q2931_cs" <2@6,more> = Q2931_CS_ITU _flag "atm_flag" <1@5,more> = ATM_FLAG_NO _action_ind "atm_ai_ie" <3@1> = 0 _ie_len <16> = recover RECOV_IND_IE length {
  20118. + _ext <1@8,more> = 1
  20119. + rst_class <3@1>
  20120. + }
  20121. +}
  20122. +
  20123. +
  20124. +def ie_bbs_comp = {
  20125. + _ext <1@8,more> = 1 _cs "q2931_cs" <2@6,more> = Q2931_CS_ITU _flag "atm_flag" <1@5,more> = ATM_FLAG_NO _action_ind "atm_ai_ie" <3@1> = 0 _ie_len <16> = recover RECOV_IND_IE length {
  20126. + _ext <1@8,more> = 1
  20127. + bbsc_ind <7@1> = 0x21
  20128. + }
  20129. +}
  20130. +
  20131. +
  20132. +def ie_tns = {
  20133. + _ext <1@8,more> = 1 _cs "q2931_cs" <2@6,more> = Q2931_CS_ITU _flag "atm_flag" <1@5,more> = ATM_FLAG_NO _action_ind "atm_ai_ie" <3@1> = 0 _ie_len <16> = recover RECOV_IND_IE length {
  20134. + _ext <1@8,more> = 1
  20135. + _net_type "atm_tni" <3@5,more> = ATM_TNI_NNI
  20136. + _carrier_id "atm_nip" <4@1> = ATM_NIP_CARRIER
  20137. + net_id <-32>
  20138. + }
  20139. +}
  20140. +
  20141. +
  20142. +
  20143. +
  20144. +def ie_notify = {
  20145. + _ext <1@8,more> = 1 _cs "q2931_cs" <2@6,more> = Q2931_CS_ITU _flag "atm_flag" <1@5,more> = ATM_FLAG_NO _action_ind "atm_ai_ie" <3@1> = 0 _ie_len <16> = recover RECOV_IND_IE length {
  20146. + notification <-32> # @@@ how many actually ?
  20147. + }
  20148. +}
  20149. +
  20150. +
  20151. +def ie_oam_td = {
  20152. + _ext <1@8,more> = 1 _cs "q2931_cs" <2@6,more> = Q2931_CS_ITU _flag "atm_flag" <1@5,more> = ATM_FLAG_NO _action_ind "atm_ai_ie" <3@1> = 0 _ie_len <16> = recover RECOV_IND_IE length {
  20153. + _ext <1@8,more> = 1
  20154. + shaping "atm_shi" <2@6,more> = ATM_SHI_NONE
  20155. + compliance "atm_oci" <1@5,more> = ATM_OCI_OPT
  20156. + fault "atm_unfm" <3@1> = ATM_UNFM_NONE
  20157. + _ext <1@8,more> = 1
  20158. + fwd_ofi "atm_ofi" <3@5,more> = ATM_OFI_0_0
  20159. + bwd_ofi "atm_ofi" <3@1> = ATM_OFI_0_0
  20160. + }
  20161. +}
  20162. +
  20163. +
  20164. +def ie_git = {
  20165. + _ext <1@8,more> = 1 _cs "q2931_cs" <2@6,more> = Q2931_CS_NET _flag "atm_flag" <1@5,more> = ATM_FLAG_NO _action_ind "atm_ai_ie" <3@1> = 0 _ie_len <16> = recover RECOV_IND_IE length { # @@@ UNI 4.0 does not specify the coding
  20166. + _dummy <1@8> = 0 # bit is "spare", although not indicated in spec
  20167. + id_std_app "atm_irs" <7@1> = case {
  20168. + ATM_IRS_DSMCC,ATM_IRS_H245 {
  20169. + _type "atm_it" <8> = ATM_IT_SESSION
  20170. + _length <8> = length {
  20171. + session_id <-160>
  20172. + }
  20173. + _type "atm_it" <8> = ATM_IT_RESOURCE
  20174. + _length <8> = length {
  20175. + resource_id <-32>
  20176. + }
  20177. + }
  20178. + default 0 {
  20179. + unrecognized_git_identifiers <-224> # 33-5 bytes
  20180. + }
  20181. + }
  20182. + }
  20183. +}
  20184. +
  20185. +
  20186. +def ie_lij_id = {
  20187. + _ext <1@8,more> = 1 _cs "q2931_cs" <2@6,more> = Q2931_CS_NET _flag "atm_flag" <1@5,more> = ATM_FLAG_NO _action_ind "atm_ai_ie" <3@1> = 0 _ie_len <16> = recover RECOV_IND_IE length { # @@@ UNI 4.0 does not specify the coding
  20188. + _ext <1@8,more> = 1
  20189. + lij_id_type "atm_lit" <7@1> = ATM_LIT_ROOT
  20190. + lij_id <32>
  20191. + }
  20192. +}
  20193. +
  20194. +
  20195. +def ie_lij_prm = {
  20196. + _ext <1@8,more> = 1 _cs "q2931_cs" <2@6,more> = Q2931_CS_NET _flag "atm_flag" <1@5,more> = ATM_FLAG_NO _action_ind "atm_ai_ie" <3@1> = 0 _ie_len <16> = recover RECOV_IND_IE length { # @@@ UNI 4.0 does not specify the coding
  20197. + _ext <1@8,more> = 1
  20198. + lij_scr_ind "atm_lsi" <2@1>
  20199. + }
  20200. +}
  20201. +
  20202. +
  20203. +def ie_leaf_sn = {
  20204. + _ext <1@8,more> = 1 _cs "q2931_cs" <2@6,more> = Q2931_CS_NET _flag "atm_flag" <1@5,more> = ATM_FLAG_NO _action_ind "atm_ai_ie" <3@1> = 0 _ie_len <16> = recover RECOV_IND_IE length { # @@@ UNI 4.0 does not specify the coding
  20205. + leaf_sn <32>
  20206. + }
  20207. +}
  20208. +
  20209. +
  20210. +def ie_scope_sel = {
  20211. + _ext <1@8,more> = 1 _cs "q2931_cs" <2@6,more> = Q2931_CS_NET _flag "atm_flag" <1@5,more> = ATM_FLAG_NO _action_ind "atm_ai_ie" <3@1> = 0 _ie_len <16> = recover RECOV_IND_IE length { # @@@ UNI 4.0 does not specify the coding
  20212. + _ext <1@8,more> = 1
  20213. + scope_type "atm_tcs" <4@1> = ATM_TCS_ORGANIZATIONAL
  20214. + scope_sel "atm_css" <8>
  20215. + }
  20216. +}
  20217. +
  20218. +
  20219. +def ie_alt_td = {
  20220. + _ext <1@8,more> = 1 _cs "q2931_cs" <2@6,more> = Q2931_CS_ITU _flag "atm_flag" <1@5,more> = ATM_FLAG_NO _action_ind "atm_ai_ie" <3@1> = 0 _ie_len <16> = recover RECOV_IND_IE length {
  20221. + _id "atm_td" <8> = multi {
  20222. + ATM_TD_FW_PCR_0 { altfw_pcr_0 <24> } ATM_TD_BW_PCR_0 { altbw_pcr_0 <24> } ATM_TD_FW_PCR_01 { altfw_pcr_01 <24> } ATM_TD_BW_PCR_01 { altbw_pcr_01 <24> } ATM_TD_FW_SCR_0 { altfw_scr_0 <24> } ATM_TD_BW_SCR_0 { altbw_scr_0 <24> } ATM_TD_FW_SCR_01 { altfw_scr_01 <24> } ATM_TD_BW_SCR_01 { altbw_scr_01 <24> } ATM_TD_FW_MBS_0 { altfw_mbs_0 <24> } ATM_TD_BW_MBS_0 { altbw_mbs_0 <24> } ATM_TD_FW_MBS_01 { altfw_mbs_01 <24> } ATM_TD_BW_MBS_01 { altbw_mbs_01 <24> } ATM_TD_BEST_EFFORT { altbest_effort <0> }
  20223. + }
  20224. + }
  20225. +}
  20226. +
  20227. +
  20228. +def ie_min_td = {
  20229. + _ext <1@8,more> = 1 _cs "q2931_cs" <2@6,more> = Q2931_CS_NET _flag "atm_flag" <1@5,more> = ATM_FLAG_NO _action_ind "atm_ai_ie" <3@1> = 0 _ie_len <16> = recover RECOV_IND_IE length { # @@@ UNI 4.0 does not specify the coding
  20230. + _id "atm_td" <8> = multi {
  20231. + ATM_TD_FW_PCR_0 { minfw_pcr_0 <24> } ATM_TD_BW_PCR_0 { minbw_pcr_0 <24> } ATM_TD_FW_PCR_01 { minfw_pcr_01 <24> } ATM_TD_BW_PCR_01 { minbw_pcr_01 <24> }
  20232. + ATM_TD_FW_MCR_01 { minfw_mcr_01 <24> } ATM_TD_BW_MCR_01 { minbw_mcr_01 <24> }
  20233. + }
  20234. + }
  20235. +}
  20236. +
  20237. +
  20238. +def ie_eqos = {
  20239. + _ext <1@8,more> = 1 _cs "q2931_cs" <2@6,more> = Q2931_CS_NET _flag "atm_flag" <1@5,more> = ATM_FLAG_NO _action_ind "atm_ai_ie" <3@1> = 0 _ie_len <16> = recover RECOV_IND_IE length {
  20240. + eqos_origin "atm_eqo" <8>
  20241. + _id "atm_eqp" <8> = multi {
  20242. + ATM_EQP_ACC_FW_CDV {
  20243. + acc_fw_cdv <24>
  20244. + }
  20245. + ATM_EQP_ACC_BW_CDV {
  20246. + acc_bw_cdv <24>
  20247. + }
  20248. + ATM_EQP_CUM_FW_CDV {
  20249. + cum_fw_cdv <24>
  20250. + }
  20251. + ATM_EQP_CUM_BW_CDV {
  20252. + cum_bw_cdv <24>
  20253. + }
  20254. + ATM_EQP_ACC_FW_CLR {
  20255. + acc_fw_clr <8>
  20256. + }
  20257. + ATM_EQP_ACC_BW_CLR {
  20258. + acc_bw_clr <8>
  20259. + }
  20260. + }
  20261. + }
  20262. +}
  20263. +
  20264. +
  20265. +def ie_abr_add_prm = {
  20266. + _ext <1@8,more> = 1 _cs "q2931_cs" <2@6,more> = Q2931_CS_NET _flag "atm_flag" <1@5,more> = ATM_FLAG_NO _action_ind "atm_ai_ie" <3@1> = 0 _ie_len <16> = recover RECOV_IND_IE length {
  20267. + _id "atm_aap" <8> = multi {
  20268. + ATM_AAP_FW_REC {
  20269. + abr_fw_add_rec <32>
  20270. + }
  20271. + ATM_AAP_BW_REC {
  20272. + abr_bw_add_rec <32>
  20273. + }
  20274. + }
  20275. + }
  20276. +}
  20277. +
  20278. +
  20279. +def ie_abr_set_prm = {
  20280. + _ext <1@8,more> = 1 _cs "q2931_cs" <2@6,more> = Q2931_CS_NET _flag "atm_flag" <1@5,more> = ATM_FLAG_NO _action_ind "atm_ai_ie" <3@1> = 0 _ie_len <16> = recover RECOV_IND_IE length { # @@@ UNI 4.0 does not specify the coding
  20281. + _id "atm_asp" <8> = multi {
  20282. + ATM_ASP_FW_ICR {
  20283. + abr_fw_icr <24>
  20284. + }
  20285. + ATM_ASP_BW_ICR {
  20286. + abr_bw_icr <24>
  20287. + }
  20288. + ATM_ASP_FW_TBE {
  20289. + abr_fw_tbe <24>
  20290. + }
  20291. + ATM_ASP_BW_TBE {
  20292. + abr_bw_tbe <24>
  20293. + }
  20294. + ATM_ASP_CRF_RTT {
  20295. + atm_crf_rtt <24>
  20296. + }
  20297. + ATM_ASP_FW_RIF {
  20298. + atm_fw_rif <8>
  20299. + }
  20300. + ATM_ASP_BW_RIF {
  20301. + atm_bw_rif <8>
  20302. + }
  20303. + ATM_ASP_FW_RDF {
  20304. + atm_fw_rdf <8>
  20305. + }
  20306. + ATM_ASP_BW_RDF {
  20307. + atm_bw_rdf <8>
  20308. + }
  20309. + }
  20310. + }
  20311. +}
  20312. +
  20313. +
  20314. +
  20315. +
  20316. +def ie_ep_ref = {
  20317. + _ext <1@8,more> = 1 _cs "q2931_cs" <2@6,more> = Q2931_CS_ITU _flag "atm_flag" <1@5,more> = ATM_FLAG_NO _action_ind "atm_ai_ie" <3@1> = 0 _ie_len <16> = recover RECOV_IND_IE length {
  20318. + _ep_type <8> = 0
  20319. + ep_ref <16>
  20320. + }
  20321. +}
  20322. +
  20323. +
  20324. +def ie_ep_state = {
  20325. + _ext <1@8,more> = 1 _cs "q2931_cs" <2@6,more> = Q2931_CS_ITU _flag "atm_flag" <1@5,more> = ATM_FLAG_NO _action_ind "atm_ai_ie" <3@1> = 0 _ie_len <16> = recover RECOV_IND_IE length {
  20326. + ep_state <6@1>
  20327. + }
  20328. +}
  20329. +
  20330. +
  20331. +
  20332. +
  20333. +def ie_bbrt = {
  20334. + _ext <1@8,more> = 1 _cs "q2931_cs" <2@6,more> = Q2931_CS_ITU _flag "atm_flag" <1@5,more> = ATM_FLAG_NO _action_ind "atm_ai_ie" <3@1> = 0 _ie_len <16> = recover RECOV_IND_IE length {
  20335. + type_of_report "atm_tor" <8>
  20336. + }
  20337. +}
  20338. +
  20339. +
  20340. +
  20341. +
  20342. +{
  20343. + _pdsc "q2931_proto" <8> = Q2931_PROTO_DSC
  20344. + _cr_len <8> = 3
  20345. + call_ref <24>
  20346. + msg_type "atm_msg" <8>
  20347. + _ext <1@8,more> = 1
  20348. + _flag "atm_flag" <1@5,more> = ATM_FLAG_NO
  20349. + _action_ind "atm_ai_msg" <2@1> = 0
  20350. + msg_len <16> = length {
  20351. + _ie_id "atm_ie" <8> = multi {
  20352. + aal: ATM_IE_AAL ie_aal
  20353. + td: ATM_IE_TD ie_td
  20354. + bbcap: ATM_IE_BBCAP ie_bbcap
  20355. + bhli: ATM_IE_BHLI ie_bhli
  20356. + blli1: ATM_IE_BLLI ie_blli
  20357. + blli2: ATM_IE_BLLI ie_blli
  20358. + blli3: ATM_IE_BLLI ie_blli
  20359. + call_state: ATM_IE_CALL_STATE ie_call_state
  20360. + cdpn: ATM_IE_CDPN ie_cdpn
  20361. + cdps: ATM_IE_CDPS ie_cdps
  20362. + cgpn: ATM_IE_CGPN ie_cgpn
  20363. + cgps: ATM_IE_CGPS ie_cgps
  20364. + cause: ATM_IE_CAUSE ie_cause
  20365. + cause2: ATM_IE_CAUSE ie_cause
  20366. + conn_id: ATM_IE_CONN_ID ie_conn_id
  20367. +
  20368. + e2e_tdl: ATM_IE_E2E_TDL ie_e2e_tdl
  20369. +
  20370. + qos: ATM_IE_QOS ie_qos
  20371. + bbrep: ATM_IE_BBREP ie_bbrep
  20372. + restart: ATM_IE_RESTART ie_restart
  20373. + bbs_comp: ATM_IE_BBS_COMP ie_bbs_comp
  20374. + tns: ATM_IE_TNS ie_tns
  20375. +
  20376. + notify: ATM_IE_NOTIFY ie_notify
  20377. + oam_td: ATM_IE_OAM_TD ie_oam_td
  20378. + git: ATM_IE_GIT ie_git
  20379. + git2: ATM_IE_GIT ie_git
  20380. + git3: ATM_IE_GIT ie_git
  20381. + lij_id: ATM_IE_LIJ_ID ie_lij_id
  20382. + lij_prm: ATM_IE_LIJ_PRM ie_lij_prm
  20383. + leaf_sn: ATM_IE_LEAF_SN ie_leaf_sn
  20384. + scope_sel: ATM_IE_SCOPE_SEL ie_scope_sel
  20385. + alt_td: ATM_IE_ALT_TD ie_alt_td
  20386. + min_td: ATM_IE_MIN_TD ie_min_td
  20387. + eqos: ATM_IE_EQOS ie_eqos
  20388. + abr_add_prm:ATM_IE_ABR_ADD_PRM ie_abr_add_prm
  20389. + abr_set_prm:ATM_IE_ABR_SET_PRM ie_abr_set_prm
  20390. +
  20391. + ep_ref: ATM_IE_EPR ie_ep_ref
  20392. + ep_state: ATM_IE_EP_STATE ie_ep_state
  20393. +
  20394. + bbrt: ATM_IE_BBRT ie_bbrt
  20395. +
  20396. + default 0 {
  20397. + _ext <1@8,more> = 1 __cs "q2931_cs" <2@6,more> = 0 _flag "atm_flag" <1@5,more> = ATM_FLAG_NO _action_ind "atm_ai_ie" <3@1> = 0 _ie_len <16> = recover RECOV_IND_IE length
  20398. + abort RECOV_ASE_UNKNOWN_IE
  20399. + }
  20400. + }
  20401. + }
  20402. +}
  20403. Index: linux-atm-2.4.1/src/saal/Makefile.in
  20404. ===================================================================
  20405. --- linux-atm-2.4.1.orig/src/saal/Makefile.in 2007-10-20 19:19:11.078259790 +0200
  20406. +++ linux-atm-2.4.1/src/saal/Makefile.in 2007-10-20 19:19:12.010312909 +0200
  20407. @@ -1,4 +1,4 @@
  20408. -# Makefile.in generated automatically by automake 1.4-p5 from Makefile.am
  20409. +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
  20410. # Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
  20411. # This Makefile.in is free software; the Free Software Foundation
  20412. @@ -87,8 +87,7 @@
  20413. noinst_LIBRARIES = libsaal.a
  20414. -libsaal_a_SOURCES = pdu.h queue.h saal.h sscf.h sscop.h pdu.c queue.c saal.c \
  20415. - sscf.c sscop.c
  20416. +libsaal_a_SOURCES = pdu.h queue.h saal.h sscf.h sscop.h pdu.c queue.c saal.c sscf.c sscop.c
  20417. mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  20418. CONFIG_HEADER = ../../config.h
  20419. @@ -114,8 +113,10 @@
  20420. DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
  20421. -TAR = gtar
  20422. +TAR = tar
  20423. GZIP_ENV = --best
  20424. +DEP_FILES = .deps/pdu.P .deps/queue.P .deps/saal.P .deps/sscf.P \
  20425. +.deps/sscop.P
  20426. SOURCES = $(libsaal_a_SOURCES)
  20427. OBJECTS = $(libsaal_a_OBJECTS)
  20428. @@ -123,9 +124,9 @@
  20429. .SUFFIXES:
  20430. .SUFFIXES: .S .c .lo .o .obj .s
  20431. $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
  20432. - cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps src/saal/Makefile
  20433. + cd $(top_srcdir) && $(AUTOMAKE) --gnu src/saal/Makefile
  20434. -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  20435. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
  20436. cd $(top_builddir) \
  20437. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
  20438. @@ -139,9 +140,6 @@
  20439. maintainer-clean-noinstLIBRARIES:
  20440. -.c.o:
  20441. - $(COMPILE) -c $<
  20442. -
  20443. # FIXME: We should only use cygpath when building on Windows,
  20444. # and only if it is available.
  20445. .c.obj:
  20446. @@ -164,9 +162,6 @@
  20447. maintainer-clean-compile:
  20448. -.c.lo:
  20449. - $(LIBTOOL) --mode=compile $(COMPILE) -c $<
  20450. -
  20451. .s.lo:
  20452. $(LIBTOOL) --mode=compile $(COMPILE) -c $<
  20453. @@ -206,7 +201,7 @@
  20454. awk ' { files[$$0] = 1; } \
  20455. END { for (i in files) print i; }'`; \
  20456. test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
  20457. - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
  20458. + || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags $$unique $(LISP))
  20459. mostlyclean-tags:
  20460. @@ -222,6 +217,11 @@
  20461. subdir = src/saal
  20462. distdir: $(DISTFILES)
  20463. + here=`cd $(top_builddir) && pwd`; \
  20464. + top_distdir=`cd $(top_distdir) && pwd`; \
  20465. + distdir=`cd $(distdir) && pwd`; \
  20466. + cd $(top_srcdir) \
  20467. + && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu src/saal/Makefile
  20468. @for file in $(DISTFILES); do \
  20469. d=$(srcdir); \
  20470. if test -d $$d/$$file; then \
  20471. @@ -232,20 +232,38 @@
  20472. || cp -p $$d/$$file $(distdir)/$$file || :; \
  20473. fi; \
  20474. done
  20475. -pdu.o: pdu.c ../../config.h ../../src/include/stdint.h pdu.h \
  20476. - ../../src/include/atmd.h ../../src/include/atm.h
  20477. -queue.o: queue.c ../../config.h ../../src/include/atmd.h \
  20478. - ../../src/include/stdint.h ../../src/include/atm.h queue.h
  20479. -saal.o: saal.c ../../config.h sscop.h ../../src/include/stdint.h \
  20480. - ../../src/include/atmd.h ../../src/include/atm.h queue.h saal.h \
  20481. - sscf.h
  20482. -sscf.o: sscf.c ../../config.h ../../src/include/atmd.h \
  20483. - ../../src/include/stdint.h ../../src/include/atm.h sscop.h \
  20484. - queue.h sscf.h
  20485. -sscop.o: sscop.c ../../config.h ../../src/include/stdint.h \
  20486. - ../../src/include/atmd.h ../../src/include/atm.h sscop.h \
  20487. - queue.h pdu.h
  20488. +DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
  20489. +
  20490. +-include $(DEP_FILES)
  20491. +
  20492. +mostlyclean-depend:
  20493. +
  20494. +clean-depend:
  20495. +
  20496. +distclean-depend:
  20497. + -rm -rf .deps
  20498. +
  20499. +maintainer-clean-depend:
  20500. +
  20501. +%.o: %.c
  20502. + @echo '$(COMPILE) -c $<'; \
  20503. + $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
  20504. + @-cp .deps/$(*F).pp .deps/$(*F).P; \
  20505. + tr ' ' '\012' < .deps/$(*F).pp \
  20506. + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
  20507. + >> .deps/$(*F).P; \
  20508. + rm .deps/$(*F).pp
  20509. +
  20510. +%.lo: %.c
  20511. + @echo '$(LTCOMPILE) -c $<'; \
  20512. + $(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
  20513. + @-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \
  20514. + < .deps/$(*F).pp > .deps/$(*F).P; \
  20515. + tr ' ' '\012' < .deps/$(*F).pp \
  20516. + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
  20517. + >> .deps/$(*F).P; \
  20518. + rm -f .deps/$(*F).pp
  20519. info-am:
  20520. info: info-am
  20521. dvi-am:
  20522. @@ -282,27 +300,27 @@
  20523. maintainer-clean-generic:
  20524. mostlyclean-am: mostlyclean-noinstLIBRARIES mostlyclean-compile \
  20525. - mostlyclean-libtool mostlyclean-tags \
  20526. + mostlyclean-libtool mostlyclean-tags mostlyclean-depend \
  20527. mostlyclean-generic
  20528. mostlyclean: mostlyclean-am
  20529. clean-am: clean-noinstLIBRARIES clean-compile clean-libtool clean-tags \
  20530. - clean-generic mostlyclean-am
  20531. + clean-depend clean-generic mostlyclean-am
  20532. clean: clean-am
  20533. distclean-am: distclean-noinstLIBRARIES distclean-compile \
  20534. - distclean-libtool distclean-tags distclean-generic \
  20535. - clean-am
  20536. + distclean-libtool distclean-tags distclean-depend \
  20537. + distclean-generic clean-am
  20538. -rm -f libtool
  20539. distclean: distclean-am
  20540. maintainer-clean-am: maintainer-clean-noinstLIBRARIES \
  20541. maintainer-clean-compile maintainer-clean-libtool \
  20542. - maintainer-clean-tags maintainer-clean-generic \
  20543. - distclean-am
  20544. + maintainer-clean-tags maintainer-clean-depend \
  20545. + maintainer-clean-generic distclean-am
  20546. @echo "This command is intended for maintainers to use;"
  20547. @echo "it deletes files that may require special tools to rebuild."
  20548. @@ -313,12 +331,14 @@
  20549. mostlyclean-compile distclean-compile clean-compile \
  20550. maintainer-clean-compile mostlyclean-libtool distclean-libtool \
  20551. clean-libtool maintainer-clean-libtool tags mostlyclean-tags \
  20552. -distclean-tags clean-tags maintainer-clean-tags distdir info-am info \
  20553. -dvi-am dvi check check-am installcheck-am installcheck install-exec-am \
  20554. -install-exec install-data-am install-data install-am install \
  20555. -uninstall-am uninstall all-redirect all-am all installdirs \
  20556. -mostlyclean-generic distclean-generic clean-generic \
  20557. -maintainer-clean-generic clean mostlyclean distclean maintainer-clean
  20558. +distclean-tags clean-tags maintainer-clean-tags distdir \
  20559. +mostlyclean-depend distclean-depend clean-depend \
  20560. +maintainer-clean-depend info-am info dvi-am dvi check check-am \
  20561. +installcheck-am installcheck install-exec-am install-exec \
  20562. +install-data-am install-data install-am install uninstall-am uninstall \
  20563. +all-redirect all-am all installdirs mostlyclean-generic \
  20564. +distclean-generic clean-generic maintainer-clean-generic clean \
  20565. +mostlyclean distclean maintainer-clean
  20566. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  20567. Index: linux-atm-2.4.1/src/sigd/Makefile.in
  20568. ===================================================================
  20569. --- linux-atm-2.4.1.orig/src/sigd/Makefile.in 2007-10-20 19:19:11.082260019 +0200
  20570. +++ linux-atm-2.4.1/src/sigd/Makefile.in 2007-10-20 19:19:12.018313361 +0200
  20571. @@ -1,4 +1,4 @@
  20572. -# Makefile.in generated automatically by automake 1.4-p5 from Makefile.am
  20573. +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
  20574. # Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
  20575. # This Makefile.in is free software; the Free Software Foundation
  20576. @@ -88,14 +88,9 @@
  20577. INCLUDES = -I$(top_builddir)/src/qgen -I$(top_builddir)/src/saal -I.
  20578. sbin_PROGRAMS = atmsigd
  20579. -atmsigd_SOURCES = atmsigd.c io.c io.h kernel.c proto.c proto.h uni.c \
  20580. - sap.c sap.h timeout.c timeout.h trace.c trace.h \
  20581. - policy.c policy.h cfg_y.y cfg_l.l
  20582. -
  20583. -atmsigd_XTRAS = mess.o $(top_builddir)/src/qgen/q.out.o \
  20584. - $(top_builddir)/src/qgen/qd.dump.o \
  20585. - $(top_builddir)/src/lib/libatm.la \
  20586. - $(top_builddir)/src/saal/libsaal.a
  20587. +atmsigd_SOURCES = atmsigd.c io.c io.h kernel.c proto.c proto.h uni.c sap.c sap.h timeout.c timeout.h trace.c trace.h policy.c policy.h cfg_y.y cfg_l.l
  20588. +
  20589. +atmsigd_XTRAS = mess.o $(top_builddir)/src/qgen/q.out.o $(top_builddir)/src/qgen/qd.dump.o $(top_builddir)/src/lib/libatm.la $(top_builddir)/src/saal/libsaal.a
  20590. atmsigd_LDADD = $(atmsigd_XTRAS) -lfl
  20591. atmsigd_DEPENDENCIES = mess.c $(atmsigd_XTRAS)
  20592. @@ -140,8 +135,11 @@
  20593. DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
  20594. -TAR = gtar
  20595. +TAR = tar
  20596. GZIP_ENV = --best
  20597. +DEP_FILES = .deps/atmsigd.P .deps/cfg_l.P .deps/cfg_y.P .deps/io.P \
  20598. +.deps/kernel.P .deps/policy.P .deps/proto.P .deps/sap.P .deps/timeout.P \
  20599. +.deps/trace.P .deps/uni.P
  20600. SOURCES = $(atmsigd_SOURCES)
  20601. OBJECTS = $(atmsigd_OBJECTS)
  20602. @@ -149,9 +147,9 @@
  20603. .SUFFIXES:
  20604. .SUFFIXES: .S .c .l .lo .o .obj .s .y
  20605. $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
  20606. - cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps src/sigd/Makefile
  20607. + cd $(top_srcdir) && $(AUTOMAKE) --gnu src/sigd/Makefile
  20608. -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  20609. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
  20610. cd $(top_builddir) \
  20611. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
  20612. @@ -181,9 +179,6 @@
  20613. rm -f $(DESTDIR)$(sbindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
  20614. done
  20615. -.c.o:
  20616. - $(COMPILE) -c $<
  20617. -
  20618. # FIXME: We should only use cygpath when building on Windows,
  20619. # and only if it is available.
  20620. .c.obj:
  20621. @@ -206,9 +201,6 @@
  20622. maintainer-clean-compile:
  20623. -.c.lo:
  20624. - $(LIBTOOL) --mode=compile $(COMPILE) -c $<
  20625. -
  20626. .s.lo:
  20627. $(LIBTOOL) --mode=compile $(COMPILE) -c $<
  20628. @@ -347,7 +339,7 @@
  20629. awk ' { files[$$0] = 1; } \
  20630. END { for (i in files) print i; }'`; \
  20631. test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
  20632. - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
  20633. + || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags $$unique $(LISP))
  20634. mostlyclean-tags:
  20635. @@ -363,6 +355,11 @@
  20636. subdir = src/sigd
  20637. distdir: $(DISTFILES)
  20638. + here=`cd $(top_builddir) && pwd`; \
  20639. + top_distdir=`cd $(top_distdir) && pwd`; \
  20640. + distdir=`cd $(distdir) && pwd`; \
  20641. + cd $(top_srcdir) \
  20642. + && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu src/sigd/Makefile
  20643. @for file in $(DISTFILES); do \
  20644. d=$(srcdir); \
  20645. if test -d $$d/$$file; then \
  20646. @@ -373,69 +370,38 @@
  20647. || cp -p $$d/$$file $(distdir)/$$file || :; \
  20648. fi; \
  20649. done
  20650. -atmsigd.o: atmsigd.c ../../config.h ../../src/include/atm.h \
  20651. - ../../src/include/stdint.h ../../src/include/atmd.h \
  20652. - ../../src/qgen/qlib.h io.h proto.h ../../src/include/atmsap.h \
  20653. - ../../src/saal/saal.h ../../src/saal/sscf.h \
  20654. - ../../src/saal/sscop.h ../../src/saal/queue.h trace.h
  20655. -cfg_l.o: cfg_l.c ../../config.h ../../src/include/atm.h \
  20656. - ../../src/include/stdint.h cfg_y.h
  20657. -cfg_y.o: cfg_y.c ../../config.h ../../src/include/atm.h \
  20658. - ../../src/include/stdint.h ../../src/include/atmd.h proto.h \
  20659. - ../../src/include/atmsap.h ../../src/saal/saal.h \
  20660. - ../../src/saal/sscf.h ../../src/saal/sscop.h \
  20661. - ../../src/saal/queue.h io.h trace.h policy.h
  20662. -io.o: io.c ../../config.h ../../src/include/atm.h \
  20663. - ../../src/include/stdint.h ../../src/include/atmd.h \
  20664. - ../../src/qgen/uni.h ../../src/saal/pdu.h proto.h \
  20665. - ../../src/include/atmsap.h ../../src/saal/saal.h \
  20666. - ../../src/saal/sscf.h ../../src/saal/sscop.h \
  20667. - ../../src/saal/queue.h io.h trace.h
  20668. -kernel.o: kernel.c ../../config.h ../../src/include/atm.h \
  20669. - ../../src/include/stdint.h ../../src/include/atmd.h \
  20670. - ../../src/qgen/uni.h ../../src/qgen/qlib.h \
  20671. - ../../src/qgen/q.out.h proto.h ../../src/include/atmsap.h \
  20672. - ../../src/saal/saal.h ../../src/saal/sscf.h \
  20673. - ../../src/saal/sscop.h ../../src/saal/queue.h sap.h io.h \
  20674. - policy.h timeout.h
  20675. -mess.o: mess.c ../../config.h
  20676. -policy.o: policy.c ../../config.h ../../src/include/atm.h \
  20677. - ../../src/include/stdint.h ../../src/include/atmd.h proto.h \
  20678. - ../../src/include/atmsap.h ../../src/saal/saal.h \
  20679. - ../../src/saal/sscf.h ../../src/saal/sscop.h \
  20680. - ../../src/saal/queue.h policy.h
  20681. -proto.o: proto.c ../../config.h ../../src/include/atmd.h \
  20682. - ../../src/include/stdint.h ../../src/include/atm.h \
  20683. - ../../src/qgen/uni.h ../../src/qgen/qlib.h \
  20684. - ../../src/qgen/q.out.h io.h proto.h ../../src/include/atmsap.h \
  20685. - ../../src/saal/saal.h ../../src/saal/sscf.h \
  20686. - ../../src/saal/sscop.h ../../src/saal/queue.h sap.h
  20687. -sap.o: sap.c ../../config.h ../../src/include/atm.h \
  20688. - ../../src/include/stdint.h ../../src/include/atmd.h \
  20689. - ../../src/qgen/uni.h ../../src/qgen/qlib.h \
  20690. - ../../src/qgen/q.out.h ../../src/qgen/common.h proto.h \
  20691. - ../../src/include/atmsap.h ../../src/saal/saal.h \
  20692. - ../../src/saal/sscf.h ../../src/saal/sscop.h \
  20693. - ../../src/saal/queue.h sap.h
  20694. -timeout.o: timeout.c ../../config.h ../../src/include/atm.h \
  20695. - ../../src/include/stdint.h ../../src/include/atmd.h \
  20696. - ../../src/qgen/uni.h proto.h ../../src/include/atmsap.h \
  20697. - ../../src/saal/saal.h ../../src/saal/sscf.h \
  20698. - ../../src/saal/sscop.h ../../src/saal/queue.h timeout.h
  20699. -trace.o: trace.c ../../config.h ../../src/include/atm.h \
  20700. - ../../src/include/stdint.h ../../src/include/atmd.h \
  20701. - ../../src/include/atmsap.h trace.h proto.h \
  20702. - ../../src/saal/saal.h ../../src/saal/sscf.h \
  20703. - ../../src/saal/sscop.h ../../src/saal/queue.h \
  20704. - ../../src/qgen/qlib.h
  20705. -uni.o: uni.c ../../config.h ../../src/include/atm.h \
  20706. - ../../src/include/stdint.h ../../src/include/atmd.h \
  20707. - ../../src/qgen/uni.h ../../src/qgen/qlib.h \
  20708. - ../../src/qgen/q.out.h proto.h ../../src/include/atmsap.h \
  20709. - ../../src/saal/saal.h ../../src/saal/sscf.h \
  20710. - ../../src/saal/sscop.h ../../src/saal/queue.h sap.h io.h \
  20711. - policy.h timeout.h trace.h
  20712. +DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
  20713. +
  20714. +-include $(DEP_FILES)
  20715. +
  20716. +mostlyclean-depend:
  20717. +
  20718. +clean-depend:
  20719. +
  20720. +distclean-depend:
  20721. + -rm -rf .deps
  20722. +
  20723. +maintainer-clean-depend:
  20724. +
  20725. +%.o: %.c
  20726. + @echo '$(COMPILE) -c $<'; \
  20727. + $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
  20728. + @-cp .deps/$(*F).pp .deps/$(*F).P; \
  20729. + tr ' ' '\012' < .deps/$(*F).pp \
  20730. + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
  20731. + >> .deps/$(*F).P; \
  20732. + rm .deps/$(*F).pp
  20733. +
  20734. +%.lo: %.c
  20735. + @echo '$(LTCOMPILE) -c $<'; \
  20736. + $(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
  20737. + @-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \
  20738. + < .deps/$(*F).pp > .deps/$(*F).P; \
  20739. + tr ' ' '\012' < .deps/$(*F).pp \
  20740. + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
  20741. + >> .deps/$(*F).P; \
  20742. + rm -f .deps/$(*F).pp
  20743. info-am:
  20744. info: info-am
  20745. dvi-am:
  20746. @@ -474,29 +440,29 @@
  20747. -rm -f config.cache config.log stamp-h stamp-h[0-9]*
  20748. maintainer-clean-generic:
  20749. - -test -z "cfg_llcfg_yhcfg_yc" || rm -f cfg_ll cfg_yh cfg_yc
  20750. + -test -z "cfg_lccfg_yhcfg_yc" || rm -f cfg_lc cfg_yh cfg_yc
  20751. mostlyclean-am: mostlyclean-sbinPROGRAMS mostlyclean-compile \
  20752. - mostlyclean-libtool mostlyclean-tags \
  20753. + mostlyclean-libtool mostlyclean-tags mostlyclean-depend \
  20754. mostlyclean-generic
  20755. mostlyclean: mostlyclean-am
  20756. clean-am: clean-sbinPROGRAMS clean-compile clean-libtool clean-tags \
  20757. - clean-generic mostlyclean-am
  20758. + clean-depend clean-generic mostlyclean-am
  20759. clean: clean-am
  20760. distclean-am: distclean-sbinPROGRAMS distclean-compile \
  20761. - distclean-libtool distclean-tags distclean-generic \
  20762. - clean-am
  20763. + distclean-libtool distclean-tags distclean-depend \
  20764. + distclean-generic clean-am
  20765. -rm -f libtool
  20766. distclean: distclean-am
  20767. maintainer-clean-am: maintainer-clean-sbinPROGRAMS \
  20768. maintainer-clean-compile maintainer-clean-libtool \
  20769. - maintainer-clean-tags maintainer-clean-generic \
  20770. - distclean-am
  20771. + maintainer-clean-tags maintainer-clean-depend \
  20772. + maintainer-clean-generic distclean-am
  20773. @echo "This command is intended for maintainers to use;"
  20774. @echo "it deletes files that may require special tools to rebuild."
  20775. @@ -509,12 +475,14 @@
  20776. distclean-libtool clean-libtool maintainer-clean-libtool install-man4 \
  20777. uninstall-man4 install-man8 uninstall-man8 install-man uninstall-man \
  20778. uninstall-sysconfDATA install-sysconfDATA tags mostlyclean-tags \
  20779. -distclean-tags clean-tags maintainer-clean-tags distdir info-am info \
  20780. -dvi-am dvi check check-am installcheck-am installcheck install-exec-am \
  20781. -install-exec install-data-am install-data install-am install \
  20782. -uninstall-am uninstall all-redirect all-am all installdirs \
  20783. -mostlyclean-generic distclean-generic clean-generic \
  20784. -maintainer-clean-generic clean mostlyclean distclean maintainer-clean
  20785. +distclean-tags clean-tags maintainer-clean-tags distdir \
  20786. +mostlyclean-depend distclean-depend clean-depend \
  20787. +maintainer-clean-depend info-am info dvi-am dvi check check-am \
  20788. +installcheck-am installcheck install-exec-am install-exec \
  20789. +install-data-am install-data install-am install uninstall-am uninstall \
  20790. +all-redirect all-am all installdirs mostlyclean-generic \
  20791. +distclean-generic clean-generic maintainer-clean-generic clean \
  20792. +mostlyclean distclean maintainer-clean
  20793. mess.c: $(top_builddir)/src/qgen/uni.h mkmess.pl
  20794. Index: linux-atm-2.4.1/src/sigd/cfg_y.c
  20795. ===================================================================
  20796. --- linux-atm-2.4.1.orig/src/sigd/cfg_y.c 2007-10-20 19:19:11.090260479 +0200
  20797. +++ linux-atm-2.4.1/src/sigd/cfg_y.c 2007-10-20 19:19:12.050315189 +0200
  20798. @@ -1,46 +1,137 @@
  20799. +/* A Bison parser, made by GNU Bison 1.875d. */
  20800. -/* A Bison parser, made from cfg_y.y
  20801. - by GNU Bison version 1.28 */
  20802. +/* Skeleton parser for Yacc-like parsing with Bison,
  20803. + Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
  20804. -#define YYBISON 1 /* Identify Bison output. */
  20805. + This program is free software; you can redistribute it and/or modify
  20806. + it under the terms of the GNU General Public License as published by
  20807. + the Free Software Foundation; either version 2, or (at your option)
  20808. + any later version.
  20809. -#define TOK_LEVEL 257
  20810. -#define TOK_DEBUG 258
  20811. -#define TOK_INFO 259
  20812. -#define TOK_WARN 260
  20813. -#define TOK_ERROR 261
  20814. -#define TOK_FATAL 262
  20815. -#define TOK_SIG 263
  20816. -#define TOK_UNI30 264
  20817. -#define TOK_UNI31 265
  20818. -#define TOK_UNI40 266
  20819. -#define TOK_Q2963_1 267
  20820. -#define TOK_SAAL 268
  20821. -#define TOK_VC 269
  20822. -#define TOK_IO 270
  20823. -#define TOK_MODE 271
  20824. -#define TOK_USER 272
  20825. -#define TOK_NET 273
  20826. -#define TOK_SWITCH 274
  20827. -#define TOK_VPCI 275
  20828. -#define TOK_ITF 276
  20829. -#define TOK_PCR 277
  20830. -#define TOK_TRACE 278
  20831. -#define TOK_POLICY 279
  20832. -#define TOK_ALLOW 280
  20833. -#define TOK_REJECT 281
  20834. -#define TOK_ENTITY 282
  20835. -#define TOK_DEFAULT 283
  20836. -#define TOK_NUMBER 284
  20837. -#define TOK_MAX_RATE 285
  20838. -#define TOK_DUMP_DIR 286
  20839. -#define TOK_LOGFILE 287
  20840. -#define TOK_QOS 288
  20841. -#define TOK_FROM 289
  20842. -#define TOK_TO 290
  20843. -#define TOK_ROUTE 291
  20844. -#define TOK_PVC 292
  20845. + This program is distributed in the hope that it will be useful,
  20846. + but WITHOUT ANY WARRANTY; without even the implied warranty of
  20847. + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20848. + GNU General Public License for more details.
  20849. + You should have received a copy of the GNU General Public License
  20850. + along with this program; if not, write to the Free Software
  20851. + Foundation, Inc., 59 Temple Place - Suite 330,
  20852. + Boston, MA 02111-1307, USA. */
  20853. +
  20854. +/* As a special exception, when this file is copied by Bison into a
  20855. + Bison output file, you may use that output file without restriction.
  20856. + This special exception was added by the Free Software Foundation
  20857. + in version 1.24 of Bison. */
  20858. +
  20859. +/* Written by Richard Stallman by simplifying the original so called
  20860. + ``semantic'' parser. */
  20861. +
  20862. +/* All symbols defined below should begin with yy or YY, to avoid
  20863. + infringing on user name space. This should be done even for local
  20864. + variables, as they might otherwise be expanded by user macros.
  20865. + There are some unavoidable exceptions within include files to
  20866. + define necessary library symbols; they are noted "INFRINGES ON
  20867. + USER NAME SPACE" below. */
  20868. +
  20869. +/* Identify Bison output. */
  20870. +#define YYBISON 1
  20871. +
  20872. +/* Skeleton name. */
  20873. +#define YYSKELETON_NAME "yacc.c"
  20874. +
  20875. +/* Pure parsers. */
  20876. +#define YYPURE 0
  20877. +
  20878. +/* Using locations. */
  20879. +#define YYLSP_NEEDED 0
  20880. +
  20881. +
  20882. +
  20883. +/* Tokens. */
  20884. +#ifndef YYTOKENTYPE
  20885. +# define YYTOKENTYPE
  20886. + /* Put the tokens into the symbol table, so that GDB and other debuggers
  20887. + know about them. */
  20888. + enum yytokentype {
  20889. + TOK_LEVEL = 258,
  20890. + TOK_DEBUG = 259,
  20891. + TOK_INFO = 260,
  20892. + TOK_WARN = 261,
  20893. + TOK_ERROR = 262,
  20894. + TOK_FATAL = 263,
  20895. + TOK_SIG = 264,
  20896. + TOK_UNI30 = 265,
  20897. + TOK_UNI31 = 266,
  20898. + TOK_UNI40 = 267,
  20899. + TOK_Q2963_1 = 268,
  20900. + TOK_SAAL = 269,
  20901. + TOK_VC = 270,
  20902. + TOK_IO = 271,
  20903. + TOK_MODE = 272,
  20904. + TOK_USER = 273,
  20905. + TOK_NET = 274,
  20906. + TOK_SWITCH = 275,
  20907. + TOK_VPCI = 276,
  20908. + TOK_ITF = 277,
  20909. + TOK_PCR = 278,
  20910. + TOK_TRACE = 279,
  20911. + TOK_POLICY = 280,
  20912. + TOK_ALLOW = 281,
  20913. + TOK_REJECT = 282,
  20914. + TOK_ENTITY = 283,
  20915. + TOK_DEFAULT = 284,
  20916. + TOK_NUMBER = 285,
  20917. + TOK_MAX_RATE = 286,
  20918. + TOK_DUMP_DIR = 287,
  20919. + TOK_LOGFILE = 288,
  20920. + TOK_QOS = 289,
  20921. + TOK_FROM = 290,
  20922. + TOK_TO = 291,
  20923. + TOK_ROUTE = 292,
  20924. + TOK_PVC = 293
  20925. + };
  20926. +#endif
  20927. +#define TOK_LEVEL 258
  20928. +#define TOK_DEBUG 259
  20929. +#define TOK_INFO 260
  20930. +#define TOK_WARN 261
  20931. +#define TOK_ERROR 262
  20932. +#define TOK_FATAL 263
  20933. +#define TOK_SIG 264
  20934. +#define TOK_UNI30 265
  20935. +#define TOK_UNI31 266
  20936. +#define TOK_UNI40 267
  20937. +#define TOK_Q2963_1 268
  20938. +#define TOK_SAAL 269
  20939. +#define TOK_VC 270
  20940. +#define TOK_IO 271
  20941. +#define TOK_MODE 272
  20942. +#define TOK_USER 273
  20943. +#define TOK_NET 274
  20944. +#define TOK_SWITCH 275
  20945. +#define TOK_VPCI 276
  20946. +#define TOK_ITF 277
  20947. +#define TOK_PCR 278
  20948. +#define TOK_TRACE 279
  20949. +#define TOK_POLICY 280
  20950. +#define TOK_ALLOW 281
  20951. +#define TOK_REJECT 282
  20952. +#define TOK_ENTITY 283
  20953. +#define TOK_DEFAULT 284
  20954. +#define TOK_NUMBER 285
  20955. +#define TOK_MAX_RATE 286
  20956. +#define TOK_DUMP_DIR 287
  20957. +#define TOK_LOGFILE 288
  20958. +#define TOK_QOS 289
  20959. +#define TOK_FROM 290
  20960. +#define TOK_TO 291
  20961. +#define TOK_ROUTE 292
  20962. +#define TOK_PVC 293
  20963. +
  20964. +
  20965. +
  20966. +
  20967. +/* Copy the first part of user declarations. */
  20968. #line 1 "cfg_y.y"
  20969. /* cfg.y - configuration language */
  20970. @@ -51,6 +142,7 @@
  20971. #include <config.h>
  20972. #endif
  20973. +#include <stdlib.h>
  20974. #include <string.h>
  20975. #include <ctype.h>
  20976. #include <limits.h>
  20977. @@ -63,6 +155,8 @@
  20978. #include "trace.h"
  20979. #include "policy.h"
  20980. +extern void yywarn(const char *s);
  20981. +extern void yyerror(const char *s);
  20982. static RULE *rule;
  20983. static SIG_ENTITY *curr_sig = &_entity;
  20984. @@ -93,516 +187,830 @@
  20985. }
  20986. -#line 53 "cfg_y.y"
  20987. -typedef union {
  20988. +
  20989. +/* Enabling traces. */
  20990. +#ifndef YYDEBUG
  20991. +# define YYDEBUG 0
  20992. +#endif
  20993. +
  20994. +/* Enabling verbose error messages. */
  20995. +#ifdef YYERROR_VERBOSE
  20996. +# undef YYERROR_VERBOSE
  20997. +# define YYERROR_VERBOSE 1
  20998. +#else
  20999. +# define YYERROR_VERBOSE 0
  21000. +#endif
  21001. +
  21002. +#if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
  21003. +#line 56 "cfg_y.y"
  21004. +typedef union YYSTYPE {
  21005. int num;
  21006. char *str;
  21007. struct sockaddr_atmpvc pvc;
  21008. } YYSTYPE;
  21009. -#include <stdio.h>
  21010. +/* Line 191 of yacc.c. */
  21011. +#line 213 "y.tab.c"
  21012. +# define yystype YYSTYPE /* obsolescent; will be withdrawn */
  21013. +# define YYSTYPE_IS_DECLARED 1
  21014. +# define YYSTYPE_IS_TRIVIAL 1
  21015. +#endif
  21016. +
  21017. +
  21018. +
  21019. +/* Copy the second part of user declarations. */
  21020. +
  21021. +
  21022. +/* Line 214 of yacc.c. */
  21023. +#line 225 "y.tab.c"
  21024. +
  21025. +#if ! defined (yyoverflow) || YYERROR_VERBOSE
  21026. +
  21027. +# ifndef YYFREE
  21028. +# define YYFREE free
  21029. +# endif
  21030. +# ifndef YYMALLOC
  21031. +# define YYMALLOC malloc
  21032. +# endif
  21033. +
  21034. +/* The parser invokes alloca or malloc; define the necessary symbols. */
  21035. +
  21036. +# ifdef YYSTACK_USE_ALLOCA
  21037. +# if YYSTACK_USE_ALLOCA
  21038. +# define YYSTACK_ALLOC alloca
  21039. +# endif
  21040. +# else
  21041. +# if defined (alloca) || defined (_ALLOCA_H)
  21042. +# define YYSTACK_ALLOC alloca
  21043. +# else
  21044. +# ifdef __GNUC__
  21045. +# define YYSTACK_ALLOC __builtin_alloca
  21046. +# endif
  21047. +# endif
  21048. +# endif
  21049. +
  21050. +# ifdef YYSTACK_ALLOC
  21051. + /* Pacify GCC's `empty if-body' warning. */
  21052. +# define YYSTACK_FREE(Ptr) do { /* empty */; } while (0)
  21053. +# else
  21054. +# if defined (__STDC__) || defined (__cplusplus)
  21055. +# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
  21056. +# define YYSIZE_T size_t
  21057. +# endif
  21058. +# define YYSTACK_ALLOC YYMALLOC
  21059. +# define YYSTACK_FREE YYFREE
  21060. +# endif
  21061. +#endif /* ! defined (yyoverflow) || YYERROR_VERBOSE */
  21062. +
  21063. +
  21064. +#if (! defined (yyoverflow) \
  21065. + && (! defined (__cplusplus) \
  21066. + || (defined (YYSTYPE_IS_TRIVIAL) && YYSTYPE_IS_TRIVIAL)))
  21067. +
  21068. +/* A type that is properly aligned for any stack member. */
  21069. +union yyalloc
  21070. +{
  21071. + short int yyss;
  21072. + YYSTYPE yyvs;
  21073. + };
  21074. +
  21075. +/* The size of the maximum gap between one aligned stack and the next. */
  21076. +# define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1)
  21077. +
  21078. +/* The size of an array large to enough to hold all stacks, each with
  21079. + N elements. */
  21080. +# define YYSTACK_BYTES(N) \
  21081. + ((N) * (sizeof (short int) + sizeof (YYSTYPE)) \
  21082. + + YYSTACK_GAP_MAXIMUM)
  21083. +
  21084. +/* Copy COUNT objects from FROM to TO. The source and destination do
  21085. + not overlap. */
  21086. +# ifndef YYCOPY
  21087. +# if defined (__GNUC__) && 1 < __GNUC__
  21088. +# define YYCOPY(To, From, Count) \
  21089. + __builtin_memcpy (To, From, (Count) * sizeof (*(From)))
  21090. +# else
  21091. +# define YYCOPY(To, From, Count) \
  21092. + do \
  21093. + { \
  21094. + register YYSIZE_T yyi; \
  21095. + for (yyi = 0; yyi < (Count); yyi++) \
  21096. + (To)[yyi] = (From)[yyi]; \
  21097. + } \
  21098. + while (0)
  21099. +# endif
  21100. +# endif
  21101. +
  21102. +/* Relocate STACK from its old location to the new one. The
  21103. + local variables YYSIZE and YYSTACKSIZE give the old and new number of
  21104. + elements in the stack, and YYPTR gives the new location of the
  21105. + stack. Advance YYPTR to a properly aligned location for the next
  21106. + stack. */
  21107. +# define YYSTACK_RELOCATE(Stack) \
  21108. + do \
  21109. + { \
  21110. + YYSIZE_T yynewbytes; \
  21111. + YYCOPY (&yyptr->Stack, Stack, yysize); \
  21112. + Stack = &yyptr->Stack; \
  21113. + yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
  21114. + yyptr += yynewbytes / sizeof (*yyptr); \
  21115. + } \
  21116. + while (0)
  21117. -#ifndef __cplusplus
  21118. -#ifndef __STDC__
  21119. -#define const
  21120. -#endif
  21121. #endif
  21122. +#if defined (__STDC__) || defined (__cplusplus)
  21123. + typedef signed char yysigned_char;
  21124. +#else
  21125. + typedef short int yysigned_char;
  21126. +#endif
  21127. -
  21128. -#define YYFINAL 117
  21129. -#define YYFLAG -32768
  21130. -#define YYNTBASE 41
  21131. -
  21132. -#define YYTRANSLATE(x) ((unsigned)(x) <= 292 ? yytranslate[x] : 71)
  21133. -
  21134. -static const char yytranslate[] = { 0,
  21135. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  21136. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  21137. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  21138. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  21139. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  21140. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  21141. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  21142. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  21143. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  21144. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  21145. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  21146. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  21147. - 2, 2, 39, 2, 40, 2, 2, 2, 2, 2,
  21148. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  21149. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  21150. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  21151. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  21152. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  21153. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  21154. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  21155. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  21156. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  21157. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  21158. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  21159. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  21160. - 2, 2, 2, 2, 2, 1, 3, 4, 5, 6,
  21161. - 7, 8, 9, 10, 11, 12, 13, 14, 15, 16,
  21162. - 17, 18, 19, 20, 21, 22, 23, 24, 25, 26,
  21163. - 27, 28, 29, 30, 31, 32, 33, 34, 35, 36,
  21164. - 37, 38
  21165. +/* YYFINAL -- State number of the termination state. */
  21166. +#define YYFINAL 53
  21167. +/* YYLAST -- Last index in YYTABLE. */
  21168. +#define YYLAST 108
  21169. +
  21170. +/* YYNTOKENS -- Number of terminals. */
  21171. +#define YYNTOKENS 41
  21172. +/* YYNNTS -- Number of nonterminals. */
  21173. +#define YYNNTS 31
  21174. +/* YYNRULES -- Number of rules. */
  21175. +#define YYNRULES 79
  21176. +/* YYNRULES -- Number of states. */
  21177. +#define YYNSTATES 117
  21178. +
  21179. +/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */
  21180. +#define YYUNDEFTOK 2
  21181. +#define YYMAXUTOK 293
  21182. +
  21183. +#define YYTRANSLATE(YYX) \
  21184. + ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
  21185. +
  21186. +/* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */
  21187. +static const unsigned char yytranslate[] =
  21188. +{
  21189. + 0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  21190. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  21191. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  21192. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  21193. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  21194. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  21195. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  21196. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  21197. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  21198. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  21199. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  21200. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  21201. + 2, 2, 2, 39, 2, 40, 2, 2, 2, 2,
  21202. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  21203. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  21204. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  21205. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  21206. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  21207. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  21208. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  21209. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  21210. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  21211. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  21212. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  21213. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  21214. + 2, 2, 2, 2, 2, 2, 1, 2, 3, 4,
  21215. + 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
  21216. + 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
  21217. + 25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
  21218. + 35, 36, 37, 38
  21219. };
  21220. -#if YYDEBUG != 0
  21221. -static const short yyprhs[] = { 0,
  21222. - 0, 3, 4, 7, 8, 11, 14, 17, 20, 23,
  21223. - 26, 29, 30, 35, 36, 40, 41, 44, 49, 52,
  21224. - 54, 56, 58, 60, 62, 66, 67, 70, 72, 76,
  21225. - 77, 80, 82, 86, 87, 90, 92, 96, 97, 100,
  21226. - 102, 106, 107, 110, 113, 118, 120, 122, 124, 126,
  21227. - 128, 131, 134, 137, 140, 143, 145, 147, 150, 152,
  21228. - 154, 157, 158, 160, 162, 164, 166, 168, 170, 172,
  21229. - 174, 176, 179, 180, 184, 186, 188, 190
  21230. +#if YYDEBUG
  21231. +/* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
  21232. + YYRHS. */
  21233. +static const unsigned char yyprhs[] =
  21234. +{
  21235. + 0, 0, 3, 6, 7, 10, 11, 14, 17, 20,
  21236. + 23, 26, 29, 32, 33, 38, 39, 43, 44, 47,
  21237. + 52, 55, 57, 59, 61, 63, 65, 69, 70, 73,
  21238. + 75, 79, 80, 83, 85, 89, 90, 93, 95, 99,
  21239. + 100, 103, 105, 109, 110, 113, 116, 121, 123, 125,
  21240. + 127, 129, 131, 134, 137, 140, 143, 146, 148, 150,
  21241. + 153, 155, 157, 160, 161, 163, 165, 167, 169, 171,
  21242. + 173, 175, 177, 179, 182, 183, 187, 189, 191, 193
  21243. };
  21244. -static const short yyrhs[] = { 42,
  21245. - 43, 0, 0, 44, 42, 0, 0, 45, 43, 0,
  21246. - 3, 65, 0, 9, 50, 0, 14, 52, 0, 16,
  21247. - 54, 0, 4, 56, 0, 25, 58, 0, 0, 28,
  21248. - 38, 46, 47, 0, 0, 39, 48, 40, 0, 0,
  21249. - 49, 48, 0, 21, 30, 22, 30, 0, 17, 66,
  21250. - 0, 34, 0, 31, 0, 37, 0, 29, 0, 60,
  21251. - 0, 39, 51, 40, 0, 0, 60, 51, 0, 61,
  21252. - 0, 39, 53, 40, 0, 0, 61, 53, 0, 62,
  21253. - 0, 39, 55, 40, 0, 0, 62, 55, 0, 63,
  21254. - 0, 39, 57, 40, 0, 0, 63, 57, 0, 67,
  21255. - 0, 39, 59, 40, 0, 0, 67, 59, 0, 3,
  21256. - 65, 0, 21, 30, 22, 30, 0, 10, 0, 11,
  21257. - 0, 12, 0, 13, 0, 19, 0, 17, 66, 0,
  21258. - 3, 65, 0, 3, 65, 0, 15, 38, 0, 23,
  21259. - 30, 0, 34, 0, 31, 0, 3, 65, 0, 32,
  21260. - 0, 33, 0, 24, 64, 0, 0, 30, 0, 4,
  21261. - 0, 5, 0, 6, 0, 7, 0, 8, 0, 18,
  21262. - 0, 19, 0, 20, 0, 3, 65, 0, 0, 69,
  21263. - 68, 70, 0, 26, 0, 27, 0, 35, 0, 36,
  21264. - 0
  21265. +/* YYRHS -- A `-1'-separated list of the rules' RHS. */
  21266. +static const yysigned_char yyrhs[] =
  21267. +{
  21268. + 42, 0, -1, 43, 44, -1, -1, 45, 43, -1,
  21269. + -1, 46, 44, -1, 3, 66, -1, 9, 51, -1,
  21270. + 14, 53, -1, 16, 55, -1, 4, 57, -1, 25,
  21271. + 59, -1, -1, 28, 38, 47, 48, -1, -1, 39,
  21272. + 49, 40, -1, -1, 50, 49, -1, 21, 30, 22,
  21273. + 30, -1, 17, 67, -1, 34, -1, 31, -1, 37,
  21274. + -1, 29, -1, 61, -1, 39, 52, 40, -1, -1,
  21275. + 61, 52, -1, 62, -1, 39, 54, 40, -1, -1,
  21276. + 62, 54, -1, 63, -1, 39, 56, 40, -1, -1,
  21277. + 63, 56, -1, 64, -1, 39, 58, 40, -1, -1,
  21278. + 64, 58, -1, 68, -1, 39, 60, 40, -1, -1,
  21279. + 68, 60, -1, 3, 66, -1, 21, 30, 22, 30,
  21280. + -1, 10, -1, 11, -1, 12, -1, 13, -1, 19,
  21281. + -1, 17, 67, -1, 3, 66, -1, 3, 66, -1,
  21282. + 15, 38, -1, 23, 30, -1, 34, -1, 31, -1,
  21283. + 3, 66, -1, 32, -1, 33, -1, 24, 65, -1,
  21284. + -1, 30, -1, 4, -1, 5, -1, 6, -1, 7,
  21285. + -1, 8, -1, 18, -1, 19, -1, 20, -1, 3,
  21286. + 66, -1, -1, 70, 69, 71, -1, 26, -1, 27,
  21287. + -1, 35, -1, 36, -1
  21288. };
  21289. -#endif
  21290. -
  21291. -#if YYDEBUG != 0
  21292. -static const short yyrline[] = { 0,
  21293. - 73, 77, 78, 81, 82, 105, 110, 111, 112, 113,
  21294. - 114, 117, 138, 140, 141, 144, 145, 148, 153, 154,
  21295. - 158, 162, 176, 182, 184, 187, 188, 191, 193, 196,
  21296. - 197, 200, 202, 205, 206, 209, 211, 214, 215, 218,
  21297. - 220, 223, 224, 227, 234, 238, 247, 256, 265, 274,
  21298. - 279, 282, 290, 295, 299, 304, 308, 314, 319, 324,
  21299. - 328, 334, 338, 344, 349, 353, 357, 361, 367, 372,
  21300. - 376, 382, 387, 393, 395, 400, 406, 412
  21301. +/* YYRLINE[YYN] -- source line where rule number YYN was defined. */
  21302. +static const unsigned short int yyrline[] =
  21303. +{
  21304. + 0, 77, 77, 80, 81, 84, 85, 109, 113, 114,
  21305. + 115, 116, 117, 122, 121, 151, 152, 155, 156, 160,
  21306. + 164, 165, 169, 173, 187, 194, 195, 198, 199, 203,
  21307. + 204, 207, 208, 212, 213, 216, 217, 221, 222, 225,
  21308. + 226, 230, 231, 234, 235, 239, 245, 249, 258, 267,
  21309. + 276, 285, 290, 294, 302, 306, 310, 315, 319, 326,
  21310. + 330, 335, 339, 346, 349, 356, 360, 364, 368, 372,
  21311. + 379, 383, 387, 394, 399, 398, 407, 411, 418, 423
  21312. };
  21313. #endif
  21314. -
  21315. -#if YYDEBUG != 0 || defined (YYERROR_VERBOSE)
  21316. -
  21317. -static const char * const yytname[] = { "$","error","$undefined.","TOK_LEVEL",
  21318. -"TOK_DEBUG","TOK_INFO","TOK_WARN","TOK_ERROR","TOK_FATAL","TOK_SIG","TOK_UNI30",
  21319. -"TOK_UNI31","TOK_UNI40","TOK_Q2963_1","TOK_SAAL","TOK_VC","TOK_IO","TOK_MODE",
  21320. -"TOK_USER","TOK_NET","TOK_SWITCH","TOK_VPCI","TOK_ITF","TOK_PCR","TOK_TRACE",
  21321. -"TOK_POLICY","TOK_ALLOW","TOK_REJECT","TOK_ENTITY","TOK_DEFAULT","TOK_NUMBER",
  21322. -"TOK_MAX_RATE","TOK_DUMP_DIR","TOK_LOGFILE","TOK_QOS","TOK_FROM","TOK_TO","TOK_ROUTE",
  21323. -"TOK_PVC","'{'","'}'","all","global","local","item","entity","@1","opt_options",
  21324. -"options","option","sig","sig_items","saal","saal_items","io","io_items","debug",
  21325. -"debug_items","policy","policy_items","sig_item","saal_item","io_item","debug_item",
  21326. -"opt_trace_size","level","mode","policy_item","@2","action","direction", NULL
  21327. +#if YYDEBUG || YYERROR_VERBOSE
  21328. +/* YYTNME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
  21329. + First, the terminals, then, starting at YYNTOKENS, nonterminals. */
  21330. +static const char *const yytname[] =
  21331. +{
  21332. + "$end", "error", "$undefined", "TOK_LEVEL", "TOK_DEBUG", "TOK_INFO",
  21333. + "TOK_WARN", "TOK_ERROR", "TOK_FATAL", "TOK_SIG", "TOK_UNI30",
  21334. + "TOK_UNI31", "TOK_UNI40", "TOK_Q2963_1", "TOK_SAAL", "TOK_VC", "TOK_IO",
  21335. + "TOK_MODE", "TOK_USER", "TOK_NET", "TOK_SWITCH", "TOK_VPCI", "TOK_ITF",
  21336. + "TOK_PCR", "TOK_TRACE", "TOK_POLICY", "TOK_ALLOW", "TOK_REJECT",
  21337. + "TOK_ENTITY", "TOK_DEFAULT", "TOK_NUMBER", "TOK_MAX_RATE",
  21338. + "TOK_DUMP_DIR", "TOK_LOGFILE", "TOK_QOS", "TOK_FROM", "TOK_TO",
  21339. + "TOK_ROUTE", "TOK_PVC", "'{'", "'}'", "$accept", "all", "global",
  21340. + "local", "item", "entity", "@1", "opt_options", "options", "option",
  21341. + "sig", "sig_items", "saal", "saal_items", "io", "io_items", "debug",
  21342. + "debug_items", "policy", "policy_items", "sig_item", "saal_item",
  21343. + "io_item", "debug_item", "opt_trace_size", "level", "mode",
  21344. + "policy_item", "@2", "action", "direction", 0
  21345. };
  21346. #endif
  21347. -static const short yyr1[] = { 0,
  21348. - 41, 42, 42, 43, 43, 44, 44, 44, 44, 44,
  21349. - 44, 46, 45, 47, 47, 48, 48, 49, 49, 49,
  21350. - 49, 49, 49, 50, 50, 51, 51, 52, 52, 53,
  21351. - 53, 54, 54, 55, 55, 56, 56, 57, 57, 58,
  21352. - 58, 59, 59, 60, 60, 60, 60, 60, 60, 60,
  21353. - 60, 61, 62, 62, 62, 62, 62, 63, 63, 63,
  21354. - 63, 64, 64, 65, 65, 65, 65, 65, 66, 66,
  21355. - 66, 67, 68, 67, 69, 69, 70, 70
  21356. +# ifdef YYPRINT
  21357. +/* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to
  21358. + token YYLEX-NUM. */
  21359. +static const unsigned short int yytoknum[] =
  21360. +{
  21361. + 0, 256, 257, 258, 259, 260, 261, 262, 263, 264,
  21362. + 265, 266, 267, 268, 269, 270, 271, 272, 273, 274,
  21363. + 275, 276, 277, 278, 279, 280, 281, 282, 283, 284,
  21364. + 285, 286, 287, 288, 289, 290, 291, 292, 293, 123,
  21365. + 125
  21366. };
  21367. +# endif
  21368. -static const short yyr2[] = { 0,
  21369. - 2, 0, 2, 0, 2, 2, 2, 2, 2, 2,
  21370. - 2, 0, 4, 0, 3, 0, 2, 4, 2, 1,
  21371. - 1, 1, 1, 1, 3, 0, 2, 1, 3, 0,
  21372. - 2, 1, 3, 0, 2, 1, 3, 0, 2, 1,
  21373. - 3, 0, 2, 2, 4, 1, 1, 1, 1, 1,
  21374. - 2, 2, 2, 2, 2, 1, 1, 2, 1, 1,
  21375. - 2, 0, 1, 1, 1, 1, 1, 1, 1, 1,
  21376. - 1, 2, 0, 3, 1, 1, 1, 1
  21377. +/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
  21378. +static const unsigned char yyr1[] =
  21379. +{
  21380. + 0, 41, 42, 43, 43, 44, 44, 45, 45, 45,
  21381. + 45, 45, 45, 47, 46, 48, 48, 49, 49, 50,
  21382. + 50, 50, 50, 50, 50, 51, 51, 52, 52, 53,
  21383. + 53, 54, 54, 55, 55, 56, 56, 57, 57, 58,
  21384. + 58, 59, 59, 60, 60, 61, 61, 61, 61, 61,
  21385. + 61, 61, 61, 62, 63, 63, 63, 63, 63, 64,
  21386. + 64, 64, 64, 65, 65, 66, 66, 66, 66, 66,
  21387. + 67, 67, 67, 68, 69, 68, 70, 70, 71, 71
  21388. };
  21389. -static const short yydefact[] = { 2,
  21390. - 0, 0, 0, 0, 0, 0, 4, 2, 64, 65,
  21391. - 66, 67, 68, 6, 0, 62, 59, 60, 38, 10,
  21392. - 36, 0, 46, 47, 48, 49, 0, 50, 0, 26,
  21393. - 7, 24, 0, 30, 8, 28, 0, 0, 0, 57,
  21394. - 56, 34, 9, 32, 0, 75, 76, 42, 11, 40,
  21395. - 73, 0, 1, 4, 3, 58, 63, 61, 0, 38,
  21396. - 44, 69, 70, 71, 51, 0, 0, 26, 52, 0,
  21397. - 30, 53, 54, 55, 0, 34, 72, 0, 42, 0,
  21398. - 12, 5, 37, 39, 0, 25, 27, 29, 31, 33,
  21399. - 35, 41, 43, 77, 78, 74, 14, 45, 16, 13,
  21400. - 0, 0, 23, 21, 20, 22, 0, 16, 19, 0,
  21401. - 15, 17, 0, 18, 0, 0, 0
  21402. +/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */
  21403. +static const unsigned char yyr2[] =
  21404. +{
  21405. + 0, 2, 2, 0, 2, 0, 2, 2, 2, 2,
  21406. + 2, 2, 2, 0, 4, 0, 3, 0, 2, 4,
  21407. + 2, 1, 1, 1, 1, 1, 3, 0, 2, 1,
  21408. + 3, 0, 2, 1, 3, 0, 2, 1, 3, 0,
  21409. + 2, 1, 3, 0, 2, 2, 4, 1, 1, 1,
  21410. + 1, 1, 2, 2, 2, 2, 2, 1, 1, 2,
  21411. + 1, 1, 2, 0, 1, 1, 1, 1, 1, 1,
  21412. + 1, 1, 1, 2, 0, 3, 1, 1, 1, 1
  21413. };
  21414. -static const short yydefgoto[] = { 115,
  21415. - 7, 53, 8, 54, 97, 100, 107, 108, 31, 67,
  21416. - 35, 70, 43, 75, 20, 59, 49, 78, 68, 71,
  21417. - 76, 60, 58, 14, 65, 79, 80, 51, 96
  21418. +/* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state
  21419. + STATE-NUM when YYTABLE doesn't specify something else to do. Zero
  21420. + means the default is an error. */
  21421. +static const unsigned char yydefact[] =
  21422. +{
  21423. + 3, 0, 0, 0, 0, 0, 0, 0, 5, 3,
  21424. + 65, 66, 67, 68, 69, 7, 0, 63, 60, 61,
  21425. + 39, 11, 37, 0, 47, 48, 49, 50, 0, 51,
  21426. + 0, 27, 8, 25, 0, 31, 9, 29, 0, 0,
  21427. + 0, 58, 57, 35, 10, 33, 0, 76, 77, 43,
  21428. + 12, 41, 74, 1, 0, 2, 5, 4, 59, 64,
  21429. + 62, 0, 39, 45, 70, 71, 72, 52, 0, 0,
  21430. + 27, 53, 0, 31, 54, 55, 56, 0, 35, 73,
  21431. + 0, 43, 0, 13, 6, 38, 40, 0, 26, 28,
  21432. + 30, 32, 34, 36, 42, 44, 78, 79, 75, 15,
  21433. + 46, 17, 14, 0, 0, 24, 22, 21, 23, 0,
  21434. + 17, 20, 0, 16, 18, 0, 19
  21435. };
  21436. -static const short yypact[] = { 52,
  21437. - 100, 1, -3, -1, -2, 0, -17, 52,-32768,-32768,
  21438. --32768,-32768,-32768,-32768, 100, -18,-32768,-32768, 25,-32768,
  21439. --32768, 100,-32768,-32768,-32768,-32768, 60,-32768, -15, 82,
  21440. --32768,-32768, 100, 14,-32768,-32768, 100, -19, -10,-32768,
  21441. --32768, 20,-32768,-32768, 100,-32768,-32768, 19,-32768,-32768,
  21442. --32768, -14,-32768, -17,-32768,-32768,-32768,-32768, -9, 25,
  21443. --32768,-32768,-32768,-32768,-32768, 8, 2, 82,-32768, 4,
  21444. - 14,-32768,-32768,-32768, 7, 20,-32768, 10, 19, -30,
  21445. --32768,-32768,-32768,-32768, 22,-32768,-32768,-32768,-32768,-32768,
  21446. --32768,-32768,-32768,-32768,-32768,-32768, 21,-32768, 53,-32768,
  21447. - 60, 23,-32768,-32768,-32768,-32768, 24, 53,-32768, 40,
  21448. --32768,-32768, 35,-32768, 67, 69,-32768
  21449. +/* YYDEFGOTO[NTERM-NUM]. */
  21450. +static const yysigned_char yydefgoto[] =
  21451. +{
  21452. + -1, 7, 8, 55, 9, 56, 99, 102, 109, 110,
  21453. + 32, 69, 36, 72, 44, 77, 21, 61, 50, 80,
  21454. + 70, 73, 78, 62, 60, 15, 67, 81, 82, 52,
  21455. + 98
  21456. };
  21457. -static const short yypgoto[] = {-32768,
  21458. - 64, 27,-32768,-32768,-32768,-32768, -35,-32768,-32768, 15,
  21459. --32768, 5,-32768, 12,-32768, 29,-32768, -4, 83, 87,
  21460. - 91, 95,-32768, 26, 9, 92,-32768,-32768,-32768
  21461. +/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
  21462. + STATE-NUM. */
  21463. +#define YYPACT_NINF -31
  21464. +static const yysigned_char yypact[] =
  21465. +{
  21466. + 53, 69, 1, -3, -1, -2, 0, 11, -16, 53,
  21467. + -31, -31, -31, -31, -31, -31, 69, -15, -31, -31,
  21468. + 28, -31, -31, 69, -31, -31, -31, -31, 46, -31,
  21469. + -13, 80, -31, -31, 69, 16, -31, -31, 69, -18,
  21470. + -6, -31, -31, 20, -31, -31, 69, -31, -31, 19,
  21471. + -31, -31, -31, -31, -10, -31, -16, -31, -31, -31,
  21472. + -31, 2, 28, -31, -31, -31, -31, -31, 8, 4,
  21473. + 80, -31, 7, 16, -31, -31, -31, 9, 20, -31,
  21474. + 10, 19, -30, -31, -31, -31, -31, 23, -31, -31,
  21475. + -31, -31, -31, -31, -31, -31, -31, -31, -31, 31,
  21476. + -31, 51, -31, 46, 49, -31, -31, -31, -31, 15,
  21477. + 51, -31, 36, -31, -31, 54, -31
  21478. };
  21479. -
  21480. -#define YYLAST 110
  21481. -
  21482. -
  21483. -static const short yytable[] = { 22,
  21484. - 37, 33, 45, 15, 94, 95, 23, 24, 25, 26,
  21485. - 52, 57, 38, 27, 66, 28, 33, 29, 73, 74,
  21486. - 39, 45, 37, 81, 16, 46, 47, 15, 40, 85,
  21487. - 83, 41, 17, 18, 38, 30, 42, 34, 48, 19,
  21488. - 56, 86, 39, 88, 46, 47, 90, 61, 16, 92,
  21489. - 40, 98, 110, 41, 1, 2, 17, 18, 69, 99,
  21490. - 3, 113, 72, 111, 114, 4, 116, 5, 117, 101,
  21491. - 77, 55, 112, 102, 93, 89, 6, 62, 63, 64,
  21492. - 82, 103, 87, 104, 22, 32, 105, 91, 84, 106,
  21493. - 36, 23, 24, 25, 26, 44, 21, 50, 27, 0,
  21494. - 28, 0, 29, 9, 10, 11, 12, 13, 0, 109
  21495. +/* YYPGOTO[NTERM-NUM]. */
  21496. +static const yysigned_char yypgoto[] =
  21497. +{
  21498. + -31, -31, 72, 30, -31, -31, -31, -31, -23, -31,
  21499. + -31, 24, -31, 22, -31, 18, -31, 27, -31, 17,
  21500. + 97, 98, 99, 101, -31, 25, 3, 102, -31, -31,
  21501. + -31
  21502. };
  21503. -static const short yycheck[] = { 3,
  21504. - 3, 3, 3, 3, 35, 36, 10, 11, 12, 13,
  21505. - 28, 30, 15, 17, 30, 19, 3, 21, 38, 30,
  21506. - 23, 3, 3, 38, 24, 26, 27, 3, 31, 22,
  21507. - 40, 34, 32, 33, 15, 39, 39, 39, 39, 39,
  21508. - 15, 40, 23, 40, 26, 27, 40, 22, 24, 40,
  21509. - 31, 30, 30, 34, 3, 4, 32, 33, 33, 39,
  21510. - 9, 22, 37, 40, 30, 14, 0, 16, 0, 17,
  21511. - 45, 8, 108, 21, 79, 71, 25, 18, 19, 20,
  21512. - 54, 29, 68, 31, 3, 3, 34, 76, 60, 37,
  21513. - 4, 10, 11, 12, 13, 5, 2, 6, 17, -1,
  21514. - 19, -1, 21, 4, 5, 6, 7, 8, -1, 101
  21515. +/* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If
  21516. + positive, shift that token. If negative, reduce the rule which
  21517. + number is the opposite. If zero, do what YYDEFACT says.
  21518. + If YYTABLE_NINF, syntax error. */
  21519. +#define YYTABLE_NINF -1
  21520. +static const unsigned char yytable[] =
  21521. +{
  21522. + 23, 38, 34, 46, 16, 96, 97, 24, 25, 26,
  21523. + 27, 53, 54, 39, 28, 59, 29, 68, 30, 34,
  21524. + 75, 40, 46, 38, 76, 17, 47, 48, 83, 41,
  21525. + 87, 16, 42, 18, 19, 39, 31, 43, 35, 49,
  21526. + 20, 58, 85, 40, 88, 47, 48, 90, 63, 92,
  21527. + 94, 41, 17, 100, 42, 113, 1, 2, 115, 71,
  21528. + 18, 19, 3, 74, 64, 65, 66, 4, 103, 5,
  21529. + 101, 79, 104, 10, 11, 12, 13, 14, 6, 112,
  21530. + 105, 57, 106, 23, 116, 107, 84, 114, 108, 86,
  21531. + 24, 25, 26, 27, 89, 91, 93, 28, 95, 29,
  21532. + 33, 30, 37, 22, 45, 0, 111, 0, 51
  21533. };
  21534. -/* -*-C-*- Note some compilers choke on comments on `#line' lines. */
  21535. -#line 3 "/usr/lib/bison.simple"
  21536. -/* This file comes from bison-1.28. */
  21537. -
  21538. -/* Skeleton output parser for bison,
  21539. - Copyright (C) 1984, 1989, 1990 Free Software Foundation, Inc.
  21540. -
  21541. - This program is free software; you can redistribute it and/or modify
  21542. - it under the terms of the GNU General Public License as published by
  21543. - the Free Software Foundation; either version 2, or (at your option)
  21544. - any later version.
  21545. - This program is distributed in the hope that it will be useful,
  21546. - but WITHOUT ANY WARRANTY; without even the implied warranty of
  21547. - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21548. - GNU General Public License for more details.
  21549. -
  21550. - You should have received a copy of the GNU General Public License
  21551. - along with this program; if not, write to the Free Software
  21552. - Foundation, Inc., 59 Temple Place - Suite 330,
  21553. - Boston, MA 02111-1307, USA. */
  21554. -
  21555. -/* As a special exception, when this file is copied by Bison into a
  21556. - Bison output file, you may use that output file without restriction.
  21557. - This special exception was added by the Free Software Foundation
  21558. - in version 1.24 of Bison. */
  21559. +static const yysigned_char yycheck[] =
  21560. +{
  21561. + 3, 3, 3, 3, 3, 35, 36, 10, 11, 12,
  21562. + 13, 0, 28, 15, 17, 30, 19, 30, 21, 3,
  21563. + 38, 23, 3, 3, 30, 24, 26, 27, 38, 31,
  21564. + 22, 3, 34, 32, 33, 15, 39, 39, 39, 39,
  21565. + 39, 16, 40, 23, 40, 26, 27, 40, 23, 40,
  21566. + 40, 31, 24, 30, 34, 40, 3, 4, 22, 34,
  21567. + 32, 33, 9, 38, 18, 19, 20, 14, 17, 16,
  21568. + 39, 46, 21, 4, 5, 6, 7, 8, 25, 30,
  21569. + 29, 9, 31, 3, 30, 34, 56, 110, 37, 62,
  21570. + 10, 11, 12, 13, 70, 73, 78, 17, 81, 19,
  21571. + 3, 21, 4, 2, 5, -1, 103, -1, 6
  21572. +};
  21573. -/* This is the parser code that is written into each bison parser
  21574. - when the %semantic_parser declaration is not specified in the grammar.
  21575. - It was written by Richard Stallman by simplifying the hairy parser
  21576. - used when %semantic_parser is specified. */
  21577. -
  21578. -#ifndef YYSTACK_USE_ALLOCA
  21579. -#ifdef alloca
  21580. -#define YYSTACK_USE_ALLOCA
  21581. -#else /* alloca not defined */
  21582. -#ifdef __GNUC__
  21583. -#define YYSTACK_USE_ALLOCA
  21584. -#define alloca __builtin_alloca
  21585. -#else /* not GNU C. */
  21586. -#if (!defined (__STDC__) && defined (sparc)) || defined (__sparc__) || defined (__sparc) || defined (__sgi) || (defined (__sun) && defined (__i386))
  21587. -#define YYSTACK_USE_ALLOCA
  21588. -#include <alloca.h>
  21589. -#else /* not sparc */
  21590. -/* We think this test detects Watcom and Microsoft C. */
  21591. -/* This used to test MSDOS, but that is a bad idea
  21592. - since that symbol is in the user namespace. */
  21593. -#if (defined (_MSDOS) || defined (_MSDOS_)) && !defined (__TURBOC__)
  21594. -#if 0 /* No need for malloc.h, which pollutes the namespace;
  21595. - instead, just don't use alloca. */
  21596. -#include <malloc.h>
  21597. -#endif
  21598. -#else /* not MSDOS, or __TURBOC__ */
  21599. -#if defined(_AIX)
  21600. -/* I don't know what this was needed for, but it pollutes the namespace.
  21601. - So I turned it off. rms, 2 May 1997. */
  21602. -/* #include <malloc.h> */
  21603. - #pragma alloca
  21604. -#define YYSTACK_USE_ALLOCA
  21605. -#else /* not MSDOS, or __TURBOC__, or _AIX */
  21606. -#if 0
  21607. -#ifdef __hpux /* [email protected] says this works for HPUX 9.05 and up,
  21608. - and on HPUX 10. Eventually we can turn this on. */
  21609. -#define YYSTACK_USE_ALLOCA
  21610. -#define alloca __builtin_alloca
  21611. -#endif /* __hpux */
  21612. -#endif
  21613. -#endif /* not _AIX */
  21614. -#endif /* not MSDOS, or __TURBOC__ */
  21615. -#endif /* not sparc */
  21616. -#endif /* not GNU C */
  21617. -#endif /* alloca not defined */
  21618. -#endif /* YYSTACK_USE_ALLOCA not defined */
  21619. +/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
  21620. + symbol of state STATE-NUM. */
  21621. +static const unsigned char yystos[] =
  21622. +{
  21623. + 0, 3, 4, 9, 14, 16, 25, 42, 43, 45,
  21624. + 4, 5, 6, 7, 8, 66, 3, 24, 32, 33,
  21625. + 39, 57, 64, 3, 10, 11, 12, 13, 17, 19,
  21626. + 21, 39, 51, 61, 3, 39, 53, 62, 3, 15,
  21627. + 23, 31, 34, 39, 55, 63, 3, 26, 27, 39,
  21628. + 59, 68, 70, 0, 28, 44, 46, 43, 66, 30,
  21629. + 65, 58, 64, 66, 18, 19, 20, 67, 30, 52,
  21630. + 61, 66, 54, 62, 66, 38, 30, 56, 63, 66,
  21631. + 60, 68, 69, 38, 44, 40, 58, 22, 40, 52,
  21632. + 40, 54, 40, 56, 40, 60, 35, 36, 71, 47,
  21633. + 30, 39, 48, 17, 21, 29, 31, 34, 37, 49,
  21634. + 50, 67, 30, 40, 49, 22, 30
  21635. +};
  21636. -#ifdef YYSTACK_USE_ALLOCA
  21637. -#define YYSTACK_ALLOC alloca
  21638. -#else
  21639. -#define YYSTACK_ALLOC malloc
  21640. +#if ! defined (YYSIZE_T) && defined (__SIZE_TYPE__)
  21641. +# define YYSIZE_T __SIZE_TYPE__
  21642. +#endif
  21643. +#if ! defined (YYSIZE_T) && defined (size_t)
  21644. +# define YYSIZE_T size_t
  21645. +#endif
  21646. +#if ! defined (YYSIZE_T)
  21647. +# if defined (__STDC__) || defined (__cplusplus)
  21648. +# include <stddef.h> /* INFRINGES ON USER NAME SPACE */
  21649. +# define YYSIZE_T size_t
  21650. +# endif
  21651. +#endif
  21652. +#if ! defined (YYSIZE_T)
  21653. +# define YYSIZE_T unsigned int
  21654. #endif
  21655. -
  21656. -/* Note: there must be only one dollar sign in this file.
  21657. - It is replaced by the list of actions, each action
  21658. - as one case of the switch. */
  21659. #define yyerrok (yyerrstatus = 0)
  21660. #define yyclearin (yychar = YYEMPTY)
  21661. -#define YYEMPTY -2
  21662. +#define YYEMPTY (-2)
  21663. #define YYEOF 0
  21664. +
  21665. #define YYACCEPT goto yyacceptlab
  21666. -#define YYABORT goto yyabortlab
  21667. -#define YYERROR goto yyerrlab1
  21668. -/* Like YYERROR except do call yyerror.
  21669. - This remains here temporarily to ease the
  21670. - transition to the new meaning of YYERROR, for GCC.
  21671. +#define YYABORT goto yyabortlab
  21672. +#define YYERROR goto yyerrorlab
  21673. +
  21674. +
  21675. +/* Like YYERROR except do call yyerror. This remains here temporarily
  21676. + to ease the transition to the new meaning of YYERROR, for GCC.
  21677. Once GCC version 2 has supplanted version 1, this can go. */
  21678. +
  21679. #define YYFAIL goto yyerrlab
  21680. +
  21681. #define YYRECOVERING() (!!yyerrstatus)
  21682. -#define YYBACKUP(token, value) \
  21683. +
  21684. +#define YYBACKUP(Token, Value) \
  21685. do \
  21686. if (yychar == YYEMPTY && yylen == 1) \
  21687. - { yychar = (token), yylval = (value); \
  21688. - yychar1 = YYTRANSLATE (yychar); \
  21689. + { \
  21690. + yychar = (Token); \
  21691. + yylval = (Value); \
  21692. + yytoken = YYTRANSLATE (yychar); \
  21693. YYPOPSTACK; \
  21694. goto yybackup; \
  21695. } \
  21696. else \
  21697. - { yyerror ("syntax error: cannot back up"); YYERROR; } \
  21698. + { \
  21699. + yyerror ("syntax error: cannot back up");\
  21700. + YYERROR; \
  21701. + } \
  21702. while (0)
  21703. #define YYTERROR 1
  21704. #define YYERRCODE 256
  21705. -#ifndef YYPURE
  21706. -#define YYLEX yylex()
  21707. -#endif
  21708. +/* YYLLOC_DEFAULT -- Compute the default location (before the actions
  21709. + are run). */
  21710. -#ifdef YYPURE
  21711. -#ifdef YYLSP_NEEDED
  21712. -#ifdef YYLEX_PARAM
  21713. -#define YYLEX yylex(&yylval, &yylloc, YYLEX_PARAM)
  21714. -#else
  21715. -#define YYLEX yylex(&yylval, &yylloc)
  21716. +#ifndef YYLLOC_DEFAULT
  21717. +# define YYLLOC_DEFAULT(Current, Rhs, N) \
  21718. + ((Current).first_line = (Rhs)[1].first_line, \
  21719. + (Current).first_column = (Rhs)[1].first_column, \
  21720. + (Current).last_line = (Rhs)[N].last_line, \
  21721. + (Current).last_column = (Rhs)[N].last_column)
  21722. #endif
  21723. -#else /* not YYLSP_NEEDED */
  21724. +
  21725. +/* YYLEX -- calling `yylex' with the right arguments. */
  21726. +
  21727. #ifdef YYLEX_PARAM
  21728. -#define YYLEX yylex(&yylval, YYLEX_PARAM)
  21729. +# define YYLEX yylex (YYLEX_PARAM)
  21730. #else
  21731. -#define YYLEX yylex(&yylval)
  21732. -#endif
  21733. -#endif /* not YYLSP_NEEDED */
  21734. +# define YYLEX yylex ()
  21735. #endif
  21736. -/* If nonreentrant, generate the variables here */
  21737. +/* Enable debugging if requested. */
  21738. +#if YYDEBUG
  21739. -#ifndef YYPURE
  21740. +# ifndef YYFPRINTF
  21741. +# include <stdio.h> /* INFRINGES ON USER NAME SPACE */
  21742. +# define YYFPRINTF fprintf
  21743. +# endif
  21744. +
  21745. +# define YYDPRINTF(Args) \
  21746. +do { \
  21747. + if (yydebug) \
  21748. + YYFPRINTF Args; \
  21749. +} while (0)
  21750. +
  21751. +# define YYDSYMPRINT(Args) \
  21752. +do { \
  21753. + if (yydebug) \
  21754. + yysymprint Args; \
  21755. +} while (0)
  21756. +
  21757. +# define YYDSYMPRINTF(Title, Token, Value, Location) \
  21758. +do { \
  21759. + if (yydebug) \
  21760. + { \
  21761. + YYFPRINTF (stderr, "%s ", Title); \
  21762. + yysymprint (stderr, \
  21763. + Token, Value); \
  21764. + YYFPRINTF (stderr, "\n"); \
  21765. + } \
  21766. +} while (0)
  21767. -int yychar; /* the lookahead symbol */
  21768. -YYSTYPE yylval; /* the semantic value of the */
  21769. - /* lookahead symbol */
  21770. +/*------------------------------------------------------------------.
  21771. +| yy_stack_print -- Print the state stack from its BOTTOM up to its |
  21772. +| TOP (included). |
  21773. +`------------------------------------------------------------------*/
  21774. -#ifdef YYLSP_NEEDED
  21775. -YYLTYPE yylloc; /* location data for the lookahead */
  21776. - /* symbol */
  21777. +#if defined (__STDC__) || defined (__cplusplus)
  21778. +static void
  21779. +yy_stack_print (short int *bottom, short int *top)
  21780. +#else
  21781. +static void
  21782. +yy_stack_print (bottom, top)
  21783. + short int *bottom;
  21784. + short int *top;
  21785. #endif
  21786. +{
  21787. + YYFPRINTF (stderr, "Stack now");
  21788. + for (/* Nothing. */; bottom <= top; ++bottom)
  21789. + YYFPRINTF (stderr, " %d", *bottom);
  21790. + YYFPRINTF (stderr, "\n");
  21791. +}
  21792. +
  21793. +# define YY_STACK_PRINT(Bottom, Top) \
  21794. +do { \
  21795. + if (yydebug) \
  21796. + yy_stack_print ((Bottom), (Top)); \
  21797. +} while (0)
  21798. -int yynerrs; /* number of parse errors so far */
  21799. -#endif /* not YYPURE */
  21800. -#if YYDEBUG != 0
  21801. -int yydebug; /* nonzero means print parse trace */
  21802. -/* Since this is uninitialized, it does not stop multiple parsers
  21803. - from coexisting. */
  21804. +/*------------------------------------------------.
  21805. +| Report that the YYRULE is going to be reduced. |
  21806. +`------------------------------------------------*/
  21807. +
  21808. +#if defined (__STDC__) || defined (__cplusplus)
  21809. +static void
  21810. +yy_reduce_print (int yyrule)
  21811. +#else
  21812. +static void
  21813. +yy_reduce_print (yyrule)
  21814. + int yyrule;
  21815. #endif
  21816. +{
  21817. + int yyi;
  21818. + unsigned int yylno = yyrline[yyrule];
  21819. + YYFPRINTF (stderr, "Reducing stack by rule %d (line %u), ",
  21820. + yyrule - 1, yylno);
  21821. + /* Print the symbols being reduced, and their result. */
  21822. + for (yyi = yyprhs[yyrule]; 0 <= yyrhs[yyi]; yyi++)
  21823. + YYFPRINTF (stderr, "%s ", yytname [yyrhs[yyi]]);
  21824. + YYFPRINTF (stderr, "-> %s\n", yytname [yyr1[yyrule]]);
  21825. +}
  21826. +
  21827. +# define YY_REDUCE_PRINT(Rule) \
  21828. +do { \
  21829. + if (yydebug) \
  21830. + yy_reduce_print (Rule); \
  21831. +} while (0)
  21832. +
  21833. +/* Nonzero means print parse trace. It is left uninitialized so that
  21834. + multiple parsers can coexist. */
  21835. +int yydebug;
  21836. +#else /* !YYDEBUG */
  21837. +# define YYDPRINTF(Args)
  21838. +# define YYDSYMPRINT(Args)
  21839. +# define YYDSYMPRINTF(Title, Token, Value, Location)
  21840. +# define YY_STACK_PRINT(Bottom, Top)
  21841. +# define YY_REDUCE_PRINT(Rule)
  21842. +#endif /* !YYDEBUG */
  21843. -/* YYINITDEPTH indicates the initial size of the parser's stacks */
  21844. +/* YYINITDEPTH -- initial size of the parser's stacks. */
  21845. #ifndef YYINITDEPTH
  21846. -#define YYINITDEPTH 200
  21847. +# define YYINITDEPTH 200
  21848. #endif
  21849. -/* YYMAXDEPTH is the maximum size the stacks can grow to
  21850. - (effective only if the built-in stack extension method is used). */
  21851. +/* YYMAXDEPTH -- maximum size the stacks can grow to (effective only
  21852. + if the built-in stack extension method is used).
  21853. -#if YYMAXDEPTH == 0
  21854. -#undef YYMAXDEPTH
  21855. + Do not make this value too large; the results are undefined if
  21856. + SIZE_MAX < YYSTACK_BYTES (YYMAXDEPTH)
  21857. + evaluated with infinite-precision integer arithmetic. */
  21858. +
  21859. +#if defined (YYMAXDEPTH) && YYMAXDEPTH == 0
  21860. +# undef YYMAXDEPTH
  21861. #endif
  21862. #ifndef YYMAXDEPTH
  21863. -#define YYMAXDEPTH 10000
  21864. +# define YYMAXDEPTH 10000
  21865. #endif
  21866. +
  21867. -/* Define __yy_memcpy. Note that the size argument
  21868. - should be passed with type unsigned int, because that is what the non-GCC
  21869. - definitions require. With GCC, __builtin_memcpy takes an arg
  21870. - of type size_t, but it can handle unsigned int. */
  21871. -
  21872. -#if __GNUC__ > 1 /* GNU C and GNU C++ define this. */
  21873. -#define __yy_memcpy(TO,FROM,COUNT) __builtin_memcpy(TO,FROM,COUNT)
  21874. -#else /* not GNU C or C++ */
  21875. -#ifndef __cplusplus
  21876. -/* This is the most reliable way to avoid incompatibilities
  21877. - in available built-in functions on various systems. */
  21878. -static void
  21879. -__yy_memcpy (to, from, count)
  21880. - char *to;
  21881. - char *from;
  21882. - unsigned int count;
  21883. -{
  21884. - register char *f = from;
  21885. - register char *t = to;
  21886. - register int i = count;
  21887. +#if YYERROR_VERBOSE
  21888. - while (i-- > 0)
  21889. - *t++ = *f++;
  21890. +# ifndef yystrlen
  21891. +# if defined (__GLIBC__) && defined (_STRING_H)
  21892. +# define yystrlen strlen
  21893. +# else
  21894. +/* Return the length of YYSTR. */
  21895. +static YYSIZE_T
  21896. +# if defined (__STDC__) || defined (__cplusplus)
  21897. +yystrlen (const char *yystr)
  21898. +# else
  21899. +yystrlen (yystr)
  21900. + const char *yystr;
  21901. +# endif
  21902. +{
  21903. + register const char *yys = yystr;
  21904. +
  21905. + while (*yys++ != '\0')
  21906. + continue;
  21907. +
  21908. + return yys - yystr - 1;
  21909. }
  21910. +# endif
  21911. +# endif
  21912. -#else /* __cplusplus */
  21913. +# ifndef yystpcpy
  21914. +# if defined (__GLIBC__) && defined (_STRING_H) && defined (_GNU_SOURCE)
  21915. +# define yystpcpy stpcpy
  21916. +# else
  21917. +/* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in
  21918. + YYDEST. */
  21919. +static char *
  21920. +# if defined (__STDC__) || defined (__cplusplus)
  21921. +yystpcpy (char *yydest, const char *yysrc)
  21922. +# else
  21923. +yystpcpy (yydest, yysrc)
  21924. + char *yydest;
  21925. + const char *yysrc;
  21926. +# endif
  21927. +{
  21928. + register char *yyd = yydest;
  21929. + register const char *yys = yysrc;
  21930. +
  21931. + while ((*yyd++ = *yys++) != '\0')
  21932. + continue;
  21933. +
  21934. + return yyd - 1;
  21935. +}
  21936. +# endif
  21937. +# endif
  21938. -/* This is the most reliable way to avoid incompatibilities
  21939. - in available built-in functions on various systems. */
  21940. +#endif /* !YYERROR_VERBOSE */
  21941. +
  21942. +
  21943. +
  21944. +#if YYDEBUG
  21945. +/*--------------------------------.
  21946. +| Print this symbol on YYOUTPUT. |
  21947. +`--------------------------------*/
  21948. +
  21949. +#if defined (__STDC__) || defined (__cplusplus)
  21950. static void
  21951. -__yy_memcpy (char *to, char *from, unsigned int count)
  21952. +yysymprint (FILE *yyoutput, int yytype, YYSTYPE *yyvaluep)
  21953. +#else
  21954. +static void
  21955. +yysymprint (yyoutput, yytype, yyvaluep)
  21956. + FILE *yyoutput;
  21957. + int yytype;
  21958. + YYSTYPE *yyvaluep;
  21959. +#endif
  21960. {
  21961. - register char *t = to;
  21962. - register char *f = from;
  21963. - register int i = count;
  21964. + /* Pacify ``unused variable'' warnings. */
  21965. + (void) yyvaluep;
  21966. - while (i-- > 0)
  21967. - *t++ = *f++;
  21968. + if (yytype < YYNTOKENS)
  21969. + {
  21970. + YYFPRINTF (yyoutput, "token %s (", yytname[yytype]);
  21971. +# ifdef YYPRINT
  21972. + YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
  21973. +# endif
  21974. + }
  21975. + else
  21976. + YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]);
  21977. +
  21978. + switch (yytype)
  21979. + {
  21980. + default:
  21981. + break;
  21982. + }
  21983. + YYFPRINTF (yyoutput, ")");
  21984. }
  21985. +#endif /* ! YYDEBUG */
  21986. +/*-----------------------------------------------.
  21987. +| Release the memory associated to this symbol. |
  21988. +`-----------------------------------------------*/
  21989. +
  21990. +#if defined (__STDC__) || defined (__cplusplus)
  21991. +static void
  21992. +yydestruct (int yytype, YYSTYPE *yyvaluep)
  21993. +#else
  21994. +static void
  21995. +yydestruct (yytype, yyvaluep)
  21996. + int yytype;
  21997. + YYSTYPE *yyvaluep;
  21998. #endif
  21999. -#endif
  22000. +{
  22001. + /* Pacify ``unused variable'' warnings. */
  22002. + (void) yyvaluep;
  22003. +
  22004. + switch (yytype)
  22005. + {
  22006. +
  22007. + default:
  22008. + break;
  22009. + }
  22010. +}
  22011. -#line 217 "/usr/lib/bison.simple"
  22012. -/* The user can define YYPARSE_PARAM as the name of an argument to be passed
  22013. - into yyparse. The argument should have type void *.
  22014. - It should actually point to an object.
  22015. - Grammar actions can access the variable by casting it
  22016. - to the proper pointer type. */
  22017. +/* Prevent warnings from -Wmissing-prototypes. */
  22018. #ifdef YYPARSE_PARAM
  22019. -#ifdef __cplusplus
  22020. -#define YYPARSE_PARAM_ARG void *YYPARSE_PARAM
  22021. -#define YYPARSE_PARAM_DECL
  22022. -#else /* not __cplusplus */
  22023. -#define YYPARSE_PARAM_ARG YYPARSE_PARAM
  22024. -#define YYPARSE_PARAM_DECL void *YYPARSE_PARAM;
  22025. -#endif /* not __cplusplus */
  22026. -#else /* not YYPARSE_PARAM */
  22027. -#define YYPARSE_PARAM_ARG
  22028. -#define YYPARSE_PARAM_DECL
  22029. -#endif /* not YYPARSE_PARAM */
  22030. +# if defined (__STDC__) || defined (__cplusplus)
  22031. +int yyparse (void *YYPARSE_PARAM);
  22032. +# else
  22033. +int yyparse ();
  22034. +# endif
  22035. +#else /* ! YYPARSE_PARAM */
  22036. +#if defined (__STDC__) || defined (__cplusplus)
  22037. +int yyparse (void);
  22038. +#else
  22039. +int yyparse ();
  22040. +#endif
  22041. +#endif /* ! YYPARSE_PARAM */
  22042. +
  22043. +
  22044. +
  22045. +/* The lookahead symbol. */
  22046. +int yychar;
  22047. +
  22048. +/* The semantic value of the lookahead symbol. */
  22049. +YYSTYPE yylval;
  22050. +
  22051. +/* Number of syntax errors so far. */
  22052. +int yynerrs;
  22053. +
  22054. +
  22055. +
  22056. +/*----------.
  22057. +| yyparse. |
  22058. +`----------*/
  22059. -/* Prevent warning if -Wstrict-prototypes. */
  22060. -#ifdef __GNUC__
  22061. #ifdef YYPARSE_PARAM
  22062. -int yyparse (void *);
  22063. +# if defined (__STDC__) || defined (__cplusplus)
  22064. +int yyparse (void *YYPARSE_PARAM)
  22065. +# else
  22066. +int yyparse (YYPARSE_PARAM)
  22067. + void *YYPARSE_PARAM;
  22068. +# endif
  22069. +#else /* ! YYPARSE_PARAM */
  22070. +#if defined (__STDC__) || defined (__cplusplus)
  22071. +int
  22072. +yyparse (void)
  22073. #else
  22074. -int yyparse (void);
  22075. +int
  22076. +yyparse ()
  22077. +
  22078. #endif
  22079. #endif
  22080. -
  22081. -int
  22082. -yyparse(YYPARSE_PARAM_ARG)
  22083. - YYPARSE_PARAM_DECL
  22084. {
  22085. +
  22086. register int yystate;
  22087. register int yyn;
  22088. - register short *yyssp;
  22089. + int yyresult;
  22090. + /* Number of tokens to shift before error messages enabled. */
  22091. + int yyerrstatus;
  22092. + /* Lookahead token as an internal (translated) token number. */
  22093. + int yytoken = 0;
  22094. +
  22095. + /* Three stacks and their tools:
  22096. + `yyss': related to states,
  22097. + `yyvs': related to semantic values,
  22098. + `yyls': related to locations.
  22099. +
  22100. + Refer to the stacks thru separate pointers, to allow yyoverflow
  22101. + to reallocate them elsewhere. */
  22102. +
  22103. + /* The state stack. */
  22104. + short int yyssa[YYINITDEPTH];
  22105. + short int *yyss = yyssa;
  22106. + register short int *yyssp;
  22107. +
  22108. + /* The semantic value stack. */
  22109. + YYSTYPE yyvsa[YYINITDEPTH];
  22110. + YYSTYPE *yyvs = yyvsa;
  22111. register YYSTYPE *yyvsp;
  22112. - int yyerrstatus; /* number of tokens to shift before error messages enabled */
  22113. - int yychar1 = 0; /* lookahead token as an internal (translated) token number */
  22114. - short yyssa[YYINITDEPTH]; /* the state stack */
  22115. - YYSTYPE yyvsa[YYINITDEPTH]; /* the semantic value stack */
  22116. - short *yyss = yyssa; /* refer to the stacks thru separate pointers */
  22117. - YYSTYPE *yyvs = yyvsa; /* to allow yyoverflow to reallocate them elsewhere */
  22118. -#ifdef YYLSP_NEEDED
  22119. - YYLTYPE yylsa[YYINITDEPTH]; /* the location stack */
  22120. - YYLTYPE *yyls = yylsa;
  22121. - YYLTYPE *yylsp;
  22122. -
  22123. -#define YYPOPSTACK (yyvsp--, yyssp--, yylsp--)
  22124. -#else
  22125. #define YYPOPSTACK (yyvsp--, yyssp--)
  22126. -#endif
  22127. - int yystacksize = YYINITDEPTH;
  22128. - int yyfree_stacks = 0;
  22129. + YYSIZE_T yystacksize = YYINITDEPTH;
  22130. -#ifdef YYPURE
  22131. - int yychar;
  22132. - YYSTYPE yylval;
  22133. - int yynerrs;
  22134. -#ifdef YYLSP_NEEDED
  22135. - YYLTYPE yylloc;
  22136. -#endif
  22137. -#endif
  22138. + /* The variables used to return semantic value and location from the
  22139. + action routines. */
  22140. + YYSTYPE yyval;
  22141. - YYSTYPE yyval; /* the variable used to return */
  22142. - /* semantic values from the action */
  22143. - /* routines */
  22144. + /* When reducing, the number of symbols on the RHS of the reduced
  22145. + rule. */
  22146. int yylen;
  22147. -#if YYDEBUG != 0
  22148. - if (yydebug)
  22149. - fprintf(stderr, "Starting parse\n");
  22150. -#endif
  22151. + YYDPRINTF ((stderr, "Starting parse\n"));
  22152. yystate = 0;
  22153. yyerrstatus = 0;
  22154. @@ -614,110 +1022,97 @@
  22155. so that they stay on the same level as the state stack.
  22156. The wasted elements are never initialized. */
  22157. - yyssp = yyss - 1;
  22158. + yyssp = yyss;
  22159. yyvsp = yyvs;
  22160. -#ifdef YYLSP_NEEDED
  22161. - yylsp = yyls;
  22162. -#endif
  22163. -/* Push a new state, which is found in yystate . */
  22164. -/* In all cases, when you get here, the value and location stacks
  22165. - have just been pushed. so pushing a state here evens the stacks. */
  22166. -yynewstate:
  22167. - *++yyssp = yystate;
  22168. + goto yysetstate;
  22169. - if (yyssp >= yyss + yystacksize - 1)
  22170. - {
  22171. - /* Give user a chance to reallocate the stack */
  22172. - /* Use copies of these so that the &'s don't force the real ones into memory. */
  22173. - YYSTYPE *yyvs1 = yyvs;
  22174. - short *yyss1 = yyss;
  22175. -#ifdef YYLSP_NEEDED
  22176. - YYLTYPE *yyls1 = yyls;
  22177. -#endif
  22178. +/*------------------------------------------------------------.
  22179. +| yynewstate -- Push a new state, which is found in yystate. |
  22180. +`------------------------------------------------------------*/
  22181. + yynewstate:
  22182. + /* In all cases, when you get here, the value and location stacks
  22183. + have just been pushed. so pushing a state here evens the stacks.
  22184. + */
  22185. + yyssp++;
  22186. + yysetstate:
  22187. + *yyssp = yystate;
  22188. +
  22189. + if (yyss + yystacksize - 1 <= yyssp)
  22190. + {
  22191. /* Get the current used size of the three stacks, in elements. */
  22192. - int size = yyssp - yyss + 1;
  22193. + YYSIZE_T yysize = yyssp - yyss + 1;
  22194. #ifdef yyoverflow
  22195. - /* Each stack pointer address is followed by the size of
  22196. - the data in use in that stack, in bytes. */
  22197. -#ifdef YYLSP_NEEDED
  22198. - /* This used to be a conditional around just the two extra args,
  22199. - but that might be undefined if yyoverflow is a macro. */
  22200. - yyoverflow("parser stack overflow",
  22201. - &yyss1, size * sizeof (*yyssp),
  22202. - &yyvs1, size * sizeof (*yyvsp),
  22203. - &yyls1, size * sizeof (*yylsp),
  22204. - &yystacksize);
  22205. -#else
  22206. - yyoverflow("parser stack overflow",
  22207. - &yyss1, size * sizeof (*yyssp),
  22208. - &yyvs1, size * sizeof (*yyvsp),
  22209. - &yystacksize);
  22210. -#endif
  22211. -
  22212. - yyss = yyss1; yyvs = yyvs1;
  22213. -#ifdef YYLSP_NEEDED
  22214. - yyls = yyls1;
  22215. -#endif
  22216. + {
  22217. + /* Give user a chance to reallocate the stack. Use copies of
  22218. + these so that the &'s don't force the real ones into
  22219. + memory. */
  22220. + YYSTYPE *yyvs1 = yyvs;
  22221. + short int *yyss1 = yyss;
  22222. +
  22223. +
  22224. + /* Each stack pointer address is followed by the size of the
  22225. + data in use in that stack, in bytes. This used to be a
  22226. + conditional around just the two extra args, but that might
  22227. + be undefined if yyoverflow is a macro. */
  22228. + yyoverflow ("parser stack overflow",
  22229. + &yyss1, yysize * sizeof (*yyssp),
  22230. + &yyvs1, yysize * sizeof (*yyvsp),
  22231. +
  22232. + &yystacksize);
  22233. +
  22234. + yyss = yyss1;
  22235. + yyvs = yyvs1;
  22236. + }
  22237. #else /* no yyoverflow */
  22238. +# ifndef YYSTACK_RELOCATE
  22239. + goto yyoverflowlab;
  22240. +# else
  22241. /* Extend the stack our own way. */
  22242. - if (yystacksize >= YYMAXDEPTH)
  22243. - {
  22244. - yyerror("parser stack overflow");
  22245. - if (yyfree_stacks)
  22246. - {
  22247. - free (yyss);
  22248. - free (yyvs);
  22249. -#ifdef YYLSP_NEEDED
  22250. - free (yyls);
  22251. -#endif
  22252. - }
  22253. - return 2;
  22254. - }
  22255. + if (YYMAXDEPTH <= yystacksize)
  22256. + goto yyoverflowlab;
  22257. yystacksize *= 2;
  22258. - if (yystacksize > YYMAXDEPTH)
  22259. + if (YYMAXDEPTH < yystacksize)
  22260. yystacksize = YYMAXDEPTH;
  22261. -#ifndef YYSTACK_USE_ALLOCA
  22262. - yyfree_stacks = 1;
  22263. -#endif
  22264. - yyss = (short *) YYSTACK_ALLOC (yystacksize * sizeof (*yyssp));
  22265. - __yy_memcpy ((char *)yyss, (char *)yyss1,
  22266. - size * (unsigned int) sizeof (*yyssp));
  22267. - yyvs = (YYSTYPE *) YYSTACK_ALLOC (yystacksize * sizeof (*yyvsp));
  22268. - __yy_memcpy ((char *)yyvs, (char *)yyvs1,
  22269. - size * (unsigned int) sizeof (*yyvsp));
  22270. -#ifdef YYLSP_NEEDED
  22271. - yyls = (YYLTYPE *) YYSTACK_ALLOC (yystacksize * sizeof (*yylsp));
  22272. - __yy_memcpy ((char *)yyls, (char *)yyls1,
  22273. - size * (unsigned int) sizeof (*yylsp));
  22274. -#endif
  22275. +
  22276. + {
  22277. + short int *yyss1 = yyss;
  22278. + union yyalloc *yyptr =
  22279. + (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));
  22280. + if (! yyptr)
  22281. + goto yyoverflowlab;
  22282. + YYSTACK_RELOCATE (yyss);
  22283. + YYSTACK_RELOCATE (yyvs);
  22284. +
  22285. +# undef YYSTACK_RELOCATE
  22286. + if (yyss1 != yyssa)
  22287. + YYSTACK_FREE (yyss1);
  22288. + }
  22289. +# endif
  22290. #endif /* no yyoverflow */
  22291. - yyssp = yyss + size - 1;
  22292. - yyvsp = yyvs + size - 1;
  22293. -#ifdef YYLSP_NEEDED
  22294. - yylsp = yyls + size - 1;
  22295. -#endif
  22296. + yyssp = yyss + yysize - 1;
  22297. + yyvsp = yyvs + yysize - 1;
  22298. -#if YYDEBUG != 0
  22299. - if (yydebug)
  22300. - fprintf(stderr, "Stack size increased to %d\n", yystacksize);
  22301. -#endif
  22302. - if (yyssp >= yyss + yystacksize - 1)
  22303. + YYDPRINTF ((stderr, "Stack size increased to %lu\n",
  22304. + (unsigned long int) yystacksize));
  22305. +
  22306. + if (yyss + yystacksize - 1 <= yyssp)
  22307. YYABORT;
  22308. }
  22309. -#if YYDEBUG != 0
  22310. - if (yydebug)
  22311. - fprintf(stderr, "Entering state %d\n", yystate);
  22312. -#endif
  22313. + YYDPRINTF ((stderr, "Entering state %d\n", yystate));
  22314. goto yybackup;
  22315. - yybackup:
  22316. +
  22317. +/*-----------.
  22318. +| yybackup. |
  22319. +`-----------*/
  22320. +yybackup:
  22321. /* Do appropriate processing given the current state. */
  22322. /* Read a lookahead token if we need one and don't already have one. */
  22323. @@ -726,135 +1121,99 @@
  22324. /* First try to decide what to do without reference to lookahead token. */
  22325. yyn = yypact[yystate];
  22326. - if (yyn == YYFLAG)
  22327. + if (yyn == YYPACT_NINF)
  22328. goto yydefault;
  22329. /* Not known => get a lookahead token if don't already have one. */
  22330. - /* yychar is either YYEMPTY or YYEOF
  22331. - or a valid token in external form. */
  22332. -
  22333. + /* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol. */
  22334. if (yychar == YYEMPTY)
  22335. {
  22336. -#if YYDEBUG != 0
  22337. - if (yydebug)
  22338. - fprintf(stderr, "Reading a token: ");
  22339. -#endif
  22340. + YYDPRINTF ((stderr, "Reading a token: "));
  22341. yychar = YYLEX;
  22342. }
  22343. - /* Convert token to internal form (in yychar1) for indexing tables with */
  22344. -
  22345. - if (yychar <= 0) /* This means end of input. */
  22346. + if (yychar <= YYEOF)
  22347. {
  22348. - yychar1 = 0;
  22349. - yychar = YYEOF; /* Don't call YYLEX any more */
  22350. -
  22351. -#if YYDEBUG != 0
  22352. - if (yydebug)
  22353. - fprintf(stderr, "Now at end of input.\n");
  22354. -#endif
  22355. + yychar = yytoken = YYEOF;
  22356. + YYDPRINTF ((stderr, "Now at end of input.\n"));
  22357. }
  22358. else
  22359. {
  22360. - yychar1 = YYTRANSLATE(yychar);
  22361. -
  22362. -#if YYDEBUG != 0
  22363. - if (yydebug)
  22364. - {
  22365. - fprintf (stderr, "Next token is %d (%s", yychar, yytname[yychar1]);
  22366. - /* Give the individual parser a way to print the precise meaning
  22367. - of a token, for further debugging info. */
  22368. -#ifdef YYPRINT
  22369. - YYPRINT (stderr, yychar, yylval);
  22370. -#endif
  22371. - fprintf (stderr, ")\n");
  22372. - }
  22373. -#endif
  22374. + yytoken = YYTRANSLATE (yychar);
  22375. + YYDSYMPRINTF ("Next token is", yytoken, &yylval, &yylloc);
  22376. }
  22377. - yyn += yychar1;
  22378. - if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != yychar1)
  22379. + /* If the proper action on seeing token YYTOKEN is to reduce or to
  22380. + detect an error, take that action. */
  22381. + yyn += yytoken;
  22382. + if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken)
  22383. goto yydefault;
  22384. -
  22385. yyn = yytable[yyn];
  22386. -
  22387. - /* yyn is what to do for this token type in this state.
  22388. - Negative => reduce, -yyn is rule number.
  22389. - Positive => shift, yyn is new state.
  22390. - New state is final state => don't bother to shift,
  22391. - just return success.
  22392. - 0, or most negative number => error. */
  22393. -
  22394. - if (yyn < 0)
  22395. + if (yyn <= 0)
  22396. {
  22397. - if (yyn == YYFLAG)
  22398. + if (yyn == 0 || yyn == YYTABLE_NINF)
  22399. goto yyerrlab;
  22400. yyn = -yyn;
  22401. goto yyreduce;
  22402. }
  22403. - else if (yyn == 0)
  22404. - goto yyerrlab;
  22405. if (yyn == YYFINAL)
  22406. YYACCEPT;
  22407. /* Shift the lookahead token. */
  22408. -
  22409. -#if YYDEBUG != 0
  22410. - if (yydebug)
  22411. - fprintf(stderr, "Shifting token %d (%s), ", yychar, yytname[yychar1]);
  22412. -#endif
  22413. + YYDPRINTF ((stderr, "Shifting token %s, ", yytname[yytoken]));
  22414. /* Discard the token being shifted unless it is eof. */
  22415. if (yychar != YYEOF)
  22416. yychar = YYEMPTY;
  22417. *++yyvsp = yylval;
  22418. -#ifdef YYLSP_NEEDED
  22419. - *++yylsp = yylloc;
  22420. -#endif
  22421. - /* count tokens shifted since error; after three, turn off error status. */
  22422. - if (yyerrstatus) yyerrstatus--;
  22423. +
  22424. + /* Count tokens shifted since error; after three, turn off error
  22425. + status. */
  22426. + if (yyerrstatus)
  22427. + yyerrstatus--;
  22428. yystate = yyn;
  22429. goto yynewstate;
  22430. -/* Do the default action for the current state. */
  22431. -yydefault:
  22432. +/*-----------------------------------------------------------.
  22433. +| yydefault -- do the default action for the current state. |
  22434. +`-----------------------------------------------------------*/
  22435. +yydefault:
  22436. yyn = yydefact[yystate];
  22437. if (yyn == 0)
  22438. goto yyerrlab;
  22439. + goto yyreduce;
  22440. +
  22441. -/* Do a reduction. yyn is the number of a rule to reduce with. */
  22442. +/*-----------------------------.
  22443. +| yyreduce -- Do a reduction. |
  22444. +`-----------------------------*/
  22445. yyreduce:
  22446. + /* yyn is the number of a rule to reduce with. */
  22447. yylen = yyr2[yyn];
  22448. - if (yylen > 0)
  22449. - yyval = yyvsp[1-yylen]; /* implement default value of the action */
  22450. -#if YYDEBUG != 0
  22451. - if (yydebug)
  22452. - {
  22453. - int i;
  22454. -
  22455. - fprintf (stderr, "Reducing via rule %d (line %d), ",
  22456. - yyn, yyrline[yyn]);
  22457. + /* If YYLEN is nonzero, implement the default value of the action:
  22458. + `$$ = $1'.
  22459. - /* Print the symbols being reduced, and their result. */
  22460. - for (i = yyprhs[yyn]; yyrhs[i] > 0; i++)
  22461. - fprintf (stderr, "%s ", yytname[yyrhs[i]]);
  22462. - fprintf (stderr, " -> %s\n", yytname[yyr1[yyn]]);
  22463. - }
  22464. -#endif
  22465. + Otherwise, the following line sets YYVAL to garbage.
  22466. + This behavior is undocumented and Bison
  22467. + users should not rely upon it. Assigning to YYVAL
  22468. + unconditionally makes the parser a bit smaller, and it avoids a
  22469. + GCC warning that YYVAL may be used uninitialized. */
  22470. + yyval = yyvsp[1-yylen];
  22471. - switch (yyn) {
  22472. -
  22473. -case 5:
  22474. -#line 83 "cfg_y.y"
  22475. -{
  22476. + YY_REDUCE_PRINT (yyn);
  22477. + switch (yyn)
  22478. + {
  22479. + case 6:
  22480. +#line 86 "cfg_y.y"
  22481. + {
  22482. if (!curr_sig->uni)
  22483. curr_sig->uni =
  22484. #if defined(UNI30) || defined(DYNAMIC_UNI)
  22485. @@ -873,17 +1232,19 @@
  22486. #endif
  22487. #endif
  22488. ;
  22489. - ;
  22490. - break;}
  22491. -case 6:
  22492. -#line 107 "cfg_y.y"
  22493. -{
  22494. + }
  22495. + break;
  22496. +
  22497. + case 7:
  22498. +#line 110 "cfg_y.y"
  22499. + {
  22500. set_verbosity(NULL,yyvsp[0].num);
  22501. - ;
  22502. - break;}
  22503. -case 12:
  22504. -#line 119 "cfg_y.y"
  22505. -{
  22506. + }
  22507. + break;
  22508. +
  22509. + case 13:
  22510. +#line 122 "cfg_y.y"
  22511. + {
  22512. SIG_ENTITY *sig,**walk;
  22513. if (atmpvc_addr_in_use(_entity.signaling_pvc))
  22514. @@ -892,37 +1253,49 @@
  22515. if (entities == &_entity) entities = NULL;
  22516. for (sig = entities; sig; sig = sig->next)
  22517. if (atm_equal((struct sockaddr *) &sig->signaling_pvc,
  22518. - (struct sockaddr *) &yyvsp[0].pvc,0,0))
  22519. - yyerror("duplicate PVC address %d.%d.%d",S_PVC(sig));
  22520. + (struct sockaddr *) &yyvsp[0].pvc,0,0)) {
  22521. + const char *err;
  22522. + asprintf(&err,"duplicate PVC address %d.%d.%d",S_PVC(sig));
  22523. + if(err) {
  22524. + yyerror(err);
  22525. + free(err);
  22526. + }
  22527. + else
  22528. + yyerror("duplicate PVC address");
  22529. + }
  22530. curr_sig = alloc_t(SIG_ENTITY);
  22531. *curr_sig = _entity;
  22532. curr_sig->signaling_pvc = yyvsp[0].pvc;
  22533. curr_sig->next = NULL;
  22534. for (walk = &entities; *walk; walk = &(*walk)->next);
  22535. *walk = curr_sig;
  22536. - ;
  22537. - break;}
  22538. -case 18:
  22539. -#line 150 "cfg_y.y"
  22540. -{
  22541. + }
  22542. + break;
  22543. +
  22544. + case 19:
  22545. +#line 161 "cfg_y.y"
  22546. + {
  22547. enter_vpci(curr_sig,yyvsp[-2].num,yyvsp[0].num);
  22548. - ;
  22549. - break;}
  22550. -case 20:
  22551. -#line 155 "cfg_y.y"
  22552. -{
  22553. + }
  22554. + break;
  22555. +
  22556. + case 21:
  22557. +#line 166 "cfg_y.y"
  22558. + {
  22559. curr_sig->sig_qos = yyvsp[0].str;
  22560. - ;
  22561. - break;}
  22562. -case 21:
  22563. -#line 159 "cfg_y.y"
  22564. -{
  22565. + }
  22566. + break;
  22567. +
  22568. + case 22:
  22569. +#line 170 "cfg_y.y"
  22570. + {
  22571. curr_sig->max_rate = yyvsp[0].num;
  22572. - ;
  22573. - break;}
  22574. -case 22:
  22575. -#line 163 "cfg_y.y"
  22576. -{
  22577. + }
  22578. + break;
  22579. +
  22580. + case 23:
  22581. +#line 174 "cfg_y.y"
  22582. + {
  22583. struct sockaddr_atmsvc addr;
  22584. char *mask;
  22585. @@ -931,464 +1304,506 @@
  22586. if (text2atm(yyvsp[0].str,(struct sockaddr *) &addr,sizeof(addr),
  22587. T2A_SVC | T2A_WILDCARD | T2A_NAME | T2A_LOCAL) < 0) {
  22588. yyerror("invalid address");
  22589. - return;
  22590. + return 0;
  22591. }
  22592. add_route(curr_sig,&addr,mask ? strtol(mask,NULL,10) : INT_MAX);
  22593. - ;
  22594. - break;}
  22595. -case 23:
  22596. -#line 177 "cfg_y.y"
  22597. -{
  22598. + }
  22599. + break;
  22600. +
  22601. + case 24:
  22602. +#line 188 "cfg_y.y"
  22603. + {
  22604. add_route(curr_sig,NULL,0);
  22605. - ;
  22606. - break;}
  22607. -case 44:
  22608. -#line 229 "cfg_y.y"
  22609. -{
  22610. + }
  22611. + break;
  22612. +
  22613. + case 45:
  22614. +#line 240 "cfg_y.y"
  22615. + {
  22616. set_verbosity("UNI",yyvsp[0].num);
  22617. set_verbosity("KERNEL",yyvsp[0].num);
  22618. set_verbosity("SAP",yyvsp[0].num);
  22619. - ;
  22620. - break;}
  22621. -case 45:
  22622. -#line 235 "cfg_y.y"
  22623. -{
  22624. + }
  22625. + break;
  22626. +
  22627. + case 46:
  22628. +#line 246 "cfg_y.y"
  22629. + {
  22630. enter_vpci(curr_sig,yyvsp[-2].num,yyvsp[0].num);
  22631. - ;
  22632. - break;}
  22633. -case 46:
  22634. -#line 239 "cfg_y.y"
  22635. -{
  22636. + }
  22637. + break;
  22638. +
  22639. + case 47:
  22640. +#line 250 "cfg_y.y"
  22641. + {
  22642. #if defined(UNI30) || defined(ALLOW_UNI30) || defined(DYNAMIC_UNI)
  22643. if (curr_sig->uni & ~S_UNI31) yyerror("UNI mode is already set");
  22644. curr_sig->uni |= S_UNI30;
  22645. #else
  22646. yyerror("Sorry, not supported yet");
  22647. #endif
  22648. - ;
  22649. - break;}
  22650. -case 47:
  22651. -#line 248 "cfg_y.y"
  22652. -{
  22653. + }
  22654. + break;
  22655. +
  22656. + case 48:
  22657. +#line 259 "cfg_y.y"
  22658. + {
  22659. #if defined(UNI31) || defined(ALLOW_UNI30) || defined(DYNAMIC_UNI)
  22660. if (curr_sig->uni & ~S_UNI30) yyerror("UNI mode is already set");
  22661. curr_sig->uni |= S_UNI31;
  22662. #else
  22663. yyerror("Sorry, not supported yet");
  22664. #endif
  22665. - ;
  22666. - break;}
  22667. -case 48:
  22668. -#line 257 "cfg_y.y"
  22669. -{
  22670. + }
  22671. + break;
  22672. +
  22673. + case 49:
  22674. +#line 268 "cfg_y.y"
  22675. + {
  22676. #if defined(UNI40) || defined(DYNAMIC_UNI)
  22677. if (curr_sig->uni) yyerror("UNI mode is already set");
  22678. curr_sig->uni = S_UNI40;
  22679. #else
  22680. yyerror("Sorry, not supported yet");
  22681. #endif
  22682. - ;
  22683. - break;}
  22684. -case 49:
  22685. -#line 266 "cfg_y.y"
  22686. -{
  22687. + }
  22688. + break;
  22689. +
  22690. + case 50:
  22691. +#line 277 "cfg_y.y"
  22692. + {
  22693. #if defined(Q2963_1) || defined(DYNAMIC_UNI)
  22694. if (!(curr_sig->uni & S_UNI40)) yyerror("Incompatible UNI mode");
  22695. curr_sig->uni |= S_Q2963_1;
  22696. #else
  22697. yyerror("Sorry, not supported yet");
  22698. #endif
  22699. - ;
  22700. - break;}
  22701. -case 50:
  22702. -#line 275 "cfg_y.y"
  22703. -{
  22704. + }
  22705. + break;
  22706. +
  22707. + case 51:
  22708. +#line 286 "cfg_y.y"
  22709. + {
  22710. yywarn("sig net is obsolete, please use sig mode net instead");
  22711. curr_sig->mode = sm_net;
  22712. - ;
  22713. - break;}
  22714. -case 52:
  22715. -#line 284 "cfg_y.y"
  22716. -{
  22717. + }
  22718. + break;
  22719. +
  22720. + case 53:
  22721. +#line 295 "cfg_y.y"
  22722. + {
  22723. set_verbosity("SSCF",yyvsp[0].num);
  22724. set_verbosity("SSCOP",yyvsp[0].num);
  22725. - ;
  22726. - break;}
  22727. -case 53:
  22728. -#line 292 "cfg_y.y"
  22729. -{
  22730. + }
  22731. + break;
  22732. +
  22733. + case 54:
  22734. +#line 303 "cfg_y.y"
  22735. + {
  22736. set_verbosity("IO",yyvsp[0].num);
  22737. - ;
  22738. - break;}
  22739. -case 54:
  22740. -#line 296 "cfg_y.y"
  22741. -{
  22742. + }
  22743. + break;
  22744. +
  22745. + case 55:
  22746. +#line 307 "cfg_y.y"
  22747. + {
  22748. curr_sig->signaling_pvc = yyvsp[0].pvc;
  22749. - ;
  22750. - break;}
  22751. -case 55:
  22752. -#line 300 "cfg_y.y"
  22753. -{
  22754. + }
  22755. + break;
  22756. +
  22757. + case 56:
  22758. +#line 311 "cfg_y.y"
  22759. + {
  22760. yywarn("io pcr is obsolete, please use io qos instead");
  22761. curr_sig->sig_pcr = yyvsp[0].num;
  22762. - ;
  22763. - break;}
  22764. -case 56:
  22765. -#line 305 "cfg_y.y"
  22766. -{
  22767. + }
  22768. + break;
  22769. +
  22770. + case 57:
  22771. +#line 316 "cfg_y.y"
  22772. + {
  22773. curr_sig->sig_qos = yyvsp[0].str;
  22774. - ;
  22775. - break;}
  22776. -case 57:
  22777. -#line 309 "cfg_y.y"
  22778. -{
  22779. + }
  22780. + break;
  22781. +
  22782. + case 58:
  22783. +#line 320 "cfg_y.y"
  22784. + {
  22785. curr_sig->max_rate = yyvsp[0].num;
  22786. - ;
  22787. - break;}
  22788. -case 58:
  22789. -#line 316 "cfg_y.y"
  22790. -{
  22791. + }
  22792. + break;
  22793. +
  22794. + case 59:
  22795. +#line 327 "cfg_y.y"
  22796. + {
  22797. set_verbosity(NULL,yyvsp[0].num);
  22798. - ;
  22799. - break;}
  22800. -case 59:
  22801. -#line 320 "cfg_y.y"
  22802. -{
  22803. + }
  22804. + break;
  22805. +
  22806. + case 60:
  22807. +#line 331 "cfg_y.y"
  22808. + {
  22809. dump_dir = yyvsp[0].str;
  22810. if (!trace_size) trace_size = DEFAULT_TRACE_SIZE;
  22811. - ;
  22812. - break;}
  22813. -case 60:
  22814. -#line 325 "cfg_y.y"
  22815. -{
  22816. + }
  22817. + break;
  22818. +
  22819. + case 61:
  22820. +#line 336 "cfg_y.y"
  22821. + {
  22822. set_logfile(yyvsp[0].str);
  22823. - ;
  22824. - break;}
  22825. -case 61:
  22826. -#line 329 "cfg_y.y"
  22827. -{
  22828. + }
  22829. + break;
  22830. +
  22831. + case 62:
  22832. +#line 340 "cfg_y.y"
  22833. + {
  22834. trace_size = yyvsp[0].num;
  22835. - ;
  22836. - break;}
  22837. -case 62:
  22838. -#line 335 "cfg_y.y"
  22839. -{
  22840. + }
  22841. + break;
  22842. +
  22843. + case 63:
  22844. +#line 346 "cfg_y.y"
  22845. + {
  22846. yyval.num = DEFAULT_TRACE_SIZE;
  22847. - ;
  22848. - break;}
  22849. -case 63:
  22850. -#line 339 "cfg_y.y"
  22851. -{
  22852. + }
  22853. + break;
  22854. +
  22855. + case 64:
  22856. +#line 350 "cfg_y.y"
  22857. + {
  22858. yyval.num = yyvsp[0].num;
  22859. - ;
  22860. - break;}
  22861. -case 64:
  22862. -#line 346 "cfg_y.y"
  22863. -{
  22864. + }
  22865. + break;
  22866. +
  22867. + case 65:
  22868. +#line 357 "cfg_y.y"
  22869. + {
  22870. yyval.num = DIAG_DEBUG;
  22871. - ;
  22872. - break;}
  22873. -case 65:
  22874. -#line 350 "cfg_y.y"
  22875. -{
  22876. + }
  22877. + break;
  22878. +
  22879. + case 66:
  22880. +#line 361 "cfg_y.y"
  22881. + {
  22882. yyval.num = DIAG_INFO;
  22883. - ;
  22884. - break;}
  22885. -case 66:
  22886. -#line 354 "cfg_y.y"
  22887. -{
  22888. + }
  22889. + break;
  22890. +
  22891. + case 67:
  22892. +#line 365 "cfg_y.y"
  22893. + {
  22894. yyval.num = DIAG_WARN;
  22895. - ;
  22896. - break;}
  22897. -case 67:
  22898. -#line 358 "cfg_y.y"
  22899. -{
  22900. + }
  22901. + break;
  22902. +
  22903. + case 68:
  22904. +#line 369 "cfg_y.y"
  22905. + {
  22906. yyval.num = DIAG_ERROR;
  22907. - ;
  22908. - break;}
  22909. -case 68:
  22910. -#line 362 "cfg_y.y"
  22911. -{
  22912. + }
  22913. + break;
  22914. +
  22915. + case 69:
  22916. +#line 373 "cfg_y.y"
  22917. + {
  22918. yyval.num = DIAG_FATAL;
  22919. - ;
  22920. - break;}
  22921. -case 69:
  22922. -#line 369 "cfg_y.y"
  22923. -{
  22924. + }
  22925. + break;
  22926. +
  22927. + case 70:
  22928. +#line 380 "cfg_y.y"
  22929. + {
  22930. curr_sig->mode = sm_user;
  22931. - ;
  22932. - break;}
  22933. -case 70:
  22934. -#line 373 "cfg_y.y"
  22935. -{
  22936. + }
  22937. + break;
  22938. +
  22939. + case 71:
  22940. +#line 384 "cfg_y.y"
  22941. + {
  22942. curr_sig->mode = sm_net;
  22943. - ;
  22944. - break;}
  22945. -case 71:
  22946. -#line 377 "cfg_y.y"
  22947. -{
  22948. + }
  22949. + break;
  22950. +
  22951. + case 72:
  22952. +#line 388 "cfg_y.y"
  22953. + {
  22954. curr_sig->mode = sm_switch;
  22955. - ;
  22956. - break;}
  22957. -case 72:
  22958. -#line 384 "cfg_y.y"
  22959. -{
  22960. + }
  22961. + break;
  22962. +
  22963. + case 73:
  22964. +#line 395 "cfg_y.y"
  22965. + {
  22966. set_verbosity("POLICY",yyvsp[0].num);
  22967. - ;
  22968. - break;}
  22969. -case 73:
  22970. -#line 388 "cfg_y.y"
  22971. -{
  22972. + }
  22973. + break;
  22974. +
  22975. + case 74:
  22976. +#line 399 "cfg_y.y"
  22977. + {
  22978. rule = alloc_t(RULE);
  22979. rule->type = yyvsp[0].num;
  22980. - ;
  22981. - break;}
  22982. -case 75:
  22983. -#line 397 "cfg_y.y"
  22984. -{
  22985. + }
  22986. + break;
  22987. +
  22988. + case 76:
  22989. +#line 408 "cfg_y.y"
  22990. + {
  22991. yyval.num = ACL_ALLOW;
  22992. - ;
  22993. - break;}
  22994. -case 76:
  22995. -#line 401 "cfg_y.y"
  22996. -{
  22997. + }
  22998. + break;
  22999. +
  23000. + case 77:
  23001. +#line 412 "cfg_y.y"
  23002. + {
  23003. yyval.num = ACL_REJECT;
  23004. - ;
  23005. - break;}
  23006. -case 77:
  23007. -#line 408 "cfg_y.y"
  23008. -{
  23009. + }
  23010. + break;
  23011. +
  23012. + case 78:
  23013. +#line 419 "cfg_y.y"
  23014. + {
  23015. rule->type |= ACL_IN;
  23016. put_address(yyvsp[0].str);
  23017. - ;
  23018. - break;}
  23019. -case 78:
  23020. -#line 413 "cfg_y.y"
  23021. -{
  23022. + }
  23023. + break;
  23024. +
  23025. + case 79:
  23026. +#line 424 "cfg_y.y"
  23027. + {
  23028. rule->type |= ACL_OUT;
  23029. put_address(yyvsp[0].str);
  23030. - ;
  23031. - break;}
  23032. -}
  23033. - /* the action file gets copied in in place of this dollarsign */
  23034. -#line 543 "/usr/lib/bison.simple"
  23035. + }
  23036. + break;
  23037. +
  23038. +
  23039. + }
  23040. +
  23041. +/* Line 1010 of yacc.c. */
  23042. +#line 1585 "y.tab.c"
  23043. yyvsp -= yylen;
  23044. yyssp -= yylen;
  23045. -#ifdef YYLSP_NEEDED
  23046. - yylsp -= yylen;
  23047. -#endif
  23048. -#if YYDEBUG != 0
  23049. - if (yydebug)
  23050. - {
  23051. - short *ssp1 = yyss - 1;
  23052. - fprintf (stderr, "state stack now");
  23053. - while (ssp1 != yyssp)
  23054. - fprintf (stderr, " %d", *++ssp1);
  23055. - fprintf (stderr, "\n");
  23056. - }
  23057. -#endif
  23058. +
  23059. + YY_STACK_PRINT (yyss, yyssp);
  23060. *++yyvsp = yyval;
  23061. -#ifdef YYLSP_NEEDED
  23062. - yylsp++;
  23063. - if (yylen == 0)
  23064. - {
  23065. - yylsp->first_line = yylloc.first_line;
  23066. - yylsp->first_column = yylloc.first_column;
  23067. - yylsp->last_line = (yylsp-1)->last_line;
  23068. - yylsp->last_column = (yylsp-1)->last_column;
  23069. - yylsp->text = 0;
  23070. - }
  23071. - else
  23072. - {
  23073. - yylsp->last_line = (yylsp+yylen-1)->last_line;
  23074. - yylsp->last_column = (yylsp+yylen-1)->last_column;
  23075. - }
  23076. -#endif
  23077. - /* Now "shift" the result of the reduction.
  23078. - Determine what state that goes to,
  23079. - based on the state we popped back to
  23080. - and the rule number reduced by. */
  23081. + /* Now `shift' the result of the reduction. Determine what state
  23082. + that goes to, based on the state we popped back to and the rule
  23083. + number reduced by. */
  23084. yyn = yyr1[yyn];
  23085. - yystate = yypgoto[yyn - YYNTBASE] + *yyssp;
  23086. - if (yystate >= 0 && yystate <= YYLAST && yycheck[yystate] == *yyssp)
  23087. + yystate = yypgoto[yyn - YYNTOKENS] + *yyssp;
  23088. + if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp)
  23089. yystate = yytable[yystate];
  23090. else
  23091. - yystate = yydefgoto[yyn - YYNTBASE];
  23092. + yystate = yydefgoto[yyn - YYNTOKENS];
  23093. goto yynewstate;
  23094. -yyerrlab: /* here on detecting error */
  23095. - if (! yyerrstatus)
  23096. - /* If not already recovering from an error, report this error. */
  23097. +/*------------------------------------.
  23098. +| yyerrlab -- here on detecting error |
  23099. +`------------------------------------*/
  23100. +yyerrlab:
  23101. + /* If not already recovering from an error, report this error. */
  23102. + if (!yyerrstatus)
  23103. {
  23104. ++yynerrs;
  23105. -
  23106. -#ifdef YYERROR_VERBOSE
  23107. +#if YYERROR_VERBOSE
  23108. yyn = yypact[yystate];
  23109. - if (yyn > YYFLAG && yyn < YYLAST)
  23110. + if (YYPACT_NINF < yyn && yyn < YYLAST)
  23111. {
  23112. - int size = 0;
  23113. - char *msg;
  23114. - int x, count;
  23115. -
  23116. - count = 0;
  23117. - /* Start X at -yyn if nec to avoid negative indexes in yycheck. */
  23118. - for (x = (yyn < 0 ? -yyn : 0);
  23119. - x < (sizeof(yytname) / sizeof(char *)); x++)
  23120. - if (yycheck[x + yyn] == x)
  23121. - size += strlen(yytname[x]) + 15, count++;
  23122. - msg = (char *) malloc(size + 15);
  23123. - if (msg != 0)
  23124. + YYSIZE_T yysize = 0;
  23125. + int yytype = YYTRANSLATE (yychar);
  23126. + const char* yyprefix;
  23127. + char *yymsg;
  23128. + int yyx;
  23129. +
  23130. + /* Start YYX at -YYN if negative to avoid negative indexes in
  23131. + YYCHECK. */
  23132. + int yyxbegin = yyn < 0 ? -yyn : 0;
  23133. +
  23134. + /* Stay within bounds of both yycheck and yytname. */
  23135. + int yychecklim = YYLAST - yyn;
  23136. + int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;
  23137. + int yycount = 0;
  23138. +
  23139. + yyprefix = ", expecting ";
  23140. + for (yyx = yyxbegin; yyx < yyxend; ++yyx)
  23141. + if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR)
  23142. + {
  23143. + yysize += yystrlen (yyprefix) + yystrlen (yytname [yyx]);
  23144. + yycount += 1;
  23145. + if (yycount == 5)
  23146. + {
  23147. + yysize = 0;
  23148. + break;
  23149. + }
  23150. + }
  23151. + yysize += (sizeof ("syntax error, unexpected ")
  23152. + + yystrlen (yytname[yytype]));
  23153. + yymsg = (char *) YYSTACK_ALLOC (yysize);
  23154. + if (yymsg != 0)
  23155. {
  23156. - strcpy(msg, "parse error");
  23157. + char *yyp = yystpcpy (yymsg, "syntax error, unexpected ");
  23158. + yyp = yystpcpy (yyp, yytname[yytype]);
  23159. - if (count < 5)
  23160. + if (yycount < 5)
  23161. {
  23162. - count = 0;
  23163. - for (x = (yyn < 0 ? -yyn : 0);
  23164. - x < (sizeof(yytname) / sizeof(char *)); x++)
  23165. - if (yycheck[x + yyn] == x)
  23166. + yyprefix = ", expecting ";
  23167. + for (yyx = yyxbegin; yyx < yyxend; ++yyx)
  23168. + if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR)
  23169. {
  23170. - strcat(msg, count == 0 ? ", expecting `" : " or `");
  23171. - strcat(msg, yytname[x]);
  23172. - strcat(msg, "'");
  23173. - count++;
  23174. + yyp = yystpcpy (yyp, yyprefix);
  23175. + yyp = yystpcpy (yyp, yytname[yyx]);
  23176. + yyprefix = " or ";
  23177. }
  23178. }
  23179. - yyerror(msg);
  23180. - free(msg);
  23181. + yyerror (yymsg);
  23182. + YYSTACK_FREE (yymsg);
  23183. }
  23184. else
  23185. - yyerror ("parse error; also virtual memory exceeded");
  23186. + yyerror ("syntax error; also virtual memory exhausted");
  23187. }
  23188. else
  23189. #endif /* YYERROR_VERBOSE */
  23190. - yyerror("parse error");
  23191. + yyerror ("syntax error");
  23192. }
  23193. - goto yyerrlab1;
  23194. -yyerrlab1: /* here on error raised explicitly by an action */
  23195. +
  23196. if (yyerrstatus == 3)
  23197. {
  23198. - /* if just tried and failed to reuse lookahead token after an error, discard it. */
  23199. + /* If just tried and failed to reuse lookahead token after an
  23200. + error, discard it. */
  23201. - /* return failure if at end of input */
  23202. - if (yychar == YYEOF)
  23203. - YYABORT;
  23204. -
  23205. -#if YYDEBUG != 0
  23206. - if (yydebug)
  23207. - fprintf(stderr, "Discarding token %d (%s).\n", yychar, yytname[yychar1]);
  23208. -#endif
  23209. + if (yychar <= YYEOF)
  23210. + {
  23211. + /* If at end of input, pop the error token,
  23212. + then the rest of the stack, then return failure. */
  23213. + if (yychar == YYEOF)
  23214. + for (;;)
  23215. + {
  23216. + YYPOPSTACK;
  23217. + if (yyssp == yyss)
  23218. + YYABORT;
  23219. + YYDSYMPRINTF ("Error: popping", yystos[*yyssp], yyvsp, yylsp);
  23220. + yydestruct (yystos[*yyssp], yyvsp);
  23221. + }
  23222. + }
  23223. + else
  23224. + {
  23225. + YYDSYMPRINTF ("Error: discarding", yytoken, &yylval, &yylloc);
  23226. + yydestruct (yytoken, &yylval);
  23227. + yychar = YYEMPTY;
  23228. - yychar = YYEMPTY;
  23229. + }
  23230. }
  23231. - /* Else will try to reuse lookahead token
  23232. - after shifting the error token. */
  23233. -
  23234. - yyerrstatus = 3; /* Each real token shifted decrements this */
  23235. + /* Else will try to reuse lookahead token after shifting the error
  23236. + token. */
  23237. + goto yyerrlab1;
  23238. - goto yyerrhandle;
  23239. -yyerrdefault: /* current state does not do anything special for the error token. */
  23240. +/*---------------------------------------------------.
  23241. +| yyerrorlab -- error raised explicitly by YYERROR. |
  23242. +`---------------------------------------------------*/
  23243. +yyerrorlab:
  23244. -#if 0
  23245. - /* This is wrong; only states that explicitly want error tokens
  23246. - should shift them. */
  23247. - yyn = yydefact[yystate]; /* If its default is to accept any token, ok. Otherwise pop it.*/
  23248. - if (yyn) goto yydefault;
  23249. +#ifdef __GNUC__
  23250. + /* Pacify GCC when the user code never invokes YYERROR and the label
  23251. + yyerrorlab therefore never appears in user code. */
  23252. + if (0)
  23253. + goto yyerrorlab;
  23254. #endif
  23255. -yyerrpop: /* pop the current state because it cannot handle the error token */
  23256. -
  23257. - if (yyssp == yyss) YYABORT;
  23258. - yyvsp--;
  23259. - yystate = *--yyssp;
  23260. -#ifdef YYLSP_NEEDED
  23261. - yylsp--;
  23262. -#endif
  23263. + yyvsp -= yylen;
  23264. + yyssp -= yylen;
  23265. + yystate = *yyssp;
  23266. + goto yyerrlab1;
  23267. -#if YYDEBUG != 0
  23268. - if (yydebug)
  23269. - {
  23270. - short *ssp1 = yyss - 1;
  23271. - fprintf (stderr, "Error: state stack now");
  23272. - while (ssp1 != yyssp)
  23273. - fprintf (stderr, " %d", *++ssp1);
  23274. - fprintf (stderr, "\n");
  23275. - }
  23276. -#endif
  23277. -yyerrhandle:
  23278. +/*-------------------------------------------------------------.
  23279. +| yyerrlab1 -- common code for both syntax error and YYERROR. |
  23280. +`-------------------------------------------------------------*/
  23281. +yyerrlab1:
  23282. + yyerrstatus = 3; /* Each real token shifted decrements this. */
  23283. - yyn = yypact[yystate];
  23284. - if (yyn == YYFLAG)
  23285. - goto yyerrdefault;
  23286. + for (;;)
  23287. + {
  23288. + yyn = yypact[yystate];
  23289. + if (yyn != YYPACT_NINF)
  23290. + {
  23291. + yyn += YYTERROR;
  23292. + if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR)
  23293. + {
  23294. + yyn = yytable[yyn];
  23295. + if (0 < yyn)
  23296. + break;
  23297. + }
  23298. + }
  23299. - yyn += YYTERROR;
  23300. - if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != YYTERROR)
  23301. - goto yyerrdefault;
  23302. + /* Pop the current state because it cannot handle the error token. */
  23303. + if (yyssp == yyss)
  23304. + YYABORT;
  23305. - yyn = yytable[yyn];
  23306. - if (yyn < 0)
  23307. - {
  23308. - if (yyn == YYFLAG)
  23309. - goto yyerrpop;
  23310. - yyn = -yyn;
  23311. - goto yyreduce;
  23312. + YYDSYMPRINTF ("Error: popping", yystos[*yyssp], yyvsp, yylsp);
  23313. + yydestruct (yystos[yystate], yyvsp);
  23314. + YYPOPSTACK;
  23315. + yystate = *yyssp;
  23316. + YY_STACK_PRINT (yyss, yyssp);
  23317. }
  23318. - else if (yyn == 0)
  23319. - goto yyerrpop;
  23320. if (yyn == YYFINAL)
  23321. YYACCEPT;
  23322. -#if YYDEBUG != 0
  23323. - if (yydebug)
  23324. - fprintf(stderr, "Shifting error token, ");
  23325. -#endif
  23326. + YYDPRINTF ((stderr, "Shifting error token, "));
  23327. *++yyvsp = yylval;
  23328. -#ifdef YYLSP_NEEDED
  23329. - *++yylsp = yylloc;
  23330. -#endif
  23331. +
  23332. yystate = yyn;
  23333. goto yynewstate;
  23334. - yyacceptlab:
  23335. - /* YYACCEPT comes here. */
  23336. - if (yyfree_stacks)
  23337. - {
  23338. - free (yyss);
  23339. - free (yyvs);
  23340. -#ifdef YYLSP_NEEDED
  23341. - free (yyls);
  23342. -#endif
  23343. - }
  23344. - return 0;
  23345. - yyabortlab:
  23346. - /* YYABORT comes here. */
  23347. - if (yyfree_stacks)
  23348. - {
  23349. - free (yyss);
  23350. - free (yyvs);
  23351. -#ifdef YYLSP_NEEDED
  23352. - free (yyls);
  23353. +/*-------------------------------------.
  23354. +| yyacceptlab -- YYACCEPT comes here. |
  23355. +`-------------------------------------*/
  23356. +yyacceptlab:
  23357. + yyresult = 0;
  23358. + goto yyreturn;
  23359. +
  23360. +/*-----------------------------------.
  23361. +| yyabortlab -- YYABORT comes here. |
  23362. +`-----------------------------------*/
  23363. +yyabortlab:
  23364. + yyresult = 1;
  23365. + goto yyreturn;
  23366. +
  23367. +#ifndef yyoverflow
  23368. +/*----------------------------------------------.
  23369. +| yyoverflowlab -- parser overflow comes here. |
  23370. +`----------------------------------------------*/
  23371. +yyoverflowlab:
  23372. + yyerror ("parser stack overflow");
  23373. + yyresult = 2;
  23374. + /* Fall through. */
  23375. +#endif
  23376. +
  23377. +yyreturn:
  23378. +#ifndef yyoverflow
  23379. + if (yyss != yyssa)
  23380. + YYSTACK_FREE (yyss);
  23381. #endif
  23382. - }
  23383. - return 1;
  23384. + return yyresult;
  23385. }
  23386. -#line 418 "cfg_y.y"
  23387. +
  23388. +
  23389. +
  23390. Index: linux-atm-2.4.1/src/sigd/proto.c
  23391. ===================================================================
  23392. --- linux-atm-2.4.1.orig/src/sigd/proto.c 2007-10-20 19:19:11.098260930 +0200
  23393. +++ linux-atm-2.4.1/src/sigd/proto.c 2007-10-20 19:19:12.058315640 +0200
  23394. @@ -259,6 +259,7 @@
  23395. break;
  23396. }
  23397. default:
  23398. + break;
  23399. }
  23400. va_end(ap);
  23401. if ((size = q_close(&dsc)) >= 0) to_signaling(sock->sig,q_buffer,size);
  23402. @@ -288,6 +289,7 @@
  23403. }
  23404. break;
  23405. default:
  23406. + break;
  23407. }
  23408. va_end(ap);
  23409. }
  23410. Index: linux-atm-2.4.1/src/sigd/cfg_y.y
  23411. ===================================================================
  23412. --- linux-atm-2.4.1.orig/src/sigd/cfg_y.y 2007-10-20 19:19:11.106261388 +0200
  23413. +++ linux-atm-2.4.1/src/sigd/cfg_y.y 2007-10-20 19:19:12.066316098 +0200
  23414. @@ -7,6 +7,7 @@
  23415. #include <config.h>
  23416. #endif
  23417. +#include <stdlib.h>
  23418. #include <string.h>
  23419. #include <ctype.h>
  23420. #include <limits.h>
  23421. @@ -19,6 +20,8 @@
  23422. #include "trace.h"
  23423. #include "policy.h"
  23424. +extern void yywarn(const char *s);
  23425. +extern void yyerror(const char *s);
  23426. static RULE *rule;
  23427. static SIG_ENTITY *curr_sig = &_entity;
  23428. @@ -125,8 +128,16 @@
  23429. if (entities == &_entity) entities = NULL;
  23430. for (sig = entities; sig; sig = sig->next)
  23431. if (atm_equal((struct sockaddr *) &sig->signaling_pvc,
  23432. - (struct sockaddr *) &$2,0,0))
  23433. - yyerror("duplicate PVC address %d.%d.%d",S_PVC(sig));
  23434. + (struct sockaddr *) &$2,0,0)) {
  23435. + const char *err;
  23436. + asprintf(&err,"duplicate PVC address %d.%d.%d",S_PVC(sig));
  23437. + if(err) {
  23438. + yyerror(err);
  23439. + free(err);
  23440. + }
  23441. + else
  23442. + yyerror("duplicate PVC address");
  23443. + }
  23444. curr_sig = alloc_t(SIG_ENTITY);
  23445. *curr_sig = _entity;
  23446. curr_sig->signaling_pvc = $2;
  23447. @@ -169,7 +180,7 @@
  23448. if (text2atm($1,(struct sockaddr *) &addr,sizeof(addr),
  23449. T2A_SVC | T2A_WILDCARD | T2A_NAME | T2A_LOCAL) < 0) {
  23450. yyerror("invalid address");
  23451. - return;
  23452. + return 0;
  23453. }
  23454. add_route(curr_sig,&addr,mask ? strtol(mask,NULL,10) : INT_MAX);
  23455. }
  23456. Index: linux-atm-2.4.1/src/sigd/cfg_y.h
  23457. ===================================================================
  23458. --- linux-atm-2.4.1.orig/src/sigd/cfg_y.h 2007-10-20 19:19:11.110261618 +0200
  23459. +++ linux-atm-2.4.1/src/sigd/cfg_y.h 2007-10-20 19:19:12.066316098 +0200
  23460. @@ -1,44 +1,127 @@
  23461. -typedef union {
  23462. +/* A Bison parser, made by GNU Bison 1.875d. */
  23463. +
  23464. +/* Skeleton parser for Yacc-like parsing with Bison,
  23465. + Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
  23466. +
  23467. + This program is free software; you can redistribute it and/or modify
  23468. + it under the terms of the GNU General Public License as published by
  23469. + the Free Software Foundation; either version 2, or (at your option)
  23470. + any later version.
  23471. +
  23472. + This program is distributed in the hope that it will be useful,
  23473. + but WITHOUT ANY WARRANTY; without even the implied warranty of
  23474. + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  23475. + GNU General Public License for more details.
  23476. +
  23477. + You should have received a copy of the GNU General Public License
  23478. + along with this program; if not, write to the Free Software
  23479. + Foundation, Inc., 59 Temple Place - Suite 330,
  23480. + Boston, MA 02111-1307, USA. */
  23481. +
  23482. +/* As a special exception, when this file is copied by Bison into a
  23483. + Bison output file, you may use that output file without restriction.
  23484. + This special exception was added by the Free Software Foundation
  23485. + in version 1.24 of Bison. */
  23486. +
  23487. +/* Tokens. */
  23488. +#ifndef YYTOKENTYPE
  23489. +# define YYTOKENTYPE
  23490. + /* Put the tokens into the symbol table, so that GDB and other debuggers
  23491. + know about them. */
  23492. + enum yytokentype {
  23493. + TOK_LEVEL = 258,
  23494. + TOK_DEBUG = 259,
  23495. + TOK_INFO = 260,
  23496. + TOK_WARN = 261,
  23497. + TOK_ERROR = 262,
  23498. + TOK_FATAL = 263,
  23499. + TOK_SIG = 264,
  23500. + TOK_UNI30 = 265,
  23501. + TOK_UNI31 = 266,
  23502. + TOK_UNI40 = 267,
  23503. + TOK_Q2963_1 = 268,
  23504. + TOK_SAAL = 269,
  23505. + TOK_VC = 270,
  23506. + TOK_IO = 271,
  23507. + TOK_MODE = 272,
  23508. + TOK_USER = 273,
  23509. + TOK_NET = 274,
  23510. + TOK_SWITCH = 275,
  23511. + TOK_VPCI = 276,
  23512. + TOK_ITF = 277,
  23513. + TOK_PCR = 278,
  23514. + TOK_TRACE = 279,
  23515. + TOK_POLICY = 280,
  23516. + TOK_ALLOW = 281,
  23517. + TOK_REJECT = 282,
  23518. + TOK_ENTITY = 283,
  23519. + TOK_DEFAULT = 284,
  23520. + TOK_NUMBER = 285,
  23521. + TOK_MAX_RATE = 286,
  23522. + TOK_DUMP_DIR = 287,
  23523. + TOK_LOGFILE = 288,
  23524. + TOK_QOS = 289,
  23525. + TOK_FROM = 290,
  23526. + TOK_TO = 291,
  23527. + TOK_ROUTE = 292,
  23528. + TOK_PVC = 293
  23529. + };
  23530. +#endif
  23531. +#define TOK_LEVEL 258
  23532. +#define TOK_DEBUG 259
  23533. +#define TOK_INFO 260
  23534. +#define TOK_WARN 261
  23535. +#define TOK_ERROR 262
  23536. +#define TOK_FATAL 263
  23537. +#define TOK_SIG 264
  23538. +#define TOK_UNI30 265
  23539. +#define TOK_UNI31 266
  23540. +#define TOK_UNI40 267
  23541. +#define TOK_Q2963_1 268
  23542. +#define TOK_SAAL 269
  23543. +#define TOK_VC 270
  23544. +#define TOK_IO 271
  23545. +#define TOK_MODE 272
  23546. +#define TOK_USER 273
  23547. +#define TOK_NET 274
  23548. +#define TOK_SWITCH 275
  23549. +#define TOK_VPCI 276
  23550. +#define TOK_ITF 277
  23551. +#define TOK_PCR 278
  23552. +#define TOK_TRACE 279
  23553. +#define TOK_POLICY 280
  23554. +#define TOK_ALLOW 281
  23555. +#define TOK_REJECT 282
  23556. +#define TOK_ENTITY 283
  23557. +#define TOK_DEFAULT 284
  23558. +#define TOK_NUMBER 285
  23559. +#define TOK_MAX_RATE 286
  23560. +#define TOK_DUMP_DIR 287
  23561. +#define TOK_LOGFILE 288
  23562. +#define TOK_QOS 289
  23563. +#define TOK_FROM 290
  23564. +#define TOK_TO 291
  23565. +#define TOK_ROUTE 292
  23566. +#define TOK_PVC 293
  23567. +
  23568. +
  23569. +
  23570. +
  23571. +#if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
  23572. +#line 56 "cfg_y.y"
  23573. +typedef union YYSTYPE {
  23574. int num;
  23575. char *str;
  23576. struct sockaddr_atmpvc pvc;
  23577. } YYSTYPE;
  23578. -#define TOK_LEVEL 257
  23579. -#define TOK_DEBUG 258
  23580. -#define TOK_INFO 259
  23581. -#define TOK_WARN 260
  23582. -#define TOK_ERROR 261
  23583. -#define TOK_FATAL 262
  23584. -#define TOK_SIG 263
  23585. -#define TOK_UNI30 264
  23586. -#define TOK_UNI31 265
  23587. -#define TOK_UNI40 266
  23588. -#define TOK_Q2963_1 267
  23589. -#define TOK_SAAL 268
  23590. -#define TOK_VC 269
  23591. -#define TOK_IO 270
  23592. -#define TOK_MODE 271
  23593. -#define TOK_USER 272
  23594. -#define TOK_NET 273
  23595. -#define TOK_SWITCH 274
  23596. -#define TOK_VPCI 275
  23597. -#define TOK_ITF 276
  23598. -#define TOK_PCR 277
  23599. -#define TOK_TRACE 278
  23600. -#define TOK_POLICY 279
  23601. -#define TOK_ALLOW 280
  23602. -#define TOK_REJECT 281
  23603. -#define TOK_ENTITY 282
  23604. -#define TOK_DEFAULT 283
  23605. -#define TOK_NUMBER 284
  23606. -#define TOK_MAX_RATE 285
  23607. -#define TOK_DUMP_DIR 286
  23608. -#define TOK_LOGFILE 287
  23609. -#define TOK_QOS 288
  23610. -#define TOK_FROM 289
  23611. -#define TOK_TO 290
  23612. -#define TOK_ROUTE 291
  23613. -#define TOK_PVC 292
  23614. -
  23615. +/* Line 1285 of yacc.c. */
  23616. +#line 119 "y.tab.h"
  23617. +# define yystype YYSTYPE /* obsolescent; will be withdrawn */
  23618. +# define YYSTYPE_IS_DECLARED 1
  23619. +# define YYSTYPE_IS_TRIVIAL 1
  23620. +#endif
  23621. extern YYSTYPE yylval;
  23622. +
  23623. +
  23624. +
  23625. Index: linux-atm-2.4.1/src/maint/Makefile.in
  23626. ===================================================================
  23627. --- linux-atm-2.4.1.orig/src/maint/Makefile.in 2007-10-20 19:19:11.118262070 +0200
  23628. +++ linux-atm-2.4.1/src/maint/Makefile.in 2007-10-20 19:19:12.086317238 +0200
  23629. @@ -1,4 +1,4 @@
  23630. -# Makefile.in generated automatically by automake 1.4-p5 from Makefile.am
  23631. +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
  23632. # Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
  23633. # This Makefile.in is free software; the Free Software Foundation
  23634. @@ -181,8 +181,11 @@
  23635. DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
  23636. -TAR = gtar
  23637. +TAR = tar
  23638. GZIP_ENV = --best
  23639. +DEP_FILES = .deps/atmaddr.P .deps/atmdiag.P .deps/atmdump.P \
  23640. +.deps/atmloop.P .deps/atmtcp.P .deps/enitune.P .deps/esi.P \
  23641. +.deps/saaldump.P .deps/sonetdiag.P .deps/zntune.P
  23642. SOURCES = $(atmdiag_SOURCES) $(atmdump_SOURCES) $(sonetdiag_SOURCES) $(saaldump_SOURCES) $(atmaddr_SOURCES) $(esi_SOURCES) $(atmloop_SOURCES) $(atmtcp_SOURCES) $(enitune_SOURCES) $(zntune_SOURCES)
  23643. OBJECTS = $(atmdiag_OBJECTS) $(atmdump_OBJECTS) $(sonetdiag_OBJECTS) $(saaldump_OBJECTS) $(atmaddr_OBJECTS) $(esi_OBJECTS) $(atmloop_OBJECTS) $(atmtcp_OBJECTS) $(enitune_OBJECTS) $(zntune_OBJECTS)
  23644. @@ -190,9 +193,9 @@
  23645. .SUFFIXES:
  23646. .SUFFIXES: .S .c .lo .o .obj .s
  23647. $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
  23648. - cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps src/maint/Makefile
  23649. + cd $(top_srcdir) && $(AUTOMAKE) --gnu src/maint/Makefile
  23650. -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  23651. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
  23652. cd $(top_builddir) \
  23653. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
  23654. @@ -247,9 +250,6 @@
  23655. rm -f $(DESTDIR)$(sbindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
  23656. done
  23657. -.c.o:
  23658. - $(COMPILE) -c $<
  23659. -
  23660. # FIXME: We should only use cygpath when building on Windows,
  23661. # and only if it is available.
  23662. .c.obj:
  23663. @@ -272,9 +272,6 @@
  23664. maintainer-clean-compile:
  23665. -.c.lo:
  23666. - $(LIBTOOL) --mode=compile $(COMPILE) -c $<
  23667. -
  23668. .s.lo:
  23669. $(LIBTOOL) --mode=compile $(COMPILE) -c $<
  23670. @@ -388,7 +385,7 @@
  23671. awk ' { files[$$0] = 1; } \
  23672. END { for (i in files) print i; }'`; \
  23673. test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
  23674. - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
  23675. + || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags $$unique $(LISP))
  23676. mostlyclean-tags:
  23677. @@ -404,6 +401,11 @@
  23678. subdir = src/maint
  23679. distdir: $(DISTFILES)
  23680. + here=`cd $(top_builddir) && pwd`; \
  23681. + top_distdir=`cd $(top_distdir) && pwd`; \
  23682. + distdir=`cd $(distdir) && pwd`; \
  23683. + cd $(top_srcdir) \
  23684. + && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu src/maint/Makefile
  23685. @for file in $(DISTFILES); do \
  23686. d=$(srcdir); \
  23687. if test -d $$d/$$file; then \
  23688. @@ -414,28 +416,38 @@
  23689. || cp -p $$d/$$file $(distdir)/$$file || :; \
  23690. fi; \
  23691. done
  23692. -atmaddr.o: atmaddr.c ../../config.h ../../src/include/atm.h \
  23693. - ../../src/include/stdint.h
  23694. -atmdiag.o: atmdiag.c ../../config.h ../../src/include/atm.h \
  23695. - ../../src/include/stdint.h
  23696. -atmdump.o: atmdump.c ../../config.h ../../src/include/stdint.h \
  23697. - ../../src/include/atm.h
  23698. -atmloop.o: atmloop.c ../../config.h ../../src/include/atm.h \
  23699. - ../../src/include/stdint.h
  23700. -atmtcp.o: atmtcp.c ../../config.h ../../src/include/stdint.h \
  23701. - ../../src/include/atm.h ../../src/include/atmd.h
  23702. -enitune.o: enitune.c ../../config.h ../../src/include/atm.h \
  23703. - ../../src/include/stdint.h
  23704. -esi.o: esi.c ../../config.h ../../src/include/atm.h \
  23705. - ../../src/include/stdint.h
  23706. -saaldump.o: saaldump.c ../../config.h ../../src/include/atm.h \
  23707. - ../../src/include/stdint.h ../../src/saal/pdu.h \
  23708. - ../../src/include/atmd.h ../../src/qgen/qlib.h
  23709. -sonetdiag.o: sonetdiag.c ../../config.h ../../src/include/atm.h \
  23710. - ../../src/include/stdint.h
  23711. -zntune.o: zntune.c ../../config.h ../../src/include/atm.h \
  23712. - ../../src/include/stdint.h
  23713. +DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
  23714. +
  23715. +-include $(DEP_FILES)
  23716. +
  23717. +mostlyclean-depend:
  23718. +
  23719. +clean-depend:
  23720. +
  23721. +distclean-depend:
  23722. + -rm -rf .deps
  23723. +
  23724. +maintainer-clean-depend:
  23725. +
  23726. +%.o: %.c
  23727. + @echo '$(COMPILE) -c $<'; \
  23728. + $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
  23729. + @-cp .deps/$(*F).pp .deps/$(*F).P; \
  23730. + tr ' ' '\012' < .deps/$(*F).pp \
  23731. + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
  23732. + >> .deps/$(*F).P; \
  23733. + rm .deps/$(*F).pp
  23734. +
  23735. +%.lo: %.c
  23736. + @echo '$(LTCOMPILE) -c $<'; \
  23737. + $(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
  23738. + @-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \
  23739. + < .deps/$(*F).pp > .deps/$(*F).P; \
  23740. + tr ' ' '\012' < .deps/$(*F).pp \
  23741. + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
  23742. + >> .deps/$(*F).P; \
  23743. + rm -f .deps/$(*F).pp
  23744. info-am:
  23745. info: info-am
  23746. dvi-am:
  23747. @@ -475,18 +487,19 @@
  23748. maintainer-clean-generic:
  23749. mostlyclean-am: mostlyclean-binPROGRAMS mostlyclean-sbinPROGRAMS \
  23750. mostlyclean-compile mostlyclean-libtool \
  23751. - mostlyclean-tags mostlyclean-generic
  23752. + mostlyclean-tags mostlyclean-depend mostlyclean-generic
  23753. mostlyclean: mostlyclean-am
  23754. clean-am: clean-binPROGRAMS clean-sbinPROGRAMS clean-compile \
  23755. - clean-libtool clean-tags clean-generic mostlyclean-am
  23756. + clean-libtool clean-tags clean-depend clean-generic \
  23757. + mostlyclean-am
  23758. clean: clean-am
  23759. distclean-am: distclean-binPROGRAMS distclean-sbinPROGRAMS \
  23760. distclean-compile distclean-libtool distclean-tags \
  23761. - distclean-generic clean-am
  23762. + distclean-depend distclean-generic clean-am
  23763. -rm -f libtool
  23764. distclean: distclean-am
  23765. @@ -494,7 +507,8 @@
  23766. maintainer-clean-am: maintainer-clean-binPROGRAMS \
  23767. maintainer-clean-sbinPROGRAMS maintainer-clean-compile \
  23768. maintainer-clean-libtool maintainer-clean-tags \
  23769. - maintainer-clean-generic distclean-am
  23770. + maintainer-clean-depend maintainer-clean-generic \
  23771. + distclean-am
  23772. @echo "This command is intended for maintainers to use;"
  23773. @echo "it deletes files that may require special tools to rebuild."
  23774. @@ -508,12 +522,14 @@
  23775. clean-compile maintainer-clean-compile mostlyclean-libtool \
  23776. distclean-libtool clean-libtool maintainer-clean-libtool install-man8 \
  23777. uninstall-man8 install-man uninstall-man tags mostlyclean-tags \
  23778. -distclean-tags clean-tags maintainer-clean-tags distdir info-am info \
  23779. -dvi-am dvi check check-am installcheck-am installcheck install-exec-am \
  23780. -install-exec install-data-am install-data install-am install \
  23781. -uninstall-am uninstall all-redirect all-am all installdirs \
  23782. -mostlyclean-generic distclean-generic clean-generic \
  23783. -maintainer-clean-generic clean mostlyclean distclean maintainer-clean
  23784. +distclean-tags clean-tags maintainer-clean-tags distdir \
  23785. +mostlyclean-depend distclean-depend clean-depend \
  23786. +maintainer-clean-depend info-am info dvi-am dvi check check-am \
  23787. +installcheck-am installcheck install-exec-am install-exec \
  23788. +install-data-am install-data install-am install uninstall-am uninstall \
  23789. +all-redirect all-am all installdirs mostlyclean-generic \
  23790. +distclean-generic clean-generic maintainer-clean-generic clean \
  23791. +mostlyclean distclean maintainer-clean
  23792. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  23793. Index: linux-atm-2.4.1/src/maint/atmtcp.c
  23794. ===================================================================
  23795. --- linux-atm-2.4.1.orig/src/maint/atmtcp.c 2007-10-20 19:19:11.126262528 +0200
  23796. +++ linux-atm-2.4.1/src/maint/atmtcp.c 2007-10-20 19:19:12.114318835 +0200
  23797. @@ -60,7 +60,7 @@
  23798. static IN *inputs = NULL;
  23799. static fd_set in_set;
  23800. static int fds = 0;
  23801. -static int debug = 0;
  23802. +static int atmtcp_debug = 0;
  23803. static int links = 0;
  23804. @@ -86,7 +86,7 @@
  23805. {
  23806. OUT *out;
  23807. - if (debug)
  23808. + if (atmtcp_debug)
  23809. fprintf(stderr,"Emit: %d.%d, %d bytes\n",ntohs(hdr->vpi),
  23810. ntohs(hdr->vci),(int) ntohl(hdr->length));
  23811. for (out = outputs; out; out = out->next)
  23812. @@ -99,7 +99,7 @@
  23813. OUT *out;
  23814. int changed = 0;
  23815. - if (debug)
  23816. + if (atmtcp_debug)
  23817. fprintf(stderr,"Control: (%d.%d) %s %d.%d, vcc %s\n",
  23818. ntohs(msg->hdr.vpi),ntohs(msg->hdr.vci),
  23819. msg->type == ATMTCP_CTRL_OPEN ? "OPEN" :
  23820. @@ -295,19 +295,19 @@
  23821. }
  23822. if ((s = socket(PF_ATMPVC,SOCK_DGRAM,0)) < 0) {
  23823. msg->result = -errno;
  23824. - if (debug) perror("socket");
  23825. + if (atmtcp_debug) perror("socket");
  23826. return 1;
  23827. }
  23828. if (setsockopt(s,SOL_ATM,SO_ATMQOS,&msg->qos,sizeof(msg->qos)) < 0) {
  23829. msg->result = -errno;
  23830. - if (debug) perror("setsockopt SO_ATMQOS");
  23831. + if (atmtcp_debug) perror("setsockopt SO_ATMQOS");
  23832. return 1;
  23833. }
  23834. msg->addr.sap_addr.itf = data->itf;
  23835. if (connect(s,(struct sockaddr *) &msg->addr,
  23836. sizeof(struct sockaddr_atmpvc)) < 0) {
  23837. msg->result = -errno;
  23838. - if (debug) perror("connect");
  23839. + if (atmtcp_debug) perror("connect");
  23840. return 1;
  23841. }
  23842. (*vcc) = alloc_t(VCC);
  23843. @@ -333,7 +333,7 @@
  23844. addr.sap_addr.vci = ntohs(hdr->vci);
  23845. vcc = real_lookup(data,&addr);
  23846. if (!*vcc) {
  23847. - if (debug)
  23848. + if (atmtcp_debug)
  23849. fprintf(stderr,"VCC %d.%d not found\n",addr.sap_addr.vpi,
  23850. addr.sap_addr.vci);
  23851. return;
  23852. @@ -430,7 +430,7 @@
  23853. exit(1);
  23854. }
  23855. if (in->bytes < sizeof(*hdr)+ntohl(hdr->length)) return;
  23856. - if (debug)
  23857. + if (atmtcp_debug)
  23858. fprintf(stderr,"TCP %d.%d, %d bytes\n",ntohs(hdr->vpi),
  23859. ntohs(hdr->vci),(unsigned int) ntohl(hdr->length));
  23860. in->bytes = 0;
  23861. @@ -447,7 +447,7 @@
  23862. fprintf(stderr,"unrecognized control message \"%s\"\n",msg);
  23863. return;
  23864. }
  23865. - if (debug) fprintf(stderr,"received control \"%s\"\n",msg);
  23866. + if (atmtcp_debug) fprintf(stderr,"received control \"%s\"\n",msg);
  23867. ctl.hdr.vpi = htons(vpi);
  23868. ctl.hdr.vci = htons(vci);
  23869. ctl.hdr.length = htonl(ATMTCP_HDR_MAGIC);
  23870. @@ -508,7 +508,7 @@
  23871. }
  23872. hdr->vpi = hdr->vci = htons(0);
  23873. hdr->length = htonl(pos-start);
  23874. - if (debug) fprintf(stderr,"sending control \"%s\"\n",start);
  23875. + if (atmtcp_debug) fprintf(stderr,"sending control \"%s\"\n",start);
  23876. tcp_do_send(*(int *) out->user,buf,pos-buf);
  23877. return 0;
  23878. }
  23879. @@ -555,7 +555,7 @@
  23880. exit(1);
  23881. }
  23882. if (in->bytes < sizeof(int)+sizeof(*hdr)+ntohl(hdr->length)) return;
  23883. - if (debug)
  23884. + if (atmtcp_debug)
  23885. fprintf(stderr,"File %d.%d, %d bytes\n",ntohs(hdr->vpi),
  23886. ntohs(hdr->vci),(unsigned int) ntohl(hdr->length));
  23887. }
  23888. @@ -708,7 +708,7 @@
  23889. while ((c = getopt(argc,argv,"dvV")) != EOF)
  23890. switch (c) {
  23891. case 'd':
  23892. - debug = 1;
  23893. + atmtcp_debug = 1;
  23894. break;
  23895. case 'v':
  23896. verbose = 1;
  23897. @@ -817,7 +817,8 @@
  23898. }
  23899. else if (!strcmp(ARG,"listen") ||
  23900. (do_background = !strcmp(ARG,"listen-bg"))) {
  23901. - int fd,port,addr_len;
  23902. + int fd,port;
  23903. + size_t addr_len;
  23904. int *fd2 = alloc_t(int);
  23905. if ((fd = socket(PF_INET,SOCK_STREAM,0)) < 0) {
  23906. Index: linux-atm-2.4.1/src/maint/enitune.c
  23907. ===================================================================
  23908. --- linux-atm-2.4.1.orig/src/maint/enitune.c 2007-10-20 19:19:11.134262985 +0200
  23909. +++ linux-atm-2.4.1/src/maint/enitune.c 2007-10-20 19:19:12.118319060 +0200
  23910. @@ -44,6 +44,7 @@
  23911. if (*end || mult.rx <= 100) usage(name);
  23912. break;
  23913. default:
  23914. + break;
  23915. }
  23916. if (argc != optind+1) usage(name);
  23917. sioc.number = strtol(argv[optind],&end,0);
  23918. Index: linux-atm-2.4.1/src/arpd/Makefile.in
  23919. ===================================================================
  23920. --- linux-atm-2.4.1.orig/src/arpd/Makefile.in 2007-10-20 19:19:11.142263438 +0200
  23921. +++ linux-atm-2.4.1/src/arpd/Makefile.in 2007-10-20 19:19:12.126319517 +0200
  23922. @@ -1,4 +1,4 @@
  23923. -# Makefile.in generated automatically by automake 1.4-p5 from Makefile.am
  23924. +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
  23925. # Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
  23926. # This Makefile.in is free software; the Free Software Foundation
  23927. @@ -90,8 +90,7 @@
  23928. sbin_PROGRAMS = atmarp atmarpd
  23929. atmarp_SOURCES = atmarp.c atmarp.h atmarpd.h
  23930. -atmarpd_SOURCES = atmarpd.c atmarpd.h arp.c arp.h io.c io.h itf.c itf.h \
  23931. - table.c table.h atmarp.h
  23932. +atmarpd_SOURCES = atmarpd.c atmarpd.h arp.c arp.h io.c io.h itf.c itf.h table.c table.h atmarp.h
  23933. include_HEADERS = atmarp.h atmarpd.h
  23934. @@ -135,8 +134,10 @@
  23935. DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
  23936. -TAR = gtar
  23937. +TAR = tar
  23938. GZIP_ENV = --best
  23939. +DEP_FILES = .deps/arp.P .deps/atmarp.P .deps/atmarpd.P .deps/io.P \
  23940. +.deps/itf.P .deps/table.P
  23941. SOURCES = $(atmarp_SOURCES) $(atmarpd_SOURCES)
  23942. OBJECTS = $(atmarp_OBJECTS) $(atmarpd_OBJECTS)
  23943. @@ -144,9 +145,9 @@
  23944. .SUFFIXES:
  23945. .SUFFIXES: .S .c .lo .o .obj .s
  23946. $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
  23947. - cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps src/arpd/Makefile
  23948. + cd $(top_srcdir) && $(AUTOMAKE) --gnu src/arpd/Makefile
  23949. -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  23950. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
  23951. cd $(top_builddir) \
  23952. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
  23953. @@ -176,9 +177,6 @@
  23954. rm -f $(DESTDIR)$(sbindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
  23955. done
  23956. -.c.o:
  23957. - $(COMPILE) -c $<
  23958. -
  23959. # FIXME: We should only use cygpath when building on Windows,
  23960. # and only if it is available.
  23961. .c.obj:
  23962. @@ -201,9 +199,6 @@
  23963. maintainer-clean-compile:
  23964. -.c.lo:
  23965. - $(LIBTOOL) --mode=compile $(COMPILE) -c $<
  23966. -
  23967. .s.lo:
  23968. $(LIBTOOL) --mode=compile $(COMPILE) -c $<
  23969. @@ -300,7 +295,7 @@
  23970. awk ' { files[$$0] = 1; } \
  23971. END { for (i in files) print i; }'`; \
  23972. test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
  23973. - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
  23974. + || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags $$unique $(LISP))
  23975. mostlyclean-tags:
  23976. @@ -316,6 +311,11 @@
  23977. subdir = src/arpd
  23978. distdir: $(DISTFILES)
  23979. + here=`cd $(top_builddir) && pwd`; \
  23980. + top_distdir=`cd $(top_distdir) && pwd`; \
  23981. + distdir=`cd $(distdir) && pwd`; \
  23982. + cd $(top_srcdir) \
  23983. + && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu src/arpd/Makefile
  23984. @for file in $(DISTFILES); do \
  23985. d=$(srcdir); \
  23986. if test -d $$d/$$file; then \
  23987. @@ -326,24 +326,38 @@
  23988. || cp -p $$d/$$file $(distdir)/$$file || :; \
  23989. fi; \
  23990. done
  23991. -arp.o: arp.c ../../config.h ../../src/include/stdint.h \
  23992. - ../../src/include/atm.h ../../src/include/atmd.h atmarp.h \
  23993. - atmarpd.h table.h itf.h io.h arp.h
  23994. -atmarp.o: atmarp.c ../../config.h ../../src/include/stdint.h \
  23995. - ../../src/include/atm.h ../../src/include/atmd.h atmarpd.h
  23996. -atmarpd.o: atmarpd.c ../../config.h ../../src/include/atm.h \
  23997. - ../../src/include/stdint.h ../../src/include/atmd.h atmarpd.h \
  23998. - io.h table.h
  23999. -io.o: io.c ../../config.h ../../src/include/stdint.h \
  24000. - ../../src/include/atm.h ../../src/include/atmd.h atmarpd.h \
  24001. - table.h arp.h atmarp.h itf.h io.h
  24002. -itf.o: itf.c ../../config.h ../../src/include/stdint.h \
  24003. - ../../src/include/atmd.h ../../src/include/atm.h table.h io.h \
  24004. - itf.h arp.h atmarp.h atmarpd.h
  24005. -table.o: table.c ../../config.h ../../src/include/stdint.h \
  24006. - ../../src/include/atm.h ../../src/include/atmd.h atmarpd.h \
  24007. - table.h
  24008. +DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
  24009. +
  24010. +-include $(DEP_FILES)
  24011. +
  24012. +mostlyclean-depend:
  24013. +
  24014. +clean-depend:
  24015. +
  24016. +distclean-depend:
  24017. + -rm -rf .deps
  24018. +
  24019. +maintainer-clean-depend:
  24020. +
  24021. +%.o: %.c
  24022. + @echo '$(COMPILE) -c $<'; \
  24023. + $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
  24024. + @-cp .deps/$(*F).pp .deps/$(*F).P; \
  24025. + tr ' ' '\012' < .deps/$(*F).pp \
  24026. + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
  24027. + >> .deps/$(*F).P; \
  24028. + rm .deps/$(*F).pp
  24029. +
  24030. +%.lo: %.c
  24031. + @echo '$(LTCOMPILE) -c $<'; \
  24032. + $(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
  24033. + @-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \
  24034. + < .deps/$(*F).pp > .deps/$(*F).P; \
  24035. + tr ' ' '\012' < .deps/$(*F).pp \
  24036. + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
  24037. + >> .deps/$(*F).P; \
  24038. + rm -f .deps/$(*F).pp
  24039. info-am:
  24040. info: info-am
  24041. dvi-am:
  24042. @@ -383,27 +397,27 @@
  24043. maintainer-clean-generic:
  24044. mostlyclean-am: mostlyclean-sbinPROGRAMS mostlyclean-compile \
  24045. - mostlyclean-libtool mostlyclean-tags \
  24046. + mostlyclean-libtool mostlyclean-tags mostlyclean-depend \
  24047. mostlyclean-generic
  24048. mostlyclean: mostlyclean-am
  24049. clean-am: clean-sbinPROGRAMS clean-compile clean-libtool clean-tags \
  24050. - clean-generic mostlyclean-am
  24051. + clean-depend clean-generic mostlyclean-am
  24052. clean: clean-am
  24053. distclean-am: distclean-sbinPROGRAMS distclean-compile \
  24054. - distclean-libtool distclean-tags distclean-generic \
  24055. - clean-am
  24056. + distclean-libtool distclean-tags distclean-depend \
  24057. + distclean-generic clean-am
  24058. -rm -f libtool
  24059. distclean: distclean-am
  24060. maintainer-clean-am: maintainer-clean-sbinPROGRAMS \
  24061. maintainer-clean-compile maintainer-clean-libtool \
  24062. - maintainer-clean-tags maintainer-clean-generic \
  24063. - distclean-am
  24064. + maintainer-clean-tags maintainer-clean-depend \
  24065. + maintainer-clean-generic distclean-am
  24066. @echo "This command is intended for maintainers to use;"
  24067. @echo "it deletes files that may require special tools to rebuild."
  24068. @@ -416,8 +430,9 @@
  24069. distclean-libtool clean-libtool maintainer-clean-libtool install-man8 \
  24070. uninstall-man8 install-man uninstall-man uninstall-includeHEADERS \
  24071. install-includeHEADERS tags mostlyclean-tags distclean-tags clean-tags \
  24072. -maintainer-clean-tags distdir info-am info dvi-am dvi check check-am \
  24073. -installcheck-am installcheck install-exec-am install-exec \
  24074. +maintainer-clean-tags distdir mostlyclean-depend distclean-depend \
  24075. +clean-depend maintainer-clean-depend info-am info dvi-am dvi check \
  24076. +check-am installcheck-am installcheck install-exec-am install-exec \
  24077. install-data-am install-data install-am install uninstall-am uninstall \
  24078. all-redirect all-am all installdirs mostlyclean-generic \
  24079. distclean-generic clean-generic maintainer-clean-generic clean \
  24080. Index: linux-atm-2.4.1/src/arpd/atmarp.c
  24081. ===================================================================
  24082. --- linux-atm-2.4.1.orig/src/arpd/atmarp.c 2007-10-20 19:19:11.150263898 +0200
  24083. +++ linux-atm-2.4.1/src/arpd/atmarp.c 2007-10-20 19:19:12.126319517 +0200
  24084. @@ -92,7 +92,7 @@
  24085. perror("read " ATMARP_DUMP_DIR "/" ATMARP_DUMP_FILE);
  24086. return 1;
  24087. }
  24088. - if (write(0,buffer,size) < 0) {
  24089. + if (write(1,buffer,size) < 0) {
  24090. perror("write stdout");
  24091. return 1;
  24092. }
  24093. Index: linux-atm-2.4.1/src/ilmid/Makefile.in
  24094. ===================================================================
  24095. --- linux-atm-2.4.1.orig/src/ilmid/Makefile.in 2007-10-20 19:19:11.154264125 +0200
  24096. +++ linux-atm-2.4.1/src/ilmid/Makefile.in 2007-10-20 19:19:12.142320428 +0200
  24097. @@ -1,4 +1,4 @@
  24098. -# Makefile.in generated automatically by automake 1.4-p5 from Makefile.am
  24099. +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
  24100. # Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
  24101. # This Makefile.in is free software; the Free Software Foundation
  24102. @@ -91,13 +91,9 @@
  24103. sbin_PROGRAMS = ilmid
  24104. -ilmid_SOURCES = rfc1157_snmp.c rfc1157_snmp.h rfc1155_smi.c rfc1155_smi.h \
  24105. - util.c util.h io.c io.h message.c message.h \
  24106. - atmf_uni.c atmf_uni.h mib.c mib.h \
  24107. - sysgroup.c sysgroup.h ilmid.c
  24108. +ilmid_SOURCES = rfc1157_snmp.c rfc1157_snmp.h rfc1155_smi.c rfc1155_smi.h util.c util.h io.c io.h message.c message.h atmf_uni.c atmf_uni.h mib.c mib.h sysgroup.c sysgroup.h ilmid.c
  24109. -ilmid_LDADD = $(top_builddir)/src/lib/libatm.la \
  24110. - $(top_builddir)/src/ilmid/asn1/libasn1.a
  24111. +ilmid_LDADD = $(top_builddir)/src/lib/libatm.la $(top_builddir)/src/ilmid/asn1/libasn1.a
  24112. ilmid_DEPENDENCIES = $(ilmid_LDADD)
  24113. @@ -127,8 +123,11 @@
  24114. DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
  24115. -TAR = gtar
  24116. +TAR = tar
  24117. GZIP_ENV = --best
  24118. +DEP_FILES = .deps/atmf_uni.P .deps/ilmid.P .deps/io.P .deps/message.P \
  24119. +.deps/mib.P .deps/rfc1155_smi.P .deps/rfc1157_snmp.P .deps/sysgroup.P \
  24120. +.deps/util.P
  24121. SOURCES = $(ilmid_SOURCES)
  24122. OBJECTS = $(ilmid_OBJECTS)
  24123. @@ -136,9 +135,9 @@
  24124. .SUFFIXES:
  24125. .SUFFIXES: .S .c .lo .o .obj .s
  24126. $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
  24127. - cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps src/ilmid/Makefile
  24128. + cd $(top_srcdir) && $(AUTOMAKE) --gnu src/ilmid/Makefile
  24129. -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  24130. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
  24131. cd $(top_builddir) \
  24132. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
  24133. @@ -168,9 +167,6 @@
  24134. rm -f $(DESTDIR)$(sbindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
  24135. done
  24136. -.c.o:
  24137. - $(COMPILE) -c $<
  24138. -
  24139. # FIXME: We should only use cygpath when building on Windows,
  24140. # and only if it is available.
  24141. .c.obj:
  24142. @@ -193,9 +189,6 @@
  24143. maintainer-clean-compile:
  24144. -.c.lo:
  24145. - $(LIBTOOL) --mode=compile $(COMPILE) -c $<
  24146. -
  24147. .s.lo:
  24148. $(LIBTOOL) --mode=compile $(COMPILE) -c $<
  24149. @@ -294,7 +287,7 @@
  24150. awk ' { files[$$0] = 1; } \
  24151. END { for (i in files) print i; }'`; \
  24152. test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
  24153. - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
  24154. + || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags $$unique $(LISP))
  24155. mostlyclean-tags:
  24156. @@ -310,6 +303,11 @@
  24157. subdir = src/ilmid
  24158. distdir: $(DISTFILES)
  24159. + here=`cd $(top_builddir) && pwd`; \
  24160. + top_distdir=`cd $(top_distdir) && pwd`; \
  24161. + distdir=`cd $(distdir) && pwd`; \
  24162. + cd $(top_srcdir) \
  24163. + && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu src/ilmid/Makefile
  24164. @for file in $(DISTFILES); do \
  24165. d=$(srcdir); \
  24166. if test -d $$d/$$file; then \
  24167. @@ -330,62 +328,38 @@
  24168. || exit 1; \
  24169. fi; \
  24170. done
  24171. -atmf_uni.o: atmf_uni.c ../../config.h atmf_uni.h asn1/asn_incl.h \
  24172. - asn1/asn_config.h asn1/nibble_alloc.h asn1/sbuf.h asn1/print.h \
  24173. - asn1/asn_len.h asn1/asn_tag.h asn1/asn_int.h asn1/asn_octs.h \
  24174. - asn1/asn_bits.h asn1/asn_oid.h asn1/asn_null.h asn1/asn_list.h \
  24175. - rfc1155_smi.h rfc1157_snmp.h mib.h ../../src/include/atmd.h \
  24176. - ../../src/include/stdint.h ../../src/include/atm.h util.h
  24177. -ilmid.o: ilmid.c ../../config.h asn1/asn_incl.h asn1/asn_config.h \
  24178. - asn1/nibble_alloc.h asn1/sbuf.h asn1/print.h asn1/asn_len.h \
  24179. - asn1/asn_tag.h asn1/asn_int.h asn1/asn_octs.h asn1/asn_bits.h \
  24180. - asn1/asn_oid.h asn1/asn_null.h asn1/asn_list.h rfc1155_smi.h \
  24181. - rfc1157_snmp.h message.h util.h ../../src/include/atmd.h \
  24182. - ../../src/include/stdint.h ../../src/include/atm.h io.h mib.h \
  24183. - atmf_uni.h sysgroup.h
  24184. -io.o: io.c ../../config.h ../../src/include/stdint.h \
  24185. - ../../src/include/atm.h io.h asn1/asn_incl.h asn1/asn_config.h \
  24186. - asn1/nibble_alloc.h asn1/sbuf.h asn1/print.h asn1/asn_len.h \
  24187. - asn1/asn_tag.h asn1/asn_int.h asn1/asn_octs.h asn1/asn_bits.h \
  24188. - asn1/asn_oid.h asn1/asn_null.h asn1/asn_list.h rfc1155_smi.h \
  24189. - rfc1157_snmp.h ../../src/include/atmd.h atmf_uni.h mib.h
  24190. -message.o: message.c ../../config.h message.h asn1/asn_incl.h \
  24191. - asn1/asn_config.h asn1/nibble_alloc.h asn1/sbuf.h asn1/print.h \
  24192. - asn1/asn_len.h asn1/asn_tag.h asn1/asn_int.h asn1/asn_octs.h \
  24193. - asn1/asn_bits.h asn1/asn_oid.h asn1/asn_null.h asn1/asn_list.h \
  24194. - rfc1155_smi.h rfc1157_snmp.h atmf_uni.h mib.h \
  24195. - ../../src/include/atmd.h ../../src/include/stdint.h \
  24196. - ../../src/include/atm.h util.h
  24197. -mib.o: mib.c ../../config.h mib.h ../../src/include/atmd.h \
  24198. - ../../src/include/stdint.h ../../src/include/atm.h \
  24199. - asn1/asn_incl.h asn1/asn_config.h asn1/nibble_alloc.h \
  24200. - asn1/sbuf.h asn1/print.h asn1/asn_len.h asn1/asn_tag.h \
  24201. - asn1/asn_int.h asn1/asn_octs.h asn1/asn_bits.h asn1/asn_oid.h \
  24202. - asn1/asn_null.h asn1/asn_list.h rfc1155_smi.h rfc1157_snmp.h \
  24203. - sysgroup.h atmf_uni.h util.h
  24204. -rfc1155_smi.o: rfc1155_smi.c ../../config.h asn1/asn_incl.h \
  24205. - asn1/asn_config.h asn1/nibble_alloc.h asn1/sbuf.h asn1/print.h \
  24206. - asn1/asn_len.h asn1/asn_tag.h asn1/asn_int.h asn1/asn_octs.h \
  24207. - asn1/asn_bits.h asn1/asn_oid.h asn1/asn_null.h asn1/asn_list.h \
  24208. - rfc1155_smi.h rfc1157_snmp.h
  24209. -rfc1157_snmp.o: rfc1157_snmp.c ../../config.h asn1/asn_incl.h \
  24210. - asn1/asn_config.h asn1/nibble_alloc.h asn1/sbuf.h asn1/print.h \
  24211. - asn1/asn_len.h asn1/asn_tag.h asn1/asn_int.h asn1/asn_octs.h \
  24212. - asn1/asn_bits.h asn1/asn_oid.h asn1/asn_null.h asn1/asn_list.h \
  24213. - rfc1155_smi.h rfc1157_snmp.h
  24214. -sysgroup.o: sysgroup.c ../../config.h sysgroup.h asn1/asn_incl.h \
  24215. - asn1/asn_config.h asn1/nibble_alloc.h asn1/sbuf.h asn1/print.h \
  24216. - asn1/asn_len.h asn1/asn_tag.h asn1/asn_int.h asn1/asn_octs.h \
  24217. - asn1/asn_bits.h asn1/asn_oid.h asn1/asn_null.h asn1/asn_list.h \
  24218. - rfc1155_smi.h rfc1157_snmp.h mib.h ../../src/include/atmd.h \
  24219. - ../../src/include/stdint.h ../../src/include/atm.h
  24220. -util.o: util.c ../../config.h util.h asn1/asn_incl.h asn1/asn_config.h \
  24221. - asn1/nibble_alloc.h asn1/sbuf.h asn1/print.h asn1/asn_len.h \
  24222. - asn1/asn_tag.h asn1/asn_int.h asn1/asn_octs.h asn1/asn_bits.h \
  24223. - asn1/asn_oid.h asn1/asn_null.h asn1/asn_list.h rfc1155_smi.h \
  24224. - rfc1157_snmp.h ../../src/include/atmd.h \
  24225. - ../../src/include/stdint.h ../../src/include/atm.h
  24226. +DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
  24227. +
  24228. +-include $(DEP_FILES)
  24229. +
  24230. +mostlyclean-depend:
  24231. +
  24232. +clean-depend:
  24233. +
  24234. +distclean-depend:
  24235. + -rm -rf .deps
  24236. +
  24237. +maintainer-clean-depend:
  24238. +
  24239. +%.o: %.c
  24240. + @echo '$(COMPILE) -c $<'; \
  24241. + $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
  24242. + @-cp .deps/$(*F).pp .deps/$(*F).P; \
  24243. + tr ' ' '\012' < .deps/$(*F).pp \
  24244. + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
  24245. + >> .deps/$(*F).P; \
  24246. + rm .deps/$(*F).pp
  24247. +
  24248. +%.lo: %.c
  24249. + @echo '$(LTCOMPILE) -c $<'; \
  24250. + $(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
  24251. + @-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \
  24252. + < .deps/$(*F).pp > .deps/$(*F).P; \
  24253. + tr ' ' '\012' < .deps/$(*F).pp \
  24254. + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
  24255. + >> .deps/$(*F).P; \
  24256. + rm -f .deps/$(*F).pp
  24257. info-am:
  24258. info: info-recursive
  24259. dvi-am:
  24260. @@ -424,27 +398,27 @@
  24261. maintainer-clean-generic:
  24262. mostlyclean-am: mostlyclean-sbinPROGRAMS mostlyclean-compile \
  24263. - mostlyclean-libtool mostlyclean-tags \
  24264. + mostlyclean-libtool mostlyclean-tags mostlyclean-depend \
  24265. mostlyclean-generic
  24266. mostlyclean: mostlyclean-recursive
  24267. clean-am: clean-sbinPROGRAMS clean-compile clean-libtool clean-tags \
  24268. - clean-generic mostlyclean-am
  24269. + clean-depend clean-generic mostlyclean-am
  24270. clean: clean-recursive
  24271. distclean-am: distclean-sbinPROGRAMS distclean-compile \
  24272. - distclean-libtool distclean-tags distclean-generic \
  24273. - clean-am
  24274. + distclean-libtool distclean-tags distclean-depend \
  24275. + distclean-generic clean-am
  24276. -rm -f libtool
  24277. distclean: distclean-recursive
  24278. maintainer-clean-am: maintainer-clean-sbinPROGRAMS \
  24279. maintainer-clean-compile maintainer-clean-libtool \
  24280. - maintainer-clean-tags maintainer-clean-generic \
  24281. - distclean-am
  24282. + maintainer-clean-tags maintainer-clean-depend \
  24283. + maintainer-clean-generic distclean-am
  24284. @echo "This command is intended for maintainers to use;"
  24285. @echo "it deletes files that may require special tools to rebuild."
  24286. @@ -460,12 +434,14 @@
  24287. all-recursive check-recursive installcheck-recursive info-recursive \
  24288. dvi-recursive mostlyclean-recursive distclean-recursive clean-recursive \
  24289. maintainer-clean-recursive tags tags-recursive mostlyclean-tags \
  24290. -distclean-tags clean-tags maintainer-clean-tags distdir info-am info \
  24291. -dvi-am dvi check check-am installcheck-am installcheck install-exec-am \
  24292. -install-exec install-data-am install-data install-am install \
  24293. -uninstall-am uninstall all-redirect all-am all installdirs-am \
  24294. -installdirs mostlyclean-generic distclean-generic clean-generic \
  24295. -maintainer-clean-generic clean mostlyclean distclean maintainer-clean
  24296. +distclean-tags clean-tags maintainer-clean-tags distdir \
  24297. +mostlyclean-depend distclean-depend clean-depend \
  24298. +maintainer-clean-depend info-am info dvi-am dvi check check-am \
  24299. +installcheck-am installcheck install-exec-am install-exec \
  24300. +install-data-am install-data install-am install uninstall-am uninstall \
  24301. +all-redirect all-am all installdirs-am installdirs mostlyclean-generic \
  24302. +distclean-generic clean-generic maintainer-clean-generic clean \
  24303. +mostlyclean distclean maintainer-clean
  24304. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  24305. Index: linux-atm-2.4.1/src/ilmid/io.c
  24306. ===================================================================
  24307. --- linux-atm-2.4.1.orig/src/ilmid/io.c 2007-10-20 19:19:11.162264578 +0200
  24308. +++ linux-atm-2.4.1/src/ilmid/io.c 2007-10-20 19:19:12.166321797 +0200
  24309. @@ -32,6 +32,7 @@
  24310. #include <net/if.h>
  24311. #include <atm.h>
  24312. #include <linux/atmdev.h>
  24313. +#include <unistd.h>
  24314. #include "io.h"
  24315. #include "atmd.h"
  24316. #include "atmf_uni.h"
  24317. @@ -299,4 +300,5 @@
  24318. diag(COMPONENT,DIAG_ERROR,"ioctl ATM_GETCIRANGE: %s",strerror(errno));
  24319. return error;
  24320. }
  24321. + return 0;
  24322. }
  24323. Index: linux-atm-2.4.1/src/ilmid/atmf_uni.c
  24324. ===================================================================
  24325. --- linux-atm-2.4.1.orig/src/ilmid/atmf_uni.c 2007-10-20 19:19:11.174265264 +0200
  24326. +++ linux-atm-2.4.1/src/ilmid/atmf_uni.c 2007-10-20 19:19:12.174322254 +0200
  24327. @@ -187,7 +187,7 @@
  24328. newPrefix->name = alloc_t(AsnOid);
  24329. newPrefix->name->octs = alloc(varBindName->octetLen);
  24330. AsnOidCopy(newPrefix->name, varBindName);
  24331. - Q_INSERT_BEFORE((NetPrefixNode *) var->value, newPrefix, prefix);
  24332. + Q_INSERT_BEFORE_TYPED(var->value,(NetPrefixNode *), newPrefix, prefix);
  24333. if(atmNetPrefix.octs == NULL)
  24334. {
  24335. atmNetPrefix.octetLen = varBindName->octetLen - NETPREFIX_LEN - 2;
  24336. @@ -197,7 +197,7 @@
  24337. }
  24338. else if (varbind->value->a.simple->a.number == INVALID && cmp == AsnOidEqual)
  24339. {
  24340. - Q_REMOVE((NetPrefixNode *) var->value, prefix);
  24341. + Q_REMOVE(var->value, prefix);
  24342. }
  24343. return NOERROR;
  24344. Index: linux-atm-2.4.1/src/ilmid/mib.c
  24345. ===================================================================
  24346. --- linux-atm-2.4.1.orig/src/ilmid/mib.c 2007-10-20 19:19:11.182265718 +0200
  24347. +++ linux-atm-2.4.1/src/ilmid/mib.c 2007-10-20 19:19:12.182322708 +0200
  24348. @@ -58,13 +58,13 @@
  24349. { NULL }
  24350. };
  24351. -void MIBget(VarBindList *list, PDUInt *status, AsnInt *index)
  24352. +void MIBget(VarBindList *list, PDUInt *status, AsnInt *Mindex)
  24353. {
  24354. VarBind *varbind;
  24355. Variable *var;
  24356. AsnOidResult result;
  24357. - *index = 1;
  24358. + *Mindex = 1;
  24359. FOR_EACH_LIST_ELMT(varbind, list)
  24360. {
  24361. /* Find the first MIB object not lexigraphically less than the *
  24362. @@ -91,20 +91,20 @@
  24363. if(*status != NOERROR)
  24364. return;
  24365. - (*index)++;
  24366. + (*Mindex)++;
  24367. }
  24368. - *index = 0;
  24369. + *Mindex = 0;
  24370. return;
  24371. }
  24372. -void MIBgetnext(VarBindList *list, PDUInt *status, AsnInt *index)
  24373. +void MIBgetnext(VarBindList *list, PDUInt *status, AsnInt *Mindex)
  24374. {
  24375. VarBind *varbind;
  24376. Variable *var;
  24377. AsnOidResult result;
  24378. - *index = 1;
  24379. + *Mindex = 1;
  24380. FOR_EACH_LIST_ELMT(varbind, list)
  24381. {
  24382. /* Find the first complex MIB object not lexigraphically less than *
  24383. @@ -139,19 +139,19 @@
  24384. if(*status != NOERROR)
  24385. return;
  24386. - (*index)++;
  24387. + (*Mindex)++;
  24388. }
  24389. - *index = 0;
  24390. + *Mindex = 0;
  24391. return;
  24392. }
  24393. -void MIBset(VarBindList *list, PDUInt *status, AsnInt *index)
  24394. +void MIBset(VarBindList *list, PDUInt *status, AsnInt *Mindex)
  24395. {
  24396. VarBind *varbind;
  24397. Variable *var;
  24398. AsnOidResult result;
  24399. - *index = 1;
  24400. + *Mindex = 1;
  24401. FOR_EACH_LIST_ELMT(varbind, list)
  24402. {
  24403. /* Find the first MIB object not lexigraphically less than the *
  24404. @@ -182,9 +182,9 @@
  24405. if(*status != NOERROR)
  24406. return;
  24407. - (*index)++;
  24408. + (*Mindex)++;
  24409. }
  24410. - *index = 0;
  24411. + *Mindex = 0;
  24412. return;
  24413. }
  24414. Index: linux-atm-2.4.1/src/ilmid/mib.h
  24415. ===================================================================
  24416. --- linux-atm-2.4.1.orig/src/ilmid/mib.h 2007-10-20 19:19:11.190266178 +0200
  24417. +++ linux-atm-2.4.1/src/ilmid/mib.h 2007-10-20 19:19:12.182322708 +0200
  24418. @@ -39,9 +39,9 @@
  24419. void *value;
  24420. } Variable;
  24421. -void MIBget(VarBindList *list, PDUInt *status, AsnInt *index);
  24422. -void MIBgetnext(VarBindList *list, PDUInt *status, AsnInt *index);
  24423. -void MIBset(VarBindList *list, PDUInt *status, AsnInt *index);
  24424. +void MIBget(VarBindList *list, PDUInt *status, AsnInt *Mindex);
  24425. +void MIBgetnext(VarBindList *list, PDUInt *status, AsnInt *Mindex);
  24426. +void MIBset(VarBindList *list, PDUInt *status, AsnInt *Mindex);
  24427. void *MIBdelete(AsnOid *oid);
  24428. AsnInt getString(VarBind *varbind, Variable *var);
  24429. Index: linux-atm-2.4.1/src/ilmid/ilmid.c
  24430. ===================================================================
  24431. --- linux-atm-2.4.1.orig/src/ilmid/ilmid.c 2007-10-20 19:19:11.198266629 +0200
  24432. +++ linux-atm-2.4.1/src/ilmid/ilmid.c 2007-10-20 19:19:12.186322937 +0200
  24433. @@ -33,6 +33,7 @@
  24434. #include <config.h>
  24435. #endif
  24436. +#include <stdlib.h>
  24437. #include <unistd.h>
  24438. #include <sys/time.h>
  24439. #include <errno.h>
  24440. Index: linux-atm-2.4.1/src/ilmid/asn1/Makefile.in
  24441. ===================================================================
  24442. --- linux-atm-2.4.1.orig/src/ilmid/asn1/Makefile.in 2007-10-20 19:19:11.202266858 +0200
  24443. +++ linux-atm-2.4.1/src/ilmid/asn1/Makefile.in 2007-10-20 19:19:12.190323167 +0200
  24444. @@ -1,4 +1,4 @@
  24445. -# Makefile.in generated automatically by automake 1.4-p5 from Makefile.am
  24446. +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
  24447. # Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
  24448. # This Makefile.in is free software; the Free Software Foundation
  24449. @@ -87,13 +87,7 @@
  24450. noinst_LIBRARIES = libasn1.a
  24451. -libasn1_a_SOURCES = asn_len.c asn_len.h asn_tag.c asn_tag.h \
  24452. - asn_int.c asn_int.h asn_octs.c asn_octs.h \
  24453. - asn_bits.c asn_bits.h str_stk.c str_stk.h \
  24454. - asn_oid.c asn_oid.h asn_null.c asn_null.h \
  24455. - asn_list.c asn_list.h nibble_alloc.c nibble_alloc.h \
  24456. - print.c print.h \
  24457. - asn_config.h min_buf.h sbuf.h exp_buf.h
  24458. +libasn1_a_SOURCES = asn_len.c asn_len.h asn_tag.c asn_tag.h asn_int.c asn_int.h asn_octs.c asn_octs.h asn_bits.c asn_bits.h str_stk.c str_stk.h asn_oid.c asn_oid.h asn_null.c asn_null.h asn_list.c asn_list.h nibble_alloc.c nibble_alloc.h print.c print.h asn_config.h min_buf.h sbuf.h exp_buf.h
  24459. EXTRA_libasn1_a_SOURCES = asn_incl.h exp_buf.c
  24460. @@ -125,8 +119,12 @@
  24461. DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
  24462. -TAR = gtar
  24463. +TAR = tar
  24464. GZIP_ENV = --best
  24465. +DEP_FILES = .deps/asn_bits.P .deps/asn_int.P .deps/asn_len.P \
  24466. +.deps/asn_list.P .deps/asn_null.P .deps/asn_octs.P .deps/asn_oid.P \
  24467. +.deps/asn_tag.P .deps/exp_buf.P .deps/nibble_alloc.P .deps/print.P \
  24468. +.deps/str_stk.P
  24469. SOURCES = $(libasn1_a_SOURCES) $(EXTRA_libasn1_a_SOURCES)
  24470. OBJECTS = $(libasn1_a_OBJECTS)
  24471. @@ -134,9 +132,9 @@
  24472. .SUFFIXES:
  24473. .SUFFIXES: .S .c .lo .o .obj .s
  24474. $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
  24475. - cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps src/ilmid/asn1/Makefile
  24476. + cd $(top_srcdir) && $(AUTOMAKE) --gnu src/ilmid/asn1/Makefile
  24477. -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  24478. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
  24479. cd $(top_builddir) \
  24480. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
  24481. @@ -150,9 +148,6 @@
  24482. maintainer-clean-noinstLIBRARIES:
  24483. -.c.o:
  24484. - $(COMPILE) -c $<
  24485. -
  24486. # FIXME: We should only use cygpath when building on Windows,
  24487. # and only if it is available.
  24488. .c.obj:
  24489. @@ -175,9 +170,6 @@
  24490. maintainer-clean-compile:
  24491. -.c.lo:
  24492. - $(LIBTOOL) --mode=compile $(COMPILE) -c $<
  24493. -
  24494. .s.lo:
  24495. $(LIBTOOL) --mode=compile $(COMPILE) -c $<
  24496. @@ -217,7 +209,7 @@
  24497. awk ' { files[$$0] = 1; } \
  24498. END { for (i in files) print i; }'`; \
  24499. test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
  24500. - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
  24501. + || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags $$unique $(LISP))
  24502. mostlyclean-tags:
  24503. @@ -233,6 +225,11 @@
  24504. subdir = src/ilmid/asn1
  24505. distdir: $(DISTFILES)
  24506. + here=`cd $(top_builddir) && pwd`; \
  24507. + top_distdir=`cd $(top_distdir) && pwd`; \
  24508. + distdir=`cd $(distdir) && pwd`; \
  24509. + cd $(top_srcdir) \
  24510. + && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu src/ilmid/asn1/Makefile
  24511. @for file in $(DISTFILES); do \
  24512. d=$(srcdir); \
  24513. if test -d $$d/$$file; then \
  24514. @@ -243,30 +240,38 @@
  24515. || cp -p $$d/$$file $(distdir)/$$file || :; \
  24516. fi; \
  24517. done
  24518. -asn_bits.o: asn_bits.c ../../../config.h asn_config.h nibble_alloc.h \
  24519. - sbuf.h print.h asn_len.h asn_tag.h str_stk.h asn_bits.h
  24520. -asn_int.o: asn_int.c ../../../config.h asn_config.h nibble_alloc.h \
  24521. - sbuf.h print.h asn_len.h asn_tag.h asn_int.h
  24522. -asn_len.o: asn_len.c ../../../config.h asn_config.h nibble_alloc.h \
  24523. - sbuf.h print.h asn_len.h
  24524. -asn_list.o: asn_list.c ../../../config.h asn_config.h nibble_alloc.h \
  24525. - sbuf.h print.h asn_list.h
  24526. -asn_null.o: asn_null.c ../../../config.h asn_config.h nibble_alloc.h \
  24527. - sbuf.h print.h asn_len.h asn_tag.h asn_null.h
  24528. -asn_octs.o: asn_octs.c ../../../config.h asn_config.h nibble_alloc.h \
  24529. - sbuf.h print.h asn_len.h asn_tag.h str_stk.h asn_bits.h \
  24530. - asn_octs.h
  24531. -asn_oid.o: asn_oid.c ../../../config.h asn_config.h nibble_alloc.h \
  24532. - sbuf.h print.h asn_len.h asn_tag.h asn_octs.h asn_oid.h
  24533. -asn_tag.o: asn_tag.c ../../../config.h asn_config.h nibble_alloc.h \
  24534. - sbuf.h print.h asn_len.h asn_tag.h
  24535. -nibble_alloc.o: nibble_alloc.c ../../../config.h asn_config.h \
  24536. - nibble_alloc.h sbuf.h print.h
  24537. -print.o: print.c ../../../config.h asn_config.h nibble_alloc.h sbuf.h \
  24538. - print.h
  24539. -str_stk.o: str_stk.c ../../../config.h asn_config.h nibble_alloc.h \
  24540. - sbuf.h print.h str_stk.h
  24541. +DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
  24542. +
  24543. +-include $(DEP_FILES)
  24544. +
  24545. +mostlyclean-depend:
  24546. +
  24547. +clean-depend:
  24548. +
  24549. +distclean-depend:
  24550. + -rm -rf .deps
  24551. +
  24552. +maintainer-clean-depend:
  24553. +
  24554. +%.o: %.c
  24555. + @echo '$(COMPILE) -c $<'; \
  24556. + $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
  24557. + @-cp .deps/$(*F).pp .deps/$(*F).P; \
  24558. + tr ' ' '\012' < .deps/$(*F).pp \
  24559. + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
  24560. + >> .deps/$(*F).P; \
  24561. + rm .deps/$(*F).pp
  24562. +
  24563. +%.lo: %.c
  24564. + @echo '$(LTCOMPILE) -c $<'; \
  24565. + $(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
  24566. + @-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \
  24567. + < .deps/$(*F).pp > .deps/$(*F).P; \
  24568. + tr ' ' '\012' < .deps/$(*F).pp \
  24569. + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
  24570. + >> .deps/$(*F).P; \
  24571. + rm -f .deps/$(*F).pp
  24572. info-am:
  24573. info: info-am
  24574. dvi-am:
  24575. @@ -303,27 +308,27 @@
  24576. maintainer-clean-generic:
  24577. mostlyclean-am: mostlyclean-noinstLIBRARIES mostlyclean-compile \
  24578. - mostlyclean-libtool mostlyclean-tags \
  24579. + mostlyclean-libtool mostlyclean-tags mostlyclean-depend \
  24580. mostlyclean-generic
  24581. mostlyclean: mostlyclean-am
  24582. clean-am: clean-noinstLIBRARIES clean-compile clean-libtool clean-tags \
  24583. - clean-generic mostlyclean-am
  24584. + clean-depend clean-generic mostlyclean-am
  24585. clean: clean-am
  24586. distclean-am: distclean-noinstLIBRARIES distclean-compile \
  24587. - distclean-libtool distclean-tags distclean-generic \
  24588. - clean-am
  24589. + distclean-libtool distclean-tags distclean-depend \
  24590. + distclean-generic clean-am
  24591. -rm -f libtool
  24592. distclean: distclean-am
  24593. maintainer-clean-am: maintainer-clean-noinstLIBRARIES \
  24594. maintainer-clean-compile maintainer-clean-libtool \
  24595. - maintainer-clean-tags maintainer-clean-generic \
  24596. - distclean-am
  24597. + maintainer-clean-tags maintainer-clean-depend \
  24598. + maintainer-clean-generic distclean-am
  24599. @echo "This command is intended for maintainers to use;"
  24600. @echo "it deletes files that may require special tools to rebuild."
  24601. @@ -334,12 +339,14 @@
  24602. mostlyclean-compile distclean-compile clean-compile \
  24603. maintainer-clean-compile mostlyclean-libtool distclean-libtool \
  24604. clean-libtool maintainer-clean-libtool tags mostlyclean-tags \
  24605. -distclean-tags clean-tags maintainer-clean-tags distdir info-am info \
  24606. -dvi-am dvi check check-am installcheck-am installcheck install-exec-am \
  24607. -install-exec install-data-am install-data install-am install \
  24608. -uninstall-am uninstall all-redirect all-am all installdirs \
  24609. -mostlyclean-generic distclean-generic clean-generic \
  24610. -maintainer-clean-generic clean mostlyclean distclean maintainer-clean
  24611. +distclean-tags clean-tags maintainer-clean-tags distdir \
  24612. +mostlyclean-depend distclean-depend clean-depend \
  24613. +maintainer-clean-depend info-am info dvi-am dvi check check-am \
  24614. +installcheck-am installcheck install-exec-am install-exec \
  24615. +install-data-am install-data install-am install uninstall-am uninstall \
  24616. +all-redirect all-am all installdirs mostlyclean-generic \
  24617. +distclean-generic clean-generic maintainer-clean-generic clean \
  24618. +mostlyclean distclean maintainer-clean
  24619. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  24620. Index: linux-atm-2.4.1/src/ilmid/asn1/asn_int.c
  24621. ===================================================================
  24622. --- linux-atm-2.4.1.orig/src/ilmid/asn1/asn_int.c 2007-10-20 19:19:11.210267317 +0200
  24623. +++ linux-atm-2.4.1/src/ilmid/asn1/asn_int.c 2007-10-20 19:19:12.226325216 +0200
  24624. @@ -185,7 +185,7 @@
  24625. AsnInt* v _AND_
  24626. unsigned short int indent)
  24627. {
  24628. - fprintf(f,"%d", *v);
  24629. + fprintf(f,"%ld", *v);
  24630. }
  24631. @@ -252,7 +252,6 @@
  24632. UAsnInt* data)
  24633. {
  24634. int len;
  24635. - int retLen;
  24636. int i;
  24637. unsigned long int mask;
  24638. unsigned long int dataCpy;
  24639. @@ -370,5 +369,5 @@
  24640. UAsnInt* v _AND_
  24641. unsigned short int indent)
  24642. {
  24643. - fprintf(f,"%u", *v);
  24644. + fprintf(f,"%lu", *v);
  24645. }
  24646. Index: linux-atm-2.4.1/src/ilmid/asn1/asn_octs.c
  24647. ===================================================================
  24648. --- linux-atm-2.4.1.orig/src/ilmid/asn1/asn_octs.c 2007-10-20 19:19:11.218267769 +0200
  24649. +++ linux-atm-2.4.1/src/ilmid/asn1/asn_octs.c 2007-10-20 19:19:12.230325447 +0200
  24650. @@ -21,6 +21,9 @@
  24651. #include <config.h>
  24652. #endif
  24653. +#include <stdlib.h>
  24654. +#include <string.h>
  24655. +
  24656. #include "asn_config.h"
  24657. #include "asn_len.h"
  24658. #include "asn_tag.h"
  24659. Index: linux-atm-2.4.1/src/ilmid/asn1/asn_bits.c
  24660. ===================================================================
  24661. --- linux-atm-2.4.1.orig/src/ilmid/asn1/asn_bits.c 2007-10-20 19:19:11.222267998 +0200
  24662. +++ linux-atm-2.4.1/src/ilmid/asn1/asn_bits.c 2007-10-20 19:19:12.234325674 +0200
  24663. @@ -21,6 +21,9 @@
  24664. #include <config.h>
  24665. #endif
  24666. +#include <stdlib.h>
  24667. +#include <string.h>
  24668. +
  24669. #include "asn_config.h"
  24670. #include "asn_len.h"
  24671. #include "asn_tag.h"
  24672. Index: linux-atm-2.4.1/src/ilmid/asn1/asn_oid.c
  24673. ===================================================================
  24674. --- linux-atm-2.4.1.orig/src/ilmid/asn1/asn_oid.c 2007-10-20 19:19:11.230268457 +0200
  24675. +++ linux-atm-2.4.1/src/ilmid/asn1/asn_oid.c 2007-10-20 19:19:12.246326356 +0200
  24676. @@ -21,6 +21,9 @@
  24677. #include <config.h>
  24678. #endif
  24679. +#include <stdlib.h>
  24680. +#include <string.h>
  24681. +
  24682. #include "asn_config.h"
  24683. #include "asn_len.h"
  24684. #include "asn_tag.h"
  24685. @@ -125,7 +128,7 @@
  24686. if (firstArcNum > 2)
  24687. firstArcNum = 2;
  24688. - fprintf(f,"%u %u", firstArcNum, arcNum - (firstArcNum * 40));
  24689. + fprintf(f,"%d %lu", firstArcNum, arcNum - (firstArcNum * 40));
  24690. for (; i < v->octetLen ; )
  24691. {
  24692. @@ -134,7 +137,7 @@
  24693. arcNum = (arcNum << 7) + (v->octs[i] & 0x7f);
  24694. i++;
  24695. - fprintf(f," %u", arcNum);
  24696. + fprintf(f," %lu", arcNum);
  24697. }
  24698. fprintf(f,"}");
  24699. Index: linux-atm-2.4.1/src/ilmid/asn1/asn_list.c
  24700. ===================================================================
  24701. --- linux-atm-2.4.1.orig/src/ilmid/asn1/asn_list.c 2007-10-20 19:19:11.238268909 +0200
  24702. +++ linux-atm-2.4.1/src/ilmid/asn1/asn_list.c 2007-10-20 19:19:12.262327267 +0200
  24703. @@ -20,6 +20,8 @@
  24704. #include <config.h>
  24705. #endif
  24706. +#include <stdlib.h>
  24707. +
  24708. #include "asn_config.h"
  24709. #include "asn_list.h"
  24710. Index: linux-atm-2.4.1/src/ilmid/asn1/nibble_alloc.c
  24711. ===================================================================
  24712. --- linux-atm-2.4.1.orig/src/ilmid/asn1/nibble_alloc.c 2007-10-20 19:19:11.246269366 +0200
  24713. +++ linux-atm-2.4.1/src/ilmid/asn1/nibble_alloc.c 2007-10-20 19:19:12.286328636 +0200
  24714. @@ -20,7 +20,9 @@
  24715. #include <config.h>
  24716. #endif
  24717. +#include <string.h>
  24718. #include <memory.h>
  24719. +#include <stdlib.h>
  24720. #include "asn_config.h"
  24721. #include "nibble_alloc.h"
  24722. Index: linux-atm-2.4.1/src/ilmid/asn1/nibble_alloc.h
  24723. ===================================================================
  24724. --- linux-atm-2.4.1.orig/src/ilmid/asn1/nibble_alloc.h 2007-10-20 19:19:11.254269824 +0200
  24725. +++ linux-atm-2.4.1/src/ilmid/asn1/nibble_alloc.h 2007-10-20 19:19:12.294329093 +0200
  24726. @@ -39,13 +39,13 @@
  24727. void InitNibbleMem PROTO((unsigned long int initialSize,
  24728. unsigned long int incrementSize));
  24729. -void ShutdownNibbleMem();
  24730. +void ShutdownNibbleMem(void);
  24731. void ServiceNibbleFault PROTO((unsigned long int size));
  24732. void* NibbleAlloc PROTO((unsigned long int size));
  24733. -void ResetNibbleMem();
  24734. +void ResetNibbleMem(void);
  24735. #endif /* conditional include */
  24736. Index: linux-atm-2.4.1/src/man/Makefile.in
  24737. ===================================================================
  24738. --- linux-atm-2.4.1.orig/src/man/Makefile.in 2007-10-20 19:19:11.262270277 +0200
  24739. +++ linux-atm-2.4.1/src/man/Makefile.in 2007-10-20 19:19:12.302329547 +0200
  24740. @@ -1,4 +1,4 @@
  24741. -# Makefile.in generated automatically by automake 1.4-p5 from Makefile.am
  24742. +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
  24743. # Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
  24744. # This Makefile.in is free software; the Free Software Foundation
  24745. @@ -100,14 +100,14 @@
  24746. DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
  24747. -TAR = gtar
  24748. +TAR = tar
  24749. GZIP_ENV = --best
  24750. all: all-redirect
  24751. .SUFFIXES:
  24752. $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
  24753. - cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps src/man/Makefile
  24754. + cd $(top_srcdir) && $(AUTOMAKE) --gnu src/man/Makefile
  24755. -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  24756. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
  24757. cd $(top_builddir) \
  24758. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
  24759. @@ -159,6 +159,11 @@
  24760. subdir = src/man
  24761. distdir: $(DISTFILES)
  24762. + here=`cd $(top_builddir) && pwd`; \
  24763. + top_distdir=`cd $(top_distdir) && pwd`; \
  24764. + distdir=`cd $(distdir) && pwd`; \
  24765. + cd $(top_srcdir) \
  24766. + && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu src/man/Makefile
  24767. @for file in $(DISTFILES); do \
  24768. d=$(srcdir); \
  24769. if test -d $$d/$$file; then \
  24770. Index: linux-atm-2.4.1/src/led/Makefile.in
  24771. ===================================================================
  24772. --- linux-atm-2.4.1.orig/src/led/Makefile.in 2007-10-20 19:19:11.270270737 +0200
  24773. +++ linux-atm-2.4.1/src/led/Makefile.in 2007-10-20 19:19:12.306329776 +0200
  24774. @@ -1,4 +1,4 @@
  24775. -# Makefile.in generated automatically by automake 1.4-p5 from Makefile.am
  24776. +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
  24777. # Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
  24778. # This Makefile.in is free software; the Free Software Foundation
  24779. @@ -87,9 +87,7 @@
  24780. sbin_PROGRAMS = zeppelin
  24781. -zeppelin_SOURCES = join.c join.h conn.c conn.h main.c address.c address.h \
  24782. - frames.c frames.h display.c display.h \
  24783. - kernel.c kernel.h frame_defs.h lec.h
  24784. +zeppelin_SOURCES = join.c join.h conn.c conn.h main.c address.c address.h frames.c frames.h display.c display.h kernel.c kernel.h frame_defs.h lec.h
  24785. zeppelin_LDADD = $(top_builddir)/src/lib/libatm.la
  24786. zeppelin_DEPENDENCIES = $(zeppelin_LDADD)
  24787. @@ -125,8 +123,10 @@
  24788. DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
  24789. -TAR = gtar
  24790. +TAR = tar
  24791. GZIP_ENV = --best
  24792. +DEP_FILES = .deps/address.P .deps/conn.P .deps/display.P .deps/frames.P \
  24793. +.deps/join.P .deps/kernel.P .deps/main.P
  24794. SOURCES = $(zeppelin_SOURCES)
  24795. OBJECTS = $(zeppelin_OBJECTS)
  24796. @@ -134,9 +134,9 @@
  24797. .SUFFIXES:
  24798. .SUFFIXES: .S .c .lo .o .obj .s
  24799. $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
  24800. - cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps src/led/Makefile
  24801. + cd $(top_srcdir) && $(AUTOMAKE) --gnu src/led/Makefile
  24802. -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  24803. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
  24804. cd $(top_builddir) \
  24805. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
  24806. @@ -166,9 +166,6 @@
  24807. rm -f $(DESTDIR)$(sbindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
  24808. done
  24809. -.c.o:
  24810. - $(COMPILE) -c $<
  24811. -
  24812. # FIXME: We should only use cygpath when building on Windows,
  24813. # and only if it is available.
  24814. .c.obj:
  24815. @@ -191,9 +188,6 @@
  24816. maintainer-clean-compile:
  24817. -.c.lo:
  24818. - $(LIBTOOL) --mode=compile $(COMPILE) -c $<
  24819. -
  24820. .s.lo:
  24821. $(LIBTOOL) --mode=compile $(COMPILE) -c $<
  24822. @@ -271,7 +265,7 @@
  24823. awk ' { files[$$0] = 1; } \
  24824. END { for (i in files) print i; }'`; \
  24825. test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
  24826. - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
  24827. + || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags $$unique $(LISP))
  24828. mostlyclean-tags:
  24829. @@ -287,6 +281,11 @@
  24830. subdir = src/led
  24831. distdir: $(DISTFILES)
  24832. + here=`cd $(top_builddir) && pwd`; \
  24833. + top_distdir=`cd $(top_distdir) && pwd`; \
  24834. + distdir=`cd $(distdir) && pwd`; \
  24835. + cd $(top_srcdir) \
  24836. + && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu src/led/Makefile
  24837. @for file in $(DISTFILES); do \
  24838. d=$(srcdir); \
  24839. if test -d $$d/$$file; then \
  24840. @@ -297,28 +296,38 @@
  24841. || cp -p $$d/$$file $(distdir)/$$file || :; \
  24842. fi; \
  24843. done
  24844. -address.o: address.c ../../config.h ../../src/include/atm.h \
  24845. - ../../src/include/stdint.h ../../src/include/atmd.h address.h
  24846. -conn.o: conn.c ../../config.h ../../src/include/atm.h \
  24847. - ../../src/include/stdint.h ../../src/include/atmsap.h \
  24848. - ../../src/include/atmd.h conn.h display.h lec.h frames.h \
  24849. - frame_defs.h kernel.h
  24850. -display.o: display.c ../../config.h ../../src/include/atm.h \
  24851. - ../../src/include/stdint.h ../../src/include/atmd.h display.h \
  24852. - frame_defs.h
  24853. -frames.o: frames.c ../../config.h ../../src/include/atm.h \
  24854. - ../../src/include/stdint.h ../../src/include/atmd.h conn.h \
  24855. - lec.h frames.h frame_defs.h display.h kernel.h
  24856. -join.o: join.c ../../config.h ../../src/include/atm.h \
  24857. - ../../src/include/stdint.h ../../src/include/atmd.h conn.h \
  24858. - lec.h join.h frames.h frame_defs.h display.h
  24859. -kernel.o: kernel.c ../../config.h ../../src/include/atm.h \
  24860. - ../../src/include/stdint.h ../../src/include/atmd.h kernel.h \
  24861. - lec.h conn.h frames.h frame_defs.h
  24862. -main.o: main.c ../../config.h ../../src/include/atm.h \
  24863. - ../../src/include/stdint.h ../../src/include/atmd.h join.h \
  24864. - lec.h conn.h address.h display.h kernel.h
  24865. +DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
  24866. +
  24867. +-include $(DEP_FILES)
  24868. +
  24869. +mostlyclean-depend:
  24870. +
  24871. +clean-depend:
  24872. +
  24873. +distclean-depend:
  24874. + -rm -rf .deps
  24875. +
  24876. +maintainer-clean-depend:
  24877. +
  24878. +%.o: %.c
  24879. + @echo '$(COMPILE) -c $<'; \
  24880. + $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
  24881. + @-cp .deps/$(*F).pp .deps/$(*F).P; \
  24882. + tr ' ' '\012' < .deps/$(*F).pp \
  24883. + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
  24884. + >> .deps/$(*F).P; \
  24885. + rm .deps/$(*F).pp
  24886. +
  24887. +%.lo: %.c
  24888. + @echo '$(LTCOMPILE) -c $<'; \
  24889. + $(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
  24890. + @-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \
  24891. + < .deps/$(*F).pp > .deps/$(*F).P; \
  24892. + tr ' ' '\012' < .deps/$(*F).pp \
  24893. + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
  24894. + >> .deps/$(*F).P; \
  24895. + rm -f .deps/$(*F).pp
  24896. info-am:
  24897. info: info-am
  24898. dvi-am:
  24899. @@ -356,27 +365,27 @@
  24900. maintainer-clean-generic:
  24901. mostlyclean-am: mostlyclean-sbinPROGRAMS mostlyclean-compile \
  24902. - mostlyclean-libtool mostlyclean-tags \
  24903. + mostlyclean-libtool mostlyclean-tags mostlyclean-depend \
  24904. mostlyclean-generic
  24905. mostlyclean: mostlyclean-am
  24906. clean-am: clean-sbinPROGRAMS clean-compile clean-libtool clean-tags \
  24907. - clean-generic mostlyclean-am
  24908. + clean-depend clean-generic mostlyclean-am
  24909. clean: clean-am
  24910. distclean-am: distclean-sbinPROGRAMS distclean-compile \
  24911. - distclean-libtool distclean-tags distclean-generic \
  24912. - clean-am
  24913. + distclean-libtool distclean-tags distclean-depend \
  24914. + distclean-generic clean-am
  24915. -rm -f libtool
  24916. distclean: distclean-am
  24917. maintainer-clean-am: maintainer-clean-sbinPROGRAMS \
  24918. maintainer-clean-compile maintainer-clean-libtool \
  24919. - maintainer-clean-tags maintainer-clean-generic \
  24920. - distclean-am
  24921. + maintainer-clean-tags maintainer-clean-depend \
  24922. + maintainer-clean-generic distclean-am
  24923. @echo "This command is intended for maintainers to use;"
  24924. @echo "it deletes files that may require special tools to rebuild."
  24925. @@ -388,12 +397,14 @@
  24926. clean-compile maintainer-clean-compile mostlyclean-libtool \
  24927. distclean-libtool clean-libtool maintainer-clean-libtool install-man8 \
  24928. uninstall-man8 install-man uninstall-man tags mostlyclean-tags \
  24929. -distclean-tags clean-tags maintainer-clean-tags distdir info-am info \
  24930. -dvi-am dvi check check-am installcheck-am installcheck install-exec-am \
  24931. -install-exec install-data-am install-data install-am install \
  24932. -uninstall-am uninstall all-redirect all-am all installdirs \
  24933. -mostlyclean-generic distclean-generic clean-generic \
  24934. -maintainer-clean-generic clean mostlyclean distclean maintainer-clean
  24935. +distclean-tags clean-tags maintainer-clean-tags distdir \
  24936. +mostlyclean-depend distclean-depend clean-depend \
  24937. +maintainer-clean-depend info-am info dvi-am dvi check check-am \
  24938. +installcheck-am installcheck install-exec-am install-exec \
  24939. +install-data-am install-data install-am install uninstall-am uninstall \
  24940. +all-redirect all-am all installdirs mostlyclean-generic \
  24941. +distclean-generic clean-generic maintainer-clean-generic clean \
  24942. +mostlyclean distclean maintainer-clean
  24943. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  24944. Index: linux-atm-2.4.1/src/lane/Makefile.in
  24945. ===================================================================
  24946. --- linux-atm-2.4.1.orig/src/lane/Makefile.in 2007-10-20 19:19:11.302272557 +0200
  24947. +++ linux-atm-2.4.1/src/lane/Makefile.in 2007-10-20 19:19:12.310330006 +0200
  24948. @@ -1,4 +1,4 @@
  24949. -# Makefile.in generated automatically by automake 1.4-p5 from Makefile.am
  24950. +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
  24951. # Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
  24952. # This Makefile.in is free software; the Free Software Foundation
  24953. @@ -89,14 +89,11 @@
  24954. LDADD = $(top_builddir)/src/lib/libatm.la
  24955. -LES_BUS_SRCS = mem.c mem.h load.c load.h units.c units.h load_lex.l load_lex.h \
  24956. - timers.c timers.h dump.c dump.h lane_atm.c lane_atm.h \
  24957. - events.c events.h lane.c lane.h
  24958. +LES_BUS_SRCS = mem.c mem.h load.c load.h units.c units.h load_lex.l load_lex.h timers.c timers.h dump.c dump.h lane_atm.c lane_atm.h events.c events.h lane.c lane.h
  24959. les_SOURCES = $(LES_BUS_SRCS) packet.c packet.h connect.c connect.h db.c db.h
  24960. bus_SOURCES = $(LES_BUS_SRCS) connect_bus.c
  24961. -lecs_SOURCES = lecs_db.l lecs_db.h lecs_load.c lecs_load.h lecs.c lecs.h \
  24962. - ldb.c ldb.h mem_lecs.c mem_lecs.h atm_lecs.c atm_lecs.h
  24963. +lecs_SOURCES = lecs_db.l lecs_db.h lecs_load.c lecs_load.h lecs.c lecs.h ldb.c ldb.h mem_lecs.c mem_lecs.h atm_lecs.c atm_lecs.h
  24964. man_MANS = les.8 lecs.8 bus.8
  24965. @@ -148,8 +145,13 @@
  24966. DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
  24967. -TAR = gtar
  24968. +TAR = tar
  24969. GZIP_ENV = --best
  24970. +DEP_FILES = .deps/atm_lecs.P .deps/connect.P .deps/connect_bus.P \
  24971. +.deps/db.P .deps/dump.P .deps/events.P .deps/lane.P .deps/lane_atm.P \
  24972. +.deps/ldb.P .deps/lecs.P .deps/lecs_db.P .deps/lecs_load.P .deps/load.P \
  24973. +.deps/load_lex.P .deps/mem.P .deps/mem_lecs.P .deps/packet.P \
  24974. +.deps/timers.P .deps/units.P
  24975. SOURCES = $(les_SOURCES) $(bus_SOURCES) $(lecs_SOURCES)
  24976. OBJECTS = $(les_OBJECTS) $(bus_OBJECTS) $(lecs_OBJECTS)
  24977. @@ -157,9 +159,9 @@
  24978. .SUFFIXES:
  24979. .SUFFIXES: .S .c .l .lo .o .obj .s
  24980. $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
  24981. - cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps src/lane/Makefile
  24982. + cd $(top_srcdir) && $(AUTOMAKE) --gnu src/lane/Makefile
  24983. -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  24984. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
  24985. cd $(top_builddir) \
  24986. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
  24987. @@ -189,9 +191,6 @@
  24988. rm -f $(DESTDIR)$(sbindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
  24989. done
  24990. -.c.o:
  24991. - $(COMPILE) -c $<
  24992. -
  24993. # FIXME: We should only use cygpath when building on Windows,
  24994. # and only if it is available.
  24995. .c.obj:
  24996. @@ -214,9 +213,6 @@
  24997. maintainer-clean-compile:
  24998. -.c.lo:
  24999. - $(LIBTOOL) --mode=compile $(COMPILE) -c $<
  25000. -
  25001. .s.lo:
  25002. $(LIBTOOL) --mode=compile $(COMPILE) -c $<
  25003. @@ -304,7 +300,7 @@
  25004. awk ' { files[$$0] = 1; } \
  25005. END { for (i in files) print i; }'`; \
  25006. test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
  25007. - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
  25008. + || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags $$unique $(LISP))
  25009. mostlyclean-tags:
  25010. @@ -320,6 +316,11 @@
  25011. subdir = src/lane
  25012. distdir: $(DISTFILES)
  25013. + here=`cd $(top_builddir) && pwd`; \
  25014. + top_distdir=`cd $(top_distdir) && pwd`; \
  25015. + distdir=`cd $(distdir) && pwd`; \
  25016. + cd $(top_srcdir) \
  25017. + && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu src/lane/Makefile
  25018. @for file in $(DISTFILES); do \
  25019. d=$(srcdir); \
  25020. if test -d $$d/$$file; then \
  25021. @@ -330,62 +331,38 @@
  25022. || cp -p $$d/$$file $(distdir)/$$file || :; \
  25023. fi; \
  25024. done
  25025. -atm_lecs.o: atm_lecs.c ../../config.h ../../src/include/atm.h \
  25026. - ../../src/include/stdint.h ../../src/include/atmsap.h \
  25027. - atm_lecs.h
  25028. -connect.o: connect.c ../../config.h ../../src/include/stdint.h mem.h \
  25029. - units.h lane.h dump.h ../../src/include/atm.h \
  25030. - ../../src/include/atmsap.h load.h connect.h timers.h events.h \
  25031. - db.h packet.h lane_atm.h
  25032. -connect_bus.o: connect_bus.c ../../config.h ../../src/include/stdint.h \
  25033. - mem.h units.h lane.h dump.h ../../src/include/atm.h \
  25034. - ../../src/include/atmsap.h load.h connect.h timers.h events.h \
  25035. - lane_atm.h
  25036. -db.o: db.c ../../config.h ../../src/include/stdint.h mem.h units.h \
  25037. - lane.h dump.h ../../src/include/atm.h \
  25038. - ../../src/include/atmsap.h load.h connect.h timers.h events.h \
  25039. - db.h
  25040. -dump.o: dump.c ../../config.h ../../src/include/stdint.h \
  25041. - ../../src/include/atm.h ../../src/include/atmsap.h dump.h \
  25042. - units.h lane.h load.h
  25043. -events.o: events.c ../../config.h events.h units.h load.h lane.h dump.h \
  25044. - ../../src/include/atm.h ../../src/include/stdint.h \
  25045. - ../../src/include/atmsap.h mem.h timers.h connect.h
  25046. -lane.o: lane.c ../../config.h units.h load.h lane.h dump.h \
  25047. - ../../src/include/atm.h ../../src/include/stdint.h \
  25048. - ../../src/include/atmsap.h mem.h connect.h timers.h events.h
  25049. -lane_atm.o: lane_atm.c ../../config.h lane_atm.h units.h lane.h \
  25050. - connect.h timers.h load.h events.h ../../src/include/atmsap.h \
  25051. - ../../src/include/stdint.h dump.h ../../src/include/atm.h mem.h
  25052. -ldb.o: ldb.c ../../config.h ../../src/include/atm.h \
  25053. - ../../src/include/stdint.h lecs.h ldb.h mem_lecs.h
  25054. -lecs.o: lecs.c ../../config.h ../../src/include/stdint.h \
  25055. - ../../src/include/atm.h lecs_load.h ldb.h mem_lecs.h lecs.h \
  25056. - atm_lecs.h
  25057. -lecs_db.o: lecs_db.c ../../config.h lecs_load.h lecs_db.h
  25058. -lecs_load.o: lecs_load.c ../../config.h lecs_load.h lecs_db.h ldb.h \
  25059. - lecs.h
  25060. -load.o: load.c ../../config.h load.h units.h lane.h dump.h \
  25061. - ../../src/include/atm.h ../../src/include/stdint.h \
  25062. - ../../src/include/atmsap.h mem.h load_lex.h
  25063. -load_lex.o: load_lex.c ../../config.h ../../src/include/stdint.h \
  25064. - load_lex.h lane.h units.h load.h mem.h
  25065. -mem.o: mem.c ../../config.h mem.h units.h dump.h ../../src/include/atm.h \
  25066. - ../../src/include/stdint.h ../../src/include/atmsap.h lane.h \
  25067. - load.h
  25068. -mem_lecs.o: mem_lecs.c ../../config.h mem_lecs.h
  25069. -packet.o: packet.c ../../config.h ../../src/include/stdint.h mem.h \
  25070. - units.h lane.h dump.h ../../src/include/atm.h \
  25071. - ../../src/include/atmsap.h load.h connect.h timers.h events.h \
  25072. - db.h packet.h
  25073. -timers.o: timers.c ../../config.h timers.h units.h load.h lane.h dump.h \
  25074. - ../../src/include/atm.h ../../src/include/stdint.h \
  25075. - ../../src/include/atmsap.h mem.h
  25076. -units.o: units.c ../../config.h units.h mem.h lane.h load.h dump.h \
  25077. - ../../src/include/atm.h ../../src/include/stdint.h \
  25078. - ../../src/include/atmsap.h connect.h timers.h events.h \
  25079. - lane_atm.h
  25080. +DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
  25081. +
  25082. +-include $(DEP_FILES)
  25083. +
  25084. +mostlyclean-depend:
  25085. +
  25086. +clean-depend:
  25087. +
  25088. +distclean-depend:
  25089. + -rm -rf .deps
  25090. +
  25091. +maintainer-clean-depend:
  25092. +
  25093. +%.o: %.c
  25094. + @echo '$(COMPILE) -c $<'; \
  25095. + $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
  25096. + @-cp .deps/$(*F).pp .deps/$(*F).P; \
  25097. + tr ' ' '\012' < .deps/$(*F).pp \
  25098. + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
  25099. + >> .deps/$(*F).P; \
  25100. + rm .deps/$(*F).pp
  25101. +
  25102. +%.lo: %.c
  25103. + @echo '$(LTCOMPILE) -c $<'; \
  25104. + $(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
  25105. + @-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \
  25106. + < .deps/$(*F).pp > .deps/$(*F).P; \
  25107. + tr ' ' '\012' < .deps/$(*F).pp \
  25108. + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
  25109. + >> .deps/$(*F).P; \
  25110. + rm -f .deps/$(*F).pp
  25111. info-am:
  25112. info: info-am
  25113. dvi-am:
  25114. @@ -422,29 +399,29 @@
  25115. -rm -f config.cache config.log stamp-h stamp-h[0-9]*
  25116. maintainer-clean-generic:
  25117. - -test -z "lecs_dblload_lexl" || rm -f lecs_dbl load_lexl
  25118. + -test -z "lecs_dbcload_lexc" || rm -f lecs_dbc load_lexc
  25119. mostlyclean-am: mostlyclean-sbinPROGRAMS mostlyclean-compile \
  25120. - mostlyclean-libtool mostlyclean-tags \
  25121. + mostlyclean-libtool mostlyclean-tags mostlyclean-depend \
  25122. mostlyclean-generic
  25123. mostlyclean: mostlyclean-am
  25124. clean-am: clean-sbinPROGRAMS clean-compile clean-libtool clean-tags \
  25125. - clean-generic mostlyclean-am
  25126. + clean-depend clean-generic mostlyclean-am
  25127. clean: clean-am
  25128. distclean-am: distclean-sbinPROGRAMS distclean-compile \
  25129. - distclean-libtool distclean-tags distclean-generic \
  25130. - clean-am
  25131. + distclean-libtool distclean-tags distclean-depend \
  25132. + distclean-generic clean-am
  25133. -rm -f libtool
  25134. distclean: distclean-am
  25135. maintainer-clean-am: maintainer-clean-sbinPROGRAMS \
  25136. maintainer-clean-compile maintainer-clean-libtool \
  25137. - maintainer-clean-tags maintainer-clean-generic \
  25138. - distclean-am
  25139. + maintainer-clean-tags maintainer-clean-depend \
  25140. + maintainer-clean-generic distclean-am
  25141. @echo "This command is intended for maintainers to use;"
  25142. @echo "it deletes files that may require special tools to rebuild."
  25143. @@ -456,12 +433,14 @@
  25144. clean-compile maintainer-clean-compile mostlyclean-libtool \
  25145. distclean-libtool clean-libtool maintainer-clean-libtool install-man8 \
  25146. uninstall-man8 install-man uninstall-man tags mostlyclean-tags \
  25147. -distclean-tags clean-tags maintainer-clean-tags distdir info-am info \
  25148. -dvi-am dvi check check-am installcheck-am installcheck install-exec-am \
  25149. -install-exec install-data-am install-data install-am install \
  25150. -uninstall-am uninstall all-redirect all-am all installdirs \
  25151. -mostlyclean-generic distclean-generic clean-generic \
  25152. -maintainer-clean-generic clean mostlyclean distclean maintainer-clean
  25153. +distclean-tags clean-tags maintainer-clean-tags distdir \
  25154. +mostlyclean-depend distclean-depend clean-depend \
  25155. +maintainer-clean-depend info-am info dvi-am dvi check check-am \
  25156. +installcheck-am installcheck install-exec-am install-exec \
  25157. +install-data-am install-data install-am install uninstall-am uninstall \
  25158. +all-redirect all-am all installdirs mostlyclean-generic \
  25159. +distclean-generic clean-generic maintainer-clean-generic clean \
  25160. +mostlyclean distclean maintainer-clean
  25161. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  25162. Index: linux-atm-2.4.1/src/mpoad/Makefile.in
  25163. ===================================================================
  25164. --- linux-atm-2.4.1.orig/src/mpoad/Makefile.in 2007-10-20 19:19:11.310273016 +0200
  25165. +++ linux-atm-2.4.1/src/mpoad/Makefile.in 2007-10-20 19:19:12.346332055 +0200
  25166. @@ -1,4 +1,4 @@
  25167. -# Makefile.in generated automatically by automake 1.4-p5 from Makefile.am
  25168. +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
  25169. # Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
  25170. # This Makefile.in is free software; the Free Software Foundation
  25171. @@ -89,9 +89,7 @@
  25172. LDADD = $(top_builddir)/src/lib/libatm.la
  25173. -mpcd_SOURCES = get_vars.c get_vars.h io.c io.h k_interf.c k_interf.h main.c \
  25174. - p_factory.c p_recogn.c id_list.c tag_list.c \
  25175. - poll2select.c poll2select.h lecs.c lecs.h packets.h
  25176. +mpcd_SOURCES = get_vars.c get_vars.h io.c io.h k_interf.c k_interf.h main.c p_factory.c p_recogn.c id_list.c tag_list.c poll2select.c poll2select.h lecs.c lecs.h packets.h
  25177. man_MANS = mpcd.8
  25178. @@ -128,8 +126,11 @@
  25179. DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
  25180. -TAR = gtar
  25181. +TAR = tar
  25182. GZIP_ENV = --best
  25183. +DEP_FILES = .deps/get_vars.P .deps/id_list.P .deps/io.P \
  25184. +.deps/k_interf.P .deps/lecs.P .deps/main.P .deps/p_factory.P \
  25185. +.deps/p_recogn.P .deps/poll2select.P .deps/tag_list.P
  25186. SOURCES = $(mpcd_SOURCES)
  25187. OBJECTS = $(mpcd_OBJECTS)
  25188. @@ -137,9 +138,9 @@
  25189. .SUFFIXES:
  25190. .SUFFIXES: .S .c .lo .o .obj .s
  25191. $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
  25192. - cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps src/mpoad/Makefile
  25193. + cd $(top_srcdir) && $(AUTOMAKE) --gnu src/mpoad/Makefile
  25194. -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  25195. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
  25196. cd $(top_builddir) \
  25197. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
  25198. @@ -169,9 +170,6 @@
  25199. rm -f $(DESTDIR)$(sbindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
  25200. done
  25201. -.c.o:
  25202. - $(COMPILE) -c $<
  25203. -
  25204. # FIXME: We should only use cygpath when building on Windows,
  25205. # and only if it is available.
  25206. .c.obj:
  25207. @@ -194,9 +192,6 @@
  25208. maintainer-clean-compile:
  25209. -.c.lo:
  25210. - $(LIBTOOL) --mode=compile $(COMPILE) -c $<
  25211. -
  25212. .s.lo:
  25213. $(LIBTOOL) --mode=compile $(COMPILE) -c $<
  25214. @@ -274,7 +269,7 @@
  25215. awk ' { files[$$0] = 1; } \
  25216. END { for (i in files) print i; }'`; \
  25217. test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
  25218. - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
  25219. + || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags $$unique $(LISP))
  25220. mostlyclean-tags:
  25221. @@ -290,6 +285,11 @@
  25222. subdir = src/mpoad
  25223. distdir: $(DISTFILES)
  25224. + here=`cd $(top_builddir) && pwd`; \
  25225. + top_distdir=`cd $(top_distdir) && pwd`; \
  25226. + distdir=`cd $(distdir) && pwd`; \
  25227. + cd $(top_srcdir) \
  25228. + && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu src/mpoad/Makefile
  25229. @for file in $(DISTFILES); do \
  25230. d=$(srcdir); \
  25231. if test -d $$d/$$file; then \
  25232. @@ -300,29 +300,38 @@
  25233. || cp -p $$d/$$file $(distdir)/$$file || :; \
  25234. fi; \
  25235. done
  25236. -get_vars.o: get_vars.c ../../config.h ../../src/include/stdint.h \
  25237. - ../../src/include/atm.h packets.h get_vars.h io.h
  25238. -id_list.o: id_list.c ../../config.h ../../src/include/atm.h \
  25239. - ../../src/include/stdint.h packets.h
  25240. -io.o: io.c ../../config.h ../../src/include/atm.h \
  25241. - ../../src/include/stdint.h packets.h k_interf.h io.h get_vars.h \
  25242. - poll2select.h
  25243. -k_interf.o: k_interf.c ../../config.h ../../src/include/stdint.h \
  25244. - ../../src/include/atm.h k_interf.h packets.h io.h get_vars.h
  25245. -lecs.o: lecs.c ../../config.h ../../src/include/stdint.h \
  25246. - ../../src/include/atm.h ../../src/include/atmsap.h lecs.h \
  25247. - k_interf.h
  25248. -main.o: main.c ../../config.h ../../src/include/atm.h \
  25249. - ../../src/include/stdint.h packets.h io.h k_interf.h get_vars.h \
  25250. - lecs.h
  25251. -p_factory.o: p_factory.c ../../config.h ../../src/include/stdint.h \
  25252. - ../../src/include/atm.h packets.h get_vars.h io.h
  25253. -p_recogn.o: p_recogn.c ../../config.h ../../src/include/atm.h \
  25254. - ../../src/include/stdint.h io.h k_interf.h packets.h
  25255. -poll2select.o: poll2select.c ../../config.h
  25256. -tag_list.o: tag_list.c ../../config.h packets.h ../../src/include/atm.h \
  25257. - ../../src/include/stdint.h
  25258. +DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
  25259. +
  25260. +-include $(DEP_FILES)
  25261. +
  25262. +mostlyclean-depend:
  25263. +
  25264. +clean-depend:
  25265. +
  25266. +distclean-depend:
  25267. + -rm -rf .deps
  25268. +
  25269. +maintainer-clean-depend:
  25270. +
  25271. +%.o: %.c
  25272. + @echo '$(COMPILE) -c $<'; \
  25273. + $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
  25274. + @-cp .deps/$(*F).pp .deps/$(*F).P; \
  25275. + tr ' ' '\012' < .deps/$(*F).pp \
  25276. + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
  25277. + >> .deps/$(*F).P; \
  25278. + rm .deps/$(*F).pp
  25279. +
  25280. +%.lo: %.c
  25281. + @echo '$(LTCOMPILE) -c $<'; \
  25282. + $(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
  25283. + @-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \
  25284. + < .deps/$(*F).pp > .deps/$(*F).P; \
  25285. + tr ' ' '\012' < .deps/$(*F).pp \
  25286. + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
  25287. + >> .deps/$(*F).P; \
  25288. + rm -f .deps/$(*F).pp
  25289. info-am:
  25290. info: info-am
  25291. dvi-am:
  25292. @@ -360,27 +369,27 @@
  25293. maintainer-clean-generic:
  25294. mostlyclean-am: mostlyclean-sbinPROGRAMS mostlyclean-compile \
  25295. - mostlyclean-libtool mostlyclean-tags \
  25296. + mostlyclean-libtool mostlyclean-tags mostlyclean-depend \
  25297. mostlyclean-generic
  25298. mostlyclean: mostlyclean-am
  25299. clean-am: clean-sbinPROGRAMS clean-compile clean-libtool clean-tags \
  25300. - clean-generic mostlyclean-am
  25301. + clean-depend clean-generic mostlyclean-am
  25302. clean: clean-am
  25303. distclean-am: distclean-sbinPROGRAMS distclean-compile \
  25304. - distclean-libtool distclean-tags distclean-generic \
  25305. - clean-am
  25306. + distclean-libtool distclean-tags distclean-depend \
  25307. + distclean-generic clean-am
  25308. -rm -f libtool
  25309. distclean: distclean-am
  25310. maintainer-clean-am: maintainer-clean-sbinPROGRAMS \
  25311. maintainer-clean-compile maintainer-clean-libtool \
  25312. - maintainer-clean-tags maintainer-clean-generic \
  25313. - distclean-am
  25314. + maintainer-clean-tags maintainer-clean-depend \
  25315. + maintainer-clean-generic distclean-am
  25316. @echo "This command is intended for maintainers to use;"
  25317. @echo "it deletes files that may require special tools to rebuild."
  25318. @@ -392,12 +401,14 @@
  25319. clean-compile maintainer-clean-compile mostlyclean-libtool \
  25320. distclean-libtool clean-libtool maintainer-clean-libtool install-man8 \
  25321. uninstall-man8 install-man uninstall-man tags mostlyclean-tags \
  25322. -distclean-tags clean-tags maintainer-clean-tags distdir info-am info \
  25323. -dvi-am dvi check check-am installcheck-am installcheck install-exec-am \
  25324. -install-exec install-data-am install-data install-am install \
  25325. -uninstall-am uninstall all-redirect all-am all installdirs \
  25326. -mostlyclean-generic distclean-generic clean-generic \
  25327. -maintainer-clean-generic clean mostlyclean distclean maintainer-clean
  25328. +distclean-tags clean-tags maintainer-clean-tags distdir \
  25329. +mostlyclean-depend distclean-depend clean-depend \
  25330. +maintainer-clean-depend info-am info dvi-am dvi check check-am \
  25331. +installcheck-am installcheck install-exec-am install-exec \
  25332. +install-data-am install-data install-am install uninstall-am uninstall \
  25333. +all-redirect all-am all installdirs mostlyclean-generic \
  25334. +distclean-generic clean-generic maintainer-clean-generic clean \
  25335. +mostlyclean distclean maintainer-clean
  25336. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  25337. Index: linux-atm-2.4.1/src/mpoad/p_factory.c
  25338. ===================================================================
  25339. --- linux-atm-2.4.1.orig/src/mpoad/p_factory.c 2007-10-20 19:19:11.318273468 +0200
  25340. +++ linux-atm-2.4.1/src/mpoad/p_factory.c 2007-10-20 19:19:12.350332286 +0200
  25341. @@ -34,7 +34,7 @@
  25342. while( count > 1 ) {
  25343. /* This is the inner loop */
  25344. - sum += * ((uint16_t *) addr)++;
  25345. + sum += * ((uint16_t *) addr); addr += sizeof(uint16_t);
  25346. count -= 2;
  25347. }
  25348. Index: linux-atm-2.4.1/src/switch/Makefile.in
  25349. ===================================================================
  25350. --- linux-atm-2.4.1.orig/src/switch/Makefile.in 2007-10-20 19:19:11.322273697 +0200
  25351. +++ linux-atm-2.4.1/src/switch/Makefile.in 2007-10-20 19:19:12.358332737 +0200
  25352. @@ -1,4 +1,4 @@
  25353. -# Makefile.in generated automatically by automake 1.4-p5 from Makefile.am
  25354. +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
  25355. # Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
  25356. # This Makefile.in is free software; the Free Software Foundation
  25357. @@ -92,11 +92,9 @@
  25358. swc_SOURCES = swc.c swc.h
  25359. swc_LDADD = $(top_builddir)/src/lib/libatm.la
  25360. -swc_DEPENDENCIES = $(swc_LDADD) $(top_builddir)/src/include/atm.h \
  25361. - $(top_builddir)/src/include/atmd.h
  25362. +swc_DEPENDENCIES = $(swc_LDADD) $(top_builddir)/src/include/atm.h $(top_builddir)/src/include/atmd.h
  25363. -libsw_a_SOURCES = control.c dispatch.c dispatch.h proto.c proto.h relay.c \
  25364. - route.c route.h sig.c sig.h cfg_y.y cfg_l.l fab.h
  25365. +libsw_a_SOURCES = control.c dispatch.c dispatch.h proto.c proto.h relay.c route.c route.h sig.c sig.h cfg_y.y cfg_l.l fab.h
  25366. EXTRA_DIST = cfg_y.h README
  25367. @@ -132,8 +130,11 @@
  25368. DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
  25369. -TAR = gtar
  25370. +TAR = tar
  25371. GZIP_ENV = --best
  25372. +DEP_FILES = .deps/cfg_l.P .deps/cfg_y.P .deps/control.P \
  25373. +.deps/dispatch.P .deps/proto.P .deps/relay.P .deps/route.P .deps/sig.P \
  25374. +.deps/swc.P
  25375. SOURCES = $(libsw_a_SOURCES) $(swc_SOURCES)
  25376. OBJECTS = $(libsw_a_OBJECTS) $(swc_OBJECTS)
  25377. @@ -141,9 +142,9 @@
  25378. .SUFFIXES:
  25379. .SUFFIXES: .S .c .l .lo .o .obj .s .y
  25380. $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
  25381. - cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps src/switch/Makefile
  25382. + cd $(top_srcdir) && $(AUTOMAKE) --gnu src/switch/Makefile
  25383. -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  25384. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
  25385. cd $(top_builddir) \
  25386. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
  25387. @@ -157,9 +158,6 @@
  25388. maintainer-clean-noinstLIBRARIES:
  25389. -.c.o:
  25390. - $(COMPILE) -c $<
  25391. -
  25392. # FIXME: We should only use cygpath when building on Windows,
  25393. # and only if it is available.
  25394. .c.obj:
  25395. @@ -182,9 +180,6 @@
  25396. maintainer-clean-compile:
  25397. -.c.lo:
  25398. - $(LIBTOOL) --mode=compile $(COMPILE) -c $<
  25399. -
  25400. .s.lo:
  25401. $(LIBTOOL) --mode=compile $(COMPILE) -c $<
  25402. @@ -306,7 +301,7 @@
  25403. awk ' { files[$$0] = 1; } \
  25404. END { for (i in files) print i; }'`; \
  25405. test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
  25406. - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
  25407. + || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags $$unique $(LISP))
  25408. mostlyclean-tags:
  25409. @@ -322,6 +317,11 @@
  25410. subdir = src/switch
  25411. distdir: $(DISTFILES)
  25412. + here=`cd $(top_builddir) && pwd`; \
  25413. + top_distdir=`cd $(top_distdir) && pwd`; \
  25414. + distdir=`cd $(distdir) && pwd`; \
  25415. + cd $(top_srcdir) \
  25416. + && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu src/switch/Makefile
  25417. @for file in $(DISTFILES); do \
  25418. d=$(srcdir); \
  25419. if test -d $$d/$$file; then \
  25420. @@ -342,32 +342,38 @@
  25421. || exit 1; \
  25422. fi; \
  25423. done
  25424. -cfg_l.o: cfg_l.c ../../config.h ../../src/include/atm.h \
  25425. - ../../src/include/stdint.h cfg_y.h
  25426. -cfg_y.o: cfg_y.c ../../config.h ../../src/include/atm.h \
  25427. - ../../src/include/stdint.h fab.h proto.h \
  25428. - ../../src/include/atmsap.h ../../src/include/atmd.h sig.h \
  25429. - route.h swc.h
  25430. -control.o: control.c ../../config.h ../../src/include/atm.h \
  25431. - ../../src/include/stdint.h ../../src/include/atmd.h fab.h \
  25432. - proto.h ../../src/include/atmsap.h sig.h dispatch.h swc.h
  25433. -dispatch.o: dispatch.c ../../config.h ../../src/include/atmd.h \
  25434. - ../../src/include/stdint.h ../../src/include/atm.h dispatch.h
  25435. -proto.o: proto.c ../../config.h ../../src/include/atm.h \
  25436. - ../../src/include/stdint.h ../../src/include/atmd.h sig.h fab.h \
  25437. - proto.h ../../src/include/atmsap.h
  25438. -relay.o: relay.c ../../config.h ../../src/include/atm.h \
  25439. - ../../src/include/stdint.h ../../src/include/atmd.h fab.h \
  25440. - proto.h ../../src/include/atmsap.h sig.h dispatch.h route.h
  25441. -route.o: route.c ../../config.h ../../src/include/atm.h \
  25442. - ../../src/include/stdint.h ../../src/include/atmd.h route.h \
  25443. - sig.h
  25444. -sig.o: sig.c ../../config.h ../../src/include/stdint.h \
  25445. - ../../src/include/atmd.h ../../src/include/atm.h dispatch.h \
  25446. - proto.h ../../src/include/atmsap.h sig.h route.h fab.h
  25447. -swc.o: swc.c ../../config.h ../../src/include/atm.h \
  25448. - ../../src/include/stdint.h ../../src/include/atmd.h swc.h
  25449. +DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
  25450. +
  25451. +-include $(DEP_FILES)
  25452. +
  25453. +mostlyclean-depend:
  25454. +
  25455. +clean-depend:
  25456. +
  25457. +distclean-depend:
  25458. + -rm -rf .deps
  25459. +
  25460. +maintainer-clean-depend:
  25461. +
  25462. +%.o: %.c
  25463. + @echo '$(COMPILE) -c $<'; \
  25464. + $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
  25465. + @-cp .deps/$(*F).pp .deps/$(*F).P; \
  25466. + tr ' ' '\012' < .deps/$(*F).pp \
  25467. + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
  25468. + >> .deps/$(*F).P; \
  25469. + rm .deps/$(*F).pp
  25470. +
  25471. +%.lo: %.c
  25472. + @echo '$(LTCOMPILE) -c $<'; \
  25473. + $(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
  25474. + @-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \
  25475. + < .deps/$(*F).pp > .deps/$(*F).P; \
  25476. + tr ' ' '\012' < .deps/$(*F).pp \
  25477. + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
  25478. + >> .deps/$(*F).P; \
  25479. + rm -f .deps/$(*F).pp
  25480. info-am:
  25481. info: info-recursive
  25482. dvi-am:
  25483. @@ -404,22 +410,23 @@
  25484. -rm -f config.cache config.log stamp-h stamp-h[0-9]*
  25485. maintainer-clean-generic:
  25486. - -test -z "cfg_llcfg_yhcfg_yc" || rm -f cfg_ll cfg_yh cfg_yc
  25487. + -test -z "cfg_lccfg_yhcfg_yc" || rm -f cfg_lc cfg_yh cfg_yc
  25488. mostlyclean-am: mostlyclean-noinstLIBRARIES mostlyclean-compile \
  25489. mostlyclean-libtool mostlyclean-noinstPROGRAMS \
  25490. - mostlyclean-tags mostlyclean-generic
  25491. + mostlyclean-tags mostlyclean-depend mostlyclean-generic
  25492. mostlyclean: mostlyclean-recursive
  25493. clean-am: clean-noinstLIBRARIES clean-compile clean-libtool \
  25494. - clean-noinstPROGRAMS clean-tags clean-generic \
  25495. - mostlyclean-am
  25496. + clean-noinstPROGRAMS clean-tags clean-depend \
  25497. + clean-generic mostlyclean-am
  25498. clean: clean-recursive
  25499. distclean-am: distclean-noinstLIBRARIES distclean-compile \
  25500. distclean-libtool distclean-noinstPROGRAMS \
  25501. - distclean-tags distclean-generic clean-am
  25502. + distclean-tags distclean-depend distclean-generic \
  25503. + clean-am
  25504. -rm -f libtool
  25505. distclean: distclean-recursive
  25506. @@ -427,7 +434,8 @@
  25507. maintainer-clean-am: maintainer-clean-noinstLIBRARIES \
  25508. maintainer-clean-compile maintainer-clean-libtool \
  25509. maintainer-clean-noinstPROGRAMS maintainer-clean-tags \
  25510. - maintainer-clean-generic distclean-am
  25511. + maintainer-clean-depend maintainer-clean-generic \
  25512. + distclean-am
  25513. @echo "This command is intended for maintainers to use;"
  25514. @echo "it deletes files that may require special tools to rebuild."
  25515. @@ -445,12 +453,14 @@
  25516. all-recursive check-recursive installcheck-recursive info-recursive \
  25517. dvi-recursive mostlyclean-recursive distclean-recursive clean-recursive \
  25518. maintainer-clean-recursive tags tags-recursive mostlyclean-tags \
  25519. -distclean-tags clean-tags maintainer-clean-tags distdir info-am info \
  25520. -dvi-am dvi check check-am installcheck-am installcheck install-exec-am \
  25521. -install-exec install-data-am install-data install-am install \
  25522. -uninstall-am uninstall all-redirect all-am all installdirs-am \
  25523. -installdirs mostlyclean-generic distclean-generic clean-generic \
  25524. -maintainer-clean-generic clean mostlyclean distclean maintainer-clean
  25525. +distclean-tags clean-tags maintainer-clean-tags distdir \
  25526. +mostlyclean-depend distclean-depend clean-depend \
  25527. +maintainer-clean-depend info-am info dvi-am dvi check check-am \
  25528. +installcheck-am installcheck install-exec-am install-exec \
  25529. +install-data-am install-data install-am install uninstall-am uninstall \
  25530. +all-redirect all-am all installdirs-am installdirs mostlyclean-generic \
  25531. +distclean-generic clean-generic maintainer-clean-generic clean \
  25532. +mostlyclean distclean maintainer-clean
  25533. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  25534. Index: linux-atm-2.4.1/src/switch/cfg_y.c
  25535. ===================================================================
  25536. --- linux-atm-2.4.1.orig/src/switch/cfg_y.c 2007-10-20 19:19:11.330274156 +0200
  25537. +++ linux-atm-2.4.1/src/switch/cfg_y.c 2007-10-20 19:19:12.366333195 +0200
  25538. @@ -1,21 +1,87 @@
  25539. +/* A Bison parser, made by GNU Bison 1.875d. */
  25540. -/* A Bison parser, made from cfg_y.y
  25541. - by GNU Bison version 1.28 */
  25542. +/* Skeleton parser for Yacc-like parsing with Bison,
  25543. + Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
  25544. -#define YYBISON 1 /* Identify Bison output. */
  25545. + This program is free software; you can redistribute it and/or modify
  25546. + it under the terms of the GNU General Public License as published by
  25547. + the Free Software Foundation; either version 2, or (at your option)
  25548. + any later version.
  25549. +
  25550. + This program is distributed in the hope that it will be useful,
  25551. + but WITHOUT ANY WARRANTY; without even the implied warranty of
  25552. + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  25553. + GNU General Public License for more details.
  25554. +
  25555. + You should have received a copy of the GNU General Public License
  25556. + along with this program; if not, write to the Free Software
  25557. + Foundation, Inc., 59 Temple Place - Suite 330,
  25558. + Boston, MA 02111-1307, USA. */
  25559. +
  25560. +/* As a special exception, when this file is copied by Bison into a
  25561. + Bison output file, you may use that output file without restriction.
  25562. + This special exception was added by the Free Software Foundation
  25563. + in version 1.24 of Bison. */
  25564. +
  25565. +/* Written by Richard Stallman by simplifying the original so called
  25566. + ``semantic'' parser. */
  25567. +
  25568. +/* All symbols defined below should begin with yy or YY, to avoid
  25569. + infringing on user name space. This should be done even for local
  25570. + variables, as they might otherwise be expanded by user macros.
  25571. + There are some unavoidable exceptions within include files to
  25572. + define necessary library symbols; they are noted "INFRINGES ON
  25573. + USER NAME SPACE" below. */
  25574. +
  25575. +/* Identify Bison output. */
  25576. +#define YYBISON 1
  25577. +
  25578. +/* Skeleton name. */
  25579. +#define YYSKELETON_NAME "yacc.c"
  25580. +
  25581. +/* Pure parsers. */
  25582. +#define YYPURE 0
  25583. +
  25584. +/* Using locations. */
  25585. +#define YYLSP_NEEDED 0
  25586. -#define TOK_COMMAND 257
  25587. -#define TOK_VPCI 258
  25588. -#define TOK_ITF 259
  25589. -#define TOK_DEFAULT 260
  25590. -#define TOK_ROUTE 261
  25591. -#define TOK_STR 262
  25592. -#define TOK_SOCKET 263
  25593. -#define TOK_OPTION 264
  25594. -#define TOK_CONTROL 265
  25595. -#define TOK_NUM 266
  25596. -#define TOK_PVC 267
  25597. +
  25598. +/* Tokens. */
  25599. +#ifndef YYTOKENTYPE
  25600. +# define YYTOKENTYPE
  25601. + /* Put the tokens into the symbol table, so that GDB and other debuggers
  25602. + know about them. */
  25603. + enum yytokentype {
  25604. + TOK_COMMAND = 258,
  25605. + TOK_VPCI = 259,
  25606. + TOK_ITF = 260,
  25607. + TOK_DEFAULT = 261,
  25608. + TOK_ROUTE = 262,
  25609. + TOK_STR = 263,
  25610. + TOK_SOCKET = 264,
  25611. + TOK_OPTION = 265,
  25612. + TOK_CONTROL = 266,
  25613. + TOK_NUM = 267,
  25614. + TOK_PVC = 268
  25615. + };
  25616. +#endif
  25617. +#define TOK_COMMAND 258
  25618. +#define TOK_VPCI 259
  25619. +#define TOK_ITF 260
  25620. +#define TOK_DEFAULT 261
  25621. +#define TOK_ROUTE 262
  25622. +#define TOK_STR 263
  25623. +#define TOK_SOCKET 264
  25624. +#define TOK_OPTION 265
  25625. +#define TOK_CONTROL 266
  25626. +#define TOK_NUM 267
  25627. +#define TOK_PVC 268
  25628. +
  25629. +
  25630. +
  25631. +
  25632. +/* Copy the first part of user declarations. */
  25633. #line 1 "cfg_y.y"
  25634. /* cfg.y - switch configuration language */
  25635. @@ -29,6 +95,7 @@
  25636. #include <string.h>
  25637. #include <errno.h>
  25638. #include <limits.h>
  25639. +#include <stdlib.h>
  25640. #include "atm.h"
  25641. @@ -38,436 +105,743 @@
  25642. #include "swc.h"
  25643. +extern void yyerror(const char *s);
  25644. +
  25645. static int itf;
  25646. static SIGNALING_ENTITY *sig;
  25647. -#line 27 "cfg_y.y"
  25648. -typedef union {
  25649. +
  25650. +/* Enabling traces. */
  25651. +#ifndef YYDEBUG
  25652. +# define YYDEBUG 0
  25653. +#endif
  25654. +
  25655. +/* Enabling verbose error messages. */
  25656. +#ifdef YYERROR_VERBOSE
  25657. +# undef YYERROR_VERBOSE
  25658. +# define YYERROR_VERBOSE 1
  25659. +#else
  25660. +# define YYERROR_VERBOSE 0
  25661. +#endif
  25662. +
  25663. +#if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
  25664. +#line 30 "cfg_y.y"
  25665. +typedef union YYSTYPE {
  25666. int num;
  25667. char *str;
  25668. struct sockaddr_atmpvc pvc;
  25669. } YYSTYPE;
  25670. -#include <stdio.h>
  25671. -
  25672. -#ifndef __cplusplus
  25673. -#ifndef __STDC__
  25674. -#define const
  25675. -#endif
  25676. +/* Line 191 of yacc.c. */
  25677. +#line 137 "y.tab.c"
  25678. +# define yystype YYSTYPE /* obsolescent; will be withdrawn */
  25679. +# define YYSTYPE_IS_DECLARED 1
  25680. +# define YYSTYPE_IS_TRIVIAL 1
  25681. #endif
  25682. -#define YYFINAL 31
  25683. -#define YYFLAG -32768
  25684. -#define YYNTBASE 16
  25685. -
  25686. -#define YYTRANSLATE(x) ((unsigned)(x) <= 267 ? yytranslate[x] : 27)
  25687. -
  25688. -static const char yytranslate[] = { 0,
  25689. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25690. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25691. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25692. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25693. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25694. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25695. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25696. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25697. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25698. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25699. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25700. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25701. - 2, 2, 14, 2, 15, 2, 2, 2, 2, 2,
  25702. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25703. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25704. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25705. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25706. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25707. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25708. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25709. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25710. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25711. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25712. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25713. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25714. - 2, 2, 2, 2, 2, 1, 3, 4, 5, 6,
  25715. - 7, 8, 9, 10, 11, 12, 13
  25716. -};
  25717. -
  25718. -#if YYDEBUG != 0
  25719. -static const short yyprhs[] = { 0,
  25720. - 0, 1, 4, 7, 10, 13, 14, 15, 25, 26,
  25721. - 29, 30, 33, 34, 36, 37, 40, 41, 45
  25722. -};
  25723. +/* Copy the second part of user declarations. */
  25724. +
  25725. +
  25726. +/* Line 214 of yacc.c. */
  25727. +#line 149 "y.tab.c"
  25728. +
  25729. +#if ! defined (yyoverflow) || YYERROR_VERBOSE
  25730. +
  25731. +# ifndef YYFREE
  25732. +# define YYFREE free
  25733. +# endif
  25734. +# ifndef YYMALLOC
  25735. +# define YYMALLOC malloc
  25736. +# endif
  25737. +
  25738. +/* The parser invokes alloca or malloc; define the necessary symbols. */
  25739. +
  25740. +# ifdef YYSTACK_USE_ALLOCA
  25741. +# if YYSTACK_USE_ALLOCA
  25742. +# define YYSTACK_ALLOC alloca
  25743. +# endif
  25744. +# else
  25745. +# if defined (alloca) || defined (_ALLOCA_H)
  25746. +# define YYSTACK_ALLOC alloca
  25747. +# else
  25748. +# ifdef __GNUC__
  25749. +# define YYSTACK_ALLOC __builtin_alloca
  25750. +# endif
  25751. +# endif
  25752. +# endif
  25753. +
  25754. +# ifdef YYSTACK_ALLOC
  25755. + /* Pacify GCC's `empty if-body' warning. */
  25756. +# define YYSTACK_FREE(Ptr) do { /* empty */; } while (0)
  25757. +# else
  25758. +# if defined (__STDC__) || defined (__cplusplus)
  25759. +# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
  25760. +# define YYSIZE_T size_t
  25761. +# endif
  25762. +# define YYSTACK_ALLOC YYMALLOC
  25763. +# define YYSTACK_FREE YYFREE
  25764. +# endif
  25765. +#endif /* ! defined (yyoverflow) || YYERROR_VERBOSE */
  25766. +
  25767. +
  25768. +#if (! defined (yyoverflow) \
  25769. + && (! defined (__cplusplus) \
  25770. + || (defined (YYSTYPE_IS_TRIVIAL) && YYSTYPE_IS_TRIVIAL)))
  25771. -static const short yyrhs[] = { -1,
  25772. - 17, 16, 0, 18, 16, 0, 11, 16, 0, 10,
  25773. - 8, 0, 0, 0, 21, 9, 14, 19, 22, 20,
  25774. - 23, 24, 15, 0, 0, 3, 8, 0, 0, 5,
  25775. - 12, 0, 0, 13, 0, 0, 26, 24, 0, 0,
  25776. - 6, 25, 24, 0, 7, 0
  25777. -};
  25778. +/* A type that is properly aligned for any stack member. */
  25779. +union yyalloc
  25780. +{
  25781. + short int yyss;
  25782. + YYSTYPE yyvs;
  25783. + };
  25784. +
  25785. +/* The size of the maximum gap between one aligned stack and the next. */
  25786. +# define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1)
  25787. +
  25788. +/* The size of an array large to enough to hold all stacks, each with
  25789. + N elements. */
  25790. +# define YYSTACK_BYTES(N) \
  25791. + ((N) * (sizeof (short int) + sizeof (YYSTYPE)) \
  25792. + + YYSTACK_GAP_MAXIMUM)
  25793. +
  25794. +/* Copy COUNT objects from FROM to TO. The source and destination do
  25795. + not overlap. */
  25796. +# ifndef YYCOPY
  25797. +# if defined (__GNUC__) && 1 < __GNUC__
  25798. +# define YYCOPY(To, From, Count) \
  25799. + __builtin_memcpy (To, From, (Count) * sizeof (*(From)))
  25800. +# else
  25801. +# define YYCOPY(To, From, Count) \
  25802. + do \
  25803. + { \
  25804. + register YYSIZE_T yyi; \
  25805. + for (yyi = 0; yyi < (Count); yyi++) \
  25806. + (To)[yyi] = (From)[yyi]; \
  25807. + } \
  25808. + while (0)
  25809. +# endif
  25810. +# endif
  25811. +
  25812. +/* Relocate STACK from its old location to the new one. The
  25813. + local variables YYSIZE and YYSTACKSIZE give the old and new number of
  25814. + elements in the stack, and YYPTR gives the new location of the
  25815. + stack. Advance YYPTR to a properly aligned location for the next
  25816. + stack. */
  25817. +# define YYSTACK_RELOCATE(Stack) \
  25818. + do \
  25819. + { \
  25820. + YYSIZE_T yynewbytes; \
  25821. + YYCOPY (&yyptr->Stack, Stack, yysize); \
  25822. + Stack = &yyptr->Stack; \
  25823. + yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
  25824. + yyptr += yynewbytes / sizeof (*yyptr); \
  25825. + } \
  25826. + while (0)
  25827. #endif
  25828. -#if YYDEBUG != 0
  25829. -static const short yyrline[] = { 0,
  25830. - 43, 44, 45, 46, 52, 59, 65, 73, 76, 80,
  25831. - 87, 88, 94, 95, 101, 102, 103, 108, 110
  25832. -};
  25833. +#if defined (__STDC__) || defined (__cplusplus)
  25834. + typedef signed char yysigned_char;
  25835. +#else
  25836. + typedef short int yysigned_char;
  25837. #endif
  25838. +/* YYFINAL -- State number of the termination state. */
  25839. +#define YYFINAL 11
  25840. +/* YYLAST -- Last index in YYTABLE. */
  25841. +#define YYLAST 22
  25842. +
  25843. +/* YYNTOKENS -- Number of terminals. */
  25844. +#define YYNTOKENS 16
  25845. +/* YYNNTS -- Number of nonterminals. */
  25846. +#define YYNNTS 12
  25847. +/* YYNRULES -- Number of rules. */
  25848. +#define YYNRULES 20
  25849. +/* YYNRULES -- Number of states. */
  25850. +#define YYNSTATES 31
  25851. +
  25852. +/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */
  25853. +#define YYUNDEFTOK 2
  25854. +#define YYMAXUTOK 268
  25855. -#if YYDEBUG != 0 || defined (YYERROR_VERBOSE)
  25856. +#define YYTRANSLATE(YYX) \
  25857. + ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
  25858. -static const char * const yytname[] = { "$","error","$undefined.","TOK_COMMAND",
  25859. -"TOK_VPCI","TOK_ITF","TOK_DEFAULT","TOK_ROUTE","TOK_STR","TOK_SOCKET","TOK_OPTION",
  25860. -"TOK_CONTROL","TOK_NUM","TOK_PVC","'{'","'}'","all","option","sig","@1","@2",
  25861. -"opt_command","opt_itf","opt_via","routes","@3","route", NULL
  25862. +/* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */
  25863. +static const unsigned char yytranslate[] =
  25864. +{
  25865. + 0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25866. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25867. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25868. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25869. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25870. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25871. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25872. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25873. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25874. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25875. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25876. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25877. + 2, 2, 2, 14, 2, 15, 2, 2, 2, 2,
  25878. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25879. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25880. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25881. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25882. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25883. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25884. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25885. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25886. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25887. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25888. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25889. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25890. + 2, 2, 2, 2, 2, 2, 1, 2, 3, 4,
  25891. + 5, 6, 7, 8, 9, 10, 11, 12, 13
  25892. };
  25893. -#endif
  25894. -static const short yyr1[] = { 0,
  25895. - 16, 16, 16, 16, 17, 19, 20, 18, 21, 21,
  25896. - 22, 22, 23, 23, 24, 24, 25, 24, 26
  25897. +#if YYDEBUG
  25898. +/* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
  25899. + YYRHS. */
  25900. +static const unsigned char yyprhs[] =
  25901. +{
  25902. + 0, 0, 3, 4, 7, 10, 13, 16, 17, 18,
  25903. + 28, 29, 32, 33, 36, 37, 39, 40, 43, 44,
  25904. + 48
  25905. };
  25906. -static const short yyr2[] = { 0,
  25907. - 0, 2, 2, 2, 2, 0, 0, 9, 0, 2,
  25908. - 0, 2, 0, 1, 0, 2, 0, 3, 1
  25909. +/* YYRHS -- A `-1'-separated list of the rules' RHS. */
  25910. +static const yysigned_char yyrhs[] =
  25911. +{
  25912. + 17, 0, -1, -1, 18, 17, -1, 19, 17, -1,
  25913. + 11, 17, -1, 10, 8, -1, -1, -1, 22, 9,
  25914. + 14, 20, 23, 21, 24, 25, 15, -1, -1, 3,
  25915. + 8, -1, -1, 5, 12, -1, -1, 13, -1, -1,
  25916. + 27, 25, -1, -1, 6, 26, 25, -1, 7, -1
  25917. };
  25918. -static const short yydefact[] = { 1,
  25919. - 0, 0, 1, 1, 1, 0, 10, 5, 4, 2,
  25920. - 3, 0, 6, 11, 0, 7, 12, 13, 14, 15,
  25921. - 17, 19, 0, 15, 15, 8, 16, 18, 0, 0,
  25922. - 0
  25923. +/* YYRLINE[YYN] -- source line where rule number YYN was defined. */
  25924. +static const unsigned char yyrline[] =
  25925. +{
  25926. + 0, 46, 46, 47, 48, 49, 56, 64, 68, 63,
  25927. + 80, 83, 90, 91, 97, 98, 104, 105, 107, 106,
  25928. + 114
  25929. };
  25930. +#endif
  25931. -static const short yydefgoto[] = { 9,
  25932. - 4, 5, 14, 18, 6, 16, 20, 23, 25, 24
  25933. +#if YYDEBUG || YYERROR_VERBOSE
  25934. +/* YYTNME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
  25935. + First, the terminals, then, starting at YYNTOKENS, nonterminals. */
  25936. +static const char *const yytname[] =
  25937. +{
  25938. + "$end", "error", "$undefined", "TOK_COMMAND", "TOK_VPCI", "TOK_ITF",
  25939. + "TOK_DEFAULT", "TOK_ROUTE", "TOK_STR", "TOK_SOCKET", "TOK_OPTION",
  25940. + "TOK_CONTROL", "TOK_NUM", "TOK_PVC", "'{'", "'}'", "$accept", "all",
  25941. + "option", "sig", "@1", "@2", "opt_command", "opt_itf", "opt_via",
  25942. + "routes", "@3", "route", 0
  25943. };
  25944. +#endif
  25945. -static const short yypact[] = { -3,
  25946. - 3, 4, -3, -3, -3, 6,-32768,-32768,-32768,-32768,
  25947. --32768, -1,-32768, 9, 7,-32768,-32768, 8,-32768, -5,
  25948. --32768,-32768, 1, -5, -5,-32768,-32768,-32768, 17, 18,
  25949. --32768
  25950. +# ifdef YYPRINT
  25951. +/* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to
  25952. + token YYLEX-NUM. */
  25953. +static const unsigned short int yytoknum[] =
  25954. +{
  25955. + 0, 256, 257, 258, 259, 260, 261, 262, 263, 264,
  25956. + 265, 266, 267, 268, 123, 125
  25957. };
  25958. +# endif
  25959. -static const short yypgoto[] = { 5,
  25960. --32768,-32768,-32768,-32768,-32768,-32768,-32768, -21,-32768,-32768
  25961. +/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
  25962. +static const unsigned char yyr1[] =
  25963. +{
  25964. + 0, 16, 17, 17, 17, 17, 18, 20, 21, 19,
  25965. + 22, 22, 23, 23, 24, 24, 25, 25, 26, 25,
  25966. + 27
  25967. };
  25968. -
  25969. -#define YYLAST 21
  25970. -
  25971. -
  25972. -static const short yytable[] = { 1,
  25973. - 21, 22, 27, 28, 29, -9, 2, 3, 10, 11,
  25974. - 7, 8, 13, 15, 12, 26, 30, 31, 17, 0,
  25975. - 19
  25976. +/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */
  25977. +static const unsigned char yyr2[] =
  25978. +{
  25979. + 0, 2, 0, 2, 2, 2, 2, 0, 0, 9,
  25980. + 0, 2, 0, 2, 0, 1, 0, 2, 0, 3,
  25981. + 1
  25982. };
  25983. -static const short yycheck[] = { 3,
  25984. - 6, 7, 24, 25, 0, 9, 10, 11, 4, 5,
  25985. - 8, 8, 14, 5, 9, 15, 0, 0, 12, -1,
  25986. - 13
  25987. +/* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state
  25988. + STATE-NUM when YYTABLE doesn't specify something else to do. Zero
  25989. + means the default is an error. */
  25990. +static const unsigned char yydefact[] =
  25991. +{
  25992. + 2, 0, 0, 2, 0, 2, 2, 0, 11, 6,
  25993. + 5, 1, 3, 4, 0, 7, 12, 0, 8, 13,
  25994. + 14, 15, 16, 18, 20, 0, 16, 16, 9, 17,
  25995. + 19
  25996. };
  25997. -/* -*-C-*- Note some compilers choke on comments on `#line' lines. */
  25998. -#line 3 "/usr/lib/bison.simple"
  25999. -/* This file comes from bison-1.28. */
  26000. -/* Skeleton output parser for bison,
  26001. - Copyright (C) 1984, 1989, 1990 Free Software Foundation, Inc.
  26002. +/* YYDEFGOTO[NTERM-NUM]. */
  26003. +static const yysigned_char yydefgoto[] =
  26004. +{
  26005. + -1, 4, 5, 6, 16, 20, 7, 18, 22, 25,
  26006. + 27, 26
  26007. +};
  26008. - This program is free software; you can redistribute it and/or modify
  26009. - it under the terms of the GNU General Public License as published by
  26010. - the Free Software Foundation; either version 2, or (at your option)
  26011. - any later version.
  26012. +/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
  26013. + STATE-NUM. */
  26014. +#define YYPACT_NINF -16
  26015. +static const yysigned_char yypact[] =
  26016. +{
  26017. + -3, -6, 5, -3, 14, -3, -3, -4, -16, -16,
  26018. + -16, -16, -16, -16, 1, -16, 11, 6, -16, -16,
  26019. + 4, -16, 3, -16, -16, 7, 3, 3, -16, -16,
  26020. + -16
  26021. +};
  26022. - This program is distributed in the hope that it will be useful,
  26023. - but WITHOUT ANY WARRANTY; without even the implied warranty of
  26024. - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  26025. - GNU General Public License for more details.
  26026. +/* YYPGOTO[NTERM-NUM]. */
  26027. +static const yysigned_char yypgoto[] =
  26028. +{
  26029. + -16, -2, -16, -16, -16, -16, -16, -16, -16, -15,
  26030. + -16, -16
  26031. +};
  26032. - You should have received a copy of the GNU General Public License
  26033. - along with this program; if not, write to the Free Software
  26034. - Foundation, Inc., 59 Temple Place - Suite 330,
  26035. - Boston, MA 02111-1307, USA. */
  26036. +/* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If
  26037. + positive, shift that token. If negative, reduce the rule which
  26038. + number is the opposite. If zero, do what YYDEFACT says.
  26039. + If YYTABLE_NINF, syntax error. */
  26040. +#define YYTABLE_NINF -11
  26041. +static const yysigned_char yytable[] =
  26042. +{
  26043. + 1, 10, 8, 12, 13, 14, -10, 2, 3, 23,
  26044. + 24, 29, 30, 9, 11, 15, 17, 21, 19, 0,
  26045. + 0, 0, 28
  26046. +};
  26047. -/* As a special exception, when this file is copied by Bison into a
  26048. - Bison output file, you may use that output file without restriction.
  26049. - This special exception was added by the Free Software Foundation
  26050. - in version 1.24 of Bison. */
  26051. +static const yysigned_char yycheck[] =
  26052. +{
  26053. + 3, 3, 8, 5, 6, 9, 9, 10, 11, 6,
  26054. + 7, 26, 27, 8, 0, 14, 5, 13, 12, -1,
  26055. + -1, -1, 15
  26056. +};
  26057. -/* This is the parser code that is written into each bison parser
  26058. - when the %semantic_parser declaration is not specified in the grammar.
  26059. - It was written by Richard Stallman by simplifying the hairy parser
  26060. - used when %semantic_parser is specified. */
  26061. -
  26062. -#ifndef YYSTACK_USE_ALLOCA
  26063. -#ifdef alloca
  26064. -#define YYSTACK_USE_ALLOCA
  26065. -#else /* alloca not defined */
  26066. -#ifdef __GNUC__
  26067. -#define YYSTACK_USE_ALLOCA
  26068. -#define alloca __builtin_alloca
  26069. -#else /* not GNU C. */
  26070. -#if (!defined (__STDC__) && defined (sparc)) || defined (__sparc__) || defined (__sparc) || defined (__sgi) || (defined (__sun) && defined (__i386))
  26071. -#define YYSTACK_USE_ALLOCA
  26072. -#include <alloca.h>
  26073. -#else /* not sparc */
  26074. -/* We think this test detects Watcom and Microsoft C. */
  26075. -/* This used to test MSDOS, but that is a bad idea
  26076. - since that symbol is in the user namespace. */
  26077. -#if (defined (_MSDOS) || defined (_MSDOS_)) && !defined (__TURBOC__)
  26078. -#if 0 /* No need for malloc.h, which pollutes the namespace;
  26079. - instead, just don't use alloca. */
  26080. -#include <malloc.h>
  26081. -#endif
  26082. -#else /* not MSDOS, or __TURBOC__ */
  26083. -#if defined(_AIX)
  26084. -/* I don't know what this was needed for, but it pollutes the namespace.
  26085. - So I turned it off. rms, 2 May 1997. */
  26086. -/* #include <malloc.h> */
  26087. - #pragma alloca
  26088. -#define YYSTACK_USE_ALLOCA
  26089. -#else /* not MSDOS, or __TURBOC__, or _AIX */
  26090. -#if 0
  26091. -#ifdef __hpux /* [email protected] says this works for HPUX 9.05 and up,
  26092. - and on HPUX 10. Eventually we can turn this on. */
  26093. -#define YYSTACK_USE_ALLOCA
  26094. -#define alloca __builtin_alloca
  26095. -#endif /* __hpux */
  26096. -#endif
  26097. -#endif /* not _AIX */
  26098. -#endif /* not MSDOS, or __TURBOC__ */
  26099. -#endif /* not sparc */
  26100. -#endif /* not GNU C */
  26101. -#endif /* alloca not defined */
  26102. -#endif /* YYSTACK_USE_ALLOCA not defined */
  26103. +/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
  26104. + symbol of state STATE-NUM. */
  26105. +static const unsigned char yystos[] =
  26106. +{
  26107. + 0, 3, 10, 11, 17, 18, 19, 22, 8, 8,
  26108. + 17, 0, 17, 17, 9, 14, 20, 5, 23, 12,
  26109. + 21, 13, 24, 6, 7, 25, 27, 26, 15, 25,
  26110. + 25
  26111. +};
  26112. -#ifdef YYSTACK_USE_ALLOCA
  26113. -#define YYSTACK_ALLOC alloca
  26114. -#else
  26115. -#define YYSTACK_ALLOC malloc
  26116. +#if ! defined (YYSIZE_T) && defined (__SIZE_TYPE__)
  26117. +# define YYSIZE_T __SIZE_TYPE__
  26118. +#endif
  26119. +#if ! defined (YYSIZE_T) && defined (size_t)
  26120. +# define YYSIZE_T size_t
  26121. +#endif
  26122. +#if ! defined (YYSIZE_T)
  26123. +# if defined (__STDC__) || defined (__cplusplus)
  26124. +# include <stddef.h> /* INFRINGES ON USER NAME SPACE */
  26125. +# define YYSIZE_T size_t
  26126. +# endif
  26127. +#endif
  26128. +#if ! defined (YYSIZE_T)
  26129. +# define YYSIZE_T unsigned int
  26130. #endif
  26131. -
  26132. -/* Note: there must be only one dollar sign in this file.
  26133. - It is replaced by the list of actions, each action
  26134. - as one case of the switch. */
  26135. #define yyerrok (yyerrstatus = 0)
  26136. #define yyclearin (yychar = YYEMPTY)
  26137. -#define YYEMPTY -2
  26138. +#define YYEMPTY (-2)
  26139. #define YYEOF 0
  26140. +
  26141. #define YYACCEPT goto yyacceptlab
  26142. -#define YYABORT goto yyabortlab
  26143. -#define YYERROR goto yyerrlab1
  26144. -/* Like YYERROR except do call yyerror.
  26145. - This remains here temporarily to ease the
  26146. - transition to the new meaning of YYERROR, for GCC.
  26147. +#define YYABORT goto yyabortlab
  26148. +#define YYERROR goto yyerrorlab
  26149. +
  26150. +
  26151. +/* Like YYERROR except do call yyerror. This remains here temporarily
  26152. + to ease the transition to the new meaning of YYERROR, for GCC.
  26153. Once GCC version 2 has supplanted version 1, this can go. */
  26154. +
  26155. #define YYFAIL goto yyerrlab
  26156. +
  26157. #define YYRECOVERING() (!!yyerrstatus)
  26158. -#define YYBACKUP(token, value) \
  26159. +
  26160. +#define YYBACKUP(Token, Value) \
  26161. do \
  26162. if (yychar == YYEMPTY && yylen == 1) \
  26163. - { yychar = (token), yylval = (value); \
  26164. - yychar1 = YYTRANSLATE (yychar); \
  26165. + { \
  26166. + yychar = (Token); \
  26167. + yylval = (Value); \
  26168. + yytoken = YYTRANSLATE (yychar); \
  26169. YYPOPSTACK; \
  26170. goto yybackup; \
  26171. } \
  26172. else \
  26173. - { yyerror ("syntax error: cannot back up"); YYERROR; } \
  26174. + { \
  26175. + yyerror ("syntax error: cannot back up");\
  26176. + YYERROR; \
  26177. + } \
  26178. while (0)
  26179. #define YYTERROR 1
  26180. #define YYERRCODE 256
  26181. -#ifndef YYPURE
  26182. -#define YYLEX yylex()
  26183. -#endif
  26184. +/* YYLLOC_DEFAULT -- Compute the default location (before the actions
  26185. + are run). */
  26186. -#ifdef YYPURE
  26187. -#ifdef YYLSP_NEEDED
  26188. -#ifdef YYLEX_PARAM
  26189. -#define YYLEX yylex(&yylval, &yylloc, YYLEX_PARAM)
  26190. -#else
  26191. -#define YYLEX yylex(&yylval, &yylloc)
  26192. +#ifndef YYLLOC_DEFAULT
  26193. +# define YYLLOC_DEFAULT(Current, Rhs, N) \
  26194. + ((Current).first_line = (Rhs)[1].first_line, \
  26195. + (Current).first_column = (Rhs)[1].first_column, \
  26196. + (Current).last_line = (Rhs)[N].last_line, \
  26197. + (Current).last_column = (Rhs)[N].last_column)
  26198. #endif
  26199. -#else /* not YYLSP_NEEDED */
  26200. +
  26201. +/* YYLEX -- calling `yylex' with the right arguments. */
  26202. +
  26203. #ifdef YYLEX_PARAM
  26204. -#define YYLEX yylex(&yylval, YYLEX_PARAM)
  26205. +# define YYLEX yylex (YYLEX_PARAM)
  26206. #else
  26207. -#define YYLEX yylex(&yylval)
  26208. -#endif
  26209. -#endif /* not YYLSP_NEEDED */
  26210. +# define YYLEX yylex ()
  26211. #endif
  26212. -/* If nonreentrant, generate the variables here */
  26213. +/* Enable debugging if requested. */
  26214. +#if YYDEBUG
  26215. -#ifndef YYPURE
  26216. +# ifndef YYFPRINTF
  26217. +# include <stdio.h> /* INFRINGES ON USER NAME SPACE */
  26218. +# define YYFPRINTF fprintf
  26219. +# endif
  26220. +
  26221. +# define YYDPRINTF(Args) \
  26222. +do { \
  26223. + if (yydebug) \
  26224. + YYFPRINTF Args; \
  26225. +} while (0)
  26226. +
  26227. +# define YYDSYMPRINT(Args) \
  26228. +do { \
  26229. + if (yydebug) \
  26230. + yysymprint Args; \
  26231. +} while (0)
  26232. +
  26233. +# define YYDSYMPRINTF(Title, Token, Value, Location) \
  26234. +do { \
  26235. + if (yydebug) \
  26236. + { \
  26237. + YYFPRINTF (stderr, "%s ", Title); \
  26238. + yysymprint (stderr, \
  26239. + Token, Value); \
  26240. + YYFPRINTF (stderr, "\n"); \
  26241. + } \
  26242. +} while (0)
  26243. -int yychar; /* the lookahead symbol */
  26244. -YYSTYPE yylval; /* the semantic value of the */
  26245. - /* lookahead symbol */
  26246. +/*------------------------------------------------------------------.
  26247. +| yy_stack_print -- Print the state stack from its BOTTOM up to its |
  26248. +| TOP (included). |
  26249. +`------------------------------------------------------------------*/
  26250. -#ifdef YYLSP_NEEDED
  26251. -YYLTYPE yylloc; /* location data for the lookahead */
  26252. - /* symbol */
  26253. +#if defined (__STDC__) || defined (__cplusplus)
  26254. +static void
  26255. +yy_stack_print (short int *bottom, short int *top)
  26256. +#else
  26257. +static void
  26258. +yy_stack_print (bottom, top)
  26259. + short int *bottom;
  26260. + short int *top;
  26261. #endif
  26262. +{
  26263. + YYFPRINTF (stderr, "Stack now");
  26264. + for (/* Nothing. */; bottom <= top; ++bottom)
  26265. + YYFPRINTF (stderr, " %d", *bottom);
  26266. + YYFPRINTF (stderr, "\n");
  26267. +}
  26268. -int yynerrs; /* number of parse errors so far */
  26269. -#endif /* not YYPURE */
  26270. +# define YY_STACK_PRINT(Bottom, Top) \
  26271. +do { \
  26272. + if (yydebug) \
  26273. + yy_stack_print ((Bottom), (Top)); \
  26274. +} while (0)
  26275. -#if YYDEBUG != 0
  26276. -int yydebug; /* nonzero means print parse trace */
  26277. -/* Since this is uninitialized, it does not stop multiple parsers
  26278. - from coexisting. */
  26279. +
  26280. +/*------------------------------------------------.
  26281. +| Report that the YYRULE is going to be reduced. |
  26282. +`------------------------------------------------*/
  26283. +
  26284. +#if defined (__STDC__) || defined (__cplusplus)
  26285. +static void
  26286. +yy_reduce_print (int yyrule)
  26287. +#else
  26288. +static void
  26289. +yy_reduce_print (yyrule)
  26290. + int yyrule;
  26291. #endif
  26292. +{
  26293. + int yyi;
  26294. + unsigned int yylno = yyrline[yyrule];
  26295. + YYFPRINTF (stderr, "Reducing stack by rule %d (line %u), ",
  26296. + yyrule - 1, yylno);
  26297. + /* Print the symbols being reduced, and their result. */
  26298. + for (yyi = yyprhs[yyrule]; 0 <= yyrhs[yyi]; yyi++)
  26299. + YYFPRINTF (stderr, "%s ", yytname [yyrhs[yyi]]);
  26300. + YYFPRINTF (stderr, "-> %s\n", yytname [yyr1[yyrule]]);
  26301. +}
  26302. +
  26303. +# define YY_REDUCE_PRINT(Rule) \
  26304. +do { \
  26305. + if (yydebug) \
  26306. + yy_reduce_print (Rule); \
  26307. +} while (0)
  26308. +
  26309. +/* Nonzero means print parse trace. It is left uninitialized so that
  26310. + multiple parsers can coexist. */
  26311. +int yydebug;
  26312. +#else /* !YYDEBUG */
  26313. +# define YYDPRINTF(Args)
  26314. +# define YYDSYMPRINT(Args)
  26315. +# define YYDSYMPRINTF(Title, Token, Value, Location)
  26316. +# define YY_STACK_PRINT(Bottom, Top)
  26317. +# define YY_REDUCE_PRINT(Rule)
  26318. +#endif /* !YYDEBUG */
  26319. -/* YYINITDEPTH indicates the initial size of the parser's stacks */
  26320. +/* YYINITDEPTH -- initial size of the parser's stacks. */
  26321. #ifndef YYINITDEPTH
  26322. -#define YYINITDEPTH 200
  26323. +# define YYINITDEPTH 200
  26324. #endif
  26325. -/* YYMAXDEPTH is the maximum size the stacks can grow to
  26326. - (effective only if the built-in stack extension method is used). */
  26327. +/* YYMAXDEPTH -- maximum size the stacks can grow to (effective only
  26328. + if the built-in stack extension method is used).
  26329. -#if YYMAXDEPTH == 0
  26330. -#undef YYMAXDEPTH
  26331. + Do not make this value too large; the results are undefined if
  26332. + SIZE_MAX < YYSTACK_BYTES (YYMAXDEPTH)
  26333. + evaluated with infinite-precision integer arithmetic. */
  26334. +
  26335. +#if defined (YYMAXDEPTH) && YYMAXDEPTH == 0
  26336. +# undef YYMAXDEPTH
  26337. #endif
  26338. #ifndef YYMAXDEPTH
  26339. -#define YYMAXDEPTH 10000
  26340. +# define YYMAXDEPTH 10000
  26341. #endif
  26342. +
  26343. -/* Define __yy_memcpy. Note that the size argument
  26344. - should be passed with type unsigned int, because that is what the non-GCC
  26345. - definitions require. With GCC, __builtin_memcpy takes an arg
  26346. - of type size_t, but it can handle unsigned int. */
  26347. -
  26348. -#if __GNUC__ > 1 /* GNU C and GNU C++ define this. */
  26349. -#define __yy_memcpy(TO,FROM,COUNT) __builtin_memcpy(TO,FROM,COUNT)
  26350. -#else /* not GNU C or C++ */
  26351. -#ifndef __cplusplus
  26352. -/* This is the most reliable way to avoid incompatibilities
  26353. - in available built-in functions on various systems. */
  26354. -static void
  26355. -__yy_memcpy (to, from, count)
  26356. - char *to;
  26357. - char *from;
  26358. - unsigned int count;
  26359. -{
  26360. - register char *f = from;
  26361. - register char *t = to;
  26362. - register int i = count;
  26363. +#if YYERROR_VERBOSE
  26364. +
  26365. +# ifndef yystrlen
  26366. +# if defined (__GLIBC__) && defined (_STRING_H)
  26367. +# define yystrlen strlen
  26368. +# else
  26369. +/* Return the length of YYSTR. */
  26370. +static YYSIZE_T
  26371. +# if defined (__STDC__) || defined (__cplusplus)
  26372. +yystrlen (const char *yystr)
  26373. +# else
  26374. +yystrlen (yystr)
  26375. + const char *yystr;
  26376. +# endif
  26377. +{
  26378. + register const char *yys = yystr;
  26379. +
  26380. + while (*yys++ != '\0')
  26381. + continue;
  26382. +
  26383. + return yys - yystr - 1;
  26384. +}
  26385. +# endif
  26386. +# endif
  26387. +
  26388. +# ifndef yystpcpy
  26389. +# if defined (__GLIBC__) && defined (_STRING_H) && defined (_GNU_SOURCE)
  26390. +# define yystpcpy stpcpy
  26391. +# else
  26392. +/* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in
  26393. + YYDEST. */
  26394. +static char *
  26395. +# if defined (__STDC__) || defined (__cplusplus)
  26396. +yystpcpy (char *yydest, const char *yysrc)
  26397. +# else
  26398. +yystpcpy (yydest, yysrc)
  26399. + char *yydest;
  26400. + const char *yysrc;
  26401. +# endif
  26402. +{
  26403. + register char *yyd = yydest;
  26404. + register const char *yys = yysrc;
  26405. - while (i-- > 0)
  26406. - *t++ = *f++;
  26407. + while ((*yyd++ = *yys++) != '\0')
  26408. + continue;
  26409. +
  26410. + return yyd - 1;
  26411. }
  26412. +# endif
  26413. +# endif
  26414. +
  26415. +#endif /* !YYERROR_VERBOSE */
  26416. -#else /* __cplusplus */
  26417. +
  26418. +
  26419. +#if YYDEBUG
  26420. +/*--------------------------------.
  26421. +| Print this symbol on YYOUTPUT. |
  26422. +`--------------------------------*/
  26423. -/* This is the most reliable way to avoid incompatibilities
  26424. - in available built-in functions on various systems. */
  26425. +#if defined (__STDC__) || defined (__cplusplus)
  26426. static void
  26427. -__yy_memcpy (char *to, char *from, unsigned int count)
  26428. +yysymprint (FILE *yyoutput, int yytype, YYSTYPE *yyvaluep)
  26429. +#else
  26430. +static void
  26431. +yysymprint (yyoutput, yytype, yyvaluep)
  26432. + FILE *yyoutput;
  26433. + int yytype;
  26434. + YYSTYPE *yyvaluep;
  26435. +#endif
  26436. {
  26437. - register char *t = to;
  26438. - register char *f = from;
  26439. - register int i = count;
  26440. + /* Pacify ``unused variable'' warnings. */
  26441. + (void) yyvaluep;
  26442. - while (i-- > 0)
  26443. - *t++ = *f++;
  26444. + if (yytype < YYNTOKENS)
  26445. + {
  26446. + YYFPRINTF (yyoutput, "token %s (", yytname[yytype]);
  26447. +# ifdef YYPRINT
  26448. + YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
  26449. +# endif
  26450. + }
  26451. + else
  26452. + YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]);
  26453. +
  26454. + switch (yytype)
  26455. + {
  26456. + default:
  26457. + break;
  26458. + }
  26459. + YYFPRINTF (yyoutput, ")");
  26460. }
  26461. +#endif /* ! YYDEBUG */
  26462. +/*-----------------------------------------------.
  26463. +| Release the memory associated to this symbol. |
  26464. +`-----------------------------------------------*/
  26465. +
  26466. +#if defined (__STDC__) || defined (__cplusplus)
  26467. +static void
  26468. +yydestruct (int yytype, YYSTYPE *yyvaluep)
  26469. +#else
  26470. +static void
  26471. +yydestruct (yytype, yyvaluep)
  26472. + int yytype;
  26473. + YYSTYPE *yyvaluep;
  26474. #endif
  26475. -#endif
  26476. +{
  26477. + /* Pacify ``unused variable'' warnings. */
  26478. + (void) yyvaluep;
  26479. +
  26480. + switch (yytype)
  26481. + {
  26482. +
  26483. + default:
  26484. + break;
  26485. + }
  26486. +}
  26487. -#line 217 "/usr/lib/bison.simple"
  26488. -/* The user can define YYPARSE_PARAM as the name of an argument to be passed
  26489. - into yyparse. The argument should have type void *.
  26490. - It should actually point to an object.
  26491. - Grammar actions can access the variable by casting it
  26492. - to the proper pointer type. */
  26493. +/* Prevent warnings from -Wmissing-prototypes. */
  26494. #ifdef YYPARSE_PARAM
  26495. -#ifdef __cplusplus
  26496. -#define YYPARSE_PARAM_ARG void *YYPARSE_PARAM
  26497. -#define YYPARSE_PARAM_DECL
  26498. -#else /* not __cplusplus */
  26499. -#define YYPARSE_PARAM_ARG YYPARSE_PARAM
  26500. -#define YYPARSE_PARAM_DECL void *YYPARSE_PARAM;
  26501. -#endif /* not __cplusplus */
  26502. -#else /* not YYPARSE_PARAM */
  26503. -#define YYPARSE_PARAM_ARG
  26504. -#define YYPARSE_PARAM_DECL
  26505. -#endif /* not YYPARSE_PARAM */
  26506. +# if defined (__STDC__) || defined (__cplusplus)
  26507. +int yyparse (void *YYPARSE_PARAM);
  26508. +# else
  26509. +int yyparse ();
  26510. +# endif
  26511. +#else /* ! YYPARSE_PARAM */
  26512. +#if defined (__STDC__) || defined (__cplusplus)
  26513. +int yyparse (void);
  26514. +#else
  26515. +int yyparse ();
  26516. +#endif
  26517. +#endif /* ! YYPARSE_PARAM */
  26518. +
  26519. +
  26520. +
  26521. +/* The lookahead symbol. */
  26522. +int yychar;
  26523. +
  26524. +/* The semantic value of the lookahead symbol. */
  26525. +YYSTYPE yylval;
  26526. +
  26527. +/* Number of syntax errors so far. */
  26528. +int yynerrs;
  26529. +
  26530. +
  26531. +
  26532. +/*----------.
  26533. +| yyparse. |
  26534. +`----------*/
  26535. -/* Prevent warning if -Wstrict-prototypes. */
  26536. -#ifdef __GNUC__
  26537. #ifdef YYPARSE_PARAM
  26538. -int yyparse (void *);
  26539. +# if defined (__STDC__) || defined (__cplusplus)
  26540. +int yyparse (void *YYPARSE_PARAM)
  26541. +# else
  26542. +int yyparse (YYPARSE_PARAM)
  26543. + void *YYPARSE_PARAM;
  26544. +# endif
  26545. +#else /* ! YYPARSE_PARAM */
  26546. +#if defined (__STDC__) || defined (__cplusplus)
  26547. +int
  26548. +yyparse (void)
  26549. #else
  26550. -int yyparse (void);
  26551. +int
  26552. +yyparse ()
  26553. +
  26554. #endif
  26555. #endif
  26556. -
  26557. -int
  26558. -yyparse(YYPARSE_PARAM_ARG)
  26559. - YYPARSE_PARAM_DECL
  26560. {
  26561. +
  26562. register int yystate;
  26563. register int yyn;
  26564. - register short *yyssp;
  26565. + int yyresult;
  26566. + /* Number of tokens to shift before error messages enabled. */
  26567. + int yyerrstatus;
  26568. + /* Lookahead token as an internal (translated) token number. */
  26569. + int yytoken = 0;
  26570. +
  26571. + /* Three stacks and their tools:
  26572. + `yyss': related to states,
  26573. + `yyvs': related to semantic values,
  26574. + `yyls': related to locations.
  26575. +
  26576. + Refer to the stacks thru separate pointers, to allow yyoverflow
  26577. + to reallocate them elsewhere. */
  26578. +
  26579. + /* The state stack. */
  26580. + short int yyssa[YYINITDEPTH];
  26581. + short int *yyss = yyssa;
  26582. + register short int *yyssp;
  26583. +
  26584. + /* The semantic value stack. */
  26585. + YYSTYPE yyvsa[YYINITDEPTH];
  26586. + YYSTYPE *yyvs = yyvsa;
  26587. register YYSTYPE *yyvsp;
  26588. - int yyerrstatus; /* number of tokens to shift before error messages enabled */
  26589. - int yychar1 = 0; /* lookahead token as an internal (translated) token number */
  26590. -
  26591. - short yyssa[YYINITDEPTH]; /* the state stack */
  26592. - YYSTYPE yyvsa[YYINITDEPTH]; /* the semantic value stack */
  26593. - short *yyss = yyssa; /* refer to the stacks thru separate pointers */
  26594. - YYSTYPE *yyvs = yyvsa; /* to allow yyoverflow to reallocate them elsewhere */
  26595. -#ifdef YYLSP_NEEDED
  26596. - YYLTYPE yylsa[YYINITDEPTH]; /* the location stack */
  26597. - YYLTYPE *yyls = yylsa;
  26598. - YYLTYPE *yylsp;
  26599. -#define YYPOPSTACK (yyvsp--, yyssp--, yylsp--)
  26600. -#else
  26601. #define YYPOPSTACK (yyvsp--, yyssp--)
  26602. -#endif
  26603. - int yystacksize = YYINITDEPTH;
  26604. - int yyfree_stacks = 0;
  26605. + YYSIZE_T yystacksize = YYINITDEPTH;
  26606. -#ifdef YYPURE
  26607. - int yychar;
  26608. - YYSTYPE yylval;
  26609. - int yynerrs;
  26610. -#ifdef YYLSP_NEEDED
  26611. - YYLTYPE yylloc;
  26612. -#endif
  26613. -#endif
  26614. + /* The variables used to return semantic value and location from the
  26615. + action routines. */
  26616. + YYSTYPE yyval;
  26617. - YYSTYPE yyval; /* the variable used to return */
  26618. - /* semantic values from the action */
  26619. - /* routines */
  26620. + /* When reducing, the number of symbols on the RHS of the reduced
  26621. + rule. */
  26622. int yylen;
  26623. -#if YYDEBUG != 0
  26624. - if (yydebug)
  26625. - fprintf(stderr, "Starting parse\n");
  26626. -#endif
  26627. + YYDPRINTF ((stderr, "Starting parse\n"));
  26628. yystate = 0;
  26629. yyerrstatus = 0;
  26630. @@ -479,110 +853,97 @@
  26631. so that they stay on the same level as the state stack.
  26632. The wasted elements are never initialized. */
  26633. - yyssp = yyss - 1;
  26634. + yyssp = yyss;
  26635. yyvsp = yyvs;
  26636. -#ifdef YYLSP_NEEDED
  26637. - yylsp = yyls;
  26638. -#endif
  26639. -/* Push a new state, which is found in yystate . */
  26640. -/* In all cases, when you get here, the value and location stacks
  26641. - have just been pushed. so pushing a state here evens the stacks. */
  26642. -yynewstate:
  26643. - *++yyssp = yystate;
  26644. + goto yysetstate;
  26645. - if (yyssp >= yyss + yystacksize - 1)
  26646. - {
  26647. - /* Give user a chance to reallocate the stack */
  26648. - /* Use copies of these so that the &'s don't force the real ones into memory. */
  26649. - YYSTYPE *yyvs1 = yyvs;
  26650. - short *yyss1 = yyss;
  26651. -#ifdef YYLSP_NEEDED
  26652. - YYLTYPE *yyls1 = yyls;
  26653. -#endif
  26654. +/*------------------------------------------------------------.
  26655. +| yynewstate -- Push a new state, which is found in yystate. |
  26656. +`------------------------------------------------------------*/
  26657. + yynewstate:
  26658. + /* In all cases, when you get here, the value and location stacks
  26659. + have just been pushed. so pushing a state here evens the stacks.
  26660. + */
  26661. + yyssp++;
  26662. + yysetstate:
  26663. + *yyssp = yystate;
  26664. +
  26665. + if (yyss + yystacksize - 1 <= yyssp)
  26666. + {
  26667. /* Get the current used size of the three stacks, in elements. */
  26668. - int size = yyssp - yyss + 1;
  26669. + YYSIZE_T yysize = yyssp - yyss + 1;
  26670. #ifdef yyoverflow
  26671. - /* Each stack pointer address is followed by the size of
  26672. - the data in use in that stack, in bytes. */
  26673. -#ifdef YYLSP_NEEDED
  26674. - /* This used to be a conditional around just the two extra args,
  26675. - but that might be undefined if yyoverflow is a macro. */
  26676. - yyoverflow("parser stack overflow",
  26677. - &yyss1, size * sizeof (*yyssp),
  26678. - &yyvs1, size * sizeof (*yyvsp),
  26679. - &yyls1, size * sizeof (*yylsp),
  26680. - &yystacksize);
  26681. -#else
  26682. - yyoverflow("parser stack overflow",
  26683. - &yyss1, size * sizeof (*yyssp),
  26684. - &yyvs1, size * sizeof (*yyvsp),
  26685. - &yystacksize);
  26686. -#endif
  26687. -
  26688. - yyss = yyss1; yyvs = yyvs1;
  26689. -#ifdef YYLSP_NEEDED
  26690. - yyls = yyls1;
  26691. -#endif
  26692. + {
  26693. + /* Give user a chance to reallocate the stack. Use copies of
  26694. + these so that the &'s don't force the real ones into
  26695. + memory. */
  26696. + YYSTYPE *yyvs1 = yyvs;
  26697. + short int *yyss1 = yyss;
  26698. +
  26699. +
  26700. + /* Each stack pointer address is followed by the size of the
  26701. + data in use in that stack, in bytes. This used to be a
  26702. + conditional around just the two extra args, but that might
  26703. + be undefined if yyoverflow is a macro. */
  26704. + yyoverflow ("parser stack overflow",
  26705. + &yyss1, yysize * sizeof (*yyssp),
  26706. + &yyvs1, yysize * sizeof (*yyvsp),
  26707. +
  26708. + &yystacksize);
  26709. +
  26710. + yyss = yyss1;
  26711. + yyvs = yyvs1;
  26712. + }
  26713. #else /* no yyoverflow */
  26714. +# ifndef YYSTACK_RELOCATE
  26715. + goto yyoverflowlab;
  26716. +# else
  26717. /* Extend the stack our own way. */
  26718. - if (yystacksize >= YYMAXDEPTH)
  26719. - {
  26720. - yyerror("parser stack overflow");
  26721. - if (yyfree_stacks)
  26722. - {
  26723. - free (yyss);
  26724. - free (yyvs);
  26725. -#ifdef YYLSP_NEEDED
  26726. - free (yyls);
  26727. -#endif
  26728. - }
  26729. - return 2;
  26730. - }
  26731. + if (YYMAXDEPTH <= yystacksize)
  26732. + goto yyoverflowlab;
  26733. yystacksize *= 2;
  26734. - if (yystacksize > YYMAXDEPTH)
  26735. + if (YYMAXDEPTH < yystacksize)
  26736. yystacksize = YYMAXDEPTH;
  26737. -#ifndef YYSTACK_USE_ALLOCA
  26738. - yyfree_stacks = 1;
  26739. -#endif
  26740. - yyss = (short *) YYSTACK_ALLOC (yystacksize * sizeof (*yyssp));
  26741. - __yy_memcpy ((char *)yyss, (char *)yyss1,
  26742. - size * (unsigned int) sizeof (*yyssp));
  26743. - yyvs = (YYSTYPE *) YYSTACK_ALLOC (yystacksize * sizeof (*yyvsp));
  26744. - __yy_memcpy ((char *)yyvs, (char *)yyvs1,
  26745. - size * (unsigned int) sizeof (*yyvsp));
  26746. -#ifdef YYLSP_NEEDED
  26747. - yyls = (YYLTYPE *) YYSTACK_ALLOC (yystacksize * sizeof (*yylsp));
  26748. - __yy_memcpy ((char *)yyls, (char *)yyls1,
  26749. - size * (unsigned int) sizeof (*yylsp));
  26750. -#endif
  26751. +
  26752. + {
  26753. + short int *yyss1 = yyss;
  26754. + union yyalloc *yyptr =
  26755. + (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));
  26756. + if (! yyptr)
  26757. + goto yyoverflowlab;
  26758. + YYSTACK_RELOCATE (yyss);
  26759. + YYSTACK_RELOCATE (yyvs);
  26760. +
  26761. +# undef YYSTACK_RELOCATE
  26762. + if (yyss1 != yyssa)
  26763. + YYSTACK_FREE (yyss1);
  26764. + }
  26765. +# endif
  26766. #endif /* no yyoverflow */
  26767. - yyssp = yyss + size - 1;
  26768. - yyvsp = yyvs + size - 1;
  26769. -#ifdef YYLSP_NEEDED
  26770. - yylsp = yyls + size - 1;
  26771. -#endif
  26772. + yyssp = yyss + yysize - 1;
  26773. + yyvsp = yyvs + yysize - 1;
  26774. -#if YYDEBUG != 0
  26775. - if (yydebug)
  26776. - fprintf(stderr, "Stack size increased to %d\n", yystacksize);
  26777. -#endif
  26778. - if (yyssp >= yyss + yystacksize - 1)
  26779. + YYDPRINTF ((stderr, "Stack size increased to %lu\n",
  26780. + (unsigned long int) yystacksize));
  26781. +
  26782. + if (yyss + yystacksize - 1 <= yyssp)
  26783. YYABORT;
  26784. }
  26785. -#if YYDEBUG != 0
  26786. - if (yydebug)
  26787. - fprintf(stderr, "Entering state %d\n", yystate);
  26788. -#endif
  26789. + YYDPRINTF ((stderr, "Entering state %d\n", yystate));
  26790. goto yybackup;
  26791. - yybackup:
  26792. +
  26793. +/*-----------.
  26794. +| yybackup. |
  26795. +`-----------*/
  26796. +yybackup:
  26797. /* Do appropriate processing given the current state. */
  26798. /* Read a lookahead token if we need one and don't already have one. */
  26799. @@ -591,194 +952,167 @@
  26800. /* First try to decide what to do without reference to lookahead token. */
  26801. yyn = yypact[yystate];
  26802. - if (yyn == YYFLAG)
  26803. + if (yyn == YYPACT_NINF)
  26804. goto yydefault;
  26805. /* Not known => get a lookahead token if don't already have one. */
  26806. - /* yychar is either YYEMPTY or YYEOF
  26807. - or a valid token in external form. */
  26808. -
  26809. + /* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol. */
  26810. if (yychar == YYEMPTY)
  26811. {
  26812. -#if YYDEBUG != 0
  26813. - if (yydebug)
  26814. - fprintf(stderr, "Reading a token: ");
  26815. -#endif
  26816. + YYDPRINTF ((stderr, "Reading a token: "));
  26817. yychar = YYLEX;
  26818. }
  26819. - /* Convert token to internal form (in yychar1) for indexing tables with */
  26820. -
  26821. - if (yychar <= 0) /* This means end of input. */
  26822. + if (yychar <= YYEOF)
  26823. {
  26824. - yychar1 = 0;
  26825. - yychar = YYEOF; /* Don't call YYLEX any more */
  26826. -
  26827. -#if YYDEBUG != 0
  26828. - if (yydebug)
  26829. - fprintf(stderr, "Now at end of input.\n");
  26830. -#endif
  26831. + yychar = yytoken = YYEOF;
  26832. + YYDPRINTF ((stderr, "Now at end of input.\n"));
  26833. }
  26834. else
  26835. {
  26836. - yychar1 = YYTRANSLATE(yychar);
  26837. -
  26838. -#if YYDEBUG != 0
  26839. - if (yydebug)
  26840. - {
  26841. - fprintf (stderr, "Next token is %d (%s", yychar, yytname[yychar1]);
  26842. - /* Give the individual parser a way to print the precise meaning
  26843. - of a token, for further debugging info. */
  26844. -#ifdef YYPRINT
  26845. - YYPRINT (stderr, yychar, yylval);
  26846. -#endif
  26847. - fprintf (stderr, ")\n");
  26848. - }
  26849. -#endif
  26850. + yytoken = YYTRANSLATE (yychar);
  26851. + YYDSYMPRINTF ("Next token is", yytoken, &yylval, &yylloc);
  26852. }
  26853. - yyn += yychar1;
  26854. - if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != yychar1)
  26855. + /* If the proper action on seeing token YYTOKEN is to reduce or to
  26856. + detect an error, take that action. */
  26857. + yyn += yytoken;
  26858. + if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken)
  26859. goto yydefault;
  26860. -
  26861. yyn = yytable[yyn];
  26862. -
  26863. - /* yyn is what to do for this token type in this state.
  26864. - Negative => reduce, -yyn is rule number.
  26865. - Positive => shift, yyn is new state.
  26866. - New state is final state => don't bother to shift,
  26867. - just return success.
  26868. - 0, or most negative number => error. */
  26869. -
  26870. - if (yyn < 0)
  26871. + if (yyn <= 0)
  26872. {
  26873. - if (yyn == YYFLAG)
  26874. + if (yyn == 0 || yyn == YYTABLE_NINF)
  26875. goto yyerrlab;
  26876. yyn = -yyn;
  26877. goto yyreduce;
  26878. }
  26879. - else if (yyn == 0)
  26880. - goto yyerrlab;
  26881. if (yyn == YYFINAL)
  26882. YYACCEPT;
  26883. /* Shift the lookahead token. */
  26884. -
  26885. -#if YYDEBUG != 0
  26886. - if (yydebug)
  26887. - fprintf(stderr, "Shifting token %d (%s), ", yychar, yytname[yychar1]);
  26888. -#endif
  26889. + YYDPRINTF ((stderr, "Shifting token %s, ", yytname[yytoken]));
  26890. /* Discard the token being shifted unless it is eof. */
  26891. if (yychar != YYEOF)
  26892. yychar = YYEMPTY;
  26893. *++yyvsp = yylval;
  26894. -#ifdef YYLSP_NEEDED
  26895. - *++yylsp = yylloc;
  26896. -#endif
  26897. - /* count tokens shifted since error; after three, turn off error status. */
  26898. - if (yyerrstatus) yyerrstatus--;
  26899. +
  26900. + /* Count tokens shifted since error; after three, turn off error
  26901. + status. */
  26902. + if (yyerrstatus)
  26903. + yyerrstatus--;
  26904. yystate = yyn;
  26905. goto yynewstate;
  26906. -/* Do the default action for the current state. */
  26907. -yydefault:
  26908. +/*-----------------------------------------------------------.
  26909. +| yydefault -- do the default action for the current state. |
  26910. +`-----------------------------------------------------------*/
  26911. +yydefault:
  26912. yyn = yydefact[yystate];
  26913. if (yyn == 0)
  26914. goto yyerrlab;
  26915. + goto yyreduce;
  26916. +
  26917. -/* Do a reduction. yyn is the number of a rule to reduce with. */
  26918. +/*-----------------------------.
  26919. +| yyreduce -- Do a reduction. |
  26920. +`-----------------------------*/
  26921. yyreduce:
  26922. + /* yyn is the number of a rule to reduce with. */
  26923. yylen = yyr2[yyn];
  26924. - if (yylen > 0)
  26925. - yyval = yyvsp[1-yylen]; /* implement default value of the action */
  26926. -#if YYDEBUG != 0
  26927. - if (yydebug)
  26928. - {
  26929. - int i;
  26930. + /* If YYLEN is nonzero, implement the default value of the action:
  26931. + `$$ = $1'.
  26932. - fprintf (stderr, "Reducing via rule %d (line %d), ",
  26933. - yyn, yyrline[yyn]);
  26934. + Otherwise, the following line sets YYVAL to garbage.
  26935. + This behavior is undocumented and Bison
  26936. + users should not rely upon it. Assigning to YYVAL
  26937. + unconditionally makes the parser a bit smaller, and it avoids a
  26938. + GCC warning that YYVAL may be used uninitialized. */
  26939. + yyval = yyvsp[1-yylen];
  26940. - /* Print the symbols being reduced, and their result. */
  26941. - for (i = yyprhs[yyn]; yyrhs[i] > 0; i++)
  26942. - fprintf (stderr, "%s ", yytname[yyrhs[i]]);
  26943. - fprintf (stderr, " -> %s\n", yytname[yyr1[yyn]]);
  26944. - }
  26945. -#endif
  26946. -
  26947. - switch (yyn) {
  26948. -
  26949. -case 4:
  26950. -#line 47 "cfg_y.y"
  26951. -{
  26952. + YY_REDUCE_PRINT (yyn);
  26953. + switch (yyn)
  26954. + {
  26955. + case 5:
  26956. +#line 50 "cfg_y.y"
  26957. + {
  26958. control_init(yyvsp[-1].str);
  26959. - ;
  26960. - break;}
  26961. -case 5:
  26962. -#line 54 "cfg_y.y"
  26963. -{
  26964. + }
  26965. + break;
  26966. +
  26967. + case 6:
  26968. +#line 57 "cfg_y.y"
  26969. + {
  26970. fab_option(yyvsp[-1].str,yyvsp[0].str);
  26971. - ;
  26972. - break;}
  26973. -case 6:
  26974. -#line 61 "cfg_y.y"
  26975. -{
  26976. + }
  26977. + break;
  26978. +
  26979. + case 7:
  26980. +#line 64 "cfg_y.y"
  26981. + {
  26982. itf = 0;
  26983. - ;
  26984. - break;}
  26985. -case 7:
  26986. -#line 65 "cfg_y.y"
  26987. -{
  26988. + }
  26989. + break;
  26990. +
  26991. + case 8:
  26992. +#line 68 "cfg_y.y"
  26993. + {
  26994. char *tmp;
  26995. tmp = strdup(yyvsp[-3].str);
  26996. if (!tmp) yyerror(strerror(errno));
  26997. sig = sig_vc(yyvsp[-4].str,tmp,itf);
  26998. - ;
  26999. - break;}
  27000. -case 9:
  27001. -#line 77 "cfg_y.y"
  27002. -{
  27003. + }
  27004. + break;
  27005. +
  27006. + case 10:
  27007. +#line 80 "cfg_y.y"
  27008. + {
  27009. yyval.str = NULL;
  27010. - ;
  27011. - break;}
  27012. -case 10:
  27013. -#line 81 "cfg_y.y"
  27014. -{
  27015. + }
  27016. + break;
  27017. +
  27018. + case 11:
  27019. +#line 84 "cfg_y.y"
  27020. + {
  27021. yyval.str = strdup(yyvsp[0].str);
  27022. if (!yyval.str) yyerror(strerror(errno));
  27023. - ;
  27024. - break;}
  27025. -case 12:
  27026. -#line 89 "cfg_y.y"
  27027. -{
  27028. + }
  27029. + break;
  27030. +
  27031. + case 13:
  27032. +#line 92 "cfg_y.y"
  27033. + {
  27034. itf = yyvsp[0].num;
  27035. - ;
  27036. - break;}
  27037. -case 14:
  27038. -#line 96 "cfg_y.y"
  27039. -{
  27040. + }
  27041. + break;
  27042. +
  27043. + case 15:
  27044. +#line 99 "cfg_y.y"
  27045. + {
  27046. sig->pvc = yyvsp[0].pvc;
  27047. - ;
  27048. - break;}
  27049. -case 17:
  27050. -#line 104 "cfg_y.y"
  27051. -{
  27052. + }
  27053. + break;
  27054. +
  27055. + case 18:
  27056. +#line 107 "cfg_y.y"
  27057. + {
  27058. put_route(NULL,0,sig);
  27059. - ;
  27060. - break;}
  27061. -case 19:
  27062. -#line 112 "cfg_y.y"
  27063. -{
  27064. + }
  27065. + break;
  27066. +
  27067. + case 20:
  27068. +#line 115 "cfg_y.y"
  27069. + {
  27070. struct sockaddr_atmsvc addr;
  27071. char *mask;
  27072. @@ -790,228 +1124,236 @@
  27073. return;
  27074. }
  27075. put_route(&addr,mask ? strtol(mask,NULL,10) : INT_MAX,sig);
  27076. - ;
  27077. - break;}
  27078. -}
  27079. - /* the action file gets copied in in place of this dollarsign */
  27080. -#line 543 "/usr/lib/bison.simple"
  27081. + }
  27082. + break;
  27083. +
  27084. +
  27085. + }
  27086. +
  27087. +/* Line 1010 of yacc.c. */
  27088. +#line 1135 "y.tab.c"
  27089. yyvsp -= yylen;
  27090. yyssp -= yylen;
  27091. -#ifdef YYLSP_NEEDED
  27092. - yylsp -= yylen;
  27093. -#endif
  27094. -#if YYDEBUG != 0
  27095. - if (yydebug)
  27096. - {
  27097. - short *ssp1 = yyss - 1;
  27098. - fprintf (stderr, "state stack now");
  27099. - while (ssp1 != yyssp)
  27100. - fprintf (stderr, " %d", *++ssp1);
  27101. - fprintf (stderr, "\n");
  27102. - }
  27103. -#endif
  27104. +
  27105. + YY_STACK_PRINT (yyss, yyssp);
  27106. *++yyvsp = yyval;
  27107. -#ifdef YYLSP_NEEDED
  27108. - yylsp++;
  27109. - if (yylen == 0)
  27110. - {
  27111. - yylsp->first_line = yylloc.first_line;
  27112. - yylsp->first_column = yylloc.first_column;
  27113. - yylsp->last_line = (yylsp-1)->last_line;
  27114. - yylsp->last_column = (yylsp-1)->last_column;
  27115. - yylsp->text = 0;
  27116. - }
  27117. - else
  27118. - {
  27119. - yylsp->last_line = (yylsp+yylen-1)->last_line;
  27120. - yylsp->last_column = (yylsp+yylen-1)->last_column;
  27121. - }
  27122. -#endif
  27123. - /* Now "shift" the result of the reduction.
  27124. - Determine what state that goes to,
  27125. - based on the state we popped back to
  27126. - and the rule number reduced by. */
  27127. + /* Now `shift' the result of the reduction. Determine what state
  27128. + that goes to, based on the state we popped back to and the rule
  27129. + number reduced by. */
  27130. yyn = yyr1[yyn];
  27131. - yystate = yypgoto[yyn - YYNTBASE] + *yyssp;
  27132. - if (yystate >= 0 && yystate <= YYLAST && yycheck[yystate] == *yyssp)
  27133. + yystate = yypgoto[yyn - YYNTOKENS] + *yyssp;
  27134. + if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp)
  27135. yystate = yytable[yystate];
  27136. else
  27137. - yystate = yydefgoto[yyn - YYNTBASE];
  27138. + yystate = yydefgoto[yyn - YYNTOKENS];
  27139. goto yynewstate;
  27140. -yyerrlab: /* here on detecting error */
  27141. - if (! yyerrstatus)
  27142. - /* If not already recovering from an error, report this error. */
  27143. +/*------------------------------------.
  27144. +| yyerrlab -- here on detecting error |
  27145. +`------------------------------------*/
  27146. +yyerrlab:
  27147. + /* If not already recovering from an error, report this error. */
  27148. + if (!yyerrstatus)
  27149. {
  27150. ++yynerrs;
  27151. -
  27152. -#ifdef YYERROR_VERBOSE
  27153. +#if YYERROR_VERBOSE
  27154. yyn = yypact[yystate];
  27155. - if (yyn > YYFLAG && yyn < YYLAST)
  27156. + if (YYPACT_NINF < yyn && yyn < YYLAST)
  27157. {
  27158. - int size = 0;
  27159. - char *msg;
  27160. - int x, count;
  27161. -
  27162. - count = 0;
  27163. - /* Start X at -yyn if nec to avoid negative indexes in yycheck. */
  27164. - for (x = (yyn < 0 ? -yyn : 0);
  27165. - x < (sizeof(yytname) / sizeof(char *)); x++)
  27166. - if (yycheck[x + yyn] == x)
  27167. - size += strlen(yytname[x]) + 15, count++;
  27168. - msg = (char *) malloc(size + 15);
  27169. - if (msg != 0)
  27170. + YYSIZE_T yysize = 0;
  27171. + int yytype = YYTRANSLATE (yychar);
  27172. + const char* yyprefix;
  27173. + char *yymsg;
  27174. + int yyx;
  27175. +
  27176. + /* Start YYX at -YYN if negative to avoid negative indexes in
  27177. + YYCHECK. */
  27178. + int yyxbegin = yyn < 0 ? -yyn : 0;
  27179. +
  27180. + /* Stay within bounds of both yycheck and yytname. */
  27181. + int yychecklim = YYLAST - yyn;
  27182. + int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;
  27183. + int yycount = 0;
  27184. +
  27185. + yyprefix = ", expecting ";
  27186. + for (yyx = yyxbegin; yyx < yyxend; ++yyx)
  27187. + if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR)
  27188. + {
  27189. + yysize += yystrlen (yyprefix) + yystrlen (yytname [yyx]);
  27190. + yycount += 1;
  27191. + if (yycount == 5)
  27192. + {
  27193. + yysize = 0;
  27194. + break;
  27195. + }
  27196. + }
  27197. + yysize += (sizeof ("syntax error, unexpected ")
  27198. + + yystrlen (yytname[yytype]));
  27199. + yymsg = (char *) YYSTACK_ALLOC (yysize);
  27200. + if (yymsg != 0)
  27201. {
  27202. - strcpy(msg, "parse error");
  27203. + char *yyp = yystpcpy (yymsg, "syntax error, unexpected ");
  27204. + yyp = yystpcpy (yyp, yytname[yytype]);
  27205. - if (count < 5)
  27206. + if (yycount < 5)
  27207. {
  27208. - count = 0;
  27209. - for (x = (yyn < 0 ? -yyn : 0);
  27210. - x < (sizeof(yytname) / sizeof(char *)); x++)
  27211. - if (yycheck[x + yyn] == x)
  27212. + yyprefix = ", expecting ";
  27213. + for (yyx = yyxbegin; yyx < yyxend; ++yyx)
  27214. + if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR)
  27215. {
  27216. - strcat(msg, count == 0 ? ", expecting `" : " or `");
  27217. - strcat(msg, yytname[x]);
  27218. - strcat(msg, "'");
  27219. - count++;
  27220. + yyp = yystpcpy (yyp, yyprefix);
  27221. + yyp = yystpcpy (yyp, yytname[yyx]);
  27222. + yyprefix = " or ";
  27223. }
  27224. }
  27225. - yyerror(msg);
  27226. - free(msg);
  27227. + yyerror (yymsg);
  27228. + YYSTACK_FREE (yymsg);
  27229. }
  27230. else
  27231. - yyerror ("parse error; also virtual memory exceeded");
  27232. + yyerror ("syntax error; also virtual memory exhausted");
  27233. }
  27234. else
  27235. #endif /* YYERROR_VERBOSE */
  27236. - yyerror("parse error");
  27237. + yyerror ("syntax error");
  27238. }
  27239. - goto yyerrlab1;
  27240. -yyerrlab1: /* here on error raised explicitly by an action */
  27241. +
  27242. if (yyerrstatus == 3)
  27243. {
  27244. - /* if just tried and failed to reuse lookahead token after an error, discard it. */
  27245. + /* If just tried and failed to reuse lookahead token after an
  27246. + error, discard it. */
  27247. - /* return failure if at end of input */
  27248. - if (yychar == YYEOF)
  27249. - YYABORT;
  27250. -
  27251. -#if YYDEBUG != 0
  27252. - if (yydebug)
  27253. - fprintf(stderr, "Discarding token %d (%s).\n", yychar, yytname[yychar1]);
  27254. -#endif
  27255. + if (yychar <= YYEOF)
  27256. + {
  27257. + /* If at end of input, pop the error token,
  27258. + then the rest of the stack, then return failure. */
  27259. + if (yychar == YYEOF)
  27260. + for (;;)
  27261. + {
  27262. + YYPOPSTACK;
  27263. + if (yyssp == yyss)
  27264. + YYABORT;
  27265. + YYDSYMPRINTF ("Error: popping", yystos[*yyssp], yyvsp, yylsp);
  27266. + yydestruct (yystos[*yyssp], yyvsp);
  27267. + }
  27268. + }
  27269. + else
  27270. + {
  27271. + YYDSYMPRINTF ("Error: discarding", yytoken, &yylval, &yylloc);
  27272. + yydestruct (yytoken, &yylval);
  27273. + yychar = YYEMPTY;
  27274. - yychar = YYEMPTY;
  27275. + }
  27276. }
  27277. - /* Else will try to reuse lookahead token
  27278. - after shifting the error token. */
  27279. -
  27280. - yyerrstatus = 3; /* Each real token shifted decrements this */
  27281. + /* Else will try to reuse lookahead token after shifting the error
  27282. + token. */
  27283. + goto yyerrlab1;
  27284. - goto yyerrhandle;
  27285. -yyerrdefault: /* current state does not do anything special for the error token. */
  27286. +/*---------------------------------------------------.
  27287. +| yyerrorlab -- error raised explicitly by YYERROR. |
  27288. +`---------------------------------------------------*/
  27289. +yyerrorlab:
  27290. -#if 0
  27291. - /* This is wrong; only states that explicitly want error tokens
  27292. - should shift them. */
  27293. - yyn = yydefact[yystate]; /* If its default is to accept any token, ok. Otherwise pop it.*/
  27294. - if (yyn) goto yydefault;
  27295. +#ifdef __GNUC__
  27296. + /* Pacify GCC when the user code never invokes YYERROR and the label
  27297. + yyerrorlab therefore never appears in user code. */
  27298. + if (0)
  27299. + goto yyerrorlab;
  27300. #endif
  27301. -yyerrpop: /* pop the current state because it cannot handle the error token */
  27302. -
  27303. - if (yyssp == yyss) YYABORT;
  27304. - yyvsp--;
  27305. - yystate = *--yyssp;
  27306. -#ifdef YYLSP_NEEDED
  27307. - yylsp--;
  27308. -#endif
  27309. + yyvsp -= yylen;
  27310. + yyssp -= yylen;
  27311. + yystate = *yyssp;
  27312. + goto yyerrlab1;
  27313. -#if YYDEBUG != 0
  27314. - if (yydebug)
  27315. - {
  27316. - short *ssp1 = yyss - 1;
  27317. - fprintf (stderr, "Error: state stack now");
  27318. - while (ssp1 != yyssp)
  27319. - fprintf (stderr, " %d", *++ssp1);
  27320. - fprintf (stderr, "\n");
  27321. - }
  27322. -#endif
  27323. -yyerrhandle:
  27324. +/*-------------------------------------------------------------.
  27325. +| yyerrlab1 -- common code for both syntax error and YYERROR. |
  27326. +`-------------------------------------------------------------*/
  27327. +yyerrlab1:
  27328. + yyerrstatus = 3; /* Each real token shifted decrements this. */
  27329. - yyn = yypact[yystate];
  27330. - if (yyn == YYFLAG)
  27331. - goto yyerrdefault;
  27332. + for (;;)
  27333. + {
  27334. + yyn = yypact[yystate];
  27335. + if (yyn != YYPACT_NINF)
  27336. + {
  27337. + yyn += YYTERROR;
  27338. + if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR)
  27339. + {
  27340. + yyn = yytable[yyn];
  27341. + if (0 < yyn)
  27342. + break;
  27343. + }
  27344. + }
  27345. - yyn += YYTERROR;
  27346. - if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != YYTERROR)
  27347. - goto yyerrdefault;
  27348. + /* Pop the current state because it cannot handle the error token. */
  27349. + if (yyssp == yyss)
  27350. + YYABORT;
  27351. - yyn = yytable[yyn];
  27352. - if (yyn < 0)
  27353. - {
  27354. - if (yyn == YYFLAG)
  27355. - goto yyerrpop;
  27356. - yyn = -yyn;
  27357. - goto yyreduce;
  27358. + YYDSYMPRINTF ("Error: popping", yystos[*yyssp], yyvsp, yylsp);
  27359. + yydestruct (yystos[yystate], yyvsp);
  27360. + YYPOPSTACK;
  27361. + yystate = *yyssp;
  27362. + YY_STACK_PRINT (yyss, yyssp);
  27363. }
  27364. - else if (yyn == 0)
  27365. - goto yyerrpop;
  27366. if (yyn == YYFINAL)
  27367. YYACCEPT;
  27368. -#if YYDEBUG != 0
  27369. - if (yydebug)
  27370. - fprintf(stderr, "Shifting error token, ");
  27371. -#endif
  27372. + YYDPRINTF ((stderr, "Shifting error token, "));
  27373. *++yyvsp = yylval;
  27374. -#ifdef YYLSP_NEEDED
  27375. - *++yylsp = yylloc;
  27376. -#endif
  27377. +
  27378. yystate = yyn;
  27379. goto yynewstate;
  27380. - yyacceptlab:
  27381. - /* YYACCEPT comes here. */
  27382. - if (yyfree_stacks)
  27383. - {
  27384. - free (yyss);
  27385. - free (yyvs);
  27386. -#ifdef YYLSP_NEEDED
  27387. - free (yyls);
  27388. -#endif
  27389. - }
  27390. - return 0;
  27391. - yyabortlab:
  27392. - /* YYABORT comes here. */
  27393. - if (yyfree_stacks)
  27394. - {
  27395. - free (yyss);
  27396. - free (yyvs);
  27397. -#ifdef YYLSP_NEEDED
  27398. - free (yyls);
  27399. +/*-------------------------------------.
  27400. +| yyacceptlab -- YYACCEPT comes here. |
  27401. +`-------------------------------------*/
  27402. +yyacceptlab:
  27403. + yyresult = 0;
  27404. + goto yyreturn;
  27405. +
  27406. +/*-----------------------------------.
  27407. +| yyabortlab -- YYABORT comes here. |
  27408. +`-----------------------------------*/
  27409. +yyabortlab:
  27410. + yyresult = 1;
  27411. + goto yyreturn;
  27412. +
  27413. +#ifndef yyoverflow
  27414. +/*----------------------------------------------.
  27415. +| yyoverflowlab -- parser overflow comes here. |
  27416. +`----------------------------------------------*/
  27417. +yyoverflowlab:
  27418. + yyerror ("parser stack overflow");
  27419. + yyresult = 2;
  27420. + /* Fall through. */
  27421. +#endif
  27422. +
  27423. +yyreturn:
  27424. +#ifndef yyoverflow
  27425. + if (yyss != yyssa)
  27426. + YYSTACK_FREE (yyss);
  27427. #endif
  27428. - }
  27429. - return 1;
  27430. + return yyresult;
  27431. }
  27432. -#line 126 "cfg_y.y"
  27433. +
  27434. +
  27435. +
  27436. Index: linux-atm-2.4.1/src/switch/cfg_y.y
  27437. ===================================================================
  27438. --- linux-atm-2.4.1.orig/src/switch/cfg_y.y 2007-10-20 19:19:11.338274608 +0200
  27439. +++ linux-atm-2.4.1/src/switch/cfg_y.y 2007-10-20 19:19:12.366333195 +0200
  27440. @@ -10,6 +10,7 @@
  27441. #include <string.h>
  27442. #include <errno.h>
  27443. #include <limits.h>
  27444. +#include <stdlib.h>
  27445. #include "atm.h"
  27446. @@ -19,6 +20,8 @@
  27447. #include "swc.h"
  27448. +extern void yyerror(const char *s);
  27449. +
  27450. static int itf;
  27451. static SIGNALING_ENTITY *sig;
  27452. Index: linux-atm-2.4.1/src/switch/cfg_y.h
  27453. ===================================================================
  27454. --- linux-atm-2.4.1.orig/src/switch/cfg_y.h 2007-10-20 19:19:11.346275065 +0200
  27455. +++ linux-atm-2.4.1/src/switch/cfg_y.h 2007-10-20 19:19:12.370333426 +0200
  27456. @@ -1,19 +1,77 @@
  27457. -typedef union {
  27458. +/* A Bison parser, made by GNU Bison 1.875d. */
  27459. +
  27460. +/* Skeleton parser for Yacc-like parsing with Bison,
  27461. + Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
  27462. +
  27463. + This program is free software; you can redistribute it and/or modify
  27464. + it under the terms of the GNU General Public License as published by
  27465. + the Free Software Foundation; either version 2, or (at your option)
  27466. + any later version.
  27467. +
  27468. + This program is distributed in the hope that it will be useful,
  27469. + but WITHOUT ANY WARRANTY; without even the implied warranty of
  27470. + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  27471. + GNU General Public License for more details.
  27472. +
  27473. + You should have received a copy of the GNU General Public License
  27474. + along with this program; if not, write to the Free Software
  27475. + Foundation, Inc., 59 Temple Place - Suite 330,
  27476. + Boston, MA 02111-1307, USA. */
  27477. +
  27478. +/* As a special exception, when this file is copied by Bison into a
  27479. + Bison output file, you may use that output file without restriction.
  27480. + This special exception was added by the Free Software Foundation
  27481. + in version 1.24 of Bison. */
  27482. +
  27483. +/* Tokens. */
  27484. +#ifndef YYTOKENTYPE
  27485. +# define YYTOKENTYPE
  27486. + /* Put the tokens into the symbol table, so that GDB and other debuggers
  27487. + know about them. */
  27488. + enum yytokentype {
  27489. + TOK_COMMAND = 258,
  27490. + TOK_VPCI = 259,
  27491. + TOK_ITF = 260,
  27492. + TOK_DEFAULT = 261,
  27493. + TOK_ROUTE = 262,
  27494. + TOK_STR = 263,
  27495. + TOK_SOCKET = 264,
  27496. + TOK_OPTION = 265,
  27497. + TOK_CONTROL = 266,
  27498. + TOK_NUM = 267,
  27499. + TOK_PVC = 268
  27500. + };
  27501. +#endif
  27502. +#define TOK_COMMAND 258
  27503. +#define TOK_VPCI 259
  27504. +#define TOK_ITF 260
  27505. +#define TOK_DEFAULT 261
  27506. +#define TOK_ROUTE 262
  27507. +#define TOK_STR 263
  27508. +#define TOK_SOCKET 264
  27509. +#define TOK_OPTION 265
  27510. +#define TOK_CONTROL 266
  27511. +#define TOK_NUM 267
  27512. +#define TOK_PVC 268
  27513. +
  27514. +
  27515. +
  27516. +
  27517. +#if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
  27518. +#line 30 "cfg_y.y"
  27519. +typedef union YYSTYPE {
  27520. int num;
  27521. char *str;
  27522. struct sockaddr_atmpvc pvc;
  27523. } YYSTYPE;
  27524. -#define TOK_COMMAND 257
  27525. -#define TOK_VPCI 258
  27526. -#define TOK_ITF 259
  27527. -#define TOK_DEFAULT 260
  27528. -#define TOK_ROUTE 261
  27529. -#define TOK_STR 262
  27530. -#define TOK_SOCKET 263
  27531. -#define TOK_OPTION 264
  27532. -#define TOK_CONTROL 265
  27533. -#define TOK_NUM 266
  27534. -#define TOK_PVC 267
  27535. -
  27536. +/* Line 1285 of yacc.c. */
  27537. +#line 69 "y.tab.h"
  27538. +# define yystype YYSTYPE /* obsolescent; will be withdrawn */
  27539. +# define YYSTYPE_IS_DECLARED 1
  27540. +# define YYSTYPE_IS_TRIVIAL 1
  27541. +#endif
  27542. extern YYSTYPE yylval;
  27543. +
  27544. +
  27545. +
  27546. Index: linux-atm-2.4.1/src/switch/debug/Makefile.in
  27547. ===================================================================
  27548. --- linux-atm-2.4.1.orig/src/switch/debug/Makefile.in 2007-10-20 19:19:11.350275296 +0200
  27549. +++ linux-atm-2.4.1/src/switch/debug/Makefile.in 2007-10-20 19:19:12.378333877 +0200
  27550. @@ -1,4 +1,4 @@
  27551. -# Makefile.in generated automatically by automake 1.4-p5 from Makefile.am
  27552. +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
  27553. # Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
  27554. # This Makefile.in is free software; the Free Software Foundation
  27555. @@ -90,8 +90,7 @@
  27556. INCLUDES = -I$(top_builddir)/src/qgen
  27557. sw_debug_SOURCES = debug.c
  27558. -sw_debug_XTRAS = $(top_builddir)/src/switch/libsw.a \
  27559. - $(top_builddir)/src/lib/libatm.la
  27560. +sw_debug_XTRAS = $(top_builddir)/src/switch/libsw.a $(top_builddir)/src/lib/libatm.la
  27561. sw_debug_LDADD = $(sw_debug_XTRAS) -lfl
  27562. @@ -121,8 +120,9 @@
  27563. DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
  27564. -TAR = gtar
  27565. +TAR = tar
  27566. GZIP_ENV = --best
  27567. +DEP_FILES = .deps/debug.P
  27568. SOURCES = $(sw_debug_SOURCES)
  27569. OBJECTS = $(sw_debug_OBJECTS)
  27570. @@ -130,9 +130,9 @@
  27571. .SUFFIXES:
  27572. .SUFFIXES: .S .c .lo .o .obj .s
  27573. $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
  27574. - cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps src/switch/debug/Makefile
  27575. + cd $(top_srcdir) && $(AUTOMAKE) --gnu src/switch/debug/Makefile
  27576. -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  27577. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
  27578. cd $(top_builddir) \
  27579. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
  27580. @@ -146,9 +146,6 @@
  27581. maintainer-clean-noinstPROGRAMS:
  27582. -.c.o:
  27583. - $(COMPILE) -c $<
  27584. -
  27585. # FIXME: We should only use cygpath when building on Windows,
  27586. # and only if it is available.
  27587. .c.obj:
  27588. @@ -171,9 +168,6 @@
  27589. maintainer-clean-compile:
  27590. -.c.lo:
  27591. - $(LIBTOOL) --mode=compile $(COMPILE) -c $<
  27592. -
  27593. .s.lo:
  27594. $(LIBTOOL) --mode=compile $(COMPILE) -c $<
  27595. @@ -212,7 +206,7 @@
  27596. awk ' { files[$$0] = 1; } \
  27597. END { for (i in files) print i; }'`; \
  27598. test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
  27599. - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
  27600. + || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags $$unique $(LISP))
  27601. mostlyclean-tags:
  27602. @@ -228,6 +222,11 @@
  27603. subdir = src/switch/debug
  27604. distdir: $(DISTFILES)
  27605. + here=`cd $(top_builddir) && pwd`; \
  27606. + top_distdir=`cd $(top_distdir) && pwd`; \
  27607. + distdir=`cd $(distdir) && pwd`; \
  27608. + cd $(top_srcdir) \
  27609. + && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu src/switch/debug/Makefile
  27610. @for file in $(DISTFILES); do \
  27611. d=$(srcdir); \
  27612. if test -d $$d/$$file; then \
  27613. @@ -238,11 +237,38 @@
  27614. || cp -p $$d/$$file $(distdir)/$$file || :; \
  27615. fi; \
  27616. done
  27617. -debug.o: debug.c ../../../config.h ../../../src/include/atm.h \
  27618. - ../../../src/include/stdint.h ../../../src/include/atmd.h \
  27619. - ../../../src/qgen/uni.h ../fab.h ../proto.h \
  27620. - ../../../src/include/atmsap.h ../sig.h
  27621. +DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
  27622. +
  27623. +-include $(DEP_FILES)
  27624. +
  27625. +mostlyclean-depend:
  27626. +
  27627. +clean-depend:
  27628. +
  27629. +distclean-depend:
  27630. + -rm -rf .deps
  27631. +
  27632. +maintainer-clean-depend:
  27633. +
  27634. +%.o: %.c
  27635. + @echo '$(COMPILE) -c $<'; \
  27636. + $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
  27637. + @-cp .deps/$(*F).pp .deps/$(*F).P; \
  27638. + tr ' ' '\012' < .deps/$(*F).pp \
  27639. + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
  27640. + >> .deps/$(*F).P; \
  27641. + rm .deps/$(*F).pp
  27642. +
  27643. +%.lo: %.c
  27644. + @echo '$(LTCOMPILE) -c $<'; \
  27645. + $(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
  27646. + @-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \
  27647. + < .deps/$(*F).pp > .deps/$(*F).P; \
  27648. + tr ' ' '\012' < .deps/$(*F).pp \
  27649. + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
  27650. + >> .deps/$(*F).P; \
  27651. + rm -f .deps/$(*F).pp
  27652. info-am:
  27653. info: info-am
  27654. dvi-am:
  27655. @@ -279,27 +305,27 @@
  27656. maintainer-clean-generic:
  27657. mostlyclean-am: mostlyclean-noinstPROGRAMS mostlyclean-compile \
  27658. - mostlyclean-libtool mostlyclean-tags \
  27659. + mostlyclean-libtool mostlyclean-tags mostlyclean-depend \
  27660. mostlyclean-generic
  27661. mostlyclean: mostlyclean-am
  27662. clean-am: clean-noinstPROGRAMS clean-compile clean-libtool clean-tags \
  27663. - clean-generic mostlyclean-am
  27664. + clean-depend clean-generic mostlyclean-am
  27665. clean: clean-am
  27666. distclean-am: distclean-noinstPROGRAMS distclean-compile \
  27667. - distclean-libtool distclean-tags distclean-generic \
  27668. - clean-am
  27669. + distclean-libtool distclean-tags distclean-depend \
  27670. + distclean-generic clean-am
  27671. -rm -f libtool
  27672. distclean: distclean-am
  27673. maintainer-clean-am: maintainer-clean-noinstPROGRAMS \
  27674. maintainer-clean-compile maintainer-clean-libtool \
  27675. - maintainer-clean-tags maintainer-clean-generic \
  27676. - distclean-am
  27677. + maintainer-clean-tags maintainer-clean-depend \
  27678. + maintainer-clean-generic distclean-am
  27679. @echo "This command is intended for maintainers to use;"
  27680. @echo "it deletes files that may require special tools to rebuild."
  27681. @@ -310,12 +336,14 @@
  27682. mostlyclean-compile distclean-compile clean-compile \
  27683. maintainer-clean-compile mostlyclean-libtool distclean-libtool \
  27684. clean-libtool maintainer-clean-libtool tags mostlyclean-tags \
  27685. -distclean-tags clean-tags maintainer-clean-tags distdir info-am info \
  27686. -dvi-am dvi check check-am installcheck-am installcheck install-exec-am \
  27687. -install-exec install-data-am install-data install-am install \
  27688. -uninstall-am uninstall all-redirect all-am all installdirs \
  27689. -mostlyclean-generic distclean-generic clean-generic \
  27690. -maintainer-clean-generic clean mostlyclean distclean maintainer-clean
  27691. +distclean-tags clean-tags maintainer-clean-tags distdir \
  27692. +mostlyclean-depend distclean-depend clean-depend \
  27693. +maintainer-clean-depend info-am info dvi-am dvi check check-am \
  27694. +installcheck-am installcheck install-exec-am install-exec \
  27695. +install-data-am install-data install-am install uninstall-am uninstall \
  27696. +all-redirect all-am all installdirs mostlyclean-generic \
  27697. +distclean-generic clean-generic maintainer-clean-generic clean \
  27698. +mostlyclean distclean maintainer-clean
  27699. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  27700. Index: linux-atm-2.4.1/src/switch/debug/debug.c
  27701. ===================================================================
  27702. --- linux-atm-2.4.1.orig/src/switch/debug/debug.c 2007-10-20 19:19:11.358275747 +0200
  27703. +++ linux-atm-2.4.1/src/switch/debug/debug.c 2007-10-20 19:19:12.414335932 +0200
  27704. @@ -43,7 +43,7 @@
  27705. void fab_init(CALL *call)
  27706. {
  27707. - PRV(call) = alloc_t(FAB);
  27708. + call->fab = alloc_t(FAB);
  27709. PRV(call)->next = calls;
  27710. calls = call;
  27711. }
  27712. @@ -59,7 +59,7 @@
  27713. diag(COMPONENT,DIAG_FATAL,"fab_destroy: call %p not found",call);
  27714. *walk = PRV(call)->next;
  27715. free(PRV(call));
  27716. - PRV(call) = NULL;
  27717. + call->fab = NULL;
  27718. }
  27719. Index: linux-atm-2.4.1/src/switch/tcp/Makefile.in
  27720. ===================================================================
  27721. --- linux-atm-2.4.1.orig/src/switch/tcp/Makefile.in 2007-10-20 19:19:11.366276205 +0200
  27722. +++ linux-atm-2.4.1/src/switch/tcp/Makefile.in 2007-10-20 19:19:12.422336385 +0200
  27723. @@ -1,4 +1,4 @@
  27724. -# Makefile.in generated automatically by automake 1.4-p5 from Makefile.am
  27725. +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
  27726. # Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
  27727. # This Makefile.in is free software; the Free Software Foundation
  27728. @@ -90,8 +90,7 @@
  27729. INCLUDES = -I$(top_builddir)/src/qgen
  27730. sw_tcp_SOURCES = tcpsw.c
  27731. -sw_tcp_XTRAS = $(top_builddir)/src/switch/libsw.a \
  27732. - $(top_builddir)/src/lib/libatm.la
  27733. +sw_tcp_XTRAS = $(top_builddir)/src/switch/libsw.a $(top_builddir)/src/lib/libatm.la
  27734. sw_tcp_LDADD = $(sw_tcp_XTRAS) -lfl
  27735. sw_tcp_DEPENDENCIES = $(sw_tcp_XTRAS)
  27736. @@ -120,8 +119,9 @@
  27737. DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
  27738. -TAR = gtar
  27739. +TAR = tar
  27740. GZIP_ENV = --best
  27741. +DEP_FILES = .deps/tcpsw.P
  27742. SOURCES = $(sw_tcp_SOURCES)
  27743. OBJECTS = $(sw_tcp_OBJECTS)
  27744. @@ -129,9 +129,9 @@
  27745. .SUFFIXES:
  27746. .SUFFIXES: .S .c .lo .o .obj .s
  27747. $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
  27748. - cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps src/switch/tcp/Makefile
  27749. + cd $(top_srcdir) && $(AUTOMAKE) --gnu src/switch/tcp/Makefile
  27750. -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  27751. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
  27752. cd $(top_builddir) \
  27753. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
  27754. @@ -145,9 +145,6 @@
  27755. maintainer-clean-noinstPROGRAMS:
  27756. -.c.o:
  27757. - $(COMPILE) -c $<
  27758. -
  27759. # FIXME: We should only use cygpath when building on Windows,
  27760. # and only if it is available.
  27761. .c.obj:
  27762. @@ -170,9 +167,6 @@
  27763. maintainer-clean-compile:
  27764. -.c.lo:
  27765. - $(LIBTOOL) --mode=compile $(COMPILE) -c $<
  27766. -
  27767. .s.lo:
  27768. $(LIBTOOL) --mode=compile $(COMPILE) -c $<
  27769. @@ -211,7 +205,7 @@
  27770. awk ' { files[$$0] = 1; } \
  27771. END { for (i in files) print i; }'`; \
  27772. test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
  27773. - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
  27774. + || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags $$unique $(LISP))
  27775. mostlyclean-tags:
  27776. @@ -227,6 +221,11 @@
  27777. subdir = src/switch/tcp
  27778. distdir: $(DISTFILES)
  27779. + here=`cd $(top_builddir) && pwd`; \
  27780. + top_distdir=`cd $(top_distdir) && pwd`; \
  27781. + distdir=`cd $(distdir) && pwd`; \
  27782. + cd $(top_srcdir) \
  27783. + && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu src/switch/tcp/Makefile
  27784. @for file in $(DISTFILES); do \
  27785. d=$(srcdir); \
  27786. if test -d $$d/$$file; then \
  27787. @@ -237,11 +236,38 @@
  27788. || cp -p $$d/$$file $(distdir)/$$file || :; \
  27789. fi; \
  27790. done
  27791. -tcpsw.o: tcpsw.c ../../../config.h ../../../src/include/stdint.h \
  27792. - ../../../src/include/atm.h ../../../src/include/atmd.h \
  27793. - ../../../src/qgen/uni.h ../fab.h ../proto.h \
  27794. - ../../../src/include/atmsap.h ../sig.h ../dispatch.h ../swc.h
  27795. +DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
  27796. +
  27797. +-include $(DEP_FILES)
  27798. +
  27799. +mostlyclean-depend:
  27800. +
  27801. +clean-depend:
  27802. +
  27803. +distclean-depend:
  27804. + -rm -rf .deps
  27805. +
  27806. +maintainer-clean-depend:
  27807. +
  27808. +%.o: %.c
  27809. + @echo '$(COMPILE) -c $<'; \
  27810. + $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
  27811. + @-cp .deps/$(*F).pp .deps/$(*F).P; \
  27812. + tr ' ' '\012' < .deps/$(*F).pp \
  27813. + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
  27814. + >> .deps/$(*F).P; \
  27815. + rm .deps/$(*F).pp
  27816. +
  27817. +%.lo: %.c
  27818. + @echo '$(LTCOMPILE) -c $<'; \
  27819. + $(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
  27820. + @-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \
  27821. + < .deps/$(*F).pp > .deps/$(*F).P; \
  27822. + tr ' ' '\012' < .deps/$(*F).pp \
  27823. + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
  27824. + >> .deps/$(*F).P; \
  27825. + rm -f .deps/$(*F).pp
  27826. info-am:
  27827. info: info-am
  27828. dvi-am:
  27829. @@ -278,27 +304,27 @@
  27830. maintainer-clean-generic:
  27831. mostlyclean-am: mostlyclean-noinstPROGRAMS mostlyclean-compile \
  27832. - mostlyclean-libtool mostlyclean-tags \
  27833. + mostlyclean-libtool mostlyclean-tags mostlyclean-depend \
  27834. mostlyclean-generic
  27835. mostlyclean: mostlyclean-am
  27836. clean-am: clean-noinstPROGRAMS clean-compile clean-libtool clean-tags \
  27837. - clean-generic mostlyclean-am
  27838. + clean-depend clean-generic mostlyclean-am
  27839. clean: clean-am
  27840. distclean-am: distclean-noinstPROGRAMS distclean-compile \
  27841. - distclean-libtool distclean-tags distclean-generic \
  27842. - clean-am
  27843. + distclean-libtool distclean-tags distclean-depend \
  27844. + distclean-generic clean-am
  27845. -rm -f libtool
  27846. distclean: distclean-am
  27847. maintainer-clean-am: maintainer-clean-noinstPROGRAMS \
  27848. maintainer-clean-compile maintainer-clean-libtool \
  27849. - maintainer-clean-tags maintainer-clean-generic \
  27850. - distclean-am
  27851. + maintainer-clean-tags maintainer-clean-depend \
  27852. + maintainer-clean-generic distclean-am
  27853. @echo "This command is intended for maintainers to use;"
  27854. @echo "it deletes files that may require special tools to rebuild."
  27855. @@ -309,12 +335,14 @@
  27856. mostlyclean-compile distclean-compile clean-compile \
  27857. maintainer-clean-compile mostlyclean-libtool distclean-libtool \
  27858. clean-libtool maintainer-clean-libtool tags mostlyclean-tags \
  27859. -distclean-tags clean-tags maintainer-clean-tags distdir info-am info \
  27860. -dvi-am dvi check check-am installcheck-am installcheck install-exec-am \
  27861. -install-exec install-data-am install-data install-am install \
  27862. -uninstall-am uninstall all-redirect all-am all installdirs \
  27863. -mostlyclean-generic distclean-generic clean-generic \
  27864. -maintainer-clean-generic clean mostlyclean distclean maintainer-clean
  27865. +distclean-tags clean-tags maintainer-clean-tags distdir \
  27866. +mostlyclean-depend distclean-depend clean-depend \
  27867. +maintainer-clean-depend info-am info dvi-am dvi check check-am \
  27868. +installcheck-am installcheck install-exec-am install-exec \
  27869. +install-data-am install-data install-am install uninstall-am uninstall \
  27870. +all-redirect all-am all installdirs mostlyclean-generic \
  27871. +distclean-generic clean-generic maintainer-clean-generic clean \
  27872. +mostlyclean distclean maintainer-clean
  27873. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  27874. Index: linux-atm-2.4.1/src/switch/tcp/tcpsw.c
  27875. ===================================================================
  27876. --- linux-atm-2.4.1.orig/src/switch/tcp/tcpsw.c 2007-10-20 19:19:11.374276662 +0200
  27877. +++ linux-atm-2.4.1/src/switch/tcp/tcpsw.c 2007-10-20 19:19:12.426336614 +0200
  27878. @@ -345,7 +345,7 @@
  27879. void fab_init(CALL *call)
  27880. {
  27881. - PRV(call) = alloc_t(FAB);
  27882. + call->fab = alloc_t(FAB);
  27883. PRV(call)->active = 0;
  27884. PRV(call)->next = calls;
  27885. calls = call;
  27886. @@ -362,7 +362,7 @@
  27887. diag(COMPONENT,DIAG_FATAL,"fab_destroy: call %p not found",call);
  27888. *walk = PRV(call)->next;
  27889. free(PRV(call));
  27890. - PRV(call) = NULL;
  27891. + call->fab = NULL;
  27892. }
  27893. Index: linux-atm-2.4.1/src/config/Makefile.in
  27894. ===================================================================
  27895. --- linux-atm-2.4.1.orig/src/config/Makefile.in 2007-10-20 19:19:11.382277116 +0200
  27896. +++ linux-atm-2.4.1/src/config/Makefile.in 2007-10-20 19:19:12.430336845 +0200
  27897. @@ -1,4 +1,4 @@
  27898. -# Makefile.in generated automatically by automake 1.4-p5 from Makefile.am
  27899. +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
  27900. # Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
  27901. # This Makefile.in is free software; the Free Software Foundation
  27902. @@ -96,14 +96,14 @@
  27903. DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
  27904. -TAR = gtar
  27905. +TAR = tar
  27906. GZIP_ENV = --best
  27907. all: all-redirect
  27908. .SUFFIXES:
  27909. $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
  27910. - cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps src/config/Makefile
  27911. + cd $(top_srcdir) && $(AUTOMAKE) --gnu src/config/Makefile
  27912. -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  27913. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
  27914. cd $(top_builddir) \
  27915. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
  27916. @@ -186,7 +186,7 @@
  27917. awk ' { files[$$0] = 1; } \
  27918. END { for (i in files) print i; }'`; \
  27919. test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
  27920. - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
  27921. + || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags $$unique $(LISP))
  27922. mostlyclean-tags:
  27923. @@ -202,6 +202,11 @@
  27924. subdir = src/config
  27925. distdir: $(DISTFILES)
  27926. + here=`cd $(top_builddir) && pwd`; \
  27927. + top_distdir=`cd $(top_distdir) && pwd`; \
  27928. + distdir=`cd $(distdir) && pwd`; \
  27929. + cd $(top_srcdir) \
  27930. + && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu src/config/Makefile
  27931. @for file in $(DISTFILES); do \
  27932. d=$(srcdir); \
  27933. if test -d $$d/$$file; then \
  27934. Index: linux-atm-2.4.1/src/config/init-redhat/Makefile.in
  27935. ===================================================================
  27936. --- linux-atm-2.4.1.orig/src/config/init-redhat/Makefile.in 2007-10-20 19:19:11.390277576 +0200
  27937. +++ linux-atm-2.4.1/src/config/init-redhat/Makefile.in 2007-10-20 19:19:12.438337296 +0200
  27938. @@ -1,4 +1,4 @@
  27939. -# Makefile.in generated automatically by automake 1.4-p5 from Makefile.am
  27940. +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
  27941. # Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
  27942. # This Makefile.in is free software; the Free Software Foundation
  27943. @@ -94,14 +94,14 @@
  27944. DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
  27945. -TAR = gtar
  27946. +TAR = tar
  27947. GZIP_ENV = --best
  27948. all: all-redirect
  27949. .SUFFIXES:
  27950. $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
  27951. - cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps src/config/init-redhat/Makefile
  27952. + cd $(top_srcdir) && $(AUTOMAKE) --gnu src/config/init-redhat/Makefile
  27953. -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  27954. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
  27955. cd $(top_builddir) \
  27956. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
  27957. @@ -114,6 +114,11 @@
  27958. subdir = src/config/init-redhat
  27959. distdir: $(DISTFILES)
  27960. + here=`cd $(top_builddir) && pwd`; \
  27961. + top_distdir=`cd $(top_distdir) && pwd`; \
  27962. + distdir=`cd $(distdir) && pwd`; \
  27963. + cd $(top_srcdir) \
  27964. + && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu src/config/init-redhat/Makefile
  27965. @for file in $(DISTFILES); do \
  27966. d=$(srcdir); \
  27967. if test -d $$d/$$file; then \
  27968. Index: linux-atm-2.4.1/src/extra/Makefile.in
  27969. ===================================================================
  27970. --- linux-atm-2.4.1.orig/src/extra/Makefile.in 2007-10-20 19:19:11.422279396 +0200
  27971. +++ linux-atm-2.4.1/src/extra/Makefile.in 2007-10-20 19:19:12.474339351 +0200
  27972. @@ -1,4 +1,4 @@
  27973. -# Makefile.in generated automatically by automake 1.4-p5 from Makefile.am
  27974. +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
  27975. # Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
  27976. # This Makefile.in is free software; the Free Software Foundation
  27977. @@ -96,14 +96,14 @@
  27978. DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
  27979. -TAR = gtar
  27980. +TAR = tar
  27981. GZIP_ENV = --best
  27982. all: all-redirect
  27983. .SUFFIXES:
  27984. $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
  27985. - cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps src/extra/Makefile
  27986. + cd $(top_srcdir) && $(AUTOMAKE) --gnu src/extra/Makefile
  27987. -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  27988. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
  27989. cd $(top_builddir) \
  27990. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
  27991. @@ -188,7 +188,7 @@
  27992. awk ' { files[$$0] = 1; } \
  27993. END { for (i in files) print i; }'`; \
  27994. test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
  27995. - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
  27996. + || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags $$unique $(LISP))
  27997. mostlyclean-tags:
  27998. @@ -204,6 +204,11 @@
  27999. subdir = src/extra
  28000. distdir: $(DISTFILES)
  28001. + here=`cd $(top_builddir) && pwd`; \
  28002. + top_distdir=`cd $(top_distdir) && pwd`; \
  28003. + distdir=`cd $(distdir) && pwd`; \
  28004. + cd $(top_srcdir) \
  28005. + && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu src/extra/Makefile
  28006. @for file in $(DISTFILES); do \
  28007. d=$(srcdir); \
  28008. if test -d $$d/$$file; then \
  28009. Index: linux-atm-2.4.1/src/extra/ANS/Makefile.in
  28010. ===================================================================
  28011. --- linux-atm-2.4.1.orig/src/extra/ANS/Makefile.in 2007-10-20 19:19:11.442280535 +0200
  28012. +++ linux-atm-2.4.1/src/extra/ANS/Makefile.in 2007-10-20 19:19:12.482339805 +0200
  28013. @@ -1,4 +1,4 @@
  28014. -# Makefile.in generated automatically by automake 1.4-p5 from Makefile.am
  28015. +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
  28016. # Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
  28017. # This Makefile.in is free software; the Free Software Foundation
  28018. @@ -94,14 +94,14 @@
  28019. DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
  28020. -TAR = gtar
  28021. +TAR = tar
  28022. GZIP_ENV = --best
  28023. all: all-redirect
  28024. .SUFFIXES:
  28025. $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
  28026. - cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps src/extra/ANS/Makefile
  28027. + cd $(top_srcdir) && $(AUTOMAKE) --gnu src/extra/ANS/Makefile
  28028. -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  28029. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
  28030. cd $(top_builddir) \
  28031. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
  28032. @@ -114,6 +114,11 @@
  28033. subdir = src/extra/ANS
  28034. distdir: $(DISTFILES)
  28035. + here=`cd $(top_builddir) && pwd`; \
  28036. + top_distdir=`cd $(top_distdir) && pwd`; \
  28037. + distdir=`cd $(distdir) && pwd`; \
  28038. + cd $(top_srcdir) \
  28039. + && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu src/extra/ANS/Makefile
  28040. @for file in $(DISTFILES); do \
  28041. d=$(srcdir); \
  28042. if test -d $$d/$$file; then \
  28043. Index: linux-atm-2.4.1/doc/Makefile.in
  28044. ===================================================================
  28045. --- linux-atm-2.4.1.orig/doc/Makefile.in 2007-10-20 19:19:11.450280995 +0200
  28046. +++ linux-atm-2.4.1/doc/Makefile.in 2007-10-20 19:19:12.494340491 +0200
  28047. @@ -1,4 +1,4 @@
  28048. -# Makefile.in generated automatically by automake 1.4-p5 from Makefile.am
  28049. +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
  28050. # Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
  28051. # This Makefile.in is free software; the Free Software Foundation
  28052. @@ -96,14 +96,14 @@
  28053. DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
  28054. -TAR = gtar
  28055. +TAR = tar
  28056. GZIP_ENV = --best
  28057. all: all-redirect
  28058. .SUFFIXES:
  28059. $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
  28060. - cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps doc/Makefile
  28061. + cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/Makefile
  28062. -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  28063. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
  28064. cd $(top_builddir) \
  28065. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
  28066. @@ -116,6 +116,11 @@
  28067. subdir = doc
  28068. distdir: $(DISTFILES)
  28069. + here=`cd $(top_builddir) && pwd`; \
  28070. + top_distdir=`cd $(top_distdir) && pwd`; \
  28071. + distdir=`cd $(distdir) && pwd`; \
  28072. + cd $(top_srcdir) \
  28073. + && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu doc/Makefile
  28074. @for file in $(DISTFILES); do \
  28075. d=$(srcdir); \
  28076. if test -d $$d/$$file; then \
  28077. Index: linux-atm-2.4.1/debian/patches/00list
  28078. ===================================================================
  28079. --- /dev/null 1970-01-01 00:00:00.000000000 +0000
  28080. +++ linux-atm-2.4.1/debian/patches/00list 2007-10-20 19:19:12.494340491 +0200
  28081. @@ -0,0 +1 @@
  28082. +10_atmbr2684.h
  28083. Index: linux-atm-2.4.1/debian/patches/10_atmbr2684.h.dpatch
  28084. ===================================================================
  28085. --- /dev/null 1970-01-01 00:00:00.000000000 +0000
  28086. +++ linux-atm-2.4.1/debian/patches/10_atmbr2684.h.dpatch 2007-10-20 19:19:12.506341173 +0200
  28087. @@ -0,0 +1,598 @@
  28088. +#! /bin/sh -e
  28089. +## 01_kernel-header.dpatch by <[email protected]>
  28090. +##
  28091. +## All lines beginning with ## DP:' are a description of the patch.
  28092. +## DP: add header file atmbr2684.h
  28093. +
  28094. +if [ -e /usr/include/linux/atmbr2684.h ]; then exit 0; fi
  28095. +
  28096. +if [ $# -ne 1 ]; then
  28097. + echo "basename $0: script expects -patch|-unpatch as argument" >&2
  28098. + exit 1
  28099. +fi
  28100. +case "$1" in
  28101. + -patch) patch -f --no-backup-if-mismatch -p1 < $0;;
  28102. + -unpatch) patch -f --no-backup-if-mismatch -E -R -p1 < $0;;
  28103. + *)
  28104. + echo "basename $0: script expects -patch|-unpatch as argument" >&2
  28105. + exit 1;;
  28106. +esac
  28107. +
  28108. +exit 0
  28109. +@DPATCH@
  28110. +
  28111. +--- linux-atm.orig/src/include/linux/atmbr2684.h
  28112. ++++ linux-atm/src/include/linux/atmbr2684.h
  28113. +@@ -0,0 +1,101 @@
  28114. ++#ifndef _LINUX_ATMBR2684_H
  28115. ++#define _LINUX_ATMBR2684_H
  28116. ++
  28117. ++#include <linux/atm.h>
  28118. ++#include <linux/if.h> /* For IFNAMSIZ */
  28119. ++
  28120. ++/*
  28121. ++ * Type of media we're bridging (ethernet, token ring, etc) Currently only
  28122. ++ * ethernet is supported
  28123. ++ */
  28124. ++#define BR2684_MEDIA_ETHERNET (0) /* 802.3 */
  28125. ++#define BR2684_MEDIA_802_4 (1) /* 802.4 */
  28126. ++#define BR2684_MEDIA_TR (2) /* 802.5 - token ring */
  28127. ++#define BR2684_MEDIA_FDDI (3)
  28128. ++#define BR2684_MEDIA_802_6 (4) /* 802.6 */
  28129. ++
  28130. ++/*
  28131. ++ * Is there FCS inbound on this VC? This currently isn't supported.
  28132. ++ */
  28133. ++#define BR2684_FCSIN_NO (0)
  28134. ++#define BR2684_FCSIN_IGNORE (1)
  28135. ++#define BR2684_FCSIN_VERIFY (2)
  28136. ++
  28137. ++/*
  28138. ++ * Is there FCS outbound on this VC? This currently isn't supported.
  28139. ++ */
  28140. ++#define BR2684_FCSOUT_NO (0)
  28141. ++#define BR2684_FCSOUT_SENDZERO (1)
  28142. ++#define BR2684_FCSOUT_GENERATE (2)
  28143. ++
  28144. ++/*
  28145. ++ * Does this VC include LLC encapsulation?
  28146. ++ */
  28147. ++#define BR2684_ENCAPS_VC (0) /* VC-mux */
  28148. ++#define BR2684_ENCAPS_LLC (1)
  28149. ++#define BR2684_ENCAPS_AUTODETECT (2) /* Unsuported */
  28150. ++
  28151. ++/*
  28152. ++ * This is for the ATM_NEWBACKENDIF call - these are like socket families:
  28153. ++ * the first element of the structure is the backend number and the rest
  28154. ++ * is per-backend specific
  28155. ++ */
  28156. ++struct atm_newif_br2684 {
  28157. ++ atm_backend_t backend_num; /* ATM_BACKEND_BR2684 */
  28158. ++ int media; /* BR2684_MEDIA_* */
  28159. ++ char ifname[IFNAMSIZ];
  28160. ++ int mtu;
  28161. ++};
  28162. ++
  28163. ++/*
  28164. ++ * This structure is used to specify a br2684 interface - either by a
  28165. ++ * positive integer (returned by ATM_NEWBACKENDIF) or the interfaces name
  28166. ++ */
  28167. ++#define BR2684_FIND_BYNOTHING (0)
  28168. ++#define BR2684_FIND_BYNUM (1)
  28169. ++#define BR2684_FIND_BYIFNAME (2)
  28170. ++struct br2684_if_spec {
  28171. ++ int method; /* BR2684_FIND_* */
  28172. ++ union {
  28173. ++ char ifname[IFNAMSIZ];
  28174. ++ int devnum;
  28175. ++ } spec;
  28176. ++};
  28177. ++
  28178. ++/*
  28179. ++ * This is for the ATM_SETBACKEND call - these are like socket families:
  28180. ++ * the first element of the structure is the backend number and the rest
  28181. ++ * is per-backend specific
  28182. ++ */
  28183. ++struct atm_backend_br2684 {
  28184. ++ atm_backend_t backend_num; /* ATM_BACKEND_BR2684 */
  28185. ++ struct br2684_if_spec ifspec;
  28186. ++ int fcs_in; /* BR2684_FCSIN_* */
  28187. ++ int fcs_out; /* BR2684_FCSOUT_* */
  28188. ++ int fcs_auto; /* 1: fcs_{in,out} disabled if no FCS rx'ed */
  28189. ++ int encaps; /* BR2684_ENCAPS_* */
  28190. ++ int has_vpiid; /* 1: use vpn_id - Unsupported */
  28191. ++ __u8 vpn_id[7];
  28192. ++ int send_padding; /* unsupported */
  28193. ++ int min_size; /* we will pad smaller packets than this */
  28194. ++};
  28195. ++
  28196. ++/*
  28197. ++ * The BR2684_SETFILT ioctl is an experimental mechanism for folks
  28198. ++ * terminating a large number of IP-only vcc's. When netfilter allows
  28199. ++ * efficient per-if in/out filters, this support will be removed
  28200. ++ */
  28201. ++struct br2684_filter {
  28202. ++ __u32 prefix; /* network byte order */
  28203. ++ __u32 netmask; /* 0 = disable filter */
  28204. ++};
  28205. ++
  28206. ++struct br2684_filter_set {
  28207. ++ struct br2684_if_spec ifspec;
  28208. ++ struct br2684_filter filter;
  28209. ++};
  28210. ++
  28211. ++#define BR2684_SETFILT _IOW( 'a', ATMIOC_BACKEND + 0, \
  28212. ++ struct br2684_filter_set)
  28213. ++
  28214. ++#endif /* _LINUX_ATMBR2684_H */
  28215. +--- linux-atm.orig/src/include/linux/atmdev.h
  28216. ++++ linux-atm/src/include/linux/atmdev.h
  28217. +@@ -0,0 +1,468 @@
  28218. ++/* atmdev.h - ATM device driver declarations and various related items */
  28219. ++
  28220. ++/* Written 1995-2000 by Werner Almesberger, EPFL LRC/ICA */
  28221. ++
  28222. ++
  28223. ++#ifndef LINUX_ATMDEV_H
  28224. ++#define LINUX_ATMDEV_H
  28225. ++
  28226. ++
  28227. ++#include <linux/config.h>
  28228. ++#include <linux/atmapi.h>
  28229. ++#include <linux/atm.h>
  28230. ++#include <linux/atmioc.h>
  28231. ++
  28232. ++
  28233. ++#define ESI_LEN 6
  28234. ++
  28235. ++#define ATM_OC3_PCR (155520000/270*260/8/53)
  28236. ++ /* OC3 link rate: 155520000 bps
  28237. ++ SONET overhead: /270*260 (9 section, 1 path)
  28238. ++ bits per cell: /8/53
  28239. ++ max cell rate: 353207.547 cells/sec */
  28240. ++#define ATM_25_PCR ((25600000/8-8000)/54)
  28241. ++ /* 25 Mbps ATM cell rate (59111) */
  28242. ++#define ATM_OC12_PCR (622080000/1080*1040/8/53)
  28243. ++ /* OC12 link rate: 622080000 bps
  28244. ++ SONET overhead: /1080*1040
  28245. ++ bits per cell: /8/53
  28246. ++ max cell rate: 1412830.188 cells/sec */
  28247. ++#define ATM_DS3_PCR (8000*12)
  28248. ++ /* DS3: 12 cells in a 125 usec time slot */
  28249. ++
  28250. ++#define ATM_SD(s) ((s)->sk->protinfo.af_atm)
  28251. ++
  28252. ++
  28253. ++#define __AAL_STAT_ITEMS \
  28254. ++ __HANDLE_ITEM(tx); /* TX okay */ \
  28255. ++ __HANDLE_ITEM(tx_err); /* TX errors */ \
  28256. ++ __HANDLE_ITEM(rx); /* RX okay */ \
  28257. ++ __HANDLE_ITEM(rx_err); /* RX errors */ \
  28258. ++ __HANDLE_ITEM(rx_drop); /* RX out of memory */
  28259. ++
  28260. ++struct atm_aal_stats {
  28261. ++#define __HANDLE_ITEM(i) int i
  28262. ++ __AAL_STAT_ITEMS
  28263. ++#undef __HANDLE_ITEM
  28264. ++};
  28265. ++
  28266. ++
  28267. ++struct atm_dev_stats {
  28268. ++ struct atm_aal_stats aal0;
  28269. ++ struct atm_aal_stats aal34;
  28270. ++ struct atm_aal_stats aal5;
  28271. ++} __ATM_API_ALIGN;
  28272. ++
  28273. ++
  28274. ++#define ATM_GETLINKRATE _IOW('a',ATMIOC_ITF+1,struct atmif_sioc)
  28275. ++ /* get link rate */
  28276. ++#define ATM_GETNAMES _IOW('a',ATMIOC_ITF+3,struct atm_iobuf)
  28277. ++ /* get interface names (numbers) */
  28278. ++#define ATM_GETTYPE _IOW('a',ATMIOC_ITF+4,struct atmif_sioc)
  28279. ++ /* get interface type name */
  28280. ++#define ATM_GETESI _IOW('a',ATMIOC_ITF+5,struct atmif_sioc)
  28281. ++ /* get interface ESI */
  28282. ++#define ATM_GETADDR _IOW('a',ATMIOC_ITF+6,struct atmif_sioc)
  28283. ++ /* get itf's local ATM addr. list */
  28284. ++#define ATM_RSTADDR _IOW('a',ATMIOC_ITF+7,struct atmif_sioc)
  28285. ++ /* reset itf's ATM address list */
  28286. ++#define ATM_ADDADDR _IOW('a',ATMIOC_ITF+8,struct atmif_sioc)
  28287. ++ /* add a local ATM address */
  28288. ++#define ATM_DELADDR _IOW('a',ATMIOC_ITF+9,struct atmif_sioc)
  28289. ++ /* remove a local ATM address */
  28290. ++#define ATM_GETCIRANGE _IOW('a',ATMIOC_ITF+10,struct atmif_sioc)
  28291. ++ /* get connection identifier range */
  28292. ++#define ATM_SETCIRANGE _IOW('a',ATMIOC_ITF+11,struct atmif_sioc)
  28293. ++ /* set connection identifier range */
  28294. ++#define ATM_SETESI _IOW('a',ATMIOC_ITF+12,struct atmif_sioc)
  28295. ++ /* set interface ESI */
  28296. ++#define ATM_SETESIF _IOW('a',ATMIOC_ITF+13,struct atmif_sioc)
  28297. ++ /* force interface ESI */
  28298. ++#define ATM_GETSTAT _IOW('a',ATMIOC_SARCOM+0,struct atmif_sioc)
  28299. ++ /* get AAL layer statistics */
  28300. ++#define ATM_GETSTATZ _IOW('a',ATMIOC_SARCOM+1,struct atmif_sioc)
  28301. ++ /* get AAL layer statistics and zero */
  28302. ++#define ATM_GETLOOP _IOW('a',ATMIOC_SARCOM+2,struct atmif_sioc)
  28303. ++ /* get loopback mode */
  28304. ++#define ATM_SETLOOP _IOW('a',ATMIOC_SARCOM+3,struct atmif_sioc)
  28305. ++ /* set loopback mode */
  28306. ++#define ATM_QUERYLOOP _IOW('a',ATMIOC_SARCOM+4,struct atmif_sioc)
  28307. ++ /* query supported loopback modes */
  28308. ++#define ATM_SETSC _IOW('a',ATMIOC_SPECIAL+1,int)
  28309. ++ /* enable or disable single-copy */
  28310. ++#define ATM_SETBACKEND _IOW('a',ATMIOC_SPECIAL+2,atm_backend_t)
  28311. ++ /* set backend handler */
  28312. ++#define ATM_NEWBACKENDIF _IOW('a',ATMIOC_SPECIAL+3,atm_backend_t)
  28313. ++ /* use backend to make new if */
  28314. ++
  28315. ++/*
  28316. ++ * These are backend handkers that can be set via the ATM_SETBACKEND call
  28317. ++ * above. In the future we may support dynamic loading of these - for now,
  28318. ++ * they're just being used to share the ATMIOC_BACKEND ioctls
  28319. ++ */
  28320. ++#define ATM_BACKEND_RAW 0
  28321. ++#define ATM_BACKEND_PPP 1 /* PPPoATM - RFC2364 */
  28322. ++#define ATM_BACKEND_BR2684 2 /* Bridged RFC1483/2684 */
  28323. ++
  28324. ++/* for ATM_GETTYPE */
  28325. ++#define ATM_ITFTYP_LEN 8 /* maximum length of interface type name */
  28326. ++
  28327. ++/*
  28328. ++ * Loopback modes for ATM_{PHY,SAR}_{GET,SET}LOOP
  28329. ++ */
  28330. ++
  28331. ++/* Point of loopback CPU-->SAR-->PHY-->line--> ... */
  28332. ++#define __ATM_LM_NONE 0 /* no loop back ^ ^ ^ ^ */
  28333. ++#define __ATM_LM_AAL 1 /* loop back PDUs --' | | | */
  28334. ++#define __ATM_LM_ATM 2 /* loop back ATM cells ---' | | */
  28335. ++/* RESERVED 4 loop back on PHY side ---' */
  28336. ++#define __ATM_LM_PHY 8 /* loop back bits (digital) ----' | */
  28337. ++#define __ATM_LM_ANALOG 16 /* loop back the analog signal --------' */
  28338. ++
  28339. ++/* Direction of loopback */
  28340. ++#define __ATM_LM_MKLOC(n) ((n)) /* Local (i.e. loop TX to RX) */
  28341. ++#define __ATM_LM_MKRMT(n) ((n) << 8) /* Remote (i.e. loop RX to TX) */
  28342. ++
  28343. ++#define __ATM_LM_XTLOC(n) ((n) & 0xff)
  28344. ++#define __ATM_LM_XTRMT(n) (((n) >> 8) & 0xff)
  28345. ++
  28346. ++#define ATM_LM_NONE 0 /* no loopback */
  28347. ++
  28348. ++#define ATM_LM_LOC_AAL __ATM_LM_MKLOC(__ATM_LM_AAL)
  28349. ++#define ATM_LM_LOC_ATM __ATM_LM_MKLOC(__ATM_LM_ATM)
  28350. ++#define ATM_LM_LOC_PHY __ATM_LM_MKLOC(__ATM_LM_PHY)
  28351. ++#define ATM_LM_LOC_ANALOG __ATM_LM_MKLOC(__ATM_LM_ANALOG)
  28352. ++
  28353. ++#define ATM_LM_RMT_AAL __ATM_LM_MKRMT(__ATM_LM_AAL)
  28354. ++#define ATM_LM_RMT_ATM __ATM_LM_MKRMT(__ATM_LM_ATM)
  28355. ++#define ATM_LM_RMT_PHY __ATM_LM_MKRMT(__ATM_LM_PHY)
  28356. ++#define ATM_LM_RMT_ANALOG __ATM_LM_MKRMT(__ATM_LM_ANALOG)
  28357. ++
  28358. ++/*
  28359. ++ * Note: ATM_LM_LOC_* and ATM_LM_RMT_* can be combined, provided that
  28360. ++ * __ATM_LM_XTLOC(x) <= __ATM_LM_XTRMT(x)
  28361. ++ */
  28362. ++
  28363. ++
  28364. ++struct atm_iobuf {
  28365. ++ int length;
  28366. ++ void *buffer;
  28367. ++};
  28368. ++
  28369. ++/* for ATM_GETCIRANGE / ATM_SETCIRANGE */
  28370. ++
  28371. ++#define ATM_CI_MAX -1 /* use maximum range of VPI/VCI */
  28372. ++
  28373. ++struct atm_cirange {
  28374. ++ char vpi_bits; /* 1..8, ATM_CI_MAX (-1) for maximum */
  28375. ++ char vci_bits; /* 1..16, ATM_CI_MAX (-1) for maximum */
  28376. ++};
  28377. ++
  28378. ++/* for ATM_SETSC; actually taken from the ATM_VF number space */
  28379. ++
  28380. ++#define ATM_SC_RX 1024 /* enable RX single-copy */
  28381. ++#define ATM_SC_TX 2048 /* enable TX single-copy */
  28382. ++
  28383. ++#define ATM_BACKLOG_DEFAULT 32 /* if we get more, we're likely to time out
  28384. ++ anyway */
  28385. ++
  28386. ++/* MF: change_qos (Modify) flags */
  28387. ++
  28388. ++#define ATM_MF_IMMED 1 /* Block until change is effective */
  28389. ++#define ATM_MF_INC_RSV 2 /* Change reservation on increase */
  28390. ++#define ATM_MF_INC_SHP 4 /* Change shaping on increase */
  28391. ++#define ATM_MF_DEC_RSV 8 /* Change reservation on decrease */
  28392. ++#define ATM_MF_DEC_SHP 16 /* Change shaping on decrease */
  28393. ++#define ATM_MF_BWD 32 /* Set the backward direction parameters */
  28394. ++
  28395. ++#define ATM_MF_SET (ATM_MF_INC_RSV | ATM_MF_INC_SHP | ATM_MF_DEC_RSV | \
  28396. ++ ATM_MF_DEC_SHP | ATM_MF_BWD)
  28397. ++
  28398. ++/*
  28399. ++ * ATM_VS_* are used to express VC state in a human-friendly way.
  28400. ++ */
  28401. ++
  28402. ++#define ATM_VS_IDLE 0 /* VC is not used */
  28403. ++#define ATM_VS_CONNECTED 1 /* VC is connected */
  28404. ++#define ATM_VS_CLOSING 2 /* VC is closing */
  28405. ++#define ATM_VS_LISTEN 3 /* VC is listening for incoming setups */
  28406. ++#define ATM_VS_INUSE 4 /* VC is in use (registered with atmsigd) */
  28407. ++#define ATM_VS_BOUND 5 /* VC is bound */
  28408. ++
  28409. ++#define ATM_VS2TXT_MAP \
  28410. ++ "IDLE", "CONNECTED", "CLOSING", "LISTEN", "INUSE", "BOUND"
  28411. ++
  28412. ++#define ATM_VF2TXT_MAP \
  28413. ++ "ADDR", "READY", "PARTIAL", "REGIS", \
  28414. ++ "RELEASED", "HASQOS", "LISTEN", "META", \
  28415. ++ "256", "512", "1024", "2048", \
  28416. ++ "SESSION", "HASSAP", "BOUND", "CLOSE"
  28417. ++
  28418. ++
  28419. ++#ifndef __KERNEL__
  28420. ++#undef __AAL_STAT_ITEMS
  28421. ++#else
  28422. ++
  28423. ++#include <linux/sched.h> /* wait_queue_head_t */
  28424. ++#include <linux/time.h> /* struct timeval */
  28425. ++#include <linux/net.h>
  28426. ++#include <linux/skbuff.h> /* struct sk_buff */
  28427. ++#include <linux/uio.h>
  28428. ++#include <net/sock.h>
  28429. ++#include <asm/atomic.h>
  28430. ++
  28431. ++#ifdef CONFIG_PROC_FS
  28432. ++#include <linux/proc_fs.h>
  28433. ++#endif
  28434. ++
  28435. ++
  28436. ++struct k_atm_aal_stats {
  28437. ++#define __HANDLE_ITEM(i) atomic_t i
  28438. ++ __AAL_STAT_ITEMS
  28439. ++#undef __HANDLE_ITEM
  28440. ++};
  28441. ++
  28442. ++
  28443. ++struct k_atm_dev_stats {
  28444. ++ struct k_atm_aal_stats aal0;
  28445. ++ struct k_atm_aal_stats aal34;
  28446. ++ struct k_atm_aal_stats aal5;
  28447. ++};
  28448. ++
  28449. ++
  28450. ++enum {
  28451. ++ ATM_VF_ADDR, /* Address is in use. Set by anybody, cleared
  28452. ++ by device driver. */
  28453. ++ ATM_VF_READY, /* VC is ready to transfer data. Set by device
  28454. ++ driver, cleared by anybody. */
  28455. ++ ATM_VF_PARTIAL, /* resources are bound to PVC (partial PVC
  28456. ++ setup), controlled by socket layer */
  28457. ++ ATM_VF_REGIS, /* registered with demon, controlled by SVC
  28458. ++ socket layer */
  28459. ++ ATM_VF_BOUND, /* local SAP is set, controlled by SVC socket
  28460. ++ layer */
  28461. ++ ATM_VF_RELEASED, /* demon has indicated/requested release,
  28462. ++ controlled by SVC socket layer */
  28463. ++ ATM_VF_HASQOS, /* QOS parameters have been set */
  28464. ++ ATM_VF_LISTEN, /* socket is used for listening */
  28465. ++ ATM_VF_META, /* SVC socket isn't used for normal data
  28466. ++ traffic and doesn't depend on signaling
  28467. ++ to be available */
  28468. ++ ATM_VF_SESSION, /* VCC is p2mp session control descriptor */
  28469. ++ ATM_VF_HASSAP, /* SAP has been set */
  28470. ++ ATM_VF_CLOSE, /* asynchronous close - treat like VF_RELEASED*/
  28471. ++};
  28472. ++
  28473. ++
  28474. ++#define ATM_VF2VS(flags) \
  28475. ++ (test_bit(ATM_VF_READY,&(flags)) ? ATM_VS_CONNECTED : \
  28476. ++ test_bit(ATM_VF_RELEASED,&(flags)) ? ATM_VS_CLOSING : \
  28477. ++ test_bit(ATM_VF_LISTEN,&(flags)) ? ATM_VS_LISTEN : \
  28478. ++ test_bit(ATM_VF_REGIS,&(flags)) ? ATM_VS_INUSE : \
  28479. ++ test_bit(ATM_VF_BOUND,&(flags)) ? ATM_VS_BOUND : ATM_VS_IDLE)
  28480. ++
  28481. ++
  28482. ++enum {
  28483. ++ ATM_DF_CLOSE, /* close device when last VCC is closed */
  28484. ++};
  28485. ++
  28486. ++
  28487. ++#define ATM_PHY_SIG_LOST 0 /* no carrier/light */
  28488. ++#define ATM_PHY_SIG_UNKNOWN 1 /* carrier/light status is unknown */
  28489. ++#define ATM_PHY_SIG_FOUND 2 /* carrier/light okay */
  28490. ++
  28491. ++#define ATM_ATMOPT_CLP 1 /* set CLP bit */
  28492. ++
  28493. ++
  28494. ++typedef struct { unsigned long bits; } atm_vcc_flags_t;
  28495. ++
  28496. ++
  28497. ++struct atm_vcc {
  28498. ++ atm_vcc_flags_t flags; /* VCC flags (ATM_VF_*) */
  28499. ++ short vpi; /* VPI and VCI (types must be equal */
  28500. ++ /* with sockaddr) */
  28501. ++ int vci;
  28502. ++ unsigned long aal_options; /* AAL layer options */
  28503. ++ unsigned long atm_options; /* ATM layer options */
  28504. ++ struct atm_dev *dev; /* device back pointer */
  28505. ++ struct atm_qos qos; /* QOS */
  28506. ++ struct atm_sap sap; /* SAP */
  28507. ++ void (*push)(struct atm_vcc *vcc,struct sk_buff *skb);
  28508. ++ void (*pop)(struct atm_vcc *vcc,struct sk_buff *skb); /* optional */
  28509. ++ int (*push_oam)(struct atm_vcc *vcc,void *cell);
  28510. ++ int (*send)(struct atm_vcc *vcc,struct sk_buff *skb);
  28511. ++ void *dev_data; /* per-device data */
  28512. ++ void *proto_data; /* per-protocol data */
  28513. ++ struct k_atm_aal_stats *stats; /* pointer to AAL stats group */
  28514. ++ wait_queue_head_t sleep; /* if socket is busy */
  28515. ++ struct sock *sk; /* socket backpointer */
  28516. ++ struct atm_vcc *prev,*next;
  28517. ++ /* SVC part --- may move later ------------------------------------- */
  28518. ++ short itf; /* interface number */
  28519. ++ struct sockaddr_atmsvc local;
  28520. ++ struct sockaddr_atmsvc remote;
  28521. ++ void (*callback)(struct atm_vcc *vcc);
  28522. ++ struct sk_buff_head listenq;
  28523. ++ int backlog_quota; /* number of connection requests we */
  28524. ++ /* can still accept */
  28525. ++ int reply; /* also used by ATMTCP */
  28526. ++ /* Multipoint part ------------------------------------------------- */
  28527. ++ struct atm_vcc *session; /* session VCC descriptor */
  28528. ++ /* Other stuff ----------------------------------------------------- */
  28529. ++ void *user_back; /* user backlink - not touched by */
  28530. ++ /* native ATM stack. Currently used */
  28531. ++ /* by CLIP and sch_atm. */
  28532. ++};
  28533. ++
  28534. ++
  28535. ++struct atm_dev_addr {
  28536. ++ struct sockaddr_atmsvc addr; /* ATM address */
  28537. ++ struct atm_dev_addr *next; /* next address */
  28538. ++};
  28539. ++
  28540. ++
  28541. ++typedef struct { unsigned int bits; } atm_dev_flags_t;
  28542. ++
  28543. ++
  28544. ++struct atm_dev {
  28545. ++ const struct atmdev_ops *ops; /* device operations; NULL if unused */
  28546. ++ const struct atmphy_ops *phy; /* PHY operations, may be undefined */
  28547. ++ /* (NULL) */
  28548. ++ const char *type; /* device type name */
  28549. ++ int number; /* device index */
  28550. ++ struct atm_vcc *vccs; /* VCC table (or NULL) */
  28551. ++ struct atm_vcc *last; /* last VCC (or undefined) */
  28552. ++ void *dev_data; /* per-device data */
  28553. ++ void *phy_data; /* private PHY date */
  28554. ++ atm_dev_flags_t flags; /* device flags (ATM_DF_*) */
  28555. ++ struct atm_dev_addr *local; /* local ATM addresses */
  28556. ++ unsigned char esi[ESI_LEN]; /* ESI ("MAC" addr) */
  28557. ++ struct atm_cirange ci_range; /* VPI/VCI range */
  28558. ++ struct k_atm_dev_stats stats; /* statistics */
  28559. ++ char signal; /* signal status (ATM_PHY_SIG_*) */
  28560. ++ int link_rate; /* link rate (default: OC3) */
  28561. ++ atomic_t refcnt; /* reference count */
  28562. ++ spinlock_t lock; /* protect internal members */
  28563. ++#ifdef CONFIG_PROC_FS
  28564. ++ struct proc_dir_entry *proc_entry; /* proc entry */
  28565. ++ char *proc_name; /* proc entry name */
  28566. ++#endif
  28567. ++ struct list_head dev_list; /* linkage */
  28568. ++};
  28569. ++
  28570. ++
  28571. ++/*
  28572. ++ * ioctl, getsockopt, setsockopt, and sg_send are optional and can be set to
  28573. ++ * NULL. */
  28574. ++
  28575. ++/* OF: send_Oam Flags */
  28576. ++
  28577. ++#define ATM_OF_IMMED 1 /* Attempt immediate delivery */
  28578. ++#define ATM_OF_INRATE 2 /* Attempt in-rate delivery */
  28579. ++
  28580. ++struct atmdev_ops { /* only send is required */
  28581. ++ void (*dev_close)(struct atm_dev *dev);
  28582. ++ int (*open)(struct atm_vcc *vcc,short vpi,int vci);
  28583. ++ void (*close)(struct atm_vcc *vcc);
  28584. ++ int (*ioctl)(struct atm_dev *dev,unsigned int cmd,void *arg);
  28585. ++ int (*getsockopt)(struct atm_vcc *vcc,int level,int optname,
  28586. ++ void *optval,int optlen);
  28587. ++ int (*setsockopt)(struct atm_vcc *vcc,int level,int optname,
  28588. ++ void *optval,int optlen);
  28589. ++ int (*send)(struct atm_vcc *vcc,struct sk_buff *skb);
  28590. ++ int (*sg_send)(struct atm_vcc *vcc,unsigned long start,
  28591. ++ unsigned long size);
  28592. ++#if 0 /* keep the current hack for now */
  28593. ++ int (*send_iovec)(struct atm_vcc *vcc,struct iovec *iov,int size,
  28594. ++ void (*discard)(struct atm_vcc *vcc,void *user),void *user);
  28595. ++#endif
  28596. ++ int (*send_oam)(struct atm_vcc *vcc,void *cell,int flags);
  28597. ++ void (*phy_put)(struct atm_dev *dev,unsigned char value,
  28598. ++ unsigned long addr);
  28599. ++ unsigned char (*phy_get)(struct atm_dev *dev,unsigned long addr);
  28600. ++ void (*feedback)(struct atm_vcc *vcc,struct sk_buff *skb,
  28601. ++ unsigned long start,unsigned long dest,int len);
  28602. ++ int (*change_qos)(struct atm_vcc *vcc,struct atm_qos *qos,int flags);
  28603. ++ int (*proc_read)(struct atm_dev *dev,loff_t *pos,char *page);
  28604. ++ struct module *owner;
  28605. ++};
  28606. ++
  28607. ++
  28608. ++struct atmphy_ops {
  28609. ++ int (*start)(struct atm_dev *dev);
  28610. ++ int (*ioctl)(struct atm_dev *dev,unsigned int cmd,void *arg);
  28611. ++ void (*interrupt)(struct atm_dev *dev);
  28612. ++ int (*stop)(struct atm_dev *dev);
  28613. ++};
  28614. ++
  28615. ++struct atm_skb_data {
  28616. ++ struct atm_vcc *vcc; /* ATM VCC */
  28617. ++ unsigned long atm_options; /* ATM layer options */
  28618. ++};
  28619. ++
  28620. ++#define ATM_SKB(skb) (((struct atm_skb_data *) (skb)->cb))
  28621. ++
  28622. ++struct atm_dev *atm_dev_register(const char *type,const struct atmdev_ops *ops,
  28623. ++ int number,atm_dev_flags_t *flags); /* number == -1: pick first available */
  28624. ++struct atm_dev *atm_dev_lookup(int number);
  28625. ++void atm_dev_deregister(struct atm_dev *dev);
  28626. ++void shutdown_atm_dev(struct atm_dev *dev);
  28627. ++void bind_vcc(struct atm_vcc *vcc,struct atm_dev *dev);
  28628. ++
  28629. ++
  28630. ++/*
  28631. ++ * This is approximately the algorithm used by alloc_skb.
  28632. ++ *
  28633. ++ */
  28634. ++
  28635. ++static inline int atm_guess_pdu2truesize(int pdu_size)
  28636. ++{
  28637. ++ return ((pdu_size+15) & ~15) + sizeof(struct sk_buff);
  28638. ++}
  28639. ++
  28640. ++
  28641. ++static inline void atm_force_charge(struct atm_vcc *vcc,int truesize)
  28642. ++{
  28643. ++ atomic_add(truesize, &vcc->sk->rmem_alloc);
  28644. ++}
  28645. ++
  28646. ++
  28647. ++static inline void atm_return(struct atm_vcc *vcc,int truesize)
  28648. ++{
  28649. ++ atomic_sub(truesize, &vcc->sk->rmem_alloc);
  28650. ++}
  28651. ++
  28652. ++
  28653. ++static inline int atm_may_send(struct atm_vcc *vcc,unsigned int size)
  28654. ++{
  28655. ++ return (size + atomic_read(&vcc->sk->wmem_alloc)) < vcc->sk->sndbuf;
  28656. ++}
  28657. ++
  28658. ++
  28659. ++static inline void atm_dev_hold(struct atm_dev *dev)
  28660. ++{
  28661. ++ atomic_inc(&dev->refcnt);
  28662. ++}
  28663. ++
  28664. ++
  28665. ++static inline void atm_dev_release(struct atm_dev *dev)
  28666. ++{
  28667. ++ atomic_dec(&dev->refcnt);
  28668. ++
  28669. ++ if ((atomic_read(&dev->refcnt) == 1) &&
  28670. ++ test_bit(ATM_DF_CLOSE,&dev->flags))
  28671. ++ shutdown_atm_dev(dev);
  28672. ++}
  28673. ++
  28674. ++
  28675. ++int atm_charge(struct atm_vcc *vcc,int truesize);
  28676. ++struct sk_buff *atm_alloc_charge(struct atm_vcc *vcc,int pdu_size,
  28677. ++ int gfp_flags);
  28678. ++int atm_find_ci(struct atm_vcc *vcc,short *vpi,int *vci);
  28679. ++int atm_pcr_goal(struct atm_trafprm *tp);
  28680. ++
  28681. ++void atm_async_release_vcc(struct atm_vcc *vcc,int reply);
  28682. ++
  28683. ++#endif /* __KERNEL__ */
  28684. ++
  28685. ++#endif
  28686. Index: linux-atm-2.4.1/debian/control
  28687. ===================================================================
  28688. --- /dev/null 1970-01-01 00:00:00.000000000 +0000
  28689. +++ linux-atm-2.4.1/debian/control 2007-10-20 19:19:12.506341173 +0200
  28690. @@ -0,0 +1,57 @@
  28691. +Source: linux-atm
  28692. +Section: net
  28693. +Priority: optional
  28694. +Maintainer: Peter De Schrijver (p2) <[email protected]>
  28695. +Build-Depends: debhelper (>> 4.0.0), bison, flex, perl, dpatch, automake1.4
  28696. +Standards-Version: 3.6.1
  28697. +
  28698. +Package: atm-tools
  28699. +Architecture: any
  28700. +Depends: ${shlibs:Depends}
  28701. +Description: Base programs for ATM in Linux, the net-tools for ATM
  28702. + This package provides all the basic programs needed for setting up,
  28703. + monitoring and tuning ATM networks. Such as:
  28704. + * atmsigd, an ATM signal daemon that implements the ATM UNI protocol.
  28705. + * atmtcp, a tool to setup ATM over TCP connections.
  28706. + * atmarpd, an implementation of the ATMARP protocol (RFC1577, RFC1755)
  28707. + * zeppelin, an ATM LAN Emulation client daemon
  28708. + * les and bus, ATM LAN Emulation service daemons
  28709. + .
  28710. + Notice that upstream still flags these tools as experimental software and
  28711. + says that there is still a number of known bugs and issues. The
  28712. + software is, however, in productive use at a number of sites and is
  28713. + working reliably.
  28714. + .
  28715. + Homepage: http://linux-atm.sourceforge.net/
  28716. +
  28717. +Package: atm-dev
  28718. +Depends: libatm1-dev
  28719. +Architecture: all
  28720. +Section: oldlibs
  28721. +Description: Development files for compiling ATM programs (dummy package)
  28722. + This dummy package provides a transition from the previous atm packages.
  28723. + It is provided for backwards compatibility only and may be removedafter
  28724. + the upgrade has completed or when when no other package depend on it.
  28725. +
  28726. +Package: libatm1
  28727. +Section: libs
  28728. +Architecture: any
  28729. +Depends: ${shlibs:Depends}
  28730. +Conflicts: atm-tools (<< 2.4.1-6)
  28731. +Description: shared library for ATM (Asynchronous Transfer Mode)
  28732. + Shared libraries needed by ATM (Asynchronous Transfer Mode) related programs
  28733. + .
  28734. + Homepage: http://linux-atm.sourceforge.net/
  28735. +
  28736. +Package: libatm1-dev
  28737. +Section: libdevel
  28738. +Architecture: any
  28739. +Depends: libc6-dev, libatm1
  28740. +Replaces: atm-dev (<< 2.4.1-7)
  28741. +Conflicts: atm-dev (<< 2.4.1-7)
  28742. +Provides: libatm-dev
  28743. +Description: Development files for compiling ATM programs
  28744. + Header files and development libraries for compiling ATM (Asynchronous
  28745. + Transfer Mode) related programs.
  28746. + .
  28747. + Homepage: http://linux-atm.sourceforge.net/
  28748. Index: linux-atm-2.4.1/debian/rules
  28749. ===================================================================
  28750. --- /dev/null 1970-01-01 00:00:00.000000000 +0000
  28751. +++ linux-atm-2.4.1/debian/rules 2007-10-20 19:19:12.510341404 +0200
  28752. @@ -0,0 +1,136 @@
  28753. +#!/usr/bin/make -f
  28754. +# Sample debian/rules that uses debhelper.
  28755. +# GNU copyright 1997 to 1999 by Joey Hess.
  28756. +
  28757. +# Uncomment this to turn on verbose mode.
  28758. +#export DH_VERBOSE=1
  28759. +
  28760. +# This is the debhelper compatability version to use.
  28761. +export DH_COMPAT=4
  28762. +
  28763. +export PACKAGE=linux-atm
  28764. +
  28765. +buildindeppackages=atm-dev
  28766. +buildarchpackages=atm-tools libatm1 libatm1-dev
  28767. +
  28768. +# generate -ppackage1 -ppackage2 ... commandline for debhelper
  28769. +dhbuildarchpackages=$(addprefix -p,$(buildarchpackages))
  28770. +dhbuildindeppackages=$(addprefix -p,$(buildindeppackages))
  28771. +
  28772. +include /usr/share/dpatch/dpatch.make
  28773. +
  28774. +configure: configure-stamp
  28775. +configure-stamp:
  28776. + dh_testdir
  28777. + ./configure --prefix /usr --mandir /usr/share/man --sysconfdir /etc
  28778. + touch configure-stamp
  28779. +
  28780. +build: configure-stamp build-stamp
  28781. +build-stamp: patch-stamp
  28782. + dh_testdir
  28783. +
  28784. + # Add here commands to compile the package.
  28785. + $(MAKE) $(EXTRA_VARS)
  28786. + cat debian/copyright.header COPYING > debian/copyright
  28787. +
  28788. + touch build-stamp
  28789. +
  28790. +clean: clean1 unpatch
  28791. +clean1:
  28792. + dh_testdir
  28793. + dh_testroot
  28794. + rm -f build-stamp configure-stamp
  28795. +
  28796. + # Add here commands to clean up after the build process.
  28797. + -$(MAKE) distclean
  28798. +
  28799. + dh_clean
  28800. + rm -rf debian/atm-tools.8 debian/copyright
  28801. +
  28802. +install: build
  28803. + dh_testdir
  28804. + dh_testroot
  28805. + dh_clean -k
  28806. + dh_installdirs
  28807. +
  28808. + # Add here commands to install the package into debian/atm-tools
  28809. + $(MAKE) DESTDIR=`pwd`/debian/tmp install
  28810. +
  28811. + # manpages
  28812. + /usr/bin/pod2man --section=8 --release="atm-tools $(PKG_VER)" --lax \
  28813. + --center="Debian GNU/Linux" debian/atm-tools.pod > debian/atm-tools.8
  28814. +
  28815. + ln -s atm-tools.8 debian/tmp/usr/share/man/man8/aread.8
  28816. + ln -s atm-tools.8 debian/tmp/usr/share/man/man8/awrite.8
  28817. + ln -s atm-tools.8 debian/tmp/usr/share/man/man8/enitune.8
  28818. + ln -s atm-tools.8 debian/tmp/usr/share/man/man8/ilmid.8
  28819. + ln -s atm-tools.8 debian/tmp/usr/share/man/man8/saaldump.8
  28820. + ln -s atm-tools.8 debian/tmp/usr/share/man/man8/sonetdiag.8
  28821. + ln -s atm-tools.8 debian/tmp/usr/share/man/man8/ttcp_atm.8
  28822. + ln -s atm-tools.8 debian/tmp/usr/share/man/man8/zntune.8
  28823. +
  28824. +# Build architecture-independent files here.
  28825. +binary-indep: build install
  28826. + dh_testdir $(dhbuildindeppackages)
  28827. + dh_testroot $(dhbuildindeppackages)
  28828. + dh_install $(dhbuildindeppackages)
  28829. +
  28830. +# dh_installdebconf $(dhbuildindeppackages)
  28831. + dh_installdocs $(dhbuildindeppackages)
  28832. + dh_installmenu $(dhbuildindeppackages)
  28833. +# dh_installlogrotate $(dhbuildindeppackages)
  28834. +# dh_installemacsen $(dhbuildindeppackages)
  28835. +# dh_installpam $(dhbuildindeppackages)
  28836. +# dh_installmime $(dhbuildindeppackages)
  28837. + dh_installinit $(dhbuildindeppackages) --init-script=atm -- start 34 0 6 . start 39 S .
  28838. + dh_installcron $(dhbuildindeppackages)
  28839. + dh_installman $(dhbuildindeppackages)
  28840. + dh_installinfo $(dhbuildindeppackages)
  28841. +# dh_undocumented $(dhbuildindeppackages)
  28842. + dh_installchangelogs -i ChangeLog $(dhbuildpackages)
  28843. + dh_link $(dhbuildindeppackages)
  28844. + dh_strip $(dhbuildindeppackages)
  28845. + dh_compress $(dhbuildindeppackages)
  28846. + dh_fixperms $(dhbuildindeppackages)
  28847. + dh_makeshlibs $(dhbuildindeppackages)
  28848. + dh_installdeb $(dhbuildindeppackages)
  28849. +# dh_perl $(dhbuildindeppackages)
  28850. + dh_shlibdeps $(dhbuildindeppackages)
  28851. + dh_gencontrol $(dhbuildindeppackages)
  28852. + dh_md5sums $(dhbuildindeppackages)
  28853. + dh_builddeb $(dhbuildindeppackages)
  28854. +
  28855. +# Build architecture-dependent files here.
  28856. +binary-arch: build install
  28857. + dh_testdir $(dhbuildarchpackages)
  28858. + dh_testroot $(dhbuildarchpackages)
  28859. + dh_install $(dhbuildarchpackages)
  28860. +
  28861. +# dh_installdebconf $(dhbuildarchpackages)
  28862. + dh_installdocs $(dhbuildarchpackages)
  28863. + dh_installmenu $(dhbuildarchpackages)
  28864. +# dh_installlogrotate $(dhbuildarchpackages)
  28865. +# dh_installemacsen $(dhbuildarchpackages)
  28866. +# dh_installpam $(dhbuildarchpackages)
  28867. +# dh_installmime $(dhbuildarchpackages)
  28868. + dh_installinit $(dhbuildarchpackages) --init-script=atm -- start 34 0 6 . start 39 S .
  28869. + dh_installcron $(dhbuildarchpackages)
  28870. + dh_installman $(dhbuildarchpackages)
  28871. + dh_installinfo $(dhbuildarchpackages)
  28872. +# dh_undocumented $(dhbuildarchpackages)
  28873. + dh_installchangelogs -a ChangeLog $(dhbuildarchpackages)
  28874. + dh_link $(dhbuildarchpackages)
  28875. + dh_strip $(dhbuildarchpackages)
  28876. + dh_compress $(dhbuildarchpackages)
  28877. + dh_fixperms $(dhbuildarchpackages)
  28878. + dh_makeshlibs $(dhbuildarchpackages)
  28879. + dh_installdeb $(dhbuildarchpackages)
  28880. +# dh_perl $(dhbuildarchpackages)
  28881. + dh_shlibdeps -a -L libatm1 -l debian/libatm1/lib $(dhbuildarchpackages)
  28882. + dh_gencontrol $(dhbuildarchpackages)
  28883. + dh_md5sums $(dhbuildarchpackages)
  28884. + dh_builddeb $(dhbuildarchpackages)
  28885. +
  28886. +binary: binary-indep binary-arch
  28887. +.PHONY: build binary-indep binary-arch binary install configure
  28888. + get-2684 patch unpatch clean1
  28889. Index: linux-atm-2.4.1/debian/atm-tools-br2684.install
  28890. ===================================================================
  28891. --- /dev/null 1970-01-01 00:00:00.000000000 +0000
  28892. +++ linux-atm-2.4.1/debian/atm-tools-br2684.install 2007-10-20 19:19:12.538342995 +0200
  28893. @@ -0,0 +1 @@
  28894. +debian/tmp/usr/sbin/br2684ctl usr/sbin
  28895. Index: linux-atm-2.4.1/debian/atm-tools-br2684/usr/share/doc/atm-tools-br2684/changelog.Debian
  28896. ===================================================================
  28897. --- /dev/null 1970-01-01 00:00:00.000000000 +0000
  28898. +++ linux-atm-2.4.1/debian/atm-tools-br2684/usr/share/doc/atm-tools-br2684/changelog.Debian 2007-10-20 19:19:12.546343453 +0200
  28899. @@ -0,0 +1,206 @@
  28900. +linux-atm (2.4.1-16) unstable; urgency=low
  28901. +
  28902. + * Fix build problem with gcc 3.4 (Closes: #259422)
  28903. +
  28904. + -- Peter De Schrijver (p2) <[email protected]> Thu, 15 Jul 2004 14:28:10 +0200
  28905. +
  28906. +linux-atm (2.4.1-15) unstable; urgency=low
  28907. +
  28908. + * Updated descriptions (Closes: #239161)
  28909. +
  28910. + -- Peter De Schrijver (p2) <[email protected]> Sun, 4 Apr 2004 21:10:20 +0200
  28911. +
  28912. +linux-atm (2.4.1-14) unstable; urgency=low
  28913. +
  28914. + * Fix symlink for /usr/lib/libatm.so (Closes: #221011)
  28915. +
  28916. + -- Peter De Schrijver (p2) <[email protected]> Sun, 7 Dec 2003 21:53:19 +0100
  28917. +
  28918. +linux-atm (2.4.1-13) unstable; urgency=low
  28919. +
  28920. + * Previous version fixed #217259, but no changelog entry (Closes: #217259)
  28921. + * Previous version fixed #216662, but no changelog entry (Closes: #216662)
  28922. + * Added missing build dependency on automake1.4 (Closes: #221120, #221284)
  28923. + * New Maintainer (Closes: #206982)
  28924. +
  28925. + -- Peter De Schrijver (p2) <[email protected]> Mon, 17 Nov 2003 23:03:58 +0100
  28926. +
  28927. +linux-atm (2.4.1-12) unstable; urgency=low
  28928. +
  28929. + * don't build atm-tools-br2684 by default. Thanks to ftpmaster for
  28930. + not allowing the package to be in Debian.
  28931. + * Since we don't build atm-tools-br2684 any more, revert back to
  28932. + autotools output from 2.4.1-9
  28933. + * Add README.br2684 documenting a way to build the package locally.
  28934. +
  28935. + -- Marc Haber <[email protected]> Wed, 5 Nov 2003 21:31:42 +0000
  28936. +
  28937. +linux-atm (2.4.1-11) experimental; urgency=low
  28938. +
  28939. + * Build-Depend on dpatch
  28940. + * dpatch br2684 header files from later libc for old libc (woody)
  28941. +
  28942. + -- Marc Haber <[email protected]> Wed, 29 Oct 2003 19:05:07 +0000
  28943. +
  28944. +linux-atm (2.4.1-10) experimental; urgency=low
  28945. +
  28946. + * add br2684 to package (closes: #216663)
  28947. + * autoreconf to actually build br2684
  28948. + * have libatm1-dev provide libatm-dev (closes: #216662)
  28949. + * move lib symlink to libatm1-dev as well (closes: #217259)
  28950. +
  28951. + -- Marc Haber <[email protected]> Thu, 23 Oct 2003 17:55:43 +0000
  28952. +
  28953. +linux-atm (2.4.1-9) unstable; urgency=low
  28954. +
  28955. + * put libatm1-dev in libdevel (closes: #213170)
  28956. + * make sure that new descriptions actually make it into the package
  28957. +
  28958. + -- Marc Haber <[email protected]> Thu, 9 Oct 2003 17:08:10 +0000
  28959. +
  28960. +linux-atm (2.4.1-8) unstable; urgency=low
  28961. +
  28962. + * build arch-indep package as targets of binary-indep (closes: #212124)
  28963. + * use dh_installdocs to install files to libatm1-dev/docs
  28964. + * symlink shared lib to usr/bin (closes: #213146)
  28965. + * Use better long descriptions. Thanks to Javier (closes: #209427)
  28966. + Fernandez-Sanguino (closes: #209612)
  28967. +
  28968. + -- Marc Haber <[email protected]> Sun, 28 Sep 2003 19:29:08 +0000
  28969. +
  28970. +linux-atm (2.4.1-7) unstable; urgency=low
  28971. +
  28972. + * libatm1 now conflicts with atm-tools (<< 2.4.1-6) (closes: #208170)
  28973. + * armarp now writes output to stdout.
  28974. + * add atm-dev as empty transitional package to help upgrades
  28975. +
  28976. + -- Marc Haber <[email protected]> Tue, 2 Sep 2003 09:20:33 +0000
  28977. +
  28978. +linux-atm (2.4.1-6) unstable; urgency=low
  28979. +
  28980. + * split off shared libraries to libatm1
  28981. + * rename atm-dev to libatm1-dev
  28982. + * Standards-Version: 3.6.1
  28983. +
  28984. + -- Marc Haber <[email protected]> Tue, 26 Aug 2003 15:46:27 +0000
  28985. +
  28986. +linux-atm (2.4.1-5) unstable; urgency=low
  28987. +
  28988. + * move *.a and *.la to usr/lib (closes: #199506).
  28989. + * let atm-dev depend on atm-tools to avoid dangling /lib/libatm.so
  28990. + symlink.
  28991. + * Standards-Version: 3.5.6
  28992. +
  28993. + -- Marc Haber <[email protected]> Wed, 30 Jul 2003 11:46:19 +0000
  28994. +
  28995. +linux-atm (2.4.1-4) unstable; urgency=low
  28996. +
  28997. + * add Build-Depends: on automake1.4
  28998. +
  28999. + -- Marc Haber <[email protected]> Wed, 11 Jun 2003 16:58:21 +0000
  29000. +
  29001. +linux-atm (2.4.1-3) unstable; urgency=low
  29002. +
  29003. + * rebuilding libtool broke src/test/Makefile.in. Applied fix to
  29004. + Makefile.am and re-built again.
  29005. +
  29006. + -- Marc Haber <[email protected]> Wed, 11 Jun 2003 11:05:26 +0000
  29007. +
  29008. +linux-atm (2.4.1-2) unstable; urgency=low
  29009. +
  29010. + * rebuild configure script with new libtool (closes: #196909)
  29011. +
  29012. + -- Marc Haber <[email protected]> Tue, 10 Jun 2003 21:01:50 +0000
  29013. +
  29014. +linux-atm (2.4.1-1) unstable; urgency=low
  29015. +
  29016. + * new upstream source
  29017. + * remove atmarp and atmarpd from /usr/sbin as they are already in
  29018. + /sbin (closes: #196216)
  29019. + * lintian fixes
  29020. +
  29021. + -- Marc Haber <[email protected]> Mon, 9 Jun 2003 16:03:45 +0000
  29022. +
  29023. +linux-atm (2.4.0-5) unstable; urgency=low
  29024. +
  29025. + * Fix for src/test/Makefile.in to allow building on hppa and ia64
  29026. + which the fix introduced to 2.4.0-4 broke. Thanks to Goswin
  29027. + Brederlow.
  29028. + * Move init.d priority to that atmarpd is started before network
  29029. + interfaces are started.
  29030. + * Move atmarpd and libatm to /sbin and /lib to allow atmarpd to be
  29031. + started before /usr is mounted.
  29032. + * use dh_install instead of dh_movefiles.
  29033. +
  29034. + -- Marc Haber <[email protected]> Sat, 24 Aug 2002 15:13:48 +0000
  29035. +
  29036. +linux-atm (2.4.0-4) unstable; urgency=low
  29037. +
  29038. + * new maintainer
  29039. + * Fix for src/test/Makefile.in to allow building on sparc.
  29040. + Thanks to Patrick Mauritz. (closes: #144225).
  29041. + * added pseudo-manpage for manpage-less binaries.
  29042. + * removed rpath by changing configure and make install paramaters
  29043. +
  29044. + -- Marc Haber <[email protected]> Fri, 16 Aug 2002 20:39:05 +0000
  29045. +
  29046. +linux-atm (2.4.0-3) unstable; urgency=HIGH
  29047. +
  29048. + * Re-ran libtoolize.
  29049. + Closes: #143522
  29050. +
  29051. + * Previous version Closes: #135328
  29052. +
  29053. + -- Russell Coker <[email protected]> Fri, 19 Apr 2002 01:55:00 +0200
  29054. +
  29055. +linux-atm (2.4.0-2) unstable; urgency=HIGH
  29056. +
  29057. + * Put a "grep -v EMAXERRNO" into the build process to deal with mipsel and
  29058. + the "#ifdef __KERNEL__" it has in it's /usr/include/asm/errno.h .
  29059. +
  29060. + -- Russell Coker <[email protected]> Thu, 18 Apr 2002 19:56:00 +0200
  29061. +
  29062. +linux-atm (2.4.0-1) unstable; urgency=HIGH
  29063. +
  29064. + * New upstream version which changes source package name.
  29065. + Closes: #138911
  29066. +
  29067. + -- Russell Coker <[email protected]> Mon, 18 Mar 2002 17:42:00 +0100
  29068. +
  29069. +atm (0.79-4) unstable; urgency=low
  29070. +
  29071. + * Added build-depends on flex.
  29072. + Closes: #111072
  29073. +
  29074. + * Made the atm tools use a shared object to save space.
  29075. +
  29076. + * Fixed the copyright file and put all copyright details in both packages.
  29077. +
  29078. + * Added support for easy building with different kernel headers.
  29079. + Closes: #110249
  29080. +
  29081. + -- Russell Coker <[email protected]> Sun, 7 Oct 2001 14:11:33 +0200
  29082. +
  29083. +atm (0.79-3) unstable; urgency=low
  29084. +
  29085. + * Created /etc/init.d/atm to start and stop atmarpd.
  29086. + Closes: #110252
  29087. +
  29088. + * Added build-depends on bison.
  29089. + Closes: #110576
  29090. +
  29091. + -- Russell Coker <[email protected]> Fri, 31 Aug 2001 15:21:44 +0200
  29092. +
  29093. +atm (0.79-2) unstable; urgency=low
  29094. +
  29095. + * Changed the main package name to atm-tools to indicate that it doesn't
  29096. + provide ATM (gotta have the kernel support), it just has the daemons and
  29097. + utilities.
  29098. +
  29099. + -- Russell Coker <[email protected]> Sat, 25 Aug 2001 17:55:00 +0200
  29100. +
  29101. +atm (0.79-1) unstable; urgency=low
  29102. +
  29103. + * Initial Release.
  29104. +
  29105. + -- Russell Coker <[email protected]> Fri, 24 Aug 2001 17:31:00 +0200
  29106. Index: linux-atm-2.4.1/debian/atm-tools-br2684/usr/share/doc/atm-tools-br2684/changelog
  29107. ===================================================================
  29108. --- /dev/null 1970-01-01 00:00:00.000000000 +0000
  29109. +++ linux-atm-2.4.1/debian/atm-tools-br2684/usr/share/doc/atm-tools-br2684/changelog 2007-10-20 19:19:12.566344593 +0200
  29110. @@ -0,0 +1,3299 @@
  29111. +Version 2.4.0 to 2.4.1 (25-APR-2003)
  29112. +=====================
  29113. +
  29114. +Bug fixes
  29115. +---------
  29116. +
  29117. + - vsprintf's changed to vsnprintf's to prevent possible stack overflows
  29118. +
  29119. +
  29120. +Version 0.79 to 2.4.0 (18-OCT-2001)
  29121. +=====================
  29122. +
  29123. +Bug fixes
  29124. +---------
  29125. +
  29126. + - defined 'now' in src/lib/timer.c
  29127. + - ia64 build fix for ASN (Chas Williams)
  29128. +
  29129. +Other changes
  29130. +-------------
  29131. +
  29132. + - In general, the source tree was rearranged and the old cruft was removed
  29133. + - Old ad hoc build system replaced in favor of a standardized autoconfiscation
  29134. + - Build configuration options are now controlled by 'configure' script instead
  29135. + of changes to the previous 'Rules.make' file
  29136. + - libatm and libatmd merged into one lib: libatm
  29137. + - Both static and shared libraries are built by default. Binaries now built
  29138. + with shared library by default.
  29139. + - Sample atmsigd.conf and hosts.atm are now installed when doing 'make install'
  29140. + - RPM spec file is now available in src/extra/
  29141. + - New RedHat init scripts available in src/config/init-redhat/ (John Strange)
  29142. + (old RedHat 4.0 scripts removed)
  29143. + - ATM on Linux HOWTO now included in doc/ (much derived from usage.tex). We
  29144. + will publish this on the home page as well as linuxdoc.org
  29145. + - tcpdump and libpcap ATM patches/build removed (they have been integrated into
  29146. + their respective packages; see www.tcpdump.org)
  29147. + - ATM Name Service (ANS) files coalesced into src/extra/ANS
  29148. + - ANS bind patch upgraded to bind-4.9.8 (untested)
  29149. + - rtf2e164_cc.pl removed in favor of src/extra/ANS/pdf2e164_cc.pl. The ITU no
  29150. + longer provides E.164 country codes in RTF format. PDF used instead.
  29151. +
  29152. +
  29153. +Version 0.78 to 0.79 (15-AUG-2001)
  29154. +====================
  29155. +
  29156. +Bug fixes
  29157. +---------
  29158. +
  29159. +- uni.c fix for newer versions of gcc
  29160. +- mpoad/io.c quick fix for undefined OPEN_MAX
  29161. +
  29162. +
  29163. +Version 0.77 to 0.78 (7-JUL-2000)
  29164. +====================
  29165. +
  29166. +Bug fixes
  29167. +---------
  29168. +
  29169. + - skb_migrate wasn't protected against functions accessing the list via
  29170. + skb->list
  29171. + - removal of MOD_xxx races in FORE 200E and atmtcp (by Jeff Garzik)
  29172. + - CONFIG_ATM_NICSTAR_USE_IDT77105 set NEED_SUNI_MX instead of
  29173. + NEED_IDT77105_MX (fix from mainstream)
  29174. + - ambassador.c: changed string concatenation and offset calculation breaking
  29175. + compilation with gcc 2.96 (by Jakub Jelinek)
  29176. + - nicstar.c: various locking fixes for SMP (by Rui Prior)
  29177. + - LANE vs. bridging build conflict solved (from mainstream)
  29178. + - %%u instead of %u in mpc.c
  29179. + - fixed formatting of /proc/net/atm/svc
  29180. + - /proc/net/atm/clip always added + after public address, not only if followed
  29181. + by private address
  29182. + - atmsigd now returns EINVAL if attempting to change max_sdu
  29183. + - atm_change_qos now calls adjust_to for additional parameter checking
  29184. + - sendmsg now returns error if size > max_sdu (reported by Alan Kennington)
  29185. + - removed explicit defaults in Config.in (by Christoph Hellwig)
  29186. + - Fore200E: removed #ifdef MODULE
  29187. + - ipcommon.c didn't export skb_migrate to modules (by Mitchell Blank)
  29188. + - ENI: /proc/net/atm/eni:* claimed backlog was in bytes instead of packets
  29189. + - br, bw, window: changed variables receiving possibly negative return values
  29190. + from size_t to ssize_t (reported by Alan Kennington)
  29191. + - LANE: fixed stray errors on lack of ATM address, ATM address change, or ESI
  29192. + change (by Heikki Vatiainen)
  29193. + - LANE: could loop forwever when trying to connect to LECS (by Heikki
  29194. + Vatiainen)
  29195. +
  29196. +New features
  29197. +------------
  29198. +
  29199. + - upgraded to the 2.4.0-test3-pre4 kernel
  29200. +
  29201. +Other changes
  29202. +-------------
  29203. +
  29204. + - as_reject now returns the errno value in msg->reply
  29205. + - removed save_qos hack in svc_change_qos
  29206. + - atmsigd: sap_encode now always includes both max_sdu fields, even if one
  29207. + contains the null value for some reason (by Mohsen Souissi)
  29208. + - PCI updates for Ambassador, FORE 200E, Horizon, Iphase, nicstar, ENI, and
  29209. + ZATM (by Jeff Garzik)
  29210. + - removal of unnecessary #ifdef MODULE for nicstar, idt77105, and FORE 200E
  29211. + (by Jeff Garzik)
  29212. + - generalized skb_migrate to append to an arbitrary sk_buff list
  29213. + - iphase.c: timer initialization cleanup (from mainstream)
  29214. + - clip: dev->name initialization change (from mainstream)
  29215. + - idt77105: cleaned up timer initialization
  29216. + - clip.c: some general cleanup
  29217. + - removed redundant return in clip.c (by Heikki Vatiainen)
  29218. + - changed atm_change_qos to static
  29219. + - fore200e.c: re-enabled anti-unloading code
  29220. + - lec.c: now drops packets on overrun instead of growing infinite queue (by
  29221. + Heikki Vatiainen)
  29222. + - COPYING still mentioned the old led code with partial DEC copyright
  29223. + (reported by Chris Pimlott)
  29224. + - Horizon: removed const warning by casting to (hrz_flags *)
  29225. + - Iphase: tried to print unsigned long with %x when errors are enabled
  29226. + - ENI: eni_send tries to use do_tx instead of tasklet_schedule to reduce delay
  29227. + - ENI: removed eni_dev->backlog_len (information is already in backlog->qlen)
  29228. + - changed the kernel source tree references from .gz to .bz2 compression
  29229. + - changed mkdiff to allow more flexible selection of additional patch
  29230. +
  29231. +
  29232. +Version 0.76 to 0.77 (29-APR-2000)
  29233. +====================
  29234. +
  29235. +Bug fixes
  29236. +---------
  29237. +
  29238. + - atmaddr.8, atmarp.8, atmdump.8, atmloop.8, esi.8 didn't print all options
  29239. + in bold
  29240. + - atmsigd crashed if an interface had more than one local ATM address
  29241. + - atmarpd continued to use VCs after closing if they were closed because
  29242. + ATMARP_SETENTRY failed (reported by Joseph Gooch)
  29243. +
  29244. +New features
  29245. +------------
  29246. +
  29247. + - upgraded to the 2.3.99-pre6 kernel
  29248. +
  29249. +Other changes
  29250. +-------------
  29251. +
  29252. + - CLIP now uses NETDEV_GOING_DOWN instead of NETDEV_DOWN; also avoids
  29253. + "clip_device_event: unknown event 9" warning
  29254. + - added ubr:pcr example to qos(7)
  29255. + - added -V option to atmaddr, atmarp, atmarpd, atmloop, atmsigd, atmtcp, esi,
  29256. + ilmid
  29257. + - sock->sk->sleep now points to vcc->sleep (by Alexander Viro)
  29258. + - CLIP: ATMARP server now reponds to query for local IP address (suggested by
  29259. + Joseph Gooch)
  29260. + - updated t2a.pl
  29261. +
  29262. +
  29263. +Version 0.75 to 0.76 (13-APR-2000)
  29264. +====================
  29265. +
  29266. +Bug fixes
  29267. +---------
  29268. +
  29269. + - ttcp_atm declared port as "short" instead of "unsigned short", yielding
  29270. + confusing diagnostic output
  29271. +
  29272. +New features
  29273. +------------
  29274. +
  29275. + - upgraded to the 2.3.99-pre5 kernel
  29276. +
  29277. +Other changes
  29278. +-------------
  29279. +
  29280. + - eliminated eni_send-tasklet synchronization
  29281. + - PCA200: merged unconditional #inclusion of linux/pci.h from pre5
  29282. +
  29283. +
  29284. +Version 0.74 to 0.75 (7-APR-2000)
  29285. +====================
  29286. +
  29287. +Bug fixes
  29288. +---------
  29289. +
  29290. + - ENI: moved send operation into tasklet to correct synchronization (reported
  29291. + by Heikki Vatiainen)
  29292. + - MPOA: possible deadlock fix (by Heikki Vatiainen)
  29293. + - atm_vcc_flags_t was too small on PPC, causing an overlap with vcc->family
  29294. + (fixed by Chas Williams)
  29295. + - CLIP: needs spin_lock_irqsave instead of only spin_lock (by Rui Prior)
  29296. + - CLIP: clip_push may be called from an interrupt, so the kfree_skb has to
  29297. + become dev_kfree_skb_any (by Heikki Vatiainen)
  29298. +
  29299. +Other changes
  29300. +-------------
  29301. +
  29302. + - removed INCLUDES from atm/ilmid/asn1/Makefile (suggested by Jean Marc
  29303. + Lacroix)
  29304. + - atm/maint/Makefile no longer special-cases atmdiag.c (suggested by Jean Marc
  29305. + Lacroix)
  29306. +
  29307. +
  29308. +Version 0.73 to 0.74 (2-APR-2000)
  29309. +====================
  29310. +
  29311. +Bug fixes
  29312. +---------
  29313. +
  29314. + - atm_poll tried to sleep on two wait queues, which is no longer possible.
  29315. + Removed vcc->wsleep to solve this. (Reported by Joseph Gooch)
  29316. + - lec.c:lec_arp_clear_vccs changed the VCC flags of the wrong VCC, fortunately
  29317. + only in commented-out code
  29318. + - major revision of MPOA ingress and egress cache locking (Heikki Vatiainen)
  29319. +
  29320. +Other changes
  29321. +-------------
  29322. +
  29323. + - removed last remnants of bogus bridging lock from lane_mpoa_init.c
  29324. + (reported by Heikki Vatiainen)
  29325. + - removed last traces of TNET1570A driver
  29326. + - atmdev_init still knew about ENI, but ENI now uses new-style initialization
  29327. + - improved Fore 200E configuration to catch useless settings already at
  29328. + configuration time (by Christophe Lizzi)
  29329. +
  29330. +
  29331. +Version 0.72 to 0.73 (29-MAR-2000)
  29332. +====================
  29333. +
  29334. +Bug fixes
  29335. +---------
  29336. +
  29337. + - ambassador.c and horizon.c had module loading races (fixed by Giuliano
  29338. + Procida)
  29339. + - fore200e: one set_bit was accidently converted to clear_bit, preventing VCs
  29340. + from being opened (fixed by Christophe Lizzi)
  29341. +
  29342. +Other changes
  29343. +-------------
  29344. +
  29345. + - fore200e: moved interrupt handler work to tasklet (by Christophe Lizzi)
  29346. + - fore200e: fixed SBUS DMA direction flags (by Christophe Lizzi)
  29347. + - fore200e: the compile no longer fails when the driver is compiled without
  29348. + any hardware support (and displays a warning; by Christophe Lizzi)
  29349. + - oops, atm/README was lagging behind a few versions
  29350. +
  29351. +
  29352. +Version 0.71 to 0.72 (25-MAR-2000)
  29353. +====================
  29354. +
  29355. +Bug fixes
  29356. +---------
  29357. +
  29358. + - fore200e.h and lec.h didn't #include <linux/config.h> (fixed by David S.
  29359. + Miller ?)
  29360. + - atmloop.c always assumed -q to be present
  29361. +
  29362. +New features
  29363. +------------
  29364. +
  29365. + - upgraded to the 2.3.99-pre3 kernel
  29366. +
  29367. +Other changes
  29368. +-------------
  29369. +
  29370. + - kernel patch still included wd.c hack (reported by David S. Miller)
  29371. + - removed bogus initialization of skb->rx_dev (spotted by Alexey Kuznetsov)
  29372. + - removed bogus lane_bridge_hook_lock (by Heikki Vatiainen)
  29373. + - added sparc64 support for ATM_QUERYLOOP (by Christophe Lizzi)
  29374. + - minor Fore driver cleanup (by Christophe Lizzi)
  29375. + - eni.c: moved interrupt handler work to tasklet
  29376. +
  29377. +
  29378. +Version 0.70 to 0.71 (21-MAR-2000)
  29379. +====================
  29380. +
  29381. +Bug fixes
  29382. +---------
  29383. +
  29384. + - eni.c: fixed potential SMP deadlock on tx_wait
  29385. + - clip.c and lec.c didn't initialize skb->rx_dev
  29386. + - net/atm/svc.c:svc_connect left wait entry in queue on return in some cases
  29387. + - idiot bug in skb_migrate caused weird crashes
  29388. + - atmloop usage erroneously claimed -s was optional
  29389. +
  29390. +New features
  29391. +------------
  29392. +
  29393. + - upgraded to the 2.3.99-pre2 kernel
  29394. + - added atmloop.8 man page
  29395. + - added enqueuing result NET_XMIT_BYPASS for qdiscs that send packets on a
  29396. + path without dequeue (e.g. sch_atm)
  29397. +
  29398. +Other changes
  29399. +-------------
  29400. +
  29401. + - ambassador.c: removed warnings when compiling with CONFIG_SMP (by Giuliano
  29402. + Procida)
  29403. + - changed drivers/atm target from atm.a to atm.o, to make initcalls work
  29404. + - converted eni.c to use pci_register_driver and initcall
  29405. + - cleaned up #ifdef hell in net/atm/signaling.c:sigd_put_skb
  29406. +
  29407. +
  29408. +Version 0.69 to 0.70 (20-MAR-2000)
  29409. +====================
  29410. +
  29411. +Bug fixes
  29412. +---------
  29413. +
  29414. + - LEC compilation as a module still left it in the kernel
  29415. +
  29416. +Other changes
  29417. +-------------
  29418. +
  29419. + - moved LANE-bridging interface code from lec.c to lane_mpoa_init.c (by
  29420. + Heikki Vatiainen)
  29421. + - made SONET and ATM statistics counters atomic to avoid cli() when reading
  29422. + (not updated: similar mechanism in idt77105.c and private shadow statistics
  29423. + of ambassador.c)
  29424. + - changed access to VCC and device flags (ATM_VF_* and ATM_DF_*) to bit set
  29425. + operations
  29426. + - changed flag types to structs to fail compilation of old code
  29427. + - changed last argument of atm_dev_register to a pointer to a bit set for
  29428. + easier migration
  29429. + - net/atm/*.c: eliminated all sleep_on and cli (except in lec.c)
  29430. + - ditto for eni.c and suni.c
  29431. + - corrected indentation of some "permanent" debugging code in zatm.c
  29432. + - made skb_migrate partially atomic, obsoleting yet another cli() in clip.c
  29433. +
  29434. +
  29435. +Version 0.68 to 0.69 (19-MAR-2000)
  29436. +====================
  29437. +
  29438. +Bug fixes
  29439. +---------
  29440. +
  29441. + - ambassador.c: corrected location of initial PLX window for use on Alpha (by
  29442. + Giuliano Procida)
  29443. + - zeppelin: fixed address initialization (found by Christophe Lizzi)
  29444. + - atmsigd.conf man page erroneously described the option "q.2963.1" as
  29445. + "q2963_1"
  29446. + - LANE didn't compile when bridging was enabled (fixed by Heikki Vatiainen;
  29447. + note that bridging also needs an update which is being merged via the
  29448. + mainstream kernel)
  29449. +
  29450. +New features
  29451. +------------
  29452. +
  29453. + - atmsigd: added command-line option -u to set the UNI mode
  29454. + - added ioctl ATM_QUERYLOOP to determine supported loopback modes
  29455. + - added atmloop(8) option -q
  29456. +
  29457. +Other changes
  29458. +-------------
  29459. +
  29460. + - added CREDITS entry of Giuliano Procida
  29461. + - various cosmetic changes to horizon.c (by Giuliano Procida)
  29462. + - ambassador.c: various bits of cleanup (by Giuliano Procida)
  29463. + - added -S <tos> option to ttcp_atm to set the IPv4 TOS byte (this is not
  29464. + really related to ATM)
  29465. + - changed loopback mode values to a bit set
  29466. + - idt77105_ioctl: returned sizeof(int) instead of 0 on ATM_GETLOOP
  29467. + - added phy_ops->stop to suni.c and uPD98402_stop, cleaned up suni.c in the
  29468. + process
  29469. + - removed (very obsolete) mmuio.o from net/atm/Makefile
  29470. +
  29471. +
  29472. +Version 0.67 to 0.68 (28-FEB-2000)
  29473. +====================
  29474. +
  29475. +Bug fixes
  29476. +---------
  29477. +
  29478. + - removed potential dev_kfree_skb(NULL) from *_send of eni.c, zatm.c, iphase.c
  29479. + - eni.c, zatm.c, iphase.c sometimes returned PCI error codes instead of errno
  29480. + codes
  29481. + - arpd/io.c could try to de-reference entry->addr with addr == NULL (fixed by
  29482. + Thomas Dietz)
  29483. + - LANE copied more than dev->addr_len address bytes (fixed by Heikki
  29484. + Vatiainen)
  29485. + - sch_atm didn't remove filters on destroy
  29486. + - fixed typo in esi.c error message
  29487. + - esi.8 claimed to be the man page of atmarp, and it wasn't installed
  29488. + - added checking for VPI/VCI when sending AAL0 cells (by Mitchell Blank)
  29489. + - atmtcp allowed sending on receive-only VCs
  29490. + - various ioctl permission checks were missing (fixed by Mitchell Blank)
  29491. + - fore200e.c and horizon.c didn't always free skbs on send error (fixed by
  29492. + Mitchell Blank)
  29493. + - included an ugly hack to fix the wd.c driver that was broken around 2.3.47
  29494. + (not related to ATM at all...)
  29495. +
  29496. +New features
  29497. +------------
  29498. +
  29499. + - upgraded to the 2.3.48 kernel
  29500. + - added device-independent SAR/PHY loopback setting interface (with many good
  29501. + ideas from Greg Banks and Mitchell Blank), and removed old loopback ioctls
  29502. + - new utility atmloop to set loopback mode
  29503. + - added "stop" to atmphy_ops (requested by Mitchell Blank)
  29504. +
  29505. +Other changes
  29506. +-------------
  29507. +
  29508. + - mkdiff can now also use pre-release kernels
  29509. + - changed *kfree_skb to dev_kfree_skb_{irq,any} in eni.c, zatm.c, and raw.c,
  29510. + where necessary (with help from Heikki Vatiainen)
  29511. + - changed {dev_,}kfree_skb to dev_kfree_skb_any in ambassador.c, horizon.c,
  29512. + iphase.c, and nicstar.c (needs further cleanup)
  29513. + - softnet updates for LANE (by Heikki Vatiainen)
  29514. + - fixed firmeware license of Fore 200E driver and general 0.46/0.47 updates
  29515. + (Christophe Lizzi)
  29516. + - more CREDITS file additions
  29517. + - softnet updates for sch_atm
  29518. + - softnet updates for CLIP (also cleaned up flow control for > 1 VCC/itf;
  29519. + reported by Alexey Kuznetsov)
  29520. + - updated documentation for iproute2-2.2.4-now-ss000225 and streamlined the
  29521. + build procedure
  29522. + - PCI DMA updates for ENI driver
  29523. + - changed the default install location of executables and man pages from
  29524. + /usr/local to /usr
  29525. + - make install no longer installs align, aping, br, bw, delay, isp, svctor,
  29526. + sw_debug, sw_tcp, swc, and window
  29527. + - eni.c: made highly controversial aal5 = ... line more readable
  29528. + - moved /proc/atm to /proc/net/atm
  29529. + - added vcc->send function to allow for AAL-specific processing (may be set
  29530. + to dev->ops->send)
  29531. + - atm_do_connect_dev now calls bind_vcc before AAL initialization to make
  29532. + vcc->dev available
  29533. + - change_qos no longer allows changing of AAL or traffic class (by Mitchell
  29534. + Blank)
  29535. + - changes for new loopback support to fore200e driver and sparc64 code (by
  29536. + Christophe Lizzi)
  29537. +
  29538. +
  29539. +Version 0.66 to 0.67 (2-FEB-2000)
  29540. +====================
  29541. +
  29542. +New features
  29543. +------------
  29544. +
  29545. + - upgraded to 2.3.42
  29546. + - added sunimode utility to set SUNI loopback mode (by Christophe Lizzi)
  29547. +
  29548. +Other changes
  29549. +-------------
  29550. +
  29551. + - removed unused variable warning in net/sched/sch_atm.c
  29552. + - changed ENI_SETMULT from ATMIOC_SARPRV+1 to ATMIOC_SARPRV+7
  29553. + - changed atmarpd's complaint about VCC-less non-ATMARP-server entries from
  29554. + DIAG_ERROR to DIAG_INFO (the condition is okay for an ATMARP server)
  29555. +
  29556. +
  29557. +Version 0.65 to 0.66 (31-JAN-2000)
  29558. +====================
  29559. +
  29560. +Bug fixes
  29561. +---------
  29562. +
  29563. + - atmsigd crashed on reception of as_accept, etc., because of inverted NULL
  29564. + pointer test (reported by Kevin Vargo, Rui Prior, fixed by Julian Cable)
  29565. + - fixed various SPARC build problems (by Christophe Lizzi)
  29566. + - atmsigd insisted that calling party number is local in switch mode
  29567. + - debug switch didn't initialize any ports
  29568. + - net/atm/signaling.c:sigd_enq didn't properly zero the message, yielding
  29569. + kernel pointers partially containing junk
  29570. + - accept(2) didn't copy local ATM address to VCC descriptor (reported by
  29571. + Pedro Brandao)
  29572. + - ilmid/io.c didn't compile on SPARC (reported by Christophe Lizzi)
  29573. + - usage.txt didn't define the %: macro, leaving garbage in usage.txt
  29574. +
  29575. +New features
  29576. +------------
  29577. +
  29578. + - upgraded to 2.3.41
  29579. + - Fore 200E driver now also works for SBA-200E (by Christophe Lizzi)
  29580. +
  29581. +Other changes
  29582. +-------------
  29583. +
  29584. + - added various CREDITS entries
  29585. + - changed TIOC{IN,OUT}Q to SIOC{IN,OUT}Q (no user space rebuild required;
  29586. + the values are identical)
  29587. + - added script atm/switch/tcp/mkfiles for automatic extraction of
  29588. + configuration files
  29589. + - atmsigd called ATM_GETLINKRATE "ATM_GETLINERATE" in complaints
  29590. + - atmsigd tried to obtain link speed in switch mode, although it's not used
  29591. + - Ambassador NIC: various files still had the wrong copyright/licensing text
  29592. + (patch by Giuliano Procida)
  29593. +
  29594. +
  29595. +Version 0.64 to 0.65 (21-JAN-2000)
  29596. +====================
  29597. +
  29598. +Bug fixes
  29599. +---------
  29600. +
  29601. + - fixed 32/64 bit %p formatting problem in /proc/atm/vc
  29602. + - atmtcp: fixed RX/TX statistics (by Jens Axboe)
  29603. + - sparc64-specific ioctl 32/64 bit marshalling fixes (by Christophe Lizzi,
  29604. + with further improvements by Jens Axboe)
  29605. + - zeppelin -l option handling (reported by Mike Prudence, fixed by Heikki
  29606. + Vatiainen)
  29607. + - mkpatch didn't include drivers/atm/eni.h
  29608. + - updated eni.h (tx->backlog_len was missing)
  29609. + - fixed various uint32_t build problems of user space tools by including
  29610. + atm.h before anything other ATM headers (first reported by Rashmi Dravid)
  29611. + - "natmtcp virtual" didn't parse the command line properly
  29612. + - natmtcp's TCP link changed VPI/VCI to 0.0 on close
  29613. + - CLIP: fixed crash after sending ARP (reported by Rui Prior)
  29614. +
  29615. +New features
  29616. +------------
  29617. +
  29618. + - upgraded to 2.3.40 (with help from Jens Axboe)
  29619. + - added sparc64 changes for ENI driver (by Heikki Vatiainen)
  29620. + - added the Fore PCA-200E(/SBA-200E) driver (by Uwe Dannowski and Christophe
  29621. + Lizzi)
  29622. + - added the Interphase ATM PCI (i)Chip (x575, x525, x531, etc.) driver (by
  29623. + Monalisa Agrawal and Peter Wang)
  29624. + - added ABR fields to struct atm_trafprm (by Peter Wang)
  29625. + - nicstar driver now supports setting of the CLP bit (by Rui Prior)
  29626. + - added ENI_SETMULT ioctl and enitune utility to change ENI buffer size
  29627. + multipliers at run time
  29628. +
  29629. +Other changes
  29630. +-------------
  29631. +
  29632. + - atmsigd: changed default UNI version from 3.0 to dynamic (which defaults
  29633. + to 3.0)
  29634. + - atmtcp: removed ugly ../../net/atm/protocols.h include
  29635. + - ioctls now internally return -ENOIOCTLCMD if ioctl command number is not
  29636. + recognized
  29637. + - removed ATM_CREATE_LEAF ioctl (wasn't used and suggested the wrong design
  29638. + approach anyway)
  29639. + - updated README.DRIVERS
  29640. + - natmtcp now uses port 2812 (assigned by IANA)
  29641. + - moved Documentation/atm.txt to Documentation/networking
  29642. + - improved atm_kptr_int_t for non-Sparc architectures (by Christophe Lizzi)
  29643. + - removed two compiler warnings from nicstar.c
  29644. + - some minor nicstar cleanup (by Rui Prior)
  29645. + - added "vbr" and "abr" to text2qos/qos2text ("vbr" not used for anything
  29646. + right now)
  29647. + - natmtcp: added commands "create", "remove", "switch", corresponding to
  29648. + options -p, -r, and -s of atmtcp
  29649. + - natmtcp: added link type "print" (write PDU content to stdout)
  29650. + - natmtcp: now uses atm_kptr_int_t for VCC kernel pointer instead of unsigned
  29651. + long
  29652. + - added apologetic man page for natmtcp
  29653. + - renamed natmtcp to atmtcp and removed the old atmtcp
  29654. + - changed some user-space code to avoid patronizing "ambiguous `else'"
  29655. + warnings from egcs, adding as few ugly redundant curly braces as possible
  29656. + - fixed some other compiler warnings
  29657. + - kernel part: trimmed operations structure initializers which consisted
  29658. + mainly of NULL pointers
  29659. + - kernel pointers sent as opaque references to user space are now of type
  29660. + atm_kptr_t. Added support functions kptr_eq and kptr_print. (With help from
  29661. + Richard Johnson and Mitchell Blank)
  29662. + - removed various "overriding commands" warnings in user-space build process
  29663. + - mkdist now creates arcvie in current directory if ~/l/arch doesn't exist
  29664. + - make clean && make now works also if dependencies are present (make clean
  29665. + used to remove sigd/q.out.h, which the dependencies required)
  29666. + - atmtcp uses command bg instead of -b for backgrounding. Also, listen-bg
  29667. + listens and backgrounds before calling accept.
  29668. +
  29669. +
  29670. +Version 0.63 to 0.64 (1-DEC-1999)
  29671. +====================
  29672. +
  29673. +Bug fixes
  29674. +---------
  29675. +
  29676. + - atmapi.h logic was still wrong (fixed by Christophe Lizzi)
  29677. + - LANE: fixed BUS filtering and net/atm/lec.c cleanup (by Heikki Vatiainen)
  29678. + - arpd/io.c assumed that diag() preserves errno
  29679. + - atmarpd didn't include QOS in output if getsockopt failed
  29680. +
  29681. +New features
  29682. +------------
  29683. +
  29684. + - /proc/atm/eni:* now also shows transmit queue and backlog length
  29685. + - added option "sndbuf" to atmarp
  29686. + - added option "sndbuf" to tc ... atm ...
  29687. + - /proc/atm/vc lists internal details for all VCs (flags, buffers, etc.);
  29688. + added ATM_VF2TXT_MAP to atmdev.h to allow translation of flag values
  29689. +
  29690. +Other changes
  29691. +-------------
  29692. +
  29693. + - ATM now uses sk->sndbuf/rvcbuf instead of atm_vcc->tx_quota/rx_quota
  29694. + - removed rx_quota hack from zatm.c
  29695. + - removed net/atm/tunable.h
  29696. + - CLIP and sch_atm now only send packets if the VC's send queue allows them to
  29697. + - implemented correct "requeue" function in sch_atm
  29698. + - updated zeppelin(8) man page (Heikki Vatiainen)
  29699. + - atmarp: atmarp -q qos_spec usage is obsolete; use atmarp -q qos qos_spec
  29700. + instead
  29701. + - /proc/atm/svc now prints "N/A@xxxxxxxx" instead of "Unassigned", with the
  29702. + address of the descriptor in xxxxxxxx
  29703. + - removed all traces of CONFIG_MMU_HACKS
  29704. + - obsoleted ATM_SETSC (single-copy control)
  29705. +
  29706. +
  29707. +Version 0.62 to 0.63 (22-NOV-1999)
  29708. +====================
  29709. +
  29710. +Bug fixes
  29711. +---------
  29712. +
  29713. + - horizon.c: cleared weird rate_lock/rates_lock patch conflict
  29714. + - saaldump output formatting was completely wrecked; added option -q for
  29715. + "quiet" output (no Q.2931 printing)
  29716. + - fixed LANE Ethernet interface MTU mapping (patch by Rob Scott)
  29717. + - atmsigd incorrectly rejected CONNECTION AVAILABLE (Q.2963.1)
  29718. + - SVC address was wrong in /proc/atm/arp if using private and public part
  29719. + - RESTART ACKNOWLEDGE was not sent with the correct global call reference
  29720. + value (reported by Peter Ryan)
  29721. + - zatm: usec timestamps need 64 division of x86, so this option must be
  29722. + unavailable on other architectures (reported by Matti Aarnio)
  29723. + - nicstar: added "fix3" and "fix4" (by Rui Prior)
  29724. + - LANE: non-proxy didn't filter packets coming from BUS (fix by Marko Kiiskila
  29725. + and Heikki Vatiainen)
  29726. +
  29727. +New features
  29728. +------------
  29729. +
  29730. + - upgraded to kernel version 2.3.28
  29731. + - atmtcp now reports VC open/close and generates timestamps (Note: the
  29732. + protocol used between the kernel and the atmtcp utility has changed)
  29733. + - new utility "natmtcp" which combines the ATMTCP protocol, ATMTCP ("virtual")
  29734. + interfaces, "real" ATM interfaces, and log files (experimental)
  29735. + - added ILMI 4.0 MIB variables atmfPortMyIdentifier and atmfMySystemIdentifier
  29736. + (by Thomas Seidel)
  29737. + - zeppelin: new command line option -I to select interface, allowing the use
  29738. + of LANE with multiple physical interfaces (by Heikki Vatiainen)
  29739. + - UltraSparc (sparc64) support (by Christophe Lizzi)
  29740. + - nicstar: added IDT77105 PHY support (by Greg Banks)
  29741. + - added utility loop25 to control ForeRunner LE loopback mode (by Greg Banks)
  29742. + - added support for DNS lookup of NSAP addresses (by Rui Prior)
  29743. + - added utility debug/dnstest (by Rui Prior)
  29744. +
  29745. +Other changes
  29746. +-------------
  29747. +
  29748. + - net/atm/tunable.h cleanup
  29749. + - removed SO_BCTXOPT, SO_BCRXOPT, and struct atm_buffconst
  29750. + - removed obsolete field "next" from struct atm_blli
  29751. + - changed potentially unaligned 32 bit accesses in SAAL to use read_netl
  29752. + (spotted by Christophe Lizzi)
  29753. + - added __attribute__ ((aligned(8))) to many structures containing structures
  29754. + which are shared by kernel and user space to enfore uniform packing on
  29755. + sparc64 (with help from Christophe Lizzi)
  29756. + - changed unsigned long to unsigned int at API for compatibility with
  29757. + architecture where sizeof(long) differs between user and kernel space
  29758. + (e.g. sparc64; suggested by Christophe Lizzi)
  29759. + - changed struct atmsvc_msg.{vcc,listen_vcc} from unsigned long to new type
  29760. + atm_kptr_int_t; changed atmsigd accordingly (NB: debugging output may strip
  29761. + upper bits)
  29762. + - changed various casts pointer->int to pointer->long->int (where the pointer
  29763. + does indeed only contain an int, e.g. in ioctl) for Alpha (reported by
  29764. + Matti Aarnio)
  29765. + - nicstar: changes card->membase from u32 to unsigned long
  29766. + - added __attribute__ ((unused)) to mpc.c and mpoa_caches.c to remove
  29767. + warnings about variables used only for debugging
  29768. + - drivers/atm/Config.in: changed ! "$foo" = "x" to "$foo" != "x"
  29769. +
  29770. +
  29771. +Version 0.61 to 0.62 (27-AUG-1999)
  29772. +====================
  29773. +
  29774. +Bug fixes
  29775. +---------
  29776. +
  29777. + - lib/diag.c:set_logfile didn't set log_to_initialized (reported by Lars
  29778. + Burgstahler)
  29779. + - sch_atm did not use classifiers attached to the x:0 class (reported by Lars
  29780. + Burgstahler)
  29781. + - net/atm/atm_misc.c EXPORT'ed atm_return, which is an inline function (fixed
  29782. + by Mitchell Blank)
  29783. + - work-around for SO_LEVEL range problems (by Mitchell Blank)
  29784. + - nicstar oops fix (by Rui Prior and John Brosnan)
  29785. + - nicstar should now work also as non-module (by Rui Prior)
  29786. + - nicstar fix for chip bug showing up on 64-bit CPCI bus systems (by Jay
  29787. + Talbott)
  29788. + - cleared confusion about inclusion of suni.o when building both nicstar and
  29789. + ENI
  29790. + - suni.c now always exports suni_init
  29791. + - various fixes and cleanups in the Madge drivers (by Giuliano Procida)
  29792. + - fixed new set of atm_pdu2truesize problems by introducing atm_alloc_charge
  29793. + which handles the allocation too (problem report and work-around by Alexey
  29794. + Kuznetsov)
  29795. + - getsockname on unbound PVC socket caused an oops
  29796. + - LANE: Token Ring source route bridge support fix (by Heikki Vatiainen)
  29797. +
  29798. +New features
  29799. +------------
  29800. +
  29801. + - upgraded to kernel version 2.3.15 (mainly by Alexey Kuznetsov and Mitchell
  29802. + Blank)
  29803. + - new socket option SO_ATMPVC to retrieve the "PVC" address (PVC & SVC) (based
  29804. + on a patch by Jay Talbott)
  29805. + - zeppelin -l now also accepts only the selector byte (by Robert Slaski)
  29806. +
  29807. +Other changes
  29808. +-------------
  29809. +
  29810. + - removed obsolete drivers/atm/nicstar.c.old_skb
  29811. + - removed all references to Arequipa (obsolete)
  29812. + - SO_BCTXOPT/SO_BCRXOPT are now obsolete, given that the final verdict on page
  29813. + flipping has been spoken in linux-kernel
  29814. + - interface statistics are now counted in struct net_device_stats instead of
  29815. + struct enet_statistics (by Mitchell Blank)
  29816. + - added pointer to mailing list to Documentation/atm.txt
  29817. + - Documentation/Configure.help now points to Documentation/atm.txt instead of
  29818. + directly to the Web page.
  29819. + - usage.tex: clarified the consequences of interrupting atmtcp
  29820. + - changed the highly misleading "atmarpd:ITF: no such interface" message to
  29821. + DIAG_DEBUG
  29822. +
  29823. +
  29824. +Version 0.60 to 0.61 (11-JUN-1999)
  29825. +====================
  29826. +
  29827. +Bug fixes
  29828. +---------
  29829. +
  29830. + - nicstar: driver sometimes crashed when starting for 25 Mbps cards (Rui
  29831. + Prior)
  29832. + - Zeitnet driver: uPD98402.c wasn't compiled with -DEXPORT_SYMTAB when
  29833. + building as a module
  29834. + - net/atm/raw.c didn't export atm_init_aal5, so ATMTCP didn't load as a module
  29835. + - atmtcp could still be accessed after loading and then unloading, yielding an
  29836. + Oops
  29837. +
  29838. +Other changes
  29839. +-------------
  29840. +
  29841. + - PPC configuration now also includes ATM (Jay Talbott)
  29842. + - lots of cleanup in the Madge drivers (Giuliano Procida)
  29843. + - tamed down a bit the tone in README
  29844. +
  29845. +
  29846. +Version 0.59 to 0.60 (3-JUN-1999)
  29847. +====================
  29848. +
  29849. +New features
  29850. +------------
  29851. +
  29852. + - upgraded to kernel version 2.3.3 (main change is slightly different wait
  29853. + queue handling; affects all drivers)
  29854. +
  29855. +Other changes
  29856. +-------------
  29857. +
  29858. + - mkdiff script now takes .bz2 kernel if no .gz can be found
  29859. + - made a few changes to the Madge drivers to reduce the number of warnings
  29860. +
  29861. +
  29862. +Version 0.58 to 0.59 (3-JUN-1999)
  29863. +====================
  29864. +
  29865. +New features
  29866. +------------
  29867. +
  29868. + - upgrade to kernel version 2.2.9
  29869. + - zeppelin now adjusts MTU when joining ELAN (Heikki Vatiainen)
  29870. +
  29871. +Other changes
  29872. +-------------
  29873. +
  29874. + - adjusted tr interface name limit to 8 characters (down from a wasteful 9)
  29875. +
  29876. +
  29877. +Version 0.57 to 0.58 (3-JUN-1999)
  29878. +====================
  29879. +
  29880. +Bug fixes
  29881. +---------
  29882. +
  29883. + - ENI drivers sometimes directly dereferenced pointers instead of using readl/
  29884. + writel (fixed by Mitchell Blank)
  29885. + - nicstar driver no longer uses floating point (fixed by Rui Prior)
  29886. + - nicstar driver may have refused CBR VC in some cases even with enough
  29887. + bandwidth available (fixed by Rui Prior)
  29888. + - usage.tex failed to build (fixed by Bill Brooks)
  29889. + - zeppelin got byte order in BLLI wrong (reported by Chas Williams; fixed by
  29890. + Mitchell Blank and Heikki Vatiainen)
  29891. + - zeppelin did not work when the host had multiple ATM addresses (reported by
  29892. + Benoit Steiner; fixed by Heikki Vatiainen)
  29893. + - zeppelin incorrectly parsed -i command line option (reported by Benoit
  29894. + Steiner; fixed by Heikki Vatiainen)
  29895. + - atm_connect_vcc and /proc/atm/pvc report AAL0 now properly (reported by Zhu
  29896. + Qun Ying and Uwe Dannowski)
  29897. +
  29898. +New features
  29899. +------------
  29900. +
  29901. + - nicstar driver now support SONET diagnostics (by Rui Prior)
  29902. + - nicstar driver now works on PowerPC (by Jay Talbott)
  29903. + - LANE now also supports Token Ring (Heikki Vatiainen, with testing by
  29904. + Holger Smolinski)
  29905. +
  29906. +Other changes
  29907. +-------------
  29908. +
  29909. + - major non-i386 architecture and other cleanup in ENI driver (by Mitchell
  29910. + Blank)
  29911. + - number of lec devices is 40+8 (lec0-lec39 are Ethernet and lec40-lec47 are
  29912. + Token Ring; Heikki Vatiainen)
  29913. + - lec.c and mpc.c now use atm_force_charge (Heikki Vatiainen)
  29914. + - net/802/tr.c limited interface names to 4 characters (fixed by Heikki
  29915. + Vatiainen)
  29916. + - zeppelin man page updated (Heikki Vatiainen)
  29917. + - "zeppelin.new" is now "zeppelin", the old "zeppelin" is gone
  29918. + - set "atm_connect" printk to KERN_DEBUG
  29919. + - removed ATM_SAAL from include/linux/atm.h (there never was any support for
  29920. + SAAL in the kernel)
  29921. +
  29922. +
  29923. +Version 0.56 to 0.57 (18-MAY-1999)
  29924. +====================
  29925. +
  29926. +Bug fixes
  29927. +---------
  29928. +
  29929. + - atmarpd complained "invalid control msg type" when changing interface
  29930. + characteristics (reported by Soo-Khim Ho)
  29931. + - sch_atm didn't compile without CLIP (reported by Zhu Qun Ying)
  29932. + - LANE & MPOA: plugged a few memory leaks after failure to atm_charge (Heikki
  29933. + Vatiainen)
  29934. + - mpcd could not be killed if MPS's address was not known (fixed by Heikki
  29935. + Vatiainen)
  29936. + - nicstar: fixed the sleeping in interrupt issue (Rui Prior)
  29937. +
  29938. +New features
  29939. +------------
  29940. +
  29941. + - drivers for the Madge "Ambassador" and "Horizon [Ultra]" NICs, also known
  29942. + as Collage PCI 155 Server, 25, and 155 Client (by Giuliano Procida)
  29943. +
  29944. +Other changes
  29945. +-------------
  29946. +
  29947. + - MPOA code cleanup and debugging printks are now conditional (Heikki
  29948. + Vatiainen)
  29949. + - removed both led/USAGE files
  29950. + - removed the old atmsigd (was in atm/sig.old/)
  29951. + - nicstar driver now works around TSQ bug on older chips (77201) (by Rui
  29952. + Prior, with the detective work by Jay Talbott)
  29953. +
  29954. +
  29955. +Version 0.55 to 0.56 (22-APR-1999)
  29956. +====================
  29957. +
  29958. +Bug fixes
  29959. +---------
  29960. +
  29961. + - atm/doc/Makefile assumed . to be included in PATH when invoking rlatex
  29962. + (fix by Heikki Vatiainen)
  29963. + - usage.txt leaked Arequipa configuration examples (fix by Heikki Vatiainen)
  29964. + - plugged a small memory leak in led.new which occurred when using the LANE
  29965. + client as a proxy (Heikki Vatiainen)
  29966. + - atmarpd crashed when printing ATMARP table entries with flag 0x8000 set
  29967. + (reported by Vinay Kulkarni)
  29968. + - CLIP interfaces now follow netmask changes
  29969. + - Nicstar: 25.6 Mbps cell rate corrected (by Rui Prior)
  29970. + - atm_equal could loop forever when comparing NSAP-encoded E.164 addresses
  29971. + (reported by Valley Zhizhkun)
  29972. + - [AP]F_ATM[PS]VC definitions in lib/atm.h conflicted with glibc 2.1
  29973. + (reported by Heikki Vatiainen and Jens Vagelpohl)
  29974. + - changed a few non-int main to int main (reported by Heikki Vatiainen)
  29975. + - changed lib/diag.c work with glibc 2.1, where stderr is no longer a constant
  29976. + (based on a patch by Heikki Vatiainen, also reported by Giuliano Procida)
  29977. + - make clean didn't remove qgen/q.test.c, qgen/qd.out.h, qgen/qd.test.c,
  29978. + sigd/q.out.h and sigd.old/q.out.h (reported by Giuliano Procida)
  29979. + - optional headers were installed even with system headers present if
  29980. + INSTROOT was different from / (reported by Giuliano Procida)
  29981. + - lib/stdint.h was used even on systems that had a "real" stdlib.h (based on a
  29982. + patch by Heikki Vatiainen, also reported by Giuliano Procida)
  29983. + - renamed net/atm/misc.c to atm_misc.c to avoid name clash with
  29984. + drivers/char/misc.c on include/linux/modules/misc.* (reported by Borek
  29985. + Lupomesky)
  29986. +
  29987. +New features
  29988. +------------
  29989. +
  29990. + - new ioctl ATM_GETLINKRATE to query link rate of an interface (suggested by
  29991. + Vitaly Lavrov)
  29992. + - new atmsigd.conf option io max_rate to specify rate to signal if
  29993. + application requests the "maximum"
  29994. + - added decription of CONFIG_ATM_LANE and CONFIG_ATM_MPOA to the kernel
  29995. + configuration help (Heikki Vatiainen)
  29996. + - added description of LANE to usage.tex (Heikki Vatiainen)
  29997. + - new function atm_force_charge to unconditionally add data to a receive
  29998. + buffer
  29999. +
  30000. +Other changes
  30001. +-------------
  30002. +
  30003. + - atmsigd now determines maximum link rate by querying interfaces (suggested
  30004. + by Vitaly Lavrov)
  30005. + - moved local address registry from a global table to VPCI structures
  30006. + - changed unknown net device notification severity from KERN_ERR to
  30007. + KERN_WARNING
  30008. + - atmarpd now overwrites old atmarpd.table on startup (it used to keep it
  30009. + until the first configuration change)
  30010. + - shutdown(2) of native ATM VCs now returns 0 instead of -EOPNOTSUPP
  30011. + (suggested by Mitchell Blank)
  30012. + - Nicstar: IRQ sharing is now allowed (by Rui Prior)
  30013. + - Nicstar: default maximum number of cards is now 4 (by Rui Prior)
  30014. + - Nicstar: when compiled as a module, the driver may no longer be removed
  30015. + while in use (by Rui Prior)
  30016. + - Nicstar: loss of cells is no longer reported as a plain CRC error (by Rui
  30017. + Prior)
  30018. + - atmsigd now always clears the endpoint reference flag if in UNI 3.0 mode
  30019. + (based on a patch by Heikki Vatiainen)
  30020. +
  30021. +
  30022. +Version 0.54 to 0.55 (1-MAR-1999)
  30023. +====================
  30024. +
  30025. +Bug fixes
  30026. +---------
  30027. +
  30028. + - SELECT_TOP_PCR didn't take intro account the "pcr" field, causing SVC with
  30029. + QoS pcr=xxx to be set up at link speed
  30030. + - qos_equal didn't detect differences in the "pcr" fields
  30031. + - sch_atm only accepted parent == root or absent (reported by John Loughney)
  30032. + - sch_atm:atm_tc_put accessed flow structure after kfree'ing it
  30033. + - sch_atm:atm_tc_change didn't put excess traffic class if class creation
  30034. + failed
  30035. + - sch_atm:atm_tc_dump_class didn't return class ID in tcm->tcm_handle
  30036. + - sch_atm:atm_tc_delete refused to delete classes because it expected
  30037. + ref == 1, but ref == 2 (reported by John Loughney)
  30038. +
  30039. +
  30040. +Version 0.53 to 0.54 (19-FEB-1999)
  30041. +====================
  30042. +
  30043. +Bug fixes
  30044. +---------
  30045. +
  30046. + - led.new: fixed build problem and warning (Heikki Vatiainen)
  30047. + - fixed LANE arp cache timeouts (Heikki Vatiainen)
  30048. + - ilmid -i option fell through into -l, causing logging to go into a file
  30049. + named after the local address
  30050. + - flipping the highest bit of ep_ref made it negative which was erroneously
  30051. + interpreted to mean "absent" (reported by Giuliano Procida and Chas
  30052. + Williams)
  30053. + - ilmid used the result of AsnOidCompare inconsistently, causing network
  30054. + prefix registration to fail with some switches (based on a patch by Giuliano
  30055. + Procida)
  30056. +
  30057. +New features
  30058. +------------
  30059. +
  30060. + - tc:q_atm: new option "clip" to select Classical IP processing of inbound
  30061. + traffic
  30062. + - new sch_atm class attribute TCA_ATM_STATE to retrieve VC state
  30063. +
  30064. +Other changes
  30065. +-------------
  30066. +
  30067. + - led.new: improved handling of LANE flush protocol (Heikki Vatiainen)
  30068. + - copied USAGE from led/ to led.new/
  30069. + - added description of ilmid options -i and -u to USAGE (Heikki Vatiainen)
  30070. + - ilmid -u now also works without -DDYNAMIC_UNI (all values but the default
  30071. + are refused)
  30072. + - tcpdump patch updated to tcpdump version 3.4 (Heikki Vatiainen)
  30073. + - updated "tc" patch to iproute2 version 2.1.99-now-ss990203
  30074. +
  30075. +
  30076. +Version 0.52 to 0.53 (9-FEB-1999)
  30077. +====================
  30078. +
  30079. +Bug fixes
  30080. +---------
  30081. +
  30082. + - atmsigd: selecting the UNI version via compile-time options didn't yield
  30083. + the desired result in some cases (reported by Vinay Kulkarni and others)
  30084. + - ATM VCCs now use struct sock, as required by protocol-independent layer
  30085. + starting with recent 2.1 kernels (by Mitchell Blank)
  30086. + - led fixes: htons/htonl bugs in LANEv2 code, one duplicate close() removed
  30087. + (by Heikki Vatiainen)
  30088. +
  30089. +New features
  30090. +------------
  30091. +
  30092. + - upgraded to the 2.2.1 kernel (by Mitchell Blank)
  30093. + - LANE: added bridging support (by Heikki Vatiainen)
  30094. + - complete rewrite of led (in led.new), which is now leaner and no longer
  30095. + contains code (c) Digital (by Heikki Vatiainen)
  30096. + - added macros for local AESA format and group addresses, and support in
  30097. + atm2text (by Heikki Vatiainen)
  30098. +
  30099. +Other changes
  30100. +-------------
  30101. +
  30102. + - ENI: buffer sizes are now limited to MID_MAX_BUF_SIZE even if max_sdu >
  30103. + MID_MAX_BUF_SIZE/3 (reported by Andrew Lunn)
  30104. + - plenty of NICStAR changes (Rui Prior and Mitchell Blank)
  30105. + - LANE interface to upper layer looks more like Ethernet, so adding bridge and
  30106. + 802.1Q support is easier, and tcpdump does not need any extra patches (by
  30107. + Heikki Vatiainen)
  30108. +
  30109. +
  30110. +Version 0.51 to 0.52 (5-DEC-1998)
  30111. +====================
  30112. +
  30113. +Bug fixes
  30114. +---------
  30115. +
  30116. + - atmsigd crashed when receiving STATUS ENQUIRY for call in Null state
  30117. + (reported by Heikki Vatiainen)
  30118. + - outbound endpoint reference didin't have the 16th bit toggled (fixed by
  30119. + Andrew Lunn)
  30120. + - lec.c: fixed a bug in kernel which could cause kernel part to deadlock when
  30121. + signalling was not started successfully (by Heikki Vatiainen)
  30122. + - MPOA: bug fixes and other changes, see atm/mpoa/CHANGELOG (by Heikki
  30123. + Vatiainen)
  30124. +
  30125. +New features
  30126. +------------
  30127. +
  30128. + - LANE: both kernel & daemon: support for ELANs which have MTUs greater than
  30129. + 1516 (by Eric H. Kinzie)
  30130. + - MPOA: can now ask LECS for configuratino information (by Heikki Vatiainen)
  30131. +
  30132. +Other changes
  30133. +-------------
  30134. +
  30135. + - zeppelin.8: updated (Heikki Vatiainen)
  30136. +
  30137. +
  30138. +Version 0.50 to 0.51 (6-NOV-1998)
  30139. +====================
  30140. +
  30141. +Bug fixes
  30142. +---------
  30143. +
  30144. + - atmsigd: typo prevented kernel.c from compiling with UNI30 disabled (fix by
  30145. + Andrew Lunn and Uwe Dannowski)
  30146. + - option -u crashed ilmid (reported by Michael Wolf)
  30147. +
  30148. +Other changes
  30149. +-------------
  30150. +
  30151. + - bearer capability is now set to "CBR" for CBR (suggested by Heikki
  30152. + Vatiainen)
  30153. +
  30154. +
  30155. +Version 0.49 to 0.50 (3-NOV-1998)
  30156. +====================
  30157. +
  30158. +Bug fixes
  30159. +---------
  30160. +
  30161. + - atmsigd didn't compile for -DUNI31 -DALLOW_UNI30 (fixed by Richard Gooch)
  30162. + - atmsigd crashed on as_bind and also had problems with as_connect after
  30163. + as_bind (reported by Heiko Krupp, Heikki Vatiainen, and many others)
  30164. +
  30165. +Other changes
  30166. +-------------
  30167. +
  30168. + - atmsigd now enables tracing by default (use -t 0 to turn it off)
  30169. + - added "terminate" message to test/isp
  30170. + - mpoad defaults to UBR if service category is absent (by Heikki Vatiainen)
  30171. + - LANE now avoids blocking intact connections when other connections have
  30172. + problems by queuing packets independently per destination while waiting for
  30173. + a connection (by Heikki Vatiainen)
  30174. +
  30175. +
  30176. +Version 0.48 to 0.49 (1-NOV-1998)
  30177. +====================
  30178. +
  30179. +Bug fixes
  30180. +---------
  30181. +
  30182. + - q_atm.c passed TCA_ATM_EXCESS even if zero, while the kernel expected it
  30183. + to be absent in this case (changed q_atm.c)
  30184. + - q_atm: tc class show didn't separate fields properly with blanks
  30185. + - removed double inclusion of atm/config from mkdist
  30186. +
  30187. +New features
  30188. +------------
  30189. +
  30190. + - upgraded to the 2.1.126 kernel
  30191. +
  30192. +Other changes
  30193. +-------------
  30194. +
  30195. + - "new" atmsigd is now the default (atm/sigd got renamed to atm/sigd.old,
  30196. + atm/sigd.new to atm/sigd)
  30197. + - updated extra/tc/README
  30198. +
  30199. +
  30200. +Version 0.47 to 0.48 (30-OCT-1998)
  30201. +====================
  30202. +
  30203. +Bug fixes
  30204. +---------
  30205. +
  30206. + - ilmid didn't recognize the -u option
  30207. + - ATM_GETCIRANGE copied wrong amount of data (fix by Heikki Vatiainen)
  30208. + - sch_atm didn't compile without policing enabled (reported by Calin Poenaru)
  30209. + - BHLI octets: qgen/msg.fmt allowed nine instead of eight bytes for ISO and
  30210. + user specified, include/linux/atmsap.h:ATM_MAX_HLI was 7 instead of 8 (by
  30211. + Damian Gilmurray and Paisit Thamsakorn)
  30212. + - MPOA: bug fixes and other changes, see atm/mpoa/CHANGELOG (by Heikki
  30213. + Vatiainen)
  30214. +
  30215. +New features
  30216. +------------
  30217. +
  30218. + - ilmid: new option -i to set local IP address (suggested by Andrew May)
  30219. + - ilmid now also supports the MIB variables atmfAtmLayerMaxVpiBits and
  30220. + atmfAtmLayerMaxVciBits (based on a patch by Uwe Dannowski)
  30221. +
  30222. +Other changes
  30223. +-------------
  30224. +
  30225. + - ilmid: search for local IP address didn't consider LANE interfaces (lec*)
  30226. + - consolidated most of the various calls to gethostbyname and friends into
  30227. + text2ip (libatmd)
  30228. + - corrected some glitches in net/sched/sch_atm.c (untested)
  30229. + - removed debug/encopy, debug/endump, and debug/zndump from the distribution.
  30230. + They were almost useless and caused problems with make depend
  30231. + - SYMFILES in qgen/Makefile now determines location of atmsap.h at run time to
  30232. + avoid problems when kernel headers are not in /usr/include/linux (reported
  30233. + by Uwe Dannowski)
  30234. +
  30235. +
  30236. +Version 0.46 to 0.47 (6-OCT-1998)
  30237. +====================
  30238. +
  30239. +Bug fixes
  30240. +---------
  30241. +
  30242. + - qgen didn't build for all UNI versions (fixed by Richard Gooch)
  30243. +
  30244. +New features
  30245. +------------
  30246. +
  30247. + - ilmid: new option -u to set UNI version (3.0, 3.1, or 4.0). Only available
  30248. + if compiled with -DDYNAMIC_UNI.
  30249. +
  30250. +Other changes
  30251. +-------------
  30252. +
  30253. + - ilmid: getIpAddr: improved robustness and added debugging output
  30254. +
  30255. +
  30256. +Version 0.45 to 0.46 (5-OCT-1998)
  30257. +====================
  30258. +
  30259. +Bug fixes
  30260. +---------
  30261. +
  30262. + - ENI and ZATM driver used to read IRQ directly from PCI configuration,
  30263. + bypassing any fixups (reported by Richard Gooch)
  30264. + - atmsigd.new: removed "Known bug" memory leak (when tracing)
  30265. + - led/lec_ctrl.c: signalling bug fixed, max_sdu now has correct value instead
  30266. + of 1 (by Heikki Vatiainen, reported by Josh Baratz <[email protected]>
  30267. + and Wolfgang Platzer <[email protected]>)
  30268. + - lots of MPOA bug fixes and other changes, see atm/mpoa/CHANGELOG (by Heikki
  30269. + Vatiainen)
  30270. + - atmsigd reported "Q.2931.1" when configured to support Q.2963.1
  30271. +
  30272. +New features
  30273. +------------
  30274. +
  30275. + - atmsigd.new now supports run-time configuration of the signaling protocol
  30276. + version (via atmsigd.conf)
  30277. +
  30278. +Other changes
  30279. +-------------
  30280. +
  30281. + - added 16W bursts to ENI burst size configuration (NB: 16W may actually be
  30282. + *slower* than 8W)
  30283. + - lec_ctrl.c: zeppelin now uses LE_REGISTER protocol when TLVs are associated
  30284. + with client's MAC address (by Heikki Vatiainen)
  30285. +
  30286. +
  30287. +Version 0.44 to 0.45 (1-OCT-1998)
  30288. +====================
  30289. +
  30290. +Bug fixes
  30291. +---------
  30292. +
  30293. + - ENI driver didn't do four-word bursts on RX for sizes < 8 words
  30294. + - arequipad, atmarpd, bus, lecs, les, mpcd, sw_*, and zeppelin silently
  30295. + ignored extra command-line arguments instead of complaining
  30296. +
  30297. +New features
  30298. +------------
  30299. +
  30300. + - ENI: added configuration options to fine-tune burst sizes (in reponse to
  30301. + incompatibility found by Dave Airlie)
  30302. +
  30303. +Other changes
  30304. +-------------
  30305. +
  30306. + - changed the way how ATM-specific data is stored in skbs. Tentatively updated
  30307. + the the stack, including drivers. Use CONFIG_ATM_SKB to enable the new-style
  30308. + skbs.
  30309. + - Rules.make no longer discards the previous value of LDLIBS
  30310. + - sw_tcp now only establishes bi-directional VCs if both directions are really
  30311. + requested in the QoS structure
  30312. + - moved manual switch control from sw_tcp to the generic switch code; "tcpswc"
  30313. + is now called "swc", the corresponding switch.conf clause is now
  30314. + 'control <path>' instead of 'option control "<path>"'
  30315. +
  30316. +
  30317. +Version 0.43 to 0.44 (24-SEP-1998)
  30318. +====================
  30319. +
  30320. +Bug fixes
  30321. +---------
  30322. +
  30323. + - CONNECT messages no longer contain the AAL type IE if EP ref is present and
  30324. + non-zero (reported by Heikki Vatiainen)
  30325. + - SSCOP: added mode for partial compatibility with Q.SAAL1 (to get rid of
  30326. + warnings reported by Heikki Vatiainen and of interoperability problems with
  30327. + Virata switches reported by Damian Gilmurray)
  30328. + - ilmid now returns a valid response for atmfMyIpNmAddress (by Uwe Dannowski)
  30329. + - configuration on-line help for CLIP didn't work because tag was different
  30330. + from configuration variable
  30331. + - atmsigd crashed when adding multiple local addresses on an interface
  30332. + (reported by Heiko Krupp)
  30333. + - atmaddr.8 said "ATMARP" in the header (reported by Hans Einsiedler)
  30334. + - net/atm/misc.c didn't include linux/config.h and linux/module.h, causing
  30335. + symbols to be missing when rebuilding the kernel after enabling modules
  30336. + (reported by Thomas Parvais)
  30337. +
  30338. +New features
  30339. +------------
  30340. +
  30341. + - new maintenance utility tcpswc to control sw_tcp "switches" (description at
  30342. + the end of switch/tcp/README)
  30343. + - added support for setting the CLP bit (untested; see doc/README.CLP)
  30344. + - added support for policing to the ATM qdisc (untested; see extra/tc/README)
  30345. + - ilmid: added support for atmfAtmLayerUniVersion (by Uwe Dannowski)
  30346. +
  30347. +Other changes
  30348. +-------------
  30349. +
  30350. + - updated the NICStAR driver to version 008b (by Rui Prior)
  30351. + - new switch fabric function fab_option to pass configuration options
  30352. + - atm2text now also supports unspecified and wildcard components in PVC
  30353. + addresses
  30354. + - added configuration option CONFIG_ATM_CLIP_NO_ICMP to discard packets for
  30355. + which no ATMARP entry exists silently instead of sending an ICMP (this is an
  30356. + ugly hack-around for the revalidation problem reported by Gerald Hanusch)
  30357. + - various minor documentation updates
  30358. + - atmarpd now sends InARP requests when active VC setup completes in order to
  30359. + tell the peer our IP address(es)
  30360. +
  30361. +
  30362. +Version 0.42 to 0.43 (21-AUG-1998)
  30363. +====================
  30364. +
  30365. +Bug fixes
  30366. +---------
  30367. +
  30368. + - trying to use atmtcp when compiled as a module with the module not loaded
  30369. + crashed the kernel
  30370. +
  30371. +New features
  30372. +------------
  30373. +
  30374. + - upgraded to the 2.1.117 kernel
  30375. + - included NICStAR driver by Rui Prior at INESC (this driver also includes
  30376. + parts of an earlier driver written by Matt Welsh, then enhanced by R. D.
  30377. + Rechenmacher and Jawaid Bazyar)
  30378. + - new atmsigd with support for multiple signaling entities (experimental)
  30379. +
  30380. +Other changes
  30381. +-------------
  30382. +
  30383. + - removed register dumping code from suni.c (leaked out into the distribution)
  30384. +
  30385. +
  30386. +Version 0.41 to 0.42 (19-AUG-1998)
  30387. +====================
  30388. +
  30389. +Bug fixes
  30390. +---------
  30391. +
  30392. + - atm.patch was out of sync again :-(
  30393. +
  30394. +
  30395. +Version 0.40 to 0.41 (19-AUG-1998)
  30396. +====================
  30397. +
  30398. +Bug fixes
  30399. +---------
  30400. +
  30401. + - 0.40 contained an older atm.patch than the one that was supposed to go with
  30402. + it (some changes to sch_atm and MPOA were missing)
  30403. + - kernel didn't build with LANE enabled and MPOA disabled (fix by Mitchell
  30404. + Blank Jr)
  30405. +
  30406. +New features
  30407. +------------
  30408. +
  30409. + - MPOA now also supports CBR SVCs (by Heikki Vatiainen and Sampo Saaristo)
  30410. +
  30411. +Other changes
  30412. +-------------
  30413. +
  30414. + - atmtcp may work as a module (untested)
  30415. + - kernel code now uses capabilities instead of suser()
  30416. + - removed obsolete recycle_buffer code
  30417. + - distribution now also includes mkpatch, the script that's used to create
  30418. + atm.patch
  30419. +
  30420. +
  30421. +Version 0.39 to 0.40 (13-AUG-1998)
  30422. +====================
  30423. +
  30424. +Bug fixes
  30425. +---------
  30426. +
  30427. + - ilmid defined the value of "invalid" as 0 instead of 2 (fix by Timo
  30428. + Parnanen)
  30429. + - bash-2 doesn't like for n in $(SUBDIR); ... if SUBDIR is undefined (fix
  30430. + by Heikki Vatiainen)
  30431. + - LANE still cleared ATM_VF_RELEASED instead of calling atm_async_release_vcc,
  30432. + which apparently led to stray kernel crashes in signaling (found with a lot
  30433. + of help from John McPherson)
  30434. + - ATM qdisc now properly re-allocates skb memory to grow headers, if necessary
  30435. + - atm/switch/Makefile didn't build SUBDIRS
  30436. + - atmarpd sent garbage ATM addresses in InARP responses over PVCs (reported by
  30437. + Stefan Keller-Tuberg)
  30438. +
  30439. +New features
  30440. +------------
  30441. +
  30442. + - MPOA (Multi-Protocol Over ATM) client support written by Heikki Vatiainen
  30443. + and Sampo Saaristo
  30444. + - LANE client (zeppelin) now also supports LANE2 (by Heikki Vatiainen)
  30445. +
  30446. +Other changes
  30447. +-------------
  30448. +
  30449. + - accept() now also returns on ATM_VF_CLOSE
  30450. + - ATM qdisc now uses the same data format on rtnetlink as other qdiscs; new
  30451. + option for user-provided headers
  30452. + - atm/switch can now use "external" routing (e.g. provided by the fab control)
  30453. +
  30454. +
  30455. +Version 0.38 to 0.39 (4-AUG-1998)
  30456. +====================
  30457. +
  30458. +Bug fixes
  30459. +---------
  30460. +
  30461. + - added missing #include <atm.h> in tcpsw.c (fixed by Heikki Vatiainen)
  30462. + - atmsigd allowed both sides to initiate PCR modification; Q.2963.1 only
  30463. + allows the connection owner (i.e. the caller) to do this
  30464. + - atmarpd no longer tries to use incoming SVCs with zero backward bandwidth
  30465. + for ATMARP
  30466. + - ENI and ZATM drivers didn't invoke vcc->pop on dev->ops->send failure
  30467. + - make install didn't probe correctly for presence of /usr/include/stdint.h
  30468. + (needed on GLIBC 1 systems)
  30469. + - net/atm/resources.c didn't export bind_vcc to modules (fix by Oliver
  30470. + Frommel)
  30471. + - net/arpd/atmarp didn't build without make depend (reported by Stefano
  30472. + Giacometti)
  30473. + - clip_mkip zeroed vcc->rx_inuse and didn't take into account that clip_push
  30474. + calls atm_return, which subtracts from vcc->rx_inuse too
  30475. + - fixed typos in qgen/uni.h (and msg.fmt) for causes 38, 41, and 43
  30476. + - atmsigd wrote exit trace to stderr when it had a dump directory and vice
  30477. + versa
  30478. + - documentation still claimed that atmtcp yields messages at boot time
  30479. +
  30480. +New features
  30481. +------------
  30482. +
  30483. + - added flow to ATM VCC mapping queuing discipline (experimental)
  30484. + - module for setting up ATM PVC/SVC mappings with "tc" in extra/tc (see
  30485. + extra/tc/README)
  30486. + - atmarpd: new request type art_query to request resolution without VC setup
  30487. + - atmarp: new undocumented option -Q to test art_query
  30488. + - added ATMTCP interfaces that survive disconnects (persistent; new atmtcp(8)
  30489. + options -p and -r; new ioctls ATMTCP_CREATE and ATMTCP_REMOVE)
  30490. +
  30491. +Other changes
  30492. +-------------
  30493. +
  30494. + - zeppelin didn't explicitly set the AAL type for outbound connections (by
  30495. + Heikki Vatiainen)
  30496. + - CLIP also allows SVCs to have no idle timeout at all (timeout = 0)
  30497. + - moved SUNI private ioctls (SUNI_GETLOOP and SUNI_SETLOOP) from
  30498. + drivers/atm/suni.h to include/linux/atm_suni.h
  30499. + - atmarpd now shows QoS information for VCs where it differs from the default
  30500. + or where no default is applicable
  30501. + - removed the file atm/WARNING, which gave an overly pessimistic perspective
  30502. + of the state of things
  30503. + - switch: fab_op now returns the cause value plus (optionally) a pointer to
  30504. + diagnostics in the callback instead of a simple okay/not okay indication
  30505. + - updated and corrected the atmtcp man page
  30506. + - further cleanup of the build procedure
  30507. + - README now mainly refers to http://lrcwww.epfl.ch/linux-atm/info.html
  30508. + - updated and trimmed BUGS
  30509. + - added a note to CREDITS indicating its obsolescence
  30510. +
  30511. +
  30512. +Version 0.37 to 0.38 (25-JUN-1998)
  30513. +====================
  30514. +
  30515. +Bug fixes
  30516. +---------
  30517. +
  30518. + - fixed the remaining few #include <linux/atm.h>
  30519. + - invoking fcntl() or socketpair() on an ATM socket caused an "Oops" (reported
  30520. + by Jonathan Chan)
  30521. + - CLIP PVCs caused an "Oops" when cat'ing /proc/atm/pvc (reported by Marko
  30522. + Kiiskila and Robert Olsson)
  30523. + - atm/qgen/default.nl wasn't removed after build failure
  30524. + - debugging switch (sw_debug) did not stop operations after the first error
  30525. + - svc_accept returned apparent success instead of -EAGAIN, usually leading to
  30526. + a later -ENOTCONN
  30527. + - ttcp.c didn't initialize port_name, leading to erratic behaviour when making
  30528. + slight changes to the build process
  30529. + - atm_pdu2truesize diverged from alloc_skb, leading to sudden failure of VCs
  30530. + or of ATMARP (reported by Robert Olsson)
  30531. + - corrected use of '~' when applied to unsigned longs representing memory
  30532. + addresses in aread, ENI, and ZATM (reported by Wai-Sun Chia)
  30533. + - atmtcp and LANE didn't use bind_vcc when setting up control VCs
  30534. + - atmtcp got ENOMEM/EBUSY wrong when failing to create an interface
  30535. + - sig level <level> in atmsigd.conf didn't affect UNI diagnostics
  30536. +
  30537. +New features
  30538. +------------
  30539. +
  30540. + - upgraded to the 2.1.105 kernel
  30541. + - added ATMTCP "switch" in atm/switch/tcp
  30542. + - atmtcp: new mode -s to connect to an ATMTCP "switch"
  30543. + - atmtcp: new option -d for debugging output
  30544. + - added -b option (the usual "background") to switch/relay.c
  30545. +
  30546. +Other changes
  30547. +-------------
  30548. +
  30549. + - changed "PDU" to "SDU" in the atmtcp(8) man page
  30550. + - atmarpd now includes the interface netmask in ATMARP table dumps
  30551. + - added ATM devices also to the Alpha architecture, because at least ATMTCP
  30552. + works (by Wai-Sun Chia)
  30553. + - added the removal of -Wmissing-prototypes to the 0.37 changes
  30554. + - removed -Wcast-align from Rules.make because of a conflict with
  30555. + /usr/include/socketbits.h of glibc 2 on Alphas (reported by Wai-Sun Chia)
  30556. + - atmsigd.conf.4: documented that debug log stderr works too
  30557. + - sap_equal now also allows wildcard matches for BHLI (with SXE_COMPATIBLE)
  30558. + - atmsigd now uses -m <mode> instead of -N and -A
  30559. + - atmsigd.conf now uses sig mode <mode> instead of sig net
  30560. +
  30561. +
  30562. +Version 0.36 to 0.37 (6-JUN-1998)
  30563. +====================
  30564. +
  30565. +Bug fixes
  30566. +---------
  30567. +
  30568. + - lib/atm.h defined AF_ATMPVC to 20, but the correct value is 8. Likewise,
  30569. + AF_ATMSVC should be 20, not 21. (Reported by Luke Diamand)
  30570. + - fixed bad ASN encoding in ilmid (by Vesa-Matti Puro)
  30571. + - make install and make instdirs didn't stop on error
  30572. +
  30573. +New features
  30574. +------------
  30575. +
  30576. + - upgraded to the 2.1.104 kernel
  30577. + - included a script to demonstrate the debug switch (see switch/debug/README)
  30578. +
  30579. +Other changes
  30580. +-------------
  30581. +
  30582. + - moved definitions not used by the kernel from linux/atmarp.h to atmarp.h
  30583. + - removed linux/atm_stdint.h (linux/types.h has now caught up)
  30584. + - changed ENI and ZATM driver to use new PCI interface
  30585. + - net/atm/clip.c no longer uses ether_setup (suggested by Alexey Kuznetsov)
  30586. + - more header file cleanup (main change: applications should now
  30587. + #include <atm.h> instead of #include <linux/atm.h>)
  30588. + - removed -Wmissing-prototypes from Rules.make because of a conflict with
  30589. + include/linux/byteorder/swab.h
  30590. +
  30591. +
  30592. +Version 0.35 to 0.36 (23-APR-1998)
  30593. +====================
  30594. +
  30595. +Bug fixes
  30596. +---------
  30597. +
  30598. + - changed the numeric values of PF/AF_ATMPVC/SVC and SOL_ATM/AAL to avoid
  30599. + conflicts with other allocations. This breaks binary compatibility with
  30600. + ATM programs compiled under older kernels
  30601. + - RESTART ACK was sent with the wrong class when acknowledging the restart of
  30602. + the indicated virtual channel (fix by Mohsen Souissi)
  30603. + - RELEASE was retransmitted forever (to avoid having to perform a RESTART),
  30604. + although it's sufficient to retransmit once and then drop the connection
  30605. + - esi.c checked the kernel version code without including linux/version.h
  30606. + - CLIP changes magically fixed hangs on SICGIFCONF (reported by Wayne Salamon)
  30607. + - atmsigd usually didn't set pvc.sap_family in ISP messages
  30608. +
  30609. +New features
  30610. +------------
  30611. +
  30612. + - added build-time option -DTHOMFLEX to send RESTART when SAAL comes up, which
  30613. + works around a bug in some Thomson Thomflex 5000 switches (by Mohsen
  30614. + Souissi)
  30615. + - atmtcp: new option "-i itf" to request a specific interface number
  30616. + - the "debug switch" (switch/debug/sw_debug) is now capable of successfully
  30617. + signaling a UNI 3.x call (see switch/debug/README for details)
  30618. +
  30619. +Other changes
  30620. +-------------
  30621. +
  30622. + - atm_equal can now also compare PVC addresses. The argument type has
  30623. + therefore been changed from struct sockaddr_atmsvc * to struct sockaddr *
  30624. + - moved driver-private data from skb->atm.* into skb->cb
  30625. + - complete redesign of communication between atmarp(8) and atmarpd(8) (now
  30626. + uses a UNIX domain socket; suggested by Alexey Kuznetsov)
  30627. + - atmarp -a now also produces correct output if atmarpd is running with -d
  30628. + - removed clip(8)
  30629. + - moved atmarp(8) from atm/ip into atm/arpd, removed atm/ip
  30630. + - /proc/atm/svc shows listening sockets again
  30631. + - cleaned up a few cases where diag(...,DIAG_FATAL,...) was followed by an
  30632. + "else" or a "return".
  30633. + - atmsigd now uses Unix domain sockets (instead of named pipes) to communicate
  30634. + with non-kernel ISP users (updated test/isp too)
  30635. + - net/atm/resources.c:atm_dev_register can now be asked to assign a specific
  30636. + interface number (-1 yields the old behaviour)
  30637. +
  30638. +
  30639. +Version 0.34 to 0.35 (27-MAR-1998)
  30640. +====================
  30641. +
  30642. +Bug fixes
  30643. +---------
  30644. +
  30645. + - ilmid compared memcmp results with -1,1, which fails under optimization
  30646. + (fixed by Damian Gilmurray)
  30647. + - various fixes and cleanup in how CLIP interacts with the neighbour cache
  30648. + (spotted by Alexey Kuznetsov)
  30649. + - Rules.make complained about missing "optprocess" command on some occasions
  30650. +
  30651. +New features
  30652. +------------
  30653. +
  30654. + - upgraded to the 2.1.90 kernel
  30655. + - added some components for ATM switch control (not properly integrated yet,
  30656. + so they don't do anything useful at the moment; written by Roman Pletka)
  30657. +
  30658. +Other changes
  30659. +-------------
  30660. +
  30661. + - eliminated various compiler warnings when compiling with glibc2
  30662. + - removed clip_hard_header (suggested by Alexey Kuznetsov)
  30663. +
  30664. +
  30665. +Version 0.33 to 0.34 (13-MAR-1998)
  30666. +====================
  30667. +
  30668. +Bug fixes
  30669. +---------
  30670. +
  30671. + - eni.c didn't include config.h (fix by Pete Wyckoff)
  30672. + - (yet another) VCC list handling bug (fixed by Heikki Vatiainen)
  30673. + - kernel also applied idle timeout to CLIP PVCs
  30674. + - make clean didn't remove test/errnos.inc
  30675. + - atmsigd errored as_connect and as_accept with as_close instead of as_error
  30676. + - eni: bandwidth was sometimes reserved for UBR VCs
  30677. + - eni: checking of bandwidth changes was broken
  30678. + - eni: error handling after failed bw change checks destroyed the free list
  30679. + - test/errnos.inc sometimes wasn't generated because of mtime granularity (fix
  30680. + by Brian Armstrong and Corinne Rosier)
  30681. + - fixed use of return code of get/put_user and copy_from/to_user
  30682. + - kernel: fixed a few minor race conditions
  30683. + - ATM_GETADDR left address list locked on fault
  30684. + - maximum length of high layer information was 7 bytes instead of 8 for ISO
  30685. + and User Specific high layer information (reported by Damian Gilmurray)
  30686. + - some tools didn't include errno.h although they use errno or Exxx
  30687. + - atmsigd usually accessed deallocated memory when writing traces, which
  30688. + sometimes led to crashes (reported by Heikki Vatiainen)
  30689. + - indentation of the first two lines of UNI signaling messages in traces was
  30690. + missing
  30691. + - LANE: duplicate data direct connections to entities where we already
  30692. + have a connection are now forbidden. LES and BUS can now co-reside.
  30693. + (Reported by Jean-Francois Moine, fixed by Heikki Vatiainen)
  30694. + - LANE: plugged a file descriptor leak (by Heikki Vatiainen)
  30695. + - atmsigd.conf.4 incorrectly stated that diagnostics must have a higher
  30696. + priority than the specified level to get printed (they're also printed if
  30697. + their priority is equal to that level)
  30698. + - zatm driver didn't virt_to_bus the back pointer of TX rings, leading to
  30699. + crash after sending the 32nd PDU of a VCC (reported by Ajay Bakre)
  30700. + - zatm_feedback sometimes returned with interrupts disabled
  30701. + - ENI driver didn't treat requests for UBR at link speed as "unlimited" and
  30702. + allocated one shaper for each such VCC
  30703. + - atm_async_release_vcc now has its own flag ATM_VF_CLOSE. Overloading
  30704. + ATM_VF_RELEASED caused hung SVCs under some conditions.
  30705. + - atmsigd sometimes released listening sockets before kernel completed its
  30706. + cleanup, yielding warnings and zombies
  30707. + - atmsigd accessed already deallocated data structures when handling
  30708. + unparseable signaling messages
  30709. +
  30710. +
  30711. +New features
  30712. +------------
  30713. +
  30714. + - upgraded to the 2.1.79 kernel
  30715. + - CLIP now handles NETDEV_CHANGE (proposed by Pete Wyckoff; untested)
  30716. + - various minor signaling changes for operation as switch control
  30717. + - new device operation proc_read: device drivers can now register in /proc
  30718. + (e.g. /proc/atm/eni:0)
  30719. + - added some more BHLI definitions to include/atmsap.h, including draft
  30720. + mapping of well-known TCP/UDP port numbers
  30721. + - added support for TIOCOUTQ/TIOCINQ on native ATM
  30722. + - new library function sap_equal
  30723. + - added convenience function atmpvc_addr_in_use to linux/atm.h
  30724. + - major overhaul of "isp", which is now a good tool for signaling regression
  30725. + tests. See atm/test/README.isp
  30726. + - LANE can now be compiled as a kernel module (by Heikki Vatiainen)
  30727. + - new tool debug/svctor.c to torture signaling by setting up and releasing
  30728. + lots of SVCs (see the source for details)
  30729. +
  30730. +Other changes
  30731. +-------------
  30732. +
  30733. + - cleaned up the copying terms: libraries are now covered by LGPL instead of
  30734. + GPL and qgen doesn't "taint" the code it generates
  30735. + - atmarpd: IP addresses are now __u32 instead of unsigned long
  30736. + - atmarpd: changed printf("... %08x ...",(unsigned long) ptr) to %p ...",ptr
  30737. + - /proc support now allocates inode numbers dynamically
  30738. + - added comment to clarify motivation for useless buffer alignment in aread.c
  30739. + (reported by Jeon Jong Hwan)
  30740. + - suni.c and uPD98402.c: SONET_GETSTATZ no longer clears the statistics if the
  30741. + copy faults
  30742. + - ilmid should now work on any interface (patch by Heikki Vatiainen)
  30743. + - changed all __uNN of tools to uintNN_t for glibc2-compatibility
  30744. + - added stdint.h to lib for compatibility with future versions of glibc2
  30745. + - various other evil hacks in tools to make things compile with glibc2
  30746. + - the NIC debugging programs ed, encopy, endump, zndump, and znth are no
  30747. + longer built and installed by default
  30748. + - for compatibility with POSIX 1003.1g, accept now returns ECONNABORTED
  30749. + instead of ECONNREFUSED if connection is already gone (proposed by Heikki
  30750. + Vatiainen)
  30751. + - listening sockets now return instantly if the signaling demon dies
  30752. + - various minor LANE updates to track API changes (by Heikki Vatiainen)
  30753. + - SUNI now also warns if signal is missing at initialization time
  30754. + - zatm: added work-around for unfair buffer space accounting
  30755. + - clarified some of atmarpd's diagnostics
  30756. + - documentation updates
  30757. +
  30758. +
  30759. +Version 0.32 to 0.33 (19-NOV-1997)
  30760. +====================
  30761. +
  30762. +Bug fixes
  30763. +---------
  30764. +
  30765. + - SSCOP did poll sequence number comparisons in the (data) sequence number
  30766. + space, typically leading to periodic SSCOP restarts (reported by Heikki
  30767. + Vatiainen)
  30768. + - atmsigd now releases calls on receipt of STATUS with call state 0 (reported
  30769. + by Heikki Vatiainen)
  30770. + - qgen tried to print the names of unnamed groups (fix by Simon Leinen)
  30771. + - make clean in qgen left all the .c and .h files produced by qgen
  30772. + - minor fixes to signaling message format description (qgen/msg.fmt,
  30773. + previously qgen/uni*)
  30774. + - /usr/include/atm.h was calling itself "atmlib" (found by Leena Chandran)
  30775. + - atmsigd: the address format of the calling party number was used to
  30776. + determine the format of the called party number in a SETUP message
  30777. + - added some semicolons to Rules.make for bash 2.0 compatibility (by Tan Chang
  30778. + Hu and Rolf Kunisch)
  30779. + - select/poll indicated an exception when a non-blocking connect terminated.
  30780. + Now it indicates writability, and an error only if the connect failed.
  30781. + - LES/BUS can now co-exist at the same address (by Heikki Vatiainen)
  30782. + - fixed race condition between asynchronous release (e.g. on ATMARP idle timer
  30783. + expiration) and signaling demon response
  30784. + - fixed a typo "[itf]." instead of "[itf.]" in atmsigd.conf.8
  30785. + - "ATM drivers" kernel configuration section is no longer a top-level menu
  30786. + item but it's now under "Network devices"
  30787. + - sigd_close forgot to purge VCs not connected to devices (e.g. closing ones),
  30788. + so they hung
  30789. + - the list of unconnected VCs was sometimes garbled
  30790. + - atmsigd printed null string for as_itf_notify message name when debugging
  30791. + - Arequipa: check_aq_vcc also accepted VCs that were already released by
  30792. + signaling
  30793. + - ATM_VF_PARTIAL and ATM_VF_BOUND had the same value
  30794. + - atmaddr still used old calling convention of ATM_GETNAMES
  30795. + - the atmarpd man page referred to atmarpd as "atmsigd"
  30796. + - various atmtcp bug fixes
  30797. + - atm_recvmsg sometimes returned with interrupts disabled (reported by Pete
  30798. + Wyckoff)
  30799. + - fixed ttcp_atm dependencies (.depend contains dependencies for "ttcp.o")
  30800. + - UNI message format: "more" was missing for def_pck_size
  30801. + - eni/suni didn't compile as modules (fixed by Pete Wyckoff and Ladislav
  30802. + Lhotka)
  30803. + - further net/atm/Makefile cleanup
  30804. + - arequipa_close always left the socket with arequipa_expect enabled. Now it
  30805. + returns it to the previous state.
  30806. + - ENI driver was leaking buffer memory on failure of set_tx
  30807. + - atmarpd didn't print symbolic names of "new" flags (ATF_ARPSRV, etc.)
  30808. + - ATM ARP server didn't make client entries public (reported by Tom Mahieu)
  30809. + - drivers/atm/Config.in had extra "endmenu" (fixed by Ladislav Lhotka)
  30810. + - atmarpd got confused when receiving InARP reply without source ATM address
  30811. + - atmsigd sometimes didn't stop timers if Q.2963.1 wasn't enabled
  30812. + - when rejecting a call, the kernel freed the VCC twice
  30813. +
  30814. +New features
  30815. +------------
  30816. +
  30817. + - merged source tree (except Arequipa, single-copy, and various NIC drivers)
  30818. + with 2.1.65-Linus tree
  30819. + - qgen can now handle repeated information elements
  30820. + - added ATM_SETESI[F] ioctl and esi utility (boards without a real ESI in ROM
  30821. + should now set the default ESI to 0x000000000000)
  30822. + - new socket option SO_ATMSAP along with struct atm_sap (using a fixed-size
  30823. + BLLI array instead of the linked list in struct sockaddr_atmsvc)
  30824. + - added Q.2963.1 PCR modification in signaling and the ENI driver
  30825. + - aread: new option -c to print received data as characters (similar to od -c)
  30826. + - new tool test/align to test handling of mis-alignment in NIC drivers
  30827. + - atmsigd now supports policy restrictions for incoming/outgoing calls (see
  30828. + atmsigd.conf.4, "policy")
  30829. + - atmsigd can now also use a pair of named pipes (or, actually, any named
  30830. + object in the file system) for communicating with the user of signaling
  30831. + (normally the kernel)
  30832. + - new tool called "isp" (for "Internal Signaling Protocol") to talk ISP with
  30833. + atmsigd over named pipes
  30834. + - new functions sap2text and text2sap to converts SAPs to/from textual
  30835. + representation, and a sap(7) man page
  30836. + - new traffic parameter field "pcr" to indicate the desired PCR. min_pcr and
  30837. + max_pcr can the be used to indicate the acceptable range.
  30838. + - new function atm_pcr_goal to help drivers to interpret traffic parameters
  30839. +
  30840. +Other changes
  30841. +-------------
  30842. +
  30843. + - removed some more obsolete CLIP-related ioctls
  30844. + - qgen: simplified generation of engines with a prefix other than "q" or "qd"
  30845. + - ENI and ZATM drivers now use shareable interrupts
  30846. + - cleaned up some 32bit-isms in ENI driver
  30847. + - cleaned up several 32bit-isms in SSCOP (reported by Tan Chang Hu)
  30848. + - SSCOP: work-arounds for buggy ntohl prototype in some early versions of
  30849. + glibc (reported by Tan Chang Hu, further explored by David S. Miller and
  30850. + Richard Henderson)
  30851. + - started updating the ZATM driver for 2.1 (still crashes under load)
  30852. + - added missing 2.1 pieces in ENI's SUNI driver
  30853. + - added __initfunc and __initdata where appropriate
  30854. + - tools tree now compiles under 0.31 (2.0.25 kernel) and 0.33 (2.1.55 kernel)
  30855. + - gratuitous improvement of identifier tree allocation in qgen
  30856. + - the interface number is now optional for sonetdiag (like for atmdiag)
  30857. + - started implementing the kernel side of point-to-multipoint signaling
  30858. + support
  30859. + - /proc/atm/arp now displays "resolving" or "expired" (with the number of
  30860. + times the entry is referenced) instead of "incomplete".
  30861. + - moved ATM_MAX_BLLI from linux/atm.h to linux/atmsap.h
  30862. + - changed ttcp_atm to use SO_ATMSAP (if available) to set BHLI
  30863. + Note: ttcp_atm previously didn't use a BHLI, so old and new versions of
  30864. + ttcp_atm don't interoperate.
  30865. + - updated all other programs using SAPs too, except for LANE
  30866. + - ENI: failure to allocate a traffic shaper now yields EBUSY instead of EAGAIN
  30867. + - instead of just complaining, the ENI driver now handles all kinds of
  30868. + mis-alignment in the TX path properly
  30869. + - re-implemented send and receive side of Arequipa
  30870. + - merged qgen/uni3x and qgen/uni40 into msg.fmt
  30871. + - added missing Q.2931/UNI 4.0 items to qgen/q2931.h and msg.fmt
  30872. + - also added BLLI L3 H.310 codepoint with related encodings
  30873. + - various file name and identifier changes to give a more appropriate name
  30874. + (e.g. "uni" or "call") to something that's never been Q.2931
  30875. + - added library dependencies
  30876. + - atmsigd produces more readable and usually more comprehensive debugging
  30877. + output
  30878. + - atmsigd.conf.4 now mentions that -d is the debugging output addict's choice
  30879. + - all programs accepting -l syslog now also accept -l stderr. (This is useful
  30880. + for atmsigd if atmsigd.conf sets logging to something else.)
  30881. + - atmsigd now issues ATM_GETADDR ioctls on the signaling socket, not on the
  30882. + kernel socket
  30883. + - WARNING: text2qos: "pcr" is no longer a synonym for "max_pcr" !
  30884. + - text2qos now refuses min_pcr=max
  30885. + - device driver interface: removed vcc->peek; device drivers now choose their
  30886. + own allocation strategy (change motivated by bug report from Furquan Ansari)
  30887. + - drive driver interface: new helper functions atm_charge/atm_return to handle
  30888. + buffer space allocation
  30889. + - device driver interface: vcc->push no longer allocates buffer space. This is
  30890. + now done by the driver, via atm_charge
  30891. + - updated eni, zatm, and atmtcp to use the new mechanism
  30892. + - zero padding in eni driver failed due to mis-alignment on some systems
  30893. + (fixed by Pete Wyckoff)
  30894. + - various compiler warnings removed (by Pete Wyckoff)
  30895. + - removed support for pre-AREQUIPA_WORK mechanism
  30896. + - arequipa close mechanism cleanup
  30897. + - further cleaned up QOS parameter checking
  30898. + - new ISP message as_identify for parallel call processing (not supported yet)
  30899. + - zatm: renamed struct zatm_thist to struct zatm_t_hist after wondering
  30900. + myself what on earth "this t" could be ...
  30901. + - doc/Makefile now invokes dvips with -o
  30902. +
  30903. +
  30904. +Version 0.31 to 0.32 (10-JUL-1997)
  30905. +====================
  30906. +
  30907. +Bug fixes
  30908. +---------
  30909. +
  30910. + - manipulation of local ATM addresses didn't check for permission
  30911. +
  30912. +New features
  30913. +------------
  30914. +
  30915. + - ilmid now supports the system group and a couple of ILMI MIB objects (by
  30916. + Scott Shumate)
  30917. + - device and VCC allocation is now dynamic
  30918. + - E.164 addressing support and corrections to address coding in uni3x/uni40
  30919. + (by S. A. Wright, T. C. Jepsen, and Z. Zhang)
  30920. + - support for device de-allocation via per-device operation dev_close
  30921. +
  30922. +Other changes
  30923. +-------------
  30924. +
  30925. + - upgrade to kernel version 2.1.37
  30926. + - ENI driver cleanup (uses readl/writel, skb_put, etc.)
  30927. + - socket option handling has changed: optval is now void * (to improve
  30928. + compile-time type checking) and optlen is int (not int *) in getsockopt
  30929. + - socket option "names" now encode the level and the size (based on an idea of
  30930. + Elwyn Davies)
  30931. + - cleaned up some of the #includes in net/atm/proc.c
  30932. + - total rewrite of ATMTCP (now the data forwarding is done in user space,
  30933. + which makes things slower but a lot more flexible)
  30934. + - separated PDU parsing and printing from SSCOP state machine
  30935. + - new per-device operation dev_close to shut down devices
  30936. + - changed a few DIAG_WARNs to DIAG_INFO in ilmid
  30937. +
  30938. +Removed features
  30939. +----------------
  30940. +
  30941. + - polled ATM devices are no longer supported
  30942. + - CLIP is gone (use ATMARP instead)
  30943. + - Arequipa and LANE don't work yet (will come back later)
  30944. +
  30945. +
  30946. +Version 0.30 to 0.31 (22-APR-1997)
  30947. +====================
  30948. +
  30949. +Bug fixes
  30950. +---------
  30951. +
  30952. + - atmarpd even refused IP address changes by the ATMARP server, which
  30953. + typically led to the creation of one extra SVC
  30954. + - ATMARP timeouts were computed at the wrong place (found by Gerald Hanusch)
  30955. + - aqtest's usage didn't mention the -v option
  30956. + - some tools used 0x%p instead of %p (which is fine in the kernel, by the way)
  30957. + - skb_migrate didn't update skb->list
  30958. + - zeppelin: incurred spurious core dumps on unsuccessful attempts to connect
  30959. + to LANE servers, ESI parsing from command line seg faulted, obtaining ESI
  30960. + from NIC left an ATM socket hanging, man page didn't describe all options
  30961. + (by Marko Kiiskila and Heikki Vatiainen)
  30962. +
  30963. +Other changes
  30964. +-------------
  30965. +
  30966. + - arequipa_close now only returns after the Arequipa connection has been
  30967. + successfully closed. This allows applications to reliably close and
  30968. + re-create Arequipa SVCs, e.g. to change the traffic parameters.
  30969. + - the arequipad operations 3rd party close and synchronization are now handled
  30970. + inside the kernel and survive arequipad restarts
  30971. +
  30972. +
  30973. +Version 0.29 to 0.30 (10-APR-1997)
  30974. +====================
  30975. +
  30976. +Bug fixes
  30977. +---------
  30978. +
  30979. + - atmtcp didn't use vcc->push and therefore got the buffer usage accounting
  30980. + wrong (fix by Gerald Hanusch)
  30981. + - when closing a VC, the ENI driver didn't wait until all TX data has really
  30982. + left the board, which created a close/open race (found by Richard Jones)
  30983. + - SSCOP sometimes omitted the last element in a STAT PDU (fix - even with
  30984. + optimization vs. Q.2110 - by Ngo Bach Long)
  30985. + - atmarpd allowed ARP information to change permanent entries (found by Gerald
  30986. + Hanusch)
  30987. + - atmsigd's get_pvc used the maximum SDU size, thereby wasting buffer space
  30988. + very quickly, which led to signaling problems (reported by Richard Jones and
  30989. + Rik Wade)
  30990. + - oops, the BUGS file was always one version number ahead
  30991. + - ATMARP had a race between packets sent by the remote station and the
  30992. + ATMARP_MKIP ioctl. This caused the dreaded "unknown hw protocol 0xaaaa"
  30993. + error. (Finally fixed thanks to a dump provided by Patrick Flynn)
  30994. + - Arequipa had the same race for AREQUIPA_INCOMING. This probably caused the
  30995. + occasional "loss" (they were actually kept in vcc->recvq until the
  30996. + connection was closed) of the first packet(s).
  30997. +
  30998. +
  30999. +Version 0.28 to 0.29 (4-APR-1997)
  31000. +====================
  31001. +
  31002. +Bug fixes
  31003. +---------
  31004. +
  31005. + - saal/sscop.c: NORMALIZE macro was weird and broken (fix by Ngo Bach Long)
  31006. + - InARP queries didn't contain the target ATM address, even if it is known,
  31007. + which stretches the allowances RFC1577 makes for violating RFC1293 (found
  31008. + by Juha Heinanen)
  31009. + - tcp_conn_request: Arequipa modification to MTU size calculation used wrong
  31010. + socket (fix by Gerald Hanusch)
  31011. + - kernel ATMARP table handling had some obscure races
  31012. + - temporary work-around: added A2T_LOCAL when using A2T_NAME in atmsigd and
  31013. + atmarpd. Before, systems using ANS where the name server is reached via (IP
  31014. + over) ATM exhibited truly bizarre failure patterns when refreshing ATMARP
  31015. + entries. (With a lot of help from Juha Heinanen)
  31016. + - ditto for arequipad, although the effects were less dramatic
  31017. + - atmarpd: if not using -m, incoming connections for which a valid entry
  31018. + already existed (e.g. due to manual configuration) were not entered in the
  31019. + kernel ATMARP table until after the entry timed out for the first time (by
  31020. + Gerald Hanusch)
  31021. + - skb data areas are now aligned using skb_reserve instead of directly
  31022. + tampering with skb->data (and forgetting skb->tail in the process ...)
  31023. + (found by Uwe Dannowski)
  31024. +
  31025. +New features
  31026. +------------
  31027. +
  31028. + - atmarpd is now automatically notified of IP over ATM interfaces already
  31029. + existing at startup. This greatly simplifies the atmarpd restart ritual.
  31030. + (All ATMARP table entries and the default QoS are still lost, though.)
  31031. +
  31032. +Other changes
  31033. +-------------
  31034. +
  31035. + - cleaned up some weird and partially dead code in arpd/arp.c (found by
  31036. + Gerald Hanusch)
  31037. + - removed superfluous continue in arp.c:atmarp_setentry
  31038. + - device-driver specific declarations now reside in
  31039. + /usr/include/linux/atm_<drv_name>.h, so that disgusting hacks like
  31040. + #include "/usr/src/linux/..." can be avoided (based on proposal by Uwe
  31041. + Dannowski)
  31042. + - updated the list of supported NICs in README and the on-line help
  31043. + - arpd/atmarpd.8: documented that atmarpd -m may violate RFC1577 in subtle
  31044. + ways (pointed out by Gerald Hanusch)
  31045. + - updated MPR usage description to version 1.5 and removed mpr.patch
  31046. + - removed MEM_DEBUG from the build process (MPR 1.5 initializes itself
  31047. + automatically)
  31048. +
  31049. +
  31050. +Version 0.27 to 0.28 (27-MAR-1997)
  31051. +====================
  31052. +
  31053. +Bug fixes
  31054. +---------
  31055. +
  31056. + - atmarpd restarted timers on as_valid -> as_valid transitions, illegally
  31057. + delayed necessary refreshes (reported by Juha Heinanen)
  31058. + - SSCOP cleared POLL timer on IDLE timer expiry (fix by Ngo Bach Long)
  31059. + - atmsigd didn't initialize "now" soon enough, causing an unnecessary
  31060. + retransmission of the first BGN PDU (by Ngo Bach Long)
  31061. + - atmsigd responded to RELEASE COMPLETE in ss_rel_ind with a STATUS instead of
  31062. + entering ss_wait_close (by Steve Pope)
  31063. +
  31064. +New features
  31065. +------------
  31066. +
  31067. + - new tool aqpvc to declare incoming Arequipa traffic on a PVC to the system
  31068. + (caveat: removing such a PVC can turn out to be surprisingly difficult)
  31069. +
  31070. +Other changes
  31071. +-------------
  31072. +
  31073. + - removed some useless code in atmarpd's handling of VC disconnects
  31074. + - removed unused signaling state ss_hold (equivalent to ss_wait_rel)
  31075. +
  31076. +
  31077. +Version 0.26 to 0.27 (11-MAR-1997)
  31078. +====================
  31079. +
  31080. +Bug fixes
  31081. +---------
  31082. +
  31083. + - oops, forgot to include atm/lib/rtf2e164_cc.pl in the distribution
  31084. + - atmsigd's VCI allocation in -N mode was too simplistic and failed after some
  31085. + signaling activity (reported by Richard Jones)
  31086. + - atm_connect was rejecting ATM_{VPI,VCI}_ANY
  31087. + - aq_prev in the list of Arequipa connections wasn't set properly, leading to
  31088. + random crashes when using Arequipa (found and fixed by Richard Jones, after
  31089. + weeks of tearing his hair out)
  31090. + - arequipa_close didn't remove the Arequipa route, which kept the upper layer
  31091. + protocol connection alive for a rather long time (reported by Richard Jones)
  31092. +
  31093. +New features
  31094. +------------
  31095. +
  31096. + - ilmid enhancements: vastly improved retry mechanism, workaround for a bug in
  31097. + the ATML Virata switch, -v option for very detailed debug output (Scott
  31098. + Shumate)
  31099. + - atmsigd now also accepts the signaling VC as a command line argument
  31100. + - qos2text appended colon to traffic type even if nothing else followed
  31101. + - new program debug/aqtest to test Arequipa (based on work by Mehdi Tazi)
  31102. +
  31103. +Other changes
  31104. +-------------
  31105. +
  31106. + - added a few missing NULLs to struct atmdev_ops initialization in various
  31107. + drivers (this change does not alter any semantics)
  31108. + - changed printk ...%lx... (unsigned long) ptr to ...%p... ptr at many
  31109. + places
  31110. + - removed atm/lib/rtf2cc.pl and atm/lib/cc.inc (they were only used by an
  31111. + interim version of cc_len)
  31112. + - atmarp's usage no longer contains lines longer than 80 characters
  31113. + - added get_logfile() and get_verbosity() to libatm (for ilmid, by Scott
  31114. + Shumate)
  31115. + - select() consumed CPU time unnecessarily if testing for one direction while
  31116. + there's a lot of activity in the other direction (e.g. atmarpd wasted cycles
  31117. + in select() for each outbound packet while waiting for ARP messages)
  31118. + - the value of ATM_AAL0 has changed (from zero to 13), so all programs using
  31119. + AAL0 need to be recompiled
  31120. + - MAX_ATM_QOS_LEN has changed, so most programs using qos2text need to be
  31121. + recompiled
  31122. + - the AAL can now also be set along with the QoS parameters. This approach
  31123. + should be used instead of specifying it in the socket() call.
  31124. + - if no AAL is specified, the kernel now defaults to AAL5 (was AAL0)
  31125. + - updated most demons, tools, and library functions to set the AAL along with
  31126. + the QoS parameters
  31127. +
  31128. +
  31129. +Version 0.25 to 0.26 (29-JAN-1997)
  31130. +====================
  31131. +
  31132. +Bug fixes
  31133. +---------
  31134. +
  31135. + - ATMARP VCCs could stay around forever even after timing out, because the
  31136. + process was not woken up.
  31137. + - the ATMARP "fix" in 0.25 introduced an infinite loop. Fixed that one too.
  31138. + - bit 8 in octets 6 and 7 of BLLI ("ext") were set to 1 instead of 0 when
  31139. + using ATM_L2_USER/ATM_L3_USER (reported by [email protected])
  31140. + - qlib added silly offset (which fortunately happened to be zero most of the
  31141. + time) to dumps of large fields (fixed by Jean-Francois Moine)
  31142. + - IP over ATM restricted MTU changes to valid Ethernet MTU sizes
  31143. + - LANE: fixed two bugs that crashed zeppelin when the connection to the
  31144. + servers failed (by Marko Kiiskila)
  31145. +
  31146. +New features
  31147. +------------
  31148. +
  31149. + - lib/ans.c now properly computes the length of the country prefix of E.164
  31150. + addresses for reverse lookups (needs file /etc/e164_cc, see USAGE)
  31151. + - if the new -m option is set, atmarpd now merges incoming calls into the
  31152. + ATMARP table if the ATM address is known (see atmarpd.8 for details)
  31153. + - included an RPM spec file (this is still very experimental)
  31154. + - NICStAR driver now also works with IP over ATM (by Stuart Daniel)
  31155. + - usage.txt: added description of how to run ATM NICs back-to-back (by Richard
  31156. + Jones)
  31157. +
  31158. +Other changes
  31159. +-------------
  31160. +
  31161. + - signaling traces now also include SAAL up/down transitions
  31162. + - qgen no longer (unnecessarily) depends on libatm.a
  31163. + - started work on letting qgen handle items that appear at more than one
  31164. + place, e.g. repeated IEs (after an idea by Jean-Francois Moine)
  31165. + - did some cleanup and added comments to qlib.[ch]
  31166. + - added -m option to atmarp in config/redhat-4.0/atm.init
  31167. + - added new make target "filenames" to generate a list of all the files which
  31168. + are installed
  31169. + - config/redhat-4.0 now contains an example hosts.atm file and also a Makefile
  31170. + for more convenient installation
  31171. + - atmsigd now reads atmsigd.conf before parsing the command-line options,
  31172. + thereby allowing values set in the file to be superseeded
  31173. + - atmsigd now also logs the internal reference and the caller's address on
  31174. + calls establishment
  31175. + - ilmid: very dirty hack to give switches some time to process ILMI cold start
  31176. + (by Joseph Evans)
  31177. +
  31178. +
  31179. +Version 0.24 to 0.25 (20-DEC-1996)
  31180. +====================
  31181. +
  31182. +Bug fixes
  31183. +---------
  31184. +
  31185. + - net/atm/atmarp.c:idle_timer_check only expired every other entry (reported
  31186. + by Marko Kiiskila)
  31187. +
  31188. +New features
  31189. +------------
  31190. +
  31191. + - LANE now also supports IPX (SNAP and 802.3; by Marko Kiiskila)
  31192. + - NICStAR driver now supports VPI != 0 and has configurable settings in
  31193. + nicstar.h (by Stuart Daniel)
  31194. +
  31195. +Other changes
  31196. +-------------
  31197. +
  31198. + - ENI: TX DMA scratch are is now stored per device. This should allow multiple
  31199. + NICs to coexist.
  31200. +
  31201. +
  31202. +Version 0.23 to 0.24 (29-NOV-1996)
  31203. +====================
  31204. +
  31205. +Bug fixes
  31206. +---------
  31207. +
  31208. + - atm/test/window.c was missing in 0.23
  31209. + - atm/debug/delay didn't build unless atm/lib headers were already installed
  31210. + in /usr/include
  31211. + - atm/debug/znth had undefined return value
  31212. + - SSCOP: fixed typo (that could probably kill the SSCOP connection in case of
  31213. + a retransmission); fix by Olivier Bonaventure
  31214. + - corrected unnecessarily large buffer allocation in zatm.c:pool_index (by
  31215. + Jonathan Larmour)
  31216. + - hosts2ans.pl generated reverse addresses for the domain "ATM.INT" instead of
  31217. + "ATMA.INT"
  31218. + - atmarpd "forgot" any pre-set QOS when receiving new ARP information for the
  31219. + respective entry (reported by Gerald Hanusch)
  31220. + - window scale didn't scale the window sent in the SYNACK packet (reported by
  31221. + Juan-Antonio Ibanez)
  31222. + - LANE: better connection failure handling in zeppelin (by Marko Kiiskila)
  31223. + - LEC kernel timer wasn't restarted when restarting zeppelin (found by Gerald
  31224. + Hanusch, fixed by Marko Kiiskila)
  31225. + - LANE: le_flush_request was sent too early when establishing connection (by
  31226. + Marko Kiiskila)
  31227. + - zeppelin stopped operation (unwantedly) in random cases when LANE servers
  31228. + were down (by Marko Kiiskila)
  31229. + - LANE: non-blocking connections, VCC and LE ARP timeouts, and TLV fields in
  31230. + LE_CONFIG_RESPONSE fixed (by Marko Kiiskila)
  31231. +
  31232. +New features
  31233. +------------
  31234. +
  31235. + - atm2text now also uses ANS
  31236. + - signaling traces now also contain error reports from qgen
  31237. + - added new build-time configuration option "CISCO" (in atm/Rules.make) to
  31238. + work around a bug in Cisco's point-to-multipoint signaling
  31239. + - included example configuration files for RedHat 4.0 (see
  31240. + atm/config/redhat-4.0/README)
  31241. +
  31242. +Other changes
  31243. +-------------
  31244. +
  31245. + - local variable "link" in atm/debug/delay.c:loop was shadowing "link" system
  31246. + call
  31247. + - cleaned up various Makefiles
  31248. + - qgen: bytes left in qet_space are now more meaningful
  31249. + - named (ANS) now also starts even if atmsigd is not running and retries to
  31250. + create the ATM socket in 15 minute intervals until is succeeds (by Marko
  31251. + Kiiskila)
  31252. + - LANE: (too) short le_flush_responses (Cisco 7010, sw ??.??) are now handled
  31253. + (by Marko Kiiskila)
  31254. +
  31255. +
  31256. +Version 0.22 to 0.23 (16-NOV-1996)
  31257. +====================
  31258. +
  31259. +Bug fixes
  31260. +---------
  31261. +
  31262. + - fixed stupid typos in atm/lib/atmres.h and an unnecessary dependency on
  31263. + libresolv.a in atm/lib/Makefile (reported by Gerald Hanusch)
  31264. + - fixed warning about implicit declaration of function bigphysarea_init in
  31265. + init/main.c
  31266. + - I think I fixed the SSCOP VR(MR) problems that were first reported by
  31267. + Edouard Lamboray in '95, then by Heinz Schuerch, and that finally led to a
  31268. + total SSCOP breakdown (in 0.22) reported by Gerald Hanusch
  31269. +
  31270. +New features
  31271. +------------
  31272. +
  31273. + - integrated the IDT 77201 (NICStAR) driver by Matt Welsh and Stuart Daniel
  31274. + <[email protected]>. Note that this driver currently only supports
  31275. + native ATM.
  31276. + - new throughput and latency benchmark test/window (by Matt Welsh)
  31277. +
  31278. +Other changes
  31279. +-------------
  31280. +
  31281. + - upgrade to kernel version 2.0.25
  31282. + - changed drivers/atm/eni.c:do_tx:dma to static in order to reduce kernel
  31283. + stack use (by 480 bytes). Note that this hack may crash systems with more
  31284. + than one ENI adapter.
  31285. + - qlib now also complains if changing a field without a fixed list of values
  31286. + - made a few changes to the native ATM data delivery path to handle some
  31287. + strangeness required by the IDT driver
  31288. +
  31289. +
  31290. +Version 0.21 to 0.22 (13-NOV-1996)
  31291. +====================
  31292. +
  31293. +Bug fixes
  31294. +---------
  31295. +
  31296. + - (dummy) depend target was missing in atm/man (reported by Bernd Wolf)
  31297. + - net/atm/arequipa.c:make_aq_vcc didn't set ATM_VF_AQINUSE, thereby allowing
  31298. + race conditions to slip through
  31299. + - fixed a few potential race conditions when activating Arequipa
  31300. + - text2qos didn't complain if unit was omitted after multiplier, allowing
  31301. + misleading settings like pcr=50M (that's 19.2 Gbps)
  31302. + - SSCOP: took wrong branch if POLL_AFTER_RETRANSMISSION was enabled (fix by
  31303. + Jonathan Larmour)
  31304. + - SSCOP: rel_ind for ENDAK and BGREJ PDU in sscop_inconn was sent with "user"
  31305. + = 1 (must be 0 for "Source := SSCOP")
  31306. + - initialize_vr_mr now initializes vr_mr to a constant value (instead of
  31307. + garbage plus constant value)
  31308. + - atm_recvmsg now ignores msg->msg_name, as it should by POSIX 1003.1g (fix by
  31309. + Mike Wooten)
  31310. + - atm_sendmsg now fails with EISCONN instead of with EINVAL if msg->msg_name
  31311. + is set, as it should by POSIX 1003.1g (reported by Mike Wooten)
  31312. + - atm_recvmsg and atm_sendmsg now return ENOTCONN if not connected and
  31313. + EOPNOTSUP if flags are passed, as they should by POSIX 1003.1g
  31314. + - the QOS zeppelin uses for its connections can now be set with the option -q
  31315. + - atmarpd didn't include the QOS in PVC entries, so atmarp -a complained about
  31316. + them
  31317. +
  31318. +New features
  31319. +------------
  31320. +
  31321. + - kernel changes to support tcpdump with LANE (by Marko Kiiskila)
  31322. + - patch for tcpdump 3.0.4 (installed as tcpdump_atm) to support Classical IP
  31323. + and LANE (by Marko Kiiskila)
  31324. + - patch for BIND 4.9.5 to support ANS (ATM Name Service) functionality (by
  31325. + Marko Kiiskila)
  31326. + - added hierarchy extra/ for packages for which only patches are contained in
  31327. + the ATM on Linux distribution
  31328. + - enhanced text2atm to use ANS if local lookups fail (atm2text will be updated
  31329. + later)
  31330. + - wrote script extra/hosts2ans.pl to convert hosts.atm file to ANS zone files
  31331. +
  31332. +Other changes
  31333. +-------------
  31334. +
  31335. + - changed ATM_VF_AQINUSE to ATM_VF_AQDANG and changed aq_list membership to
  31336. + be for dangling VCs only
  31337. + - added the new command-line options to ttcp_atm's online help (finally !)
  31338. + - atm_sendmsg now returns error codes from the driver's send function
  31339. + (suggested by Jonathan Larmour)
  31340. + - text2qos now performs a syntax check if NULL is passed in the qos argument
  31341. + - various minor LANE cleanup (Marko Kiiskila)
  31342. + - upgraded to the latest version of t2a.pl
  31343. + - {A2T,T2A}_REMOTE is obsolete; instead, {A2T,T2A}_LOCAL should be used if
  31344. + ANS lookups are _not_ desired
  31345. +
  31346. +
  31347. +Version 0.20 to 0.21 (18-OCT-1996)
  31348. +====================
  31349. +
  31350. +Bug fixes
  31351. +---------
  31352. +
  31353. + - net/atm/common.c:atm_connect didn't refuse traffic_class == ATM_NONE in both
  31354. + directions
  31355. + - include/linux/atmsvc.h:SELECT_TOP_PCR didn't default to ATM_MAX_PCR if
  31356. + min_pcr == 0 && max_pcr == 0
  31357. + - debug/delay swallowed one-byte packets
  31358. + - oops, forgot man/Makefile, so qos.7 wasn't installed
  31359. + - atmarpd left max_sdu at zero for automatically generated entries
  31360. + - atmarpd now only uses the default QOS if the traffic type is set in neither
  31361. + direction
  31362. + - signaling: if the listen queue was full, new connections were rejected with
  31363. + as_close instead of as_reject, thereby upsetting atmsigd
  31364. + - svc_accept didn't adjust the listen queue quota when rejecting incoming
  31365. + connection requests
  31366. + - fixed a few bad font selections in atmsigd(8)
  31367. +
  31368. +New features
  31369. +------------
  31370. +
  31371. + - included the window scale patch by Randy Scott <[email protected]> and
  31372. + Robert Hill <[email protected]>
  31373. + - -q option for ilmid to set the QOS (like in atmsigd)
  31374. + - new script mkbindist to install the utilities into a tar.gz file
  31375. +
  31376. +Other changes
  31377. +-------------
  31378. +
  31379. + - debug/delay now prints the usage if invoked without arguments
  31380. + - removed the pretentious usec resolution for delays in debug/delay
  31381. + - removed the UBR semantics change warning
  31382. + - qos.7: clarified that bps are the user data rate
  31383. + - arequipa_attach_unchecked now also adjusts the upper layer MTU (which can
  31384. + violate RFC1122, but I'll tackle that later)
  31385. + - text2qos now also accepts fractional values, e.g. 9.6kbps
  31386. +
  31387. +
  31388. +Version 0.19 to 0.20 (14-OCT-1996)
  31389. +====================
  31390. +
  31391. +Bug fixes
  31392. +---------
  31393. +
  31394. + - fixed a few typos and errors in the 0.18 to 0.19 change log
  31395. + - signaling traces only included hl_type bytes instead of hl_length
  31396. + bytes
  31397. + - TNET1570 driver: various fixes (DMA allocation, seg ring overflow,
  31398. + timeouts, etc.) (Christian Paetz)
  31399. + - TNET1570 driver: removed most compiler warnings (Christian Paetz)
  31400. + - listen() on an arequipa_preset() socket and arequipa_preset() on a listening
  31401. + socket now both return EPROTO
  31402. + - oops, forgot to enable the "rm" in make uninstall
  31403. + - kernel didn't set interface number field in act_create messages to atmarpd
  31404. +
  31405. +New features
  31406. +------------
  31407. +
  31408. + - added ioctl ATM_SETSC to enable or disable RX and TX single-copy per VC
  31409. + - new device driver operation change_qos (not yet implemented)
  31410. + - TNET1570 driver supports DEC Alphas and 64 bit PCI transfer (for CIA PCI
  31411. + chipsets) (Christian Paetz)
  31412. + - TNET1570 driver also supports the UniNET1570 board (Christian Paetz)
  31413. + - new functions text2qos and qos2text to convert between textual and binary
  31414. + QOS specifications (the format is described in man qos)
  31415. + - atmarp -q ip_addr qos sets the default QOS to use for all VCs created for
  31416. + that IP interface
  31417. + - new utility debug/delay to use machine as AAL5-level delay line
  31418. +
  31419. +Other changes
  31420. +-------------
  31421. +
  31422. + - NLPIDs and vendor-specific application identifiers are now collected in
  31423. + the new file /usr/include/atmsap.h
  31424. + - SO_ATMQOS now attempts to change the QOS settings when invoked on an active
  31425. + connection
  31426. + - included Matt Welsh's bigphysarea patch (this isn't related to ATM, but it
  31427. + keeps my development source tree simpler)
  31428. + - arequipa_preset now initializes max_sdu to RFC1626_MTU+RFC1483LLC_LEN if
  31429. + zero
  31430. + - atmarp: new option qos <spec> to set the QOS parameters (uses text2qos)
  31431. + Use of pcr <pcr> is deprecated.
  31432. + - ttcp_atm's -P option now also accepts a QOS specification string. (use of
  31433. + -P <number> is deprecated.
  31434. + - atmsigd: new option -q <qos> and configuration clause io qos <qos> to
  31435. + set the QOS of the signaling VC. Use of -P <pcr> or io pcr <pcr> is
  31436. + deprecated.
  31437. + - removed the backward compatibility #define class traffic_class in
  31438. + linux/atm.h
  31439. + - removed obsolete keywords from atmsigd.conf language
  31440. + - atmarp -a now also includes QOS parameters
  31441. + - UBR now respects txtp.max_pcr if set
  31442. + - new rules for the use of [rt]xtp.traffic_class: both fields must be either
  31443. + equal or zero, e.g. ATM_CBR in TX and ATM_UBR in RX no longer works
  31444. + - doc/usage.tex now points to the man pages instead of repeating their content
  31445. +
  31446. +
  31447. +Version 0.18 to 0.19 (27-SEP-1996)
  31448. +====================
  31449. +
  31450. +Bug fixes
  31451. +---------
  31452. +
  31453. + - sscop.c:data_sd had a comparison inversed, so generation of USTAT PDUs was
  31454. + wrong in some cases (by Juhana Rasanen)
  31455. + - sigd_enq: accessed vcc->qos without checking for vcc == NULL, causing an
  31456. + "Oops" in atmaddr
  31457. + - svc_accept: generated a general protection fault when atmsigd was killed
  31458. + while a process was waiting for new incoming connections
  31459. + - atmaddr didn't zero the address structure before calling text2atm
  31460. + - LANE: fixed usage of kernel timers and LE_ARP_REQUESTs should now get sent
  31461. + until the entry expires or a response is received (by Marko Kiiskila)
  31462. + - less compiler warnings from LANE servers (Marko Kiiskila)
  31463. + - SSCOP: fixed SDU size in AA-RETRIEVE.indication (reported by Heinz Schuerch)
  31464. + - NULL encapsulation for ATMARP works now (reported by Gerald Hanusch)
  31465. + - fixed stray EINVAL from get{sock,peer}name on PVCs (reported by Gerald
  31466. + Hanusch)
  31467. + - clip now sets max_sdu to RFC1626_MTU+RFC1483LLC_LEN when using LLC/SNAP
  31468. + encapsulation
  31469. + - if parsing of a Q.2931 message fails, atmsigd now aborts the call instead of
  31470. + (stupidly) trying to process the incomplete and probably inconsistent data
  31471. + - SUNI driver didn't properly mask out unused highest bits of some statistics
  31472. + counters, thereby yielding absurdly high values
  31473. + - zatm: changed timing of RX channel closing, so the dreaded "can't close RX
  31474. + channel" message should be history
  31475. + - fixed race between Arequipa attachment due to packet reception and closing
  31476. + of the Arequipa VC
  31477. + - local address validity check (for ATM_???ADDR) was all wrong (reported by
  31478. + David Simpson)
  31479. + - message dumper ignored fatal errors if debugging was not enabled
  31480. +
  31481. +New features
  31482. +------------
  31483. +
  31484. + - man pages for lecs, les, bus, and zeppelin (Marko Kiiskila)
  31485. + - configuration file name for les and bus can be defined (Marko Kiiskila)
  31486. + - zatm: new kernel configuration option CONFIG_ATM_ZATM_EXACT_TS now supports
  31487. + reception timestamps with microsecond resolution (the accuracy is only in
  31488. + the ms range, though)
  31489. + - new utility znth (ZeitNet Timer History) to monitor timer synchronization
  31490. + - LANE now supports up to 4 LEC network interfaces (Marko Kiiskila)
  31491. + - the Q.2931 message parser now recovers nicely from IE errors, logs the
  31492. + event, and continues parsing. The higher layers of the signaling stack
  31493. + don't use this information yet, though.
  31494. +
  31495. +Other changes
  31496. +-------------
  31497. +
  31498. + - Arequipa's BHLI now uses a "vendor-specific application identifier" under
  31499. + the EPFL OUI
  31500. + - moved buffer/queue handling from lib/libatmd to saal/, because it is rather
  31501. + SSCOP-specific anyway
  31502. + - atm_release_vcc now complains if rx_inuse != 0 when closing (if this ever
  31503. + happens, it may point out dangerous races with upper layer protocols)
  31504. + - SO_ATMQOS now issues a warning when using UBR with {min,max}_pcr != 0
  31505. + - max_sdu is now set by atmarpd to MTU+RFC1483LLC_LEN (atmarp could still
  31506. + override this, if necessary)
  31507. + - atmdump: new option -i to display the arrival interval instead of the
  31508. + absolute time. Also changed the time format to be more readable.
  31509. + - updated the kernel configuration documentation to indicate that the SMC
  31510. + ATM Power155 adapters are compatible with the Efficient ENI-155
  31511. + - atmarpd now deletes the old table file (containing stale information) if
  31512. + invoked with -d (debug)
  31513. +
  31514. +
  31515. +Version 0.17 to 0.18 (9-SEP-1996)
  31516. +====================
  31517. +
  31518. +Bug fixes
  31519. +---------
  31520. +
  31521. + - atmsigd didn't respond to SETUP followed by RELEASE with a RELEASE COMPLETE
  31522. + - atmsigd now implements incoming call rejection (as_indicate -> as_close)
  31523. + - kernel now opens the VC before sending the as_accept. This a) allows to
  31524. + check if the parameters are acceptable, and b) avoids a race condition
  31525. + between the sender and the local VC open procedure, which frequently led to
  31526. + loss of the beginning of the first PDU sent on a new connection.
  31527. + - qdump: _q_parse used the wrong length when dumping variable-length fields,
  31528. + yielding a fatal internal error
  31529. + - clip didn't set rxtp.max_sdu
  31530. + - svc_accept didn't set ATM_VF_HASQOS, so getsockopt SO_ATMQOS didn't work
  31531. + (by Marko Kiiskila)
  31532. + - ttcp_atm calculated Mbps as 2^20 bits/sec instead of 10^6, thereby making
  31533. + all results come out approximately 5% too low (by Fraz Ahmad)
  31534. + - added $(LDLIBS) to linking of lane/lecs (by Lawrence MacIntyre)
  31535. + - interface number allocation in clip and atmarp did not check for collision
  31536. + with the respective other name space
  31537. + - atmarp's -c option didn't work when omitting the "atm" in the interface name
  31538. +
  31539. +New features
  31540. +------------
  31541. +
  31542. + - new man page: arequipad.8
  31543. +
  31544. +Other changes
  31545. +-------------
  31546. +
  31547. + - simplified the internal signaling protocol by adding the as_reject message
  31548. + (sent by kernel in response to as_indicate; not acknowledged by demon)
  31549. + - packets received from Arequipa are no longer forwarded to other hosts
  31550. + - further ilmid improvements to use RSTADDR less frequently (by Gerald
  31551. + Hanusch; with a slight modification)
  31552. +
  31553. +
  31554. +Version 0.16 to 0.17 (2-SEP-1996)
  31555. +====================
  31556. +
  31557. +Bug fixes
  31558. +---------
  31559. +
  31560. + - lib/diag.c didn't fflush when logging to a file
  31561. + - arequipad didn't accept the -l option
  31562. + - qgen: possible weird crashes because second.c:find_required accessed
  31563. + value->tag even if vt_id
  31564. + - qgen: fixed wrong PC indication in one error message in _q_parse
  31565. + - make spotless didn't know about new $(*PGMS) targets
  31566. + - atmsigd: fixed memory leak when sending messages to the kernel
  31567. + - atmarpd: fixed memory leak when sending messages to the network
  31568. + - atmsigd: didn't send final as_close when kernel closed connection
  31569. + immediately after requesting it (as_connect)
  31570. + - several minor corrections
  31571. +
  31572. +New features
  31573. +------------
  31574. +
  31575. + - added make target "uninstall" to remove all files installed by
  31576. + make install
  31577. + - atmsigd has two new options: -D dump_dir to set the dump directory and
  31578. + -t trace_length to set the length of the trace buffer
  31579. + - wrote a few man pages: atmarp.8, atmarpd.8, atmsigd.8, atmsigd.conf.4
  31580. + - added automatic support for memory debugging if MPR is installed (and
  31581. + included a patch to make MPR 1.1 work with ELF). atmarpd and atmsigd
  31582. + currently use this feature.
  31583. +
  31584. +Other changes
  31585. +-------------
  31586. +
  31587. + - changed "class" to "traffic_class" everywhere
  31588. + - make install is now implemented in a more elegant way
  31589. + - q.dump is now much better at finding symbolic names for numbers
  31590. + - q.dump no longer prints zero-length fields
  31591. + - qgen no longer includes constructor "microcode" in dumper
  31592. + - atmarp now gives more informative error messages on ioctl failure
  31593. + - removed obsolete ioctls SIOCGIFATMADDR and SIOCSIFATMADDR
  31594. + - added hack to allow ilmid to be less hostile to locally configured addresses
  31595. + (by Gerald Hanusch; with slight modifications)
  31596. + - atmarpd now automatically sets ATF_PERM of PVC entries with NULL
  31597. + encapsulation
  31598. +
  31599. +
  31600. +Version 0.15 to 0.16 (29-AUG-1996)
  31601. +====================
  31602. +
  31603. +Bug fixes
  31604. +---------
  31605. +
  31606. + - fixed an "unterminated character constant" warning by CPP in qgen/uni3x
  31607. + - atm/sigd/q2931.c always tried to read the Cause IE of RELEASE COMPLETE
  31608. + messages even if it wasn't included
  31609. + - LANE: fixed buffer allocation and VCC timeouts (Marko Kiiskila)
  31610. + - LANE: when connecting directly to LES, name of the ELAN was not set
  31611. + properly (discoverd by Gerald Hanusch; fixed by Marko Kiiskila)
  31612. + - LANE, ATMARP, signaling: control sockets didn't account for messages sent
  31613. + back from demons (fixed by Marko Kiiskila)
  31614. + - permanent ATMARP entries for SVCs were ignored if no ATMARP server was
  31615. + configured (reported by Gerald Hanusch)
  31616. + - atmarp option "temp" mis-spelled as "term" (fixed by Gerald Hanusch)
  31617. + - forgot to undo experimental rcvbuf/sndbuf change to unsigned long
  31618. + - make modules didn't generate ATM modules
  31619. + - atmtcp_attach_hook wasn't defined when compiling ATMTCP as a module
  31620. + - ATM patch set dev->ip_atm to ether_arp in net/ppp.c and net/eql.c, so they
  31621. + failed to work as modules
  31622. +
  31623. +New features
  31624. +------------
  31625. +
  31626. + - added LANE servers (LECS, LES, and BUS) by Marko Kiiskila
  31627. + - Rules.make: new variable INSTROOT for easier cross-installation
  31628. + - atmsigd: added option -P to set the maximum PCR used on the signaling VC
  31629. + - atmarp: added option "pcr <value>" (proposed by Gerald Hanusch)
  31630. + - added the usual -l <logfile> option to arequipad
  31631. +
  31632. +Other changes
  31633. +-------------
  31634. +
  31635. + - upgrade to kernel version 2.0.14
  31636. + - SVCs can now be bound with any SEL value
  31637. + - messages of size > quota can be sent if the send buffer is empty
  31638. + - ilmid no longer empties the address list when refreshing the NSAP address
  31639. + (by Gerald Hanusch)
  31640. + - LANE client should now survive network reset (e.g. restart) gracefully
  31641. + (Marko Kiiskila)
  31642. + - LANE: major cleanup of zeppelin code (Marko Kiiskila)
  31643. + - improved loadable module support for eni and zatm (i.e. loading works now)
  31644. + - the message dumper can now be linked to programs that also use the
  31645. + compilation/parsing functions
  31646. +
  31647. +
  31648. +Version 0.14 to 0.15 (31-JUL-1996)
  31649. +====================
  31650. +
  31651. +Bug fixes
  31652. +---------
  31653. +
  31654. + - zatm: fixed traffic shaper settings for UBR (with a little help from Joern
  31655. + Wohlrab)
  31656. + - atmsigd compilation didn't use the same UNI version configuration as qgen
  31657. + - field "class" in struct atm_traform broke compilation of ATM applications
  31658. + written in C++, so it has been renamed to "traffic_class" (reported by
  31659. + Furquan Ansari)
  31660. + - AAL parameters IE wasn't included in CONNECT, which violated RFC1755
  31661. + (discovered by Robert Olsson)
  31662. + - zatm: removed broken sanity check for in-sequence skb delivery on RX
  31663. + - clip didn't have clip_open function, so SIOCSIFFLAGS on the interface failed
  31664. + with ENODEV
  31665. + - single-copy compiles again
  31666. + - zatm: driver doesn't pretend any longer to support single-copy (but
  31667. + single-copy will come back later)
  31668. + - QOS IE was sent with the wrong coding standard when using UNI 3.1 (with help
  31669. + from Fraz Ahmad)
  31670. + - zatm: forgot to remove some debugging code (around ZATM_TUNE)
  31671. + - qlib.c didn't zero the length array, leading to (rare) "not enough space"
  31672. + errors from QMSG (actually, the "break" mechanism seems to be flaky - will
  31673. + have to check)
  31674. + - fixed Arequipa race condition when the upper layer protocol and signaling
  31675. + decided to close the SVC at the same time
  31676. + - alloc_tx used to return NULL in out of memory conditions, thereby possibly
  31677. + hanging atm_sendmsg
  31678. +
  31679. +New features
  31680. +------------
  31681. +
  31682. + - ttcp_atm now also accepts names with -p
  31683. + - (finally !) added send/receive buffer limits and cleaned up the use of
  31684. + vcc->[rt]x_{inuse,quota}
  31685. + - added mkdiff script for automatic generation of diffs
  31686. + - Arequipa now works for PVCs too (but arequipad is now required for any
  31687. + use of Arequipa, not only for incoming connections)
  31688. +
  31689. +Other changes
  31690. +-------------
  31691. +
  31692. + - atm/atm-<version>.patch is now called atm/atm.patch (to make the diffs more
  31693. + useful)
  31694. + - the maximum SDU size is now checked in net/atm/common.c:adjust_tp
  31695. + - text2atm/atm2text now accepts/generates E.164 addresses with a leading +
  31696. + sign, as required by ANS (atm95-1532)
  31697. + - internal signaling protocol: added message as_error to un-overload as_close
  31698. + - internal signaling protocol: split as_establish into as_connect and
  31699. + as_accept
  31700. + - internal signaling prococol: as_close.reply no longer contains positive
  31701. + numbers
  31702. + - internal signaling prococol: as_bind now also carries the AAL type
  31703. + - atmsigd: now also checks the AAL type in as_bind messages
  31704. + - kernel signaling: a few minor changes
  31705. + - STANDARDS (i.e. UNI version) configuration option has been moved from
  31706. + atm/qgen/Makefile to atm/Rules.make
  31707. + - atmsigd's startup message now gives more useful indication of which UNI
  31708. + version(s) it supports
  31709. + - signaling no longer uses sa[sp]_[rt]xtp, so ...
  31710. + - sa[sp]_[rt]xtp is gone
  31711. + - removed atm/sigd/svc.c from the distribution. We now have many other tools
  31712. + for testing SVCs, so it's superfluous.
  31713. + - atmarpd: revalidation is now less frequent (use -DFREQUENT_REVAL for
  31714. + the faster timeout)
  31715. + - ioctl CLIP_PVC now returns the number of the new interface and clip prints
  31716. + its name to standard output (like atmarp -c)
  31717. + - clip now issues the CLIP_PVC ioctl after binding, which avoids wasting
  31718. + interface numbers on failed setup attempts
  31719. + - atmsigd -d now sets the debug level for qgen and SSCOP to DIAG_INFO, and
  31720. + doesn't set q_dump
  31721. + - zatm: added protection against I > M
  31722. + - atm_peek_aal5 now only aligns to page boundaries for pdu_size >= PAGE_SIZE
  31723. + - eni driver now spits out CRC error messages at most every other second
  31724. + - zatm driver now repeats RX error messages at most every other second
  31725. + - ttcp_atm now sleeps for a second after setting up an SVC, because the
  31726. + switch seems to lag behind (need to examine this further)
  31727. + - moved SAAL from sigd/ to saal/ (for sharing with UNI 4.0 signaling)
  31728. + - Arequipa sockets are now closed via arequipad instead of via atmsigd (new
  31729. + ioctls AREQUIPA_CTRL and AREQUIPA_CLS3RD)
  31730. + - various minor changes
  31731. +
  31732. +
  31733. +Version 0.13 to 0.14 (19-JUL-1996)
  31734. +====================
  31735. +
  31736. +Bug fixes
  31737. +---------
  31738. +
  31739. + - LANE: reaction to LE_ARP_RESPONSE's wasn't always correct
  31740. + - LANE: compiler warnings fixed
  31741. + - LANE: comparing ATM addresses in checking whether connection is formed was
  31742. + wrong
  31743. + - zntune didn't divide by 1024 when displaying the "k"
  31744. + - .depend wasn't deleted by make spotless
  31745. + - ATM_GETSTAT and ATM_GETSTATZ used wrong argument type for coding ioctl
  31746. + number. WARNING: programs using ATM_GETSTAT{,Z} need to be recompiled.
  31747. + - requests to set up SVCs with ATM_NONE in both directions are now caught by
  31748. + svc_connect (used to yield an invalid SETUP message)
  31749. + - signaling: fixed connection identifier setting when acting as network side
  31750. + (fix by Elwyn B Davies)
  31751. + - ATMARP server ARP entries were undeletable
  31752. + - atmarp showed wrong argument in error message when given an invalid ATM
  31753. + address
  31754. + - zatm: do_tx left interrupts turned off when returning with RING_BUSY
  31755. + - LANE ARP hash table handling bugs fixed
  31756. + - atmarp: act_create is now only sent on interface creation
  31757. + - atmarp: act_down is now only sent once per transition
  31758. + - demon control SVCs are no longer closed when atmsigd dies (new VCC flag
  31759. + ATM_VF_META)
  31760. + - netdevice notifier is now properly unregistered when atmarpd goes down
  31761. + (not doing so caused endless loop in kernel on atmarpd restart)
  31762. + - sigd_enq{_atomic} never calls schedule()
  31763. + - atmsigd no longer "forgets" to bring up ARP server SVC before sending an
  31764. + InARP
  31765. + - atmarpd no longer dies with "timer in state 3" when the ARP server becomes
  31766. + unreachable
  31767. + - atm/atmarp.c: clip_create() now refuses creation of already existing
  31768. + interface
  31769. + - Documentation/Configure.help gave an obsolete URL for CONFIG_AREQUIPA
  31770. + and doc/usage.tex also mentioned the old file name
  31771. + - Arequipa didn't work in the outbound direction for TCP, because
  31772. + net/ipv4/tcp.c was missing in the kernel patch
  31773. + - drivers/atm/eni.c:foo raced with initialization of eni_boards if the
  31774. + board lost the signal _immediately_ after being initialized
  31775. + - atmarpd: fixed a few uninitialized entry->timer pointers (discovered by
  31776. + Gerald Hanusch)
  31777. + - atmarpd: arps entry should no longer get stuck in as_resolv
  31778. +
  31779. +New features
  31780. +------------
  31781. +
  31782. + - compiles on SparcLinux too (but only atmtcp works)
  31783. +
  31784. +Other changes
  31785. +-------------
  31786. +
  31787. + - upgrade to kernel version 2.0.0
  31788. + - BHLI matching changed: SAPs without BHLI are now incompatible with calls
  31789. + that specify a BHLI
  31790. + - LANE: interface stays up when zeppelin dies -> possibility for
  31791. + wrapper script around zeppelin
  31792. + - LANE: LUNI interoperability test (ATM Forum/96-0805) is now followed
  31793. + in setting ELAN name in LE_CONFIG_RESPONSE and LE_JOIN_RESPONSE,
  31794. + there is also a delay of 1 second before sending LE_CONFIG_REQUEST and
  31795. + LE_JOIN_REQUEST. This allows 'slow' LE servers to catch up.
  31796. + - LANE: no longer uses sa[sp]_[rt]xtp
  31797. + - LANE: now adjusts better to ATM address changes
  31798. + - zeppelin: new option -m to select debugging output
  31799. + - updated aping, aread, awrite, br, bw, atmdump, ilmid, atmarp, clip, atmarpd,
  31800. + and zeppelin to use setsockopt SO_ATMQOS
  31801. + - added option -x for ilmid to disable variable bindings (caused
  31802. + interoperability problems with certain switches, e.g. the LS100)
  31803. + - changed SO_CIRANGE into a pair of ioctls
  31804. + - changed return value of fetch() (passed to atm_vcc->peek) from unsigned long
  31805. + to __u32
  31806. + - atmarp now accepts arpsrv option also for -d
  31807. + - zatm driver can now also read ESIs of rev. 10 boards (with help from Nikos
  31808. + Anerousis)
  31809. + - awrite: fixed txtp.max_sdu calculation in awrite (was using uninitialized
  31810. + variable "offset")
  31811. + - atmarpd: IP interface removal now has the desired effect (used to do
  31812. + nothing)
  31813. + - atmarpd: now reports and ignores unexpected interface transitions
  31814. + - added sigd_enq_atomic for atomic sigd_enq (so that non-Arequipa SVCs can
  31815. + still use the "safe" but non-atomic version)
  31816. + - made SIOCGIF* failures in atmarpd non-fatal (itf.c:itf_up was handling them
  31817. + anyway)
  31818. + - moved Arequipa-specific code from net/atm/clip.c to net/atm/arequipa.c, and
  31819. + put code common to CLIP, Arequipa, and - to a lesser extent - ATMARP into
  31820. + net/atm/ipcommon.[ch]
  31821. + - Arequipa can now be complied without CLIP
  31822. + - various minor documentation changes
  31823. + - moved ATM device initialization from net/atm/pvc.c to drivers/block/genhd.c,
  31824. + where most other devices are initialized too
  31825. + - preparation for new binary locations: tools build process now knows about
  31826. + four types of programs: for booting, for system use, for users, and for
  31827. + internal use during build
  31828. + - make install now hides the for loops
  31829. + - non-user binaries are now installed in /usr/local/sbin
  31830. + - struct atm_iobuf.buffer is now of type void * (was int*). Also,
  31831. + ATM_GETNAMES now returns the length in bytes in that field.
  31832. +
  31833. +
  31834. +Version 0.12 to 0.13 (7-JUN-1996)
  31835. +====================
  31836. +
  31837. +Bug fixes
  31838. +---------
  31839. +
  31840. + - BHLI type used the ATM_HL_* values (which are off by one) in qgen/uni3x
  31841. + - atmarpd ended up in a tight select-accept loop if atmsigd went away
  31842. + - removed sleep in ZATM's do_tx (so it works with IP over ATM again)
  31843. +
  31844. +New features
  31845. +------------
  31846. +
  31847. + - added experimental support for Application requested IP over ATM (Arequipa),
  31848. + prototyped by Jean-Michel Pittet
  31849. + - new traffic class ATM_ANYCLASS to accept incoming SVCs without looking at
  31850. + the traffic parameters
  31851. + - added (untested) support for SO_BCTXOPT/SO_BCRXOPT
  31852. +
  31853. +Other changes
  31854. +-------------
  31855. +
  31856. + - SVCs used to listen are now marked as "LISTEN" in /proc/atm/svc
  31857. + - added option -Q <atm_addr> to ttcp_atm to support AREQUIPA
  31858. + - cleaned up the FILE macro and removed atm_dir in net/atm/proc.c
  31859. +
  31860. +
  31861. +Version 0.11 to 0.12 (3-JUN-1996)
  31862. +====================
  31863. +
  31864. +Bug fixes
  31865. +---------
  31866. +
  31867. + - atm/lib/Makefile: had to comment out PGMS=test
  31868. + - distribution didn't include atm/doc/usage.txt
  31869. + - patch didn't include arch/i386/config.in
  31870. + - return 0; was missing at the end of net/atm/mmuio.c:mmu_step
  31871. + - atm/ilmid didn't install into INSTBIN; also made some other Makefile
  31872. + changes
  31873. + - read() returned garbage instead of error when network drops connections
  31874. + - POLL_AFTER_RETRANSMISSION in SSCOP didn't even compile
  31875. + - SVCs: bind to wildcard addresses should now work even if no local address
  31876. + is known yet
  31877. + - make clean in atm/qgen left some dirt
  31878. + - ATM drivers didn't free skbs when detecting an error in TX direction
  31879. + - SIOCMKCLIP was in the wrong #ifdef, so CLIP had to be enabled to make
  31880. + ATMARP usable
  31881. + - signaling didn't respond properly to messages with non-existent call
  31882. + reference
  31883. +
  31884. +New features
  31885. +------------
  31886. +
  31887. + - merged in LAN Emulation client support written by Marko Kiiskila
  31888. + - new socket option SO_ATMQOS at SOL_ATM to set/get QOS parameters
  31889. +
  31890. +Other changes
  31891. +-------------
  31892. +
  31893. + - t2a.pl now also works with Perl 5.001
  31894. + - changed the TX side of the ZATM driver to use a ring instead of a list in
  31895. + order to improve stability and throughput (needs some more testing)
  31896. +
  31897. +
  31898. +Version 0.10 to 0.11 (21-MAY-1996)
  31899. +====================
  31900. +
  31901. +Bug fixes
  31902. +---------
  31903. +
  31904. + - README.DRIVERS still referenced INSTALL (it's now in USAGE)
  31905. + - sap_decode didn't clear BLLI part of address structure
  31906. + - trying to connect to NULL address fails locally instead of yielding an
  31907. + invalid SETUP message
  31908. + - bind now properly sets the local address
  31909. + - SVC getname now returns the traffic parameters
  31910. + - oops, zatm open_tx didn't return PCR
  31911. + - awrite printed errors for connect() as "bind: ..."
  31912. + - atmsigd no longer generates dummy call references (0x7fffff)
  31913. + - atmtcp: changed a few kfree_skb to dev_kfree_skb, which should make it
  31914. + work better (does anybody care to try ?)
  31915. + - some more dev_kfree_skb fixed for control messages from or to demons (led
  31916. + to some minor memory leaks)
  31917. + - various major fixes for CBR SVCs
  31918. + - RELEASE was signaled for SVCs before all data was sent
  31919. + - single copy tried to access mem_map with user space addresses, leading to
  31920. + crashes or worse
  31921. + - zatm: sleep_on was racing with TX completion in close_tx, leading to hangs
  31922. + - zatm: now fails attempts to open AAL0 VCs (used to accept them and to
  31923. + crash later)
  31924. + - BHLI encoding/decoding was broken in several ways
  31925. +
  31926. +New features
  31927. +------------
  31928. +
  31929. + - hacked in primitive leaf-only p2m support (based on an idea by Marko
  31930. + Kiiskil{)
  31931. + - the socket layer, and the zatm, eni, and atmtcp drivers now support
  31932. + two-phase connect
  31933. + - PVCs now respect max_pcr (SVCs can't for now)
  31934. + - lib/diag.c can now also log to a file or to syslog, and atmarpd, atmsigd,
  31935. + and ilmid now have a -l option to use that
  31936. + - new option -c config_file for atmsigd
  31937. + - zatm and atmtcp now also support timestamps (but zatm timestamps can be
  31938. + improved a lot by using the timestamps the uPD98401 generates)
  31939. + - Classical IP over ATM support is now configurable
  31940. + - added on-line help texts for configuration
  31941. + - added atm/test/aping, a round-trip tester for PVCs
  31942. + - added "flags" field to struct atm_dev and to atm_dev_register, on request
  31943. + by Bureau 13
  31944. +
  31945. +Other changes
  31946. +-------------
  31947. +
  31948. + - past versions of the BUGS list aren't included in the distribution anymore
  31949. + because I didn't update them anyway
  31950. + - invalid connect() calls now return an error instead of panicing atmsigd
  31951. + - text2atm no longer clobbers sas_addr.{blli,bhli}
  31952. + - greatly simplified zatm traffic shaper settings calculation (and it's
  31953. + better than before too)
  31954. + - atmsigd: diagnostics class "sig" (in atmsigd.conf) now also includes "SAP"
  31955. + - DPRINTK now uses GNU-specific #define foo(bar...)
  31956. + - signaling: PCR is now also indicated (0) for directions in which ATM_NONE
  31957. + is requested, which is probably "cleaner" (for CBR)
  31958. + - added logging priorities to most printks
  31959. + - the default location for atmsigd.conf changed from . to /etc
  31960. + - ipv4/af_inet.c: atmtcp_attach_hook is now only included when using ATM over
  31961. + TCP
  31962. + - configuration options for extended driver debugging, (old) CLIP, and
  31963. + ATM over TCP are turned off by default
  31964. +
  31965. +
  31966. +Version 0.9 to 0.10 (21-MAR-1996)
  31967. +===================
  31968. +
  31969. +Bug fixes
  31970. +---------
  31971. +
  31972. + - zatm: deallocated UBR shaper when closing UBR VC, which the other UBR VCs
  31973. + didn't really appreciate
  31974. + - fixed nasty memory leak for native ATM (spotted by Rolf Fiedler)
  31975. +
  31976. +New features
  31977. +------------
  31978. +
  31979. + - added Rolf Fiedler's driver for his adapter based on the TI TNETA1570
  31980. + - single-copy is back again !
  31981. +
  31982. +Other changes
  31983. +-------------
  31984. +
  31985. + - eni buffers are now slightly (50%) bigger, allowing for more effective
  31986. + overlapped operations
  31987. + - documented zntune
  31988. +
  31989. +
  31990. +Version 0.8 to 0.9 (14-MAR-1996)
  31991. +==================
  31992. +
  31993. +Bug fixes
  31994. +---------
  31995. +
  31996. + - oops, accidently removed ZN1221 from drivers/pci/pci.c (so /proc/pci
  31997. + reported it as "unknown")
  31998. + - sigd didn't poll for the default interface on startup
  31999. + - atmarpd didn't initialize timer field in newly allocated table entries,
  32000. + which led to crashes
  32001. + - removed a few stray debugging printks in net/atm/svc.c:svc_bind
  32002. + - ATMARP tried to send queued packet before adding new table entry, so the
  32003. + packet was always discarded
  32004. + - sigd/sap.c: didn't allow to use different traffic classes for fwd and bwd
  32005. + direction
  32006. + - atm2text accepted SVC addresses of all zeroes
  32007. + - atmsigd didn't refresh its local address list properly after ilmid restart
  32008. + - net/atm/common.c: returned positive error codes (-vcc->reply) instead of
  32009. + negative ones
  32010. + - forgot to include maint/zntune.c in the distribution
  32011. +
  32012. +New features
  32013. +------------
  32014. +
  32015. + - sigd/svc now accepts ATM addresses in all formats supported by text2atm
  32016. +
  32017. +Other changes
  32018. +-------------
  32019. +
  32020. + - upgraded to kernel version 1.3.73
  32021. + - the called party number must now match the local address (if bound)
  32022. + - renamed ttcp.atm to ttcp_atm
  32023. + - all executables are now explicitly linked (so make works even without
  32024. + dependencies)
  32025. +
  32026. +
  32027. +Version 0.7 to 0.8 (12-MAR-1996)
  32028. +==================
  32029. +
  32030. +Bug fixes
  32031. +---------
  32032. +
  32033. + - fixed stray segmentation violation in arpd/arp.c:learn
  32034. + - fixed coding standard of the QoS IE if using UNI 3.0 (and made coding
  32035. + standard variable)
  32036. + - made coding standard variable for Cause IE
  32037. + - SSCOP didn't properly set N(MR)
  32038. + - list elements in STAT PDUs had host byte order
  32039. + - SSCF didn't call sscop_estab_resp on restart (AA-EST.ind in 1/1)
  32040. + - signaling didn't handle SAPs with >= 2 BLLI IEs properly
  32041. + - uni3x: iso_hli and user_hli were confined to 7 bytes, but UNI allows up to 8
  32042. + - q_read choked on non-variable-length fields
  32043. + - qgen sometimes didn't read all IEs of a signaling message
  32044. + - fixed usage line of test/bw
  32045. + - qgen no longer complains about missing required fields after a break
  32046. + - fixed compiler warning in zntune.c
  32047. + - fixed ATMARP table additions (caused GPF when flushing ATMARP entry at
  32048. + the end of the table and possibly other problems)
  32049. + - qgen: q_put or'ed data instead of overwriting it, which caused problems
  32050. + only on surprisingly few occasions
  32051. +
  32052. +New features
  32053. +------------
  32054. +
  32055. + - atm2text and text2atm now also do name lookups via a /etc/hosts.atm file
  32056. + - atmaddr, atmarpd, and atmsigd now pretty-print addresses using name
  32057. + translation (unless invoked with -n)
  32058. + - atmarpd now dumps its table into /var/run/atmarpd.table and atmarp -a
  32059. + reads it from there
  32060. + - started modularizing the ENI and ZATM drivers
  32061. + - ilmid and atmsigd now support multiple interfaces (untested)
  32062. +
  32063. +Other changes
  32064. +-------------
  32065. +
  32066. + - the documentation is now available in LaTeX and in ASCII
  32067. + - rewrote most of the SAP handling code (now everything is in sigd/sap.c)
  32068. + - proto.c:lookup_sap now picks wildcard SAP last
  32069. + - signaling always includes SSCS type = 0 in SETUP messages (for LANE)
  32070. + - changed the message format for the the kernel-demon signaling protocol
  32071. + - qgen is now a bit more tolerant when being fed with bad data
  32072. + - qgen now assumes that q_report(Q_FATAL,...) doesn't return
  32073. + - marked sigd/test.c as obsolete
  32074. + - svc_accept failing in atm_connect no longer returns success
  32075. + - atmsigd -n is now atmsigd -N
  32076. + - qgen now puts the PC in q.out.c and qd.out.c at the beginning of the code
  32077. + line and not on a line by itself
  32078. +
  32079. +
  32080. +Version 0.6 to 0.7 (2-FEB-1996)
  32081. +==================
  32082. +
  32083. +Bug fixes
  32084. +---------
  32085. +
  32086. + - removed TTL setting ioctl (1234) used for something entirely unrelated to
  32087. + ATM, oops
  32088. + - changed kfree_skb in atm_pop_raw to dev_kfree_skb (this fixes the socket
  32089. + "leak")
  32090. + - more unusual configurations (no PCI, no IP, no /proc) should compile now
  32091. + - atm_equal didn't recognize wildcards in embedded E.164 addresses
  32092. + - fixed net/atm/proc.c:svc_addr (too many bugs to mention)
  32093. + - atmarpd didn't check for ARP traffic on inbound connections
  32094. + - atmarpd didn't properly merge incoming connections with existing entries
  32095. + - various other ATMARP fixes
  32096. + - free list was too short in ENI driver for worst case fragmentation on
  32097. + 2 MB boards
  32098. + - signaling didn't set ISO/IEC TR9577 IPI and NLPID correctly in active open
  32099. + - getname looked at *sockaddr_len, which is uninitialized (need to fix this
  32100. + later in the common socket code)
  32101. + - SSCOP generated incorrect error code ("1" instead of "B") for BGN PDU
  32102. + problems
  32103. +
  32104. +New features
  32105. +------------
  32106. +
  32107. + - new ioctls ATM_GETADDR, ATM_RSTADDR, ATM_ADDADDR, and ATM_DELADDR to
  32108. + manage local ATM addresses
  32109. + - signaling now handles incoming RESTART, SAAL failure, and SAAL
  32110. + re-establishment
  32111. + - ATMARP now times out idle connection; ATMARP_MKIP ioctl takes a timeout
  32112. + argument
  32113. + - ATMARP (kernel) now queues one skb per pending ARP request and limits the
  32114. + rate of requests for the same address (default 2 req/min)
  32115. + - atmsigd now prints cause values when receiving a RELEASE or a RELEASE
  32116. + COMPLETE and returns more informative error codes
  32117. + - atmarpd falls back to PVC-only operation if signaling is unavailable at
  32118. + startup
  32119. + - kernel can now assign next free number on IP interface creation (atmarp
  32120. + prints the interface name)
  32121. + - qgen -D generates a Q.2931 message dumper (see USAGE for details)
  32122. + - qgen now checks for proper use of repetition indicator (but doesn't
  32123. + support repeated IEs yet)
  32124. + - protocols and device drivers can now use their own memory allocator in the
  32125. + TX direction by changing vcc->alloc_tx
  32126. +
  32127. +Other changes
  32128. +-------------
  32129. +
  32130. + - upgraded to kernel version 1.3.53
  32131. + - build process now uses Perl
  32132. + - ATM ioctls writing back data now always return the size of the data
  32133. + structure written
  32134. + - struct atmif_sioc now has a length field (recompile all atmarpd, ilmid,
  32135. + debug/ed, and everything in maint)
  32136. + - PHY driver no longer has to check validity (permissions and access) for
  32137. + "standard" ioctls
  32138. + - signaling should now also work on an interface > 0 (but there's still only
  32139. + one interface using signaling per host)
  32140. + - make install now adds /usr/include/atm.h and /usr/include/atmd.h
  32141. + - atmarpd now also displays if SVC has been opened actively or passively
  32142. + - atmaddr(8) now uses new ioctls and has different command-line syntax
  32143. + and even has a man page
  32144. + - example IP addresses in USAGE now conform to RFC1597
  32145. + - diagnostics now also include the application name (optional)
  32146. +
  32147. +
  32148. +Version 0.5 to 0.6 (21-DEC-1995)
  32149. +==================
  32150. +
  32151. +Bug fixes
  32152. +---------
  32153. +
  32154. + - ARP ioctls stopped working for most non-ATM devices, oops
  32155. + - ATMTCP driver counted lack of memory as rx_err instead of rx_drop
  32156. + - select on driver using polling may have hung
  32157. + - atmarp man page and usage didn't indicate that the interface number is
  32158. + optional
  32159. + - restricted atmarpd and signaling control, and SIOCSIFATMADDR to the super
  32160. + user
  32161. + - atmtcp: fixed handling of VPI/VCI <= 0 for setsockopt(SO_CIRANGE)
  32162. + - eni and zn driver had static UBR shaper pointer, making it difficult to have
  32163. + more than one such device per system
  32164. + - eni driver initialization didn't work properly in systems with ASIC Tonga
  32165. + - suni.[ch]: confused MC (Master Config) and MCT (Master ConTrol) registers
  32166. + - (SVC) accept now returns PVC -EAGAIN as -EBUSY because the operation cannot
  32167. + be retried
  32168. + - qgen: fixed several bugs in case handling (and made defaults work for
  32169. + parsing)
  32170. + - svc_dup passed PF_ATMSVC instead of AAL to svc_create
  32171. + - plugged a few skb leaks in svc_accept
  32172. + - text2atm didn't properly NUL-terminate E.164 addresses
  32173. +
  32174. +New features
  32175. +------------
  32176. +
  32177. + - ZN1221 driver works partially for AAL5 (still hangs after a few dozen MB)
  32178. + (also wrote maint/zntune to monitor/adjust free buffer pools)
  32179. + - ENI driver now supports new Tonga ASIC boards
  32180. + - added Scott Shumate's ILMI demon (for automatic address registration)
  32181. + - text2atm: added wildcard support for SVCs (syntax: addr/bits)
  32182. + - new library function atm_equal to compare SVC addresses
  32183. + - new ioctl ATM_GETTYPE to obtain interface type name
  32184. + - new ioctl ATM_GETESI to obtain ESI (parallels /proc/atm/devices)
  32185. + - new ioctls SONET_SETFRAMING, SONET_GETFRAMING, and SONET_GETFRSENSE to
  32186. + handle SONET vs. SDH framing
  32187. + - added socket option SO_AALTYPE (SOL_AAL) to query AAL type (getsockopt
  32188. + only)
  32189. + - signaling demon is now notified on address changes (new message
  32190. + as_itf_notify)
  32191. +
  32192. +Other changes
  32193. +-------------
  32194. +
  32195. + - known bugs are now listed in a file called BUGS
  32196. + - all utility programs (aread, awrite, atmdump, br, bw, clip, ttcp) now use
  32197. + the notation [itf.]vpi.vci for PVCs (was itf vpi vci , except for ttcp,
  32198. + where it was only vpi vci (no itf))
  32199. + - all ioctl values have changed
  32200. + Note: most programs have to be recompiled because of this
  32201. + - sigd and arpd now register their control sockets via ioctls
  32202. + - (old) clip now creates interfaces with an ioctl
  32203. + - text2atm now returns the wildcard length, i.e. a non-zero return value
  32204. + no longer implies failure
  32205. + - push_oam now returns an int (was void)
  32206. + - push_oam now has several flags (in a bit set) instead of the immed
  32207. + argument
  32208. + - the peek function must now update the statistics if it rejects a packet
  32209. + - (ATM device) close is now only invoked after a successful open
  32210. + - the SUNI_GETLOOP ioctl now has an int * argument (was unsigned long *)
  32211. + - uPD98402 driver no longer tries to detect return of the signal (didn't
  32212. + work anyway - would have to sample section errors)
  32213. + - ATMARP no longer supports mixed PVC/SVC entries (I'm sure this will be
  32214. + missed a lot :-)
  32215. + - ATMARP no longer supports "IP address discovery" via InARP for PVCs
  32216. + (maybe later)
  32217. + - specifying an invalid AAL now yields EPROTOTYPE
  32218. + - specifying an invalid address family (connect, bind) now yields EAFNOSUPPORT
  32219. + - make install now also installs libraries (in /usr/lib)
  32220. + - improved many header file comments
  32221. + - re-arranged some comments to simplify automated document generation
  32222. + - added copyright statement
  32223. + - UNI 3.0 IE fields are now always recognized (but we shouldn't generate them)
  32224. + - UNI 3.0 wants octet 5a when using BCOB-X, so we'll set it to twice "No
  32225. + indication"
  32226. + - aread, awrite, br, bw, ttcp, atmsigd, and atmdump now set max_sdu
  32227. + - aread and awrite no longer print strerror(errno) on success
  32228. +
  32229. +
  32230. +Version 0.4 to 0.5 (26-OCT-1995)
  32231. +==================
  32232. +
  32233. +Bug fixes
  32234. +---------
  32235. +
  32236. + - now only root can open a CLIP socket (thereby creating an IP interface)
  32237. + - now only root can issue CLIP_NULENCAP and CLIP_LLCENCAP ioctls
  32238. + - atmdump: forgot default in getopt switch
  32239. + - eni driver: called misc_int on every interrupt
  32240. + - Q.2931 message description: various fixes and improvements
  32241. + - linux/atm.h: ATM_*_UNSPEC used the same value as ATM_*_ANY, oops !
  32242. + - SSCOP is now more careful about not accessing the descriptor if it might
  32243. + possibly have been deleted
  32244. + - typo in SSCF leading to wrong response to AA-RECOVER.indication
  32245. + - SSCOP now correctly copies N(PS) from POLL to STAT PDUs
  32246. + - SSCF now discards data when not ready instead of issuing a fatal error
  32247. + - AAL initialization failure no longer leaks memory
  32248. + - closing an SVC without VCC no longer yields a GPF
  32249. +
  32250. +New features
  32251. +------------
  32252. +
  32253. + - ZN1221 driver is starting to work
  32254. + - new, ARP-based mechanism for IP over ATM (with atmarpd, atmarp, etc.)
  32255. + - /proc/atm/pvc now displays more information for CLIP PVCs (after a patch
  32256. + by Raghavan Menon)
  32257. + - added max_pcr to struct atm_trafprm (also fixed a few comments in atm.h)
  32258. + Note: all programs using sockaddr_atm* will have to be recompiled.
  32259. + - qgen now handles value lists in named selections
  32260. + - signaling now supports bhli/blli, plus various other minor extensions
  32261. + - new ioctls to set/get local ATM address
  32262. + - added library with address to/from text conversion functions
  32263. + - finally implemented getname()
  32264. +
  32265. +Other changes
  32266. +-------------
  32267. +
  32268. + - eni driver: avoided potential generation of superfluous code if extended
  32269. + debugging is disabled
  32270. + - eni driver: detects new boards using ASIC PCI chip (doesn't support them
  32271. + yet, though)
  32272. + - qgen: semicolon is now comment character and no longer used to terminate
  32273. + clauses
  32274. + - qgen: replaced term "item" with "field"
  32275. + - linux/include/atmsap.h: removed obsolete comment "protocol cannot be fully
  32276. + encoded in current structure". Also re-arranged some comments to simplify
  32277. + automated document generation.
  32278. + - saal,sscf,sscop: callbacks don't pass the pointer to the descriptor of the
  32279. + calling protocol anymore
  32280. + - SSCOP no longer prints a number for non-'V' errors
  32281. + - improved handling of STATUS messages
  32282. + - select now indicates ready for writing if max_sdu packet can be enqueued
  32283. + without blocking
  32284. + - select can now also be used to check status of non-blocking connect
  32285. + - moved some common demon functions from sigd into a common demon library
  32286. +
  32287. +
  32288. +Version 0.3 to 0.4 (27-SEP-1995)
  32289. +==================
  32290. +
  32291. +Bug fixes
  32292. +---------
  32293. +
  32294. + - various minor documentation fixes
  32295. + - clip.c:atm_push_clip now updates statistics before forwarding the skb to
  32296. + the upper layer (which may free and overwrite the skb)
  32297. +
  32298. +New features
  32299. +------------
  32300. +
  32301. + - added partial UNI 3.x signaling
  32302. + - added various adapter debugging programs to the distribution
  32303. + - new config option CONFIG_ATM_ENI_DEBUG to enable extended debugging
  32304. + in eni driver
  32305. +
  32306. +Other changes
  32307. +-------------
  32308. +
  32309. + - upgraded to kernel version 1.3.24
  32310. + - changed the distribution directory structure (programs are now in maint/,
  32311. + test/, ip/, debug/, and sigd/, see INSTALL)
  32312. + - ATM interfaces are no longer named, only numbered. This affects the
  32313. + ATM_GETNAMES ioctl, all ioctls using struct atmif_sioc, the usage of atmdiag
  32314. + and sonetdiag, and various diagnostic kernel messages.
  32315. + - ATM socket state is now recorded in field "flags" (this also replaces the
  32316. + SVC fields "released", "registered", and "state")
  32317. + - added #ifdef __KERNEL__ to some header files
  32318. + - added "int immed" argument to send_oam
  32319. + - some minor modifications to the distribution process (mkdist)
  32320. + - removed devmap.c
  32321. + - SVC sockets no longer hang if the signaling demon dies
  32322. +
  32323. +
  32324. +Version 0.2 to 0.3 (8-SEP-1995)
  32325. +==================
  32326. +
  32327. +Bug fixes
  32328. +---------
  32329. +
  32330. + - select(2) didn't work (was sleeping on sock->wait instead of
  32331. + &ATM_SD(sock)->sleep)
  32332. + - ENI driver did allow binding to VPI/VCI already in use
  32333. + - ENI driver now properly handles PDUs with CRC errors
  32334. + - ENI driver had race condition when discarding PDUs causing new PDUs to be
  32335. + shifted in adapter memory by one word (which confused the driver quite a
  32336. + bit)
  32337. + - ENI driver now enables VC _after_ setting all pointers (caused crashes if
  32338. + data was already coming in while opening VC)
  32339. + - various bugs fixes related to SVC sockets
  32340. + - fixed GPF (in kernel) when running atmdiag without arguments
  32341. + - atmdiag now left-adjusts interface names
  32342. + - fixed ttcp.atm crash when not specifying vpi.vci
  32343. + - clip_xmit now checks for NULL vcc (e.g. after failure to connect)
  32344. +
  32345. +New features
  32346. +------------
  32347. +
  32348. + - zatm driver now reads ESI correctly
  32349. + - blocking svc_connect is now interruptible
  32350. + - atmdump now also displays the numeric PTI value of incoming cells
  32351. + - added RX/TX buffer quotas (default is 64 kB)
  32352. + - added OAM hooks to device driver interface (but there's no OAM support yet)
  32353. +
  32354. +Other changes
  32355. +-------------
  32356. +
  32357. + - ENI driver now checks ID field of reassembly buffer descriptors
  32358. + - ENI driver now uses vremap
  32359. + - ENI driver now prints more useful physical layer type information (e.g.
  32360. + "MMF" and "UTP" instead of "UTOPIA")
  32361. + - some redesign of the protocol used for signaling between kernel and demon
  32362. + - disabled "Grr, servicing VCC twice" message in ENI driver
  32363. + - device drivers now have to adapt AAL0 cell header byte order
  32364. + - some cleanup in common.c:atm_getsockopt
  32365. + - device drivers are now required to use the peek function; protocols now
  32366. + must provide it
  32367. +
  32368. +
  32369. +Version 0.1 to 0.2 (15-AUG-1995)
  32370. +==================
  32371. +
  32372. +Bug fixes
  32373. +---------
  32374. +
  32375. + - VCC family field is now correctly set to protocol family in
  32376. + common.c:atm_create (was pvc.c:pvc_create). With protocol set to zero,
  32377. + this created all types of strange problems, because the family field
  32378. + is used to indicate whether an VCC slot is busy/free.
  32379. + - fixed race condition in common.c:atm_read (reader might have blocked
  32380. + even if data is ready)
  32381. + - fixed dereferencing of uninitialized skb->dev pointer in
  32382. + clip.c:atm_push_clip
  32383. + - SIOCSIFATMTCP now refuses to attach the same socket twice
  32384. + - zatm.c: fixed setting of the VPI/VCI mask
  32385. + - USAGE said ttcp uses -B for the bandwidth, but it's -P
  32386. + - mkdist didn't include man pages
  32387. +
  32388. +New features
  32389. +------------
  32390. +
  32391. + - added some /proc/atm functionality
  32392. + - added support for ATM_{VPI,VCI}_ANY
  32393. + - SIOCSIFATMTCP now returns the interface number and atmtcp(8) prints it
  32394. + - wrote atmtcp man page
  32395. + - added kernel part of SVC support
  32396. +
  32397. +Other changes
  32398. +-------------
  32399. +
  32400. + - common.c: only root is now allowed to bind to reserved VCIs
  32401. + - Classical IP interfaces are now removed by downing by ifconfig; clip(8)
  32402. + returns immediately
  32403. + - PVC-connect for non-existing device now returns ENODEV instead of EINVAL
  32404. + - new field (type) in struct atm_dev to indicate device type
  32405. + - moved getsockopt(SO_CIRANGE) to common.c (removed atmtcp's own version)
  32406. + - added ci_range to struct atm_dev (and removed it from atmtcp's private
  32407. + structure)
  32408. + - added code to read the ESI to zatm.c (but that code doesn't seem to work
  32409. + yet)
  32410. Index: linux-atm-2.4.1/debian/atm-tools-br2684.manpages
  32411. ===================================================================
  32412. --- /dev/null 1970-01-01 00:00:00.000000000 +0000
  32413. +++ linux-atm-2.4.1/debian/atm-tools-br2684.manpages 2007-10-20 19:19:12.574345050 +0200
  32414. @@ -0,0 +1 @@
  32415. +debian/tmp/usr/share/man/man8/br2684ctl.8
  32416. Index: linux-atm-2.4.1/debian/atm-tools.atm
  32417. ===================================================================
  32418. --- /dev/null 1970-01-01 00:00:00.000000000 +0000
  32419. +++ linux-atm-2.4.1/debian/atm-tools.atm 2007-10-20 19:19:12.582345504 +0200
  32420. @@ -0,0 +1,27 @@
  32421. +#!/bin/sh
  32422. +# Start/stop the atm daemon(s).
  32423. +
  32424. +DAEMON="/sbin/atmarpd"
  32425. +
  32426. +test -f $DAEMON || exit 0
  32427. +
  32428. +case "$1" in
  32429. +start) echo -n "Starting ATM ARP Daemon: "
  32430. + start-stop-daemon --start --quiet --exec $DAEMON -b
  32431. + /bin/sleep 2
  32432. + echo "atmarpd."
  32433. + ;;
  32434. +stop) echo -n "Stopping ATM ARP Daemon: "
  32435. + start-stop-daemon --stop --quiet --exec $DAEMON
  32436. + echo "atmarpd."
  32437. + ;;
  32438. +restart|force-reload) echo -n "Re-starting ATM ARP Daemon: "
  32439. + start-stop-daemon --stop --quiet --exec $DAEMON
  32440. + start-stop-daemon --start --quiet --exec $DAEMON -b
  32441. + /bin/sleep 2
  32442. + echo "atmarpd."
  32443. + ;;
  32444. +*) echo "Usage: /etc/init.d/atm start|stop|restart|force-reload"; exit 1
  32445. + ;;
  32446. +esac
  32447. +exit 0
  32448. Index: linux-atm-2.4.1/debian/atm-tools.docs
  32449. ===================================================================
  32450. --- /dev/null 1970-01-01 00:00:00.000000000 +0000
  32451. +++ linux-atm-2.4.1/debian/atm-tools.docs 2007-10-20 19:19:12.582345504 +0200
  32452. @@ -0,0 +1,4 @@
  32453. +BUGS
  32454. +README
  32455. +doc/README.tc
  32456. +debian/README.br2684
  32457. Index: linux-atm-2.4.1/debian/control.old
  32458. ===================================================================
  32459. --- /dev/null 1970-01-01 00:00:00.000000000 +0000
  32460. +++ linux-atm-2.4.1/debian/control.old 2007-10-20 19:19:12.598346415 +0200
  32461. @@ -0,0 +1,72 @@
  32462. +Source: linux-atm
  32463. +Section: net
  32464. +Priority: optional
  32465. +Maintainer: Peter De Schrijver (p2) <[email protected]>
  32466. +Build-Depends: debhelper (>> 4.0.0), bison, flex, perl, dpatch, automake1.4
  32467. +Standards-Version: 3.6.1
  32468. +
  32469. +Package: atm-tools
  32470. +Architecture: any
  32471. +Depends: ${shlibs:Depends}
  32472. +Description: Base programs for ATM in Linux, the net-tools for ATM
  32473. + This package provides all the basic programs needed for setting up,
  32474. + monitoring and tuning ATM networks. Such as:
  32475. + * atmsigd, an ATM signal daemon that implements the ATM UNI protocol.
  32476. + * atmtcp, a tool to setup ATM over TCP connections.
  32477. + * atmarpd, an implementation of the ATMARP protocol (RFC1577, RFC1755)
  32478. + * zeppelin, an ATM LAN Emulation client daemon
  32479. + * les and bus, ATM LAN Emulation service daemons
  32480. + .
  32481. + Notice that upstream still flags these tools as experimental software and
  32482. + says that there is still a number of known bugs and issues. The
  32483. + software is, however, in productive use at a number of sites and is
  32484. + working reliably.
  32485. + .
  32486. + Homepage: http://linux-atm.sourceforge.net/
  32487. +
  32488. +Package: atm-tools-br2684
  32489. +Architecture: any
  32490. +Depends: ${shlibs:Depends}
  32491. +Description: br2864ctl - RFC1483/2864 Bridge Daemon for ATM Networks
  32492. + br2684ctl handles RFC1483/2684 bridged PDUs. This is most often
  32493. + used in ADSL scenarios where usually the subscribers' ethernet
  32494. + traffic is encapsulated in ATM AAL5 (by bridging ADSL modems)
  32495. + according to RFC2684
  32496. + .
  32497. + The sources for br2684ctl has been pulled from linux-atm's CVS
  32498. + repository. Warning: This is unreleased software that can break any
  32499. + time, any place. If it does, you get to keep the pieces. linux-atm's
  32500. + upstream flags even the released software as experimental software.
  32501. + There is still a number of known bugs and issues.
  32502. +
  32503. +Package: atm-dev
  32504. +Depends: libatm1-dev
  32505. +Architecture: all
  32506. +Section: oldlibs
  32507. +Description: Development files for compiling ATM programs (dummy package)
  32508. + This dummy package provides a transition from the previous atm packages.
  32509. + It is provided for backwards compatibility only and may be removedafter
  32510. + the upgrade has completed or when when no other package depend on it.
  32511. +
  32512. +Package: libatm1
  32513. +Section: libs
  32514. +Architecture: any
  32515. +Depends: ${shlibs:Depends}
  32516. +Conflicts: atm-tools (<< 2.4.1-6)
  32517. +Description: shared library for ATM (Asynchronous Transfer Mode)
  32518. + Shared libraries needed by ATM (Asynchronous Transfer Mode) related programs
  32519. + .
  32520. + Homepage: http://linux-atm.sourceforge.net/
  32521. +
  32522. +Package: libatm1-dev
  32523. +Section: libdevel
  32524. +Architecture: any
  32525. +Depends: libc6-dev, libatm1
  32526. +Replaces: atm-dev (<< 2.4.1-7)
  32527. +Conflicts: atm-dev (<< 2.4.1-7)
  32528. +Provides: libatm-dev
  32529. +Description: Development files for compiling ATM programs
  32530. + Header files and development libraries for compiling ATM (Asynchronous
  32531. + Transfer Mode) related programs.
  32532. + .
  32533. + Homepage: http://linux-atm.sourceforge.net/
  32534. Index: linux-atm-2.4.1/debian/atm-tools.install
  32535. ===================================================================
  32536. --- /dev/null 1970-01-01 00:00:00.000000000 +0000
  32537. +++ linux-atm-2.4.1/debian/atm-tools.install 2007-10-20 19:19:12.618347555 +0200
  32538. @@ -0,0 +1,18 @@
  32539. +debian/tmp/usr/share/man/*
  32540. +debian/tmp/usr/bin/*
  32541. +debian/tmp/usr/sbin/atmsigd
  32542. +debian/tmp/usr/sbin/atmaddr
  32543. +debian/tmp/usr/sbin/esi
  32544. +debian/tmp/usr/sbin/atmloop
  32545. +debian/tmp/usr/sbin/atmtcp
  32546. +debian/tmp/usr/sbin/enitune
  32547. +debian/tmp/usr/sbin/zntune
  32548. +debian/tmp/usr/sbin/atmarp sbin
  32549. +debian/tmp/usr/sbin/atmarpd sbin
  32550. +debian/tmp/usr/sbin/ilmid
  32551. +debian/tmp/usr/sbin/zeppelin
  32552. +debian/tmp/usr/sbin/les
  32553. +debian/tmp/usr/sbin/bus
  32554. +debian/tmp/usr/sbin/lecs
  32555. +debian/tmp/usr/sbin/mpcd
  32556. +debian/tmp/etc/atmsigd.conf
  32557. Index: linux-atm-2.4.1/debian/atm-tools.manpages
  32558. ===================================================================
  32559. --- /dev/null 1970-01-01 00:00:00.000000000 +0000
  32560. +++ linux-atm-2.4.1/debian/atm-tools.manpages 2007-10-20 19:19:12.622347783 +0200
  32561. @@ -0,0 +1 @@
  32562. +debian/atm-tools.8
  32563. Index: linux-atm-2.4.1/debian/atm-tools.pod
  32564. ===================================================================
  32565. --- /dev/null 1970-01-01 00:00:00.000000000 +0000
  32566. +++ linux-atm-2.4.1/debian/atm-tools.pod 2007-10-20 19:19:12.638348694 +0200
  32567. @@ -0,0 +1,27 @@
  32568. +=head1 NAME
  32569. +
  32570. +linux-atm - preliminary manpage
  32571. +aread
  32572. +awrite
  32573. +enitune
  32574. +ilmid
  32575. +saaldump
  32576. +sonetdiag
  32577. +ttcp_atm
  32578. +zntune
  32579. +
  32580. +=head1 DOCUMENTATION
  32581. +
  32582. +atm-tools is a package containing the basic tools that are needed for
  32583. +setting up, monitoring, and tuning ATM networks. All available
  32584. +documentation can be found in /usr/share/doc/atnm-tools in Debian
  32585. +systems, and on the Web on: http://linux-atm.sourceforge.net.
  32586. +
  32587. +=head1 BUGS
  32588. +
  32589. +Many. Be prepared to debug.
  32590. +
  32591. +=head1 AUTHOR
  32592. +
  32593. +This manpage was written by Marc Haber for linux-atm packaging in
  32594. +Debian/GNU Operating System.
  32595. Index: linux-atm-2.4.1/debian/changelog
  32596. ===================================================================
  32597. --- /dev/null 1970-01-01 00:00:00.000000000 +0000
  32598. +++ linux-atm-2.4.1/debian/changelog 2007-10-20 19:19:12.650349383 +0200
  32599. @@ -0,0 +1,212 @@
  32600. +linux-atm (2.4.1-17) unstable; urgency=low
  32601. +
  32602. + * Fix build problem with gcc 4.0 (Closes: )
  32603. +
  32604. + -- Peter De Schrijver (p2) <[email protected]> Thu, 17 Mar 2005 23:02:03 +0100
  32605. +
  32606. +linux-atm (2.4.1-16) unstable; urgency=low
  32607. +
  32608. + * Fix build problem with gcc 3.4 (Closes: #259422)
  32609. +
  32610. + -- Peter De Schrijver (p2) <[email protected]> Thu, 15 Jul 2004 14:28:10 +0200
  32611. +
  32612. +linux-atm (2.4.1-15) unstable; urgency=low
  32613. +
  32614. + * Updated descriptions (Closes: #239161)
  32615. +
  32616. + -- Peter De Schrijver (p2) <[email protected]> Sun, 4 Apr 2004 21:10:20 +0200
  32617. +
  32618. +linux-atm (2.4.1-14) unstable; urgency=low
  32619. +
  32620. + * Fix symlink for /usr/lib/libatm.so (Closes: #221011)
  32621. +
  32622. + -- Peter De Schrijver (p2) <[email protected]> Sun, 7 Dec 2003 21:53:19 +0100
  32623. +
  32624. +linux-atm (2.4.1-13) unstable; urgency=low
  32625. +
  32626. + * Previous version fixed #217259, but no changelog entry (Closes: #217259)
  32627. + * Previous version fixed #216662, but no changelog entry (Closes: #216662)
  32628. + * Added missing build dependency on automake1.4 (Closes: #221120, #221284)
  32629. + * New Maintainer (Closes: #206982)
  32630. +
  32631. + -- Peter De Schrijver (p2) <[email protected]> Mon, 17 Nov 2003 23:03:58 +0100
  32632. +
  32633. +linux-atm (2.4.1-12) unstable; urgency=low
  32634. +
  32635. + * don't build atm-tools-br2684 by default. Thanks to ftpmaster for
  32636. + not allowing the package to be in Debian.
  32637. + * Since we don't build atm-tools-br2684 any more, revert back to
  32638. + autotools output from 2.4.1-9
  32639. + * Add README.br2684 documenting a way to build the package locally.
  32640. +
  32641. + -- Marc Haber <[email protected]> Wed, 5 Nov 2003 21:31:42 +0000
  32642. +
  32643. +linux-atm (2.4.1-11) experimental; urgency=low
  32644. +
  32645. + * Build-Depend on dpatch
  32646. + * dpatch br2684 header files from later libc for old libc (woody)
  32647. +
  32648. + -- Marc Haber <[email protected]> Wed, 29 Oct 2003 19:05:07 +0000
  32649. +
  32650. +linux-atm (2.4.1-10) experimental; urgency=low
  32651. +
  32652. + * add br2684 to package (closes: #216663)
  32653. + * autoreconf to actually build br2684
  32654. + * have libatm1-dev provide libatm-dev (closes: #216662)
  32655. + * move lib symlink to libatm1-dev as well (closes: #217259)
  32656. +
  32657. + -- Marc Haber <[email protected]> Thu, 23 Oct 2003 17:55:43 +0000
  32658. +
  32659. +linux-atm (2.4.1-9) unstable; urgency=low
  32660. +
  32661. + * put libatm1-dev in libdevel (closes: #213170)
  32662. + * make sure that new descriptions actually make it into the package
  32663. +
  32664. + -- Marc Haber <[email protected]> Thu, 9 Oct 2003 17:08:10 +0000
  32665. +
  32666. +linux-atm (2.4.1-8) unstable; urgency=low
  32667. +
  32668. + * build arch-indep package as targets of binary-indep (closes: #212124)
  32669. + * use dh_installdocs to install files to libatm1-dev/docs
  32670. + * symlink shared lib to usr/bin (closes: #213146)
  32671. + * Use better long descriptions. Thanks to Javier (closes: #209427)
  32672. + Fernandez-Sanguino (closes: #209612)
  32673. +
  32674. + -- Marc Haber <[email protected]> Sun, 28 Sep 2003 19:29:08 +0000
  32675. +
  32676. +linux-atm (2.4.1-7) unstable; urgency=low
  32677. +
  32678. + * libatm1 now conflicts with atm-tools (<< 2.4.1-6) (closes: #208170)
  32679. + * armarp now writes output to stdout.
  32680. + * add atm-dev as empty transitional package to help upgrades
  32681. +
  32682. + -- Marc Haber <[email protected]> Tue, 2 Sep 2003 09:20:33 +0000
  32683. +
  32684. +linux-atm (2.4.1-6) unstable; urgency=low
  32685. +
  32686. + * split off shared libraries to libatm1
  32687. + * rename atm-dev to libatm1-dev
  32688. + * Standards-Version: 3.6.1
  32689. +
  32690. + -- Marc Haber <[email protected]> Tue, 26 Aug 2003 15:46:27 +0000
  32691. +
  32692. +linux-atm (2.4.1-5) unstable; urgency=low
  32693. +
  32694. + * move *.a and *.la to usr/lib (closes: #199506).
  32695. + * let atm-dev depend on atm-tools to avoid dangling /lib/libatm.so
  32696. + symlink.
  32697. + * Standards-Version: 3.5.6
  32698. +
  32699. + -- Marc Haber <[email protected]> Wed, 30 Jul 2003 11:46:19 +0000
  32700. +
  32701. +linux-atm (2.4.1-4) unstable; urgency=low
  32702. +
  32703. + * add Build-Depends: on automake1.4
  32704. +
  32705. + -- Marc Haber <[email protected]> Wed, 11 Jun 2003 16:58:21 +0000
  32706. +
  32707. +linux-atm (2.4.1-3) unstable; urgency=low
  32708. +
  32709. + * rebuilding libtool broke src/test/Makefile.in. Applied fix to
  32710. + Makefile.am and re-built again.
  32711. +
  32712. + -- Marc Haber <[email protected]> Wed, 11 Jun 2003 11:05:26 +0000
  32713. +
  32714. +linux-atm (2.4.1-2) unstable; urgency=low
  32715. +
  32716. + * rebuild configure script with new libtool (closes: #196909)
  32717. +
  32718. + -- Marc Haber <[email protected]> Tue, 10 Jun 2003 21:01:50 +0000
  32719. +
  32720. +linux-atm (2.4.1-1) unstable; urgency=low
  32721. +
  32722. + * new upstream source
  32723. + * remove atmarp and atmarpd from /usr/sbin as they are already in
  32724. + /sbin (closes: #196216)
  32725. + * lintian fixes
  32726. +
  32727. + -- Marc Haber <[email protected]> Mon, 9 Jun 2003 16:03:45 +0000
  32728. +
  32729. +linux-atm (2.4.0-5) unstable; urgency=low
  32730. +
  32731. + * Fix for src/test/Makefile.in to allow building on hppa and ia64
  32732. + which the fix introduced to 2.4.0-4 broke. Thanks to Goswin
  32733. + Brederlow.
  32734. + * Move init.d priority to that atmarpd is started before network
  32735. + interfaces are started.
  32736. + * Move atmarpd and libatm to /sbin and /lib to allow atmarpd to be
  32737. + started before /usr is mounted.
  32738. + * use dh_install instead of dh_movefiles.
  32739. +
  32740. + -- Marc Haber <[email protected]> Sat, 24 Aug 2002 15:13:48 +0000
  32741. +
  32742. +linux-atm (2.4.0-4) unstable; urgency=low
  32743. +
  32744. + * new maintainer
  32745. + * Fix for src/test/Makefile.in to allow building on sparc.
  32746. + Thanks to Patrick Mauritz. (closes: #144225).
  32747. + * added pseudo-manpage for manpage-less binaries.
  32748. + * removed rpath by changing configure and make install paramaters
  32749. +
  32750. + -- Marc Haber <[email protected]> Fri, 16 Aug 2002 20:39:05 +0000
  32751. +
  32752. +linux-atm (2.4.0-3) unstable; urgency=HIGH
  32753. +
  32754. + * Re-ran libtoolize.
  32755. + Closes: #143522
  32756. +
  32757. + * Previous version Closes: #135328
  32758. +
  32759. + -- Russell Coker <[email protected]> Fri, 19 Apr 2002 01:55:00 +0200
  32760. +
  32761. +linux-atm (2.4.0-2) unstable; urgency=HIGH
  32762. +
  32763. + * Put a "grep -v EMAXERRNO" into the build process to deal with mipsel and
  32764. + the "#ifdef __KERNEL__" it has in it's /usr/include/asm/errno.h .
  32765. +
  32766. + -- Russell Coker <[email protected]> Thu, 18 Apr 2002 19:56:00 +0200
  32767. +
  32768. +linux-atm (2.4.0-1) unstable; urgency=HIGH
  32769. +
  32770. + * New upstream version which changes source package name.
  32771. + Closes: #138911
  32772. +
  32773. + -- Russell Coker <[email protected]> Mon, 18 Mar 2002 17:42:00 +0100
  32774. +
  32775. +atm (0.79-4) unstable; urgency=low
  32776. +
  32777. + * Added build-depends on flex.
  32778. + Closes: #111072
  32779. +
  32780. + * Made the atm tools use a shared object to save space.
  32781. +
  32782. + * Fixed the copyright file and put all copyright details in both packages.
  32783. +
  32784. + * Added support for easy building with different kernel headers.
  32785. + Closes: #110249
  32786. +
  32787. + -- Russell Coker <[email protected]> Sun, 7 Oct 2001 14:11:33 +0200
  32788. +
  32789. +atm (0.79-3) unstable; urgency=low
  32790. +
  32791. + * Created /etc/init.d/atm to start and stop atmarpd.
  32792. + Closes: #110252
  32793. +
  32794. + * Added build-depends on bison.
  32795. + Closes: #110576
  32796. +
  32797. + -- Russell Coker <[email protected]> Fri, 31 Aug 2001 15:21:44 +0200
  32798. +
  32799. +atm (0.79-2) unstable; urgency=low
  32800. +
  32801. + * Changed the main package name to atm-tools to indicate that it doesn't
  32802. + provide ATM (gotta have the kernel support), it just has the daemons and
  32803. + utilities.
  32804. +
  32805. + -- Russell Coker <[email protected]> Sat, 25 Aug 2001 17:55:00 +0200
  32806. +
  32807. +atm (0.79-1) unstable; urgency=low
  32808. +
  32809. + * Initial Release.
  32810. +
  32811. + -- Russell Coker <[email protected]> Fri, 24 Aug 2001 17:31:00 +0200
  32812. Index: linux-atm-2.4.1/debian/checkout-br2684
  32813. ===================================================================
  32814. --- /dev/null 1970-01-01 00:00:00.000000000 +0000
  32815. +++ linux-atm-2.4.1/debian/checkout-br2684 2007-10-20 19:19:12.654349609 +0200
  32816. @@ -0,0 +1,25 @@
  32817. +#!/bin/bash -x
  32818. +
  32819. +set -e
  32820. +
  32821. +# check out br2684 from upstream CVS. We need to jump through hoops if
  32822. +# the local source package is under cvs control as well.
  32823. +
  32824. +CVSDIR=":pserver:anonymous:@cvs.linux-atm.sourceforge.net.:/cvsroot/linux-atm"
  32825. +DIR="br2684"
  32826. +TMPDIR="/tmp"
  32827. +TARGETDIR="src"
  32828. +
  32829. +cvs -d${CVSDIR} login
  32830. +
  32831. +mkdir -p $TMPDIR
  32832. +pushd $TMPDIR
  32833. +cvs -z6 -d${CVSDIR} export -d $DIR -r V2_5_0 linux-atm/src/br2684
  32834. +
  32835. +popd
  32836. +
  32837. +mv $TMPDIR/$DIR/* $TARGETDIR/$DIR
  32838. +rm -rf $TMPDIR/$DIR
  32839. +
  32840. +autoreconf -i -f
  32841. +
  32842. Index: linux-atm-2.4.1/debian/copyright.header
  32843. ===================================================================
  32844. --- /dev/null 1970-01-01 00:00:00.000000000 +0000
  32845. +++ linux-atm-2.4.1/debian/copyright.header 2007-10-20 19:19:12.662350063 +0200
  32846. @@ -0,0 +1,18 @@
  32847. +This package was debianized by Russell Coker <[email protected]> on
  32848. +Fri, 24 Aug 2001 16:11:12 +0200 and is now maintained by Marc Haber
  32849. +<[email protected]>.
  32850. +
  32851. +It was downloaded from http://www.sourceforge.net/projects/linux-atm/
  32852. +
  32853. +See also http://linux-atm.sourceforge.net/dist.php
  32854. +
  32855. +Upstream Authors:
  32856. +Werner Almesberger EPFL ICA <[email protected]>
  32857. +Mitchell Blank Jr. <[email protected]>
  32858. +Paul B Schroeder <[email protected]>
  32859. +
  32860. +Copyright:
  32861. +
  32862. +GPL 2.0
  32863. +
  32864. +See /usr/share/common-licenses/GPL-2
  32865. Index: linux-atm-2.4.1/debian/libatm1-dev.dirs
  32866. ===================================================================
  32867. --- /dev/null 1970-01-01 00:00:00.000000000 +0000
  32868. +++ linux-atm-2.4.1/debian/libatm1-dev.dirs 2007-10-20 19:19:12.686351432 +0200
  32869. @@ -0,0 +1,2 @@
  32870. +usr/lib
  32871. +usr/include
  32872. Index: linux-atm-2.4.1/debian/libatm1-dev.docs
  32873. ===================================================================
  32874. --- /dev/null 1970-01-01 00:00:00.000000000 +0000
  32875. +++ linux-atm-2.4.1/debian/libatm1-dev.docs 2007-10-20 19:19:12.690351662 +0200
  32876. @@ -0,0 +1,2 @@
  32877. +doc/README.CLP
  32878. +doc/atm-linux-howto.txt
  32879. Index: linux-atm-2.4.1/debian/libatm1-dev.install
  32880. ===================================================================
  32881. --- /dev/null 1970-01-01 00:00:00.000000000 +0000
  32882. +++ linux-atm-2.4.1/debian/libatm1-dev.install 2007-10-20 19:19:12.694351889 +0200
  32883. @@ -0,0 +1,2 @@
  32884. +debian/tmp/usr/include/*
  32885. +debian/tmp/usr/lib/*.a usr/lib
  32886. Index: linux-atm-2.4.1/debian/libatm1-dev.links
  32887. ===================================================================
  32888. --- /dev/null 1970-01-01 00:00:00.000000000 +0000
  32889. +++ linux-atm-2.4.1/debian/libatm1-dev.links 2007-10-20 19:19:12.706352571 +0200
  32890. @@ -0,0 +1 @@
  32891. +lib/libatm.so.1 usr/lib/libatm.so
  32892. Index: linux-atm-2.4.1/debian/libatm1.dirs
  32893. ===================================================================
  32894. --- /dev/null 1970-01-01 00:00:00.000000000 +0000
  32895. +++ linux-atm-2.4.1/debian/libatm1.dirs 2007-10-20 19:19:12.734354169 +0200
  32896. @@ -0,0 +1 @@
  32897. +/lib
  32898. Index: linux-atm-2.4.1/debian/libatm1.install
  32899. ===================================================================
  32900. --- /dev/null 1970-01-01 00:00:00.000000000 +0000
  32901. +++ linux-atm-2.4.1/debian/libatm1.install 2007-10-20 19:19:12.738354393 +0200
  32902. @@ -0,0 +1 @@
  32903. +debian/tmp/usr/lib/libatm.so.* lib