000-debian_16.patch 1.1 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073
  1. --- linux-atm-2.4.1.orig/Makefile.in
  2. +++ linux-atm-2.4.1/Makefile.in
  3. @@ -1,4 +1,4 @@
  4. -# Makefile.in generated automatically by automake 1.4-p5 from Makefile.am
  5. +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
  6. # Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
  7. # This Makefile.in is free software; the Free Software Foundation
  8. @@ -100,14 +100,14 @@
  9. DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
  10. -TAR = gtar
  11. +TAR = tar
  12. GZIP_ENV = --best
  13. all: all-redirect
  14. .SUFFIXES:
  15. $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
  16. - cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps Makefile
  17. + cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile
  18. -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  19. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
  20. cd $(top_builddir) \
  21. && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
  22. @@ -225,7 +225,7 @@
  23. awk ' { files[$$0] = 1; } \
  24. END { for (i in files) print i; }'`; \
  25. test -z "$(ETAGS_ARGS)config.h.in$$unique$(LISP)$$tags" \
  26. - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags config.h.in $$unique $(LISP) -o $$here/TAGS)
  27. + || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags config.h.in $$unique $(LISP))
  28. mostlyclean-tags:
  29. @@ -274,6 +274,11 @@
  30. -rm -rf $(distdir)
  31. mkdir $(distdir)
  32. -chmod 777 $(distdir)
  33. + here=`cd $(top_builddir) && pwd`; \
  34. + top_distdir=`cd $(distdir) && pwd`; \
  35. + distdir=`cd $(distdir) && pwd`; \
  36. + cd $(top_srcdir) \
  37. + && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu Makefile
  38. @for file in $(DISTFILES); do \
  39. d=$(srcdir); \
  40. if test -d $$d/$$file; then \
  41. --- linux-atm-2.4.1.orig/aclocal.m4
  42. +++ linux-atm-2.4.1/aclocal.m4
  43. @@ -1,4 +1,4 @@
  44. -dnl aclocal.m4 generated automatically by aclocal 1.4-p5
  45. +dnl aclocal.m4 generated automatically by aclocal 1.4-p6
  46. dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
  47. dnl This file is free software; the Free Software Foundation
  48. @@ -43,7 +43,8 @@
  49. dnl AM_INIT_AUTOMAKE(package,version, [no-define])
  50. AC_DEFUN([AM_INIT_AUTOMAKE],
  51. -[AC_REQUIRE([AC_PROG_INSTALL])
  52. +[AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
  53. +AC_REQUIRE([AC_PROG_INSTALL])
  54. PACKAGE=[$1]
  55. AC_SUBST(PACKAGE)
  56. VERSION=[$2]
  57. @@ -59,13 +60,42 @@
  58. AC_REQUIRE([AC_ARG_PROGRAM])
  59. dnl FIXME This is truly gross.
  60. missing_dir=`cd $ac_aux_dir && pwd`
  61. -AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
  62. +AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}, $missing_dir)
  63. AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
  64. -AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)
  65. +AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}, $missing_dir)
  66. AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
  67. AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
  68. AC_REQUIRE([AC_PROG_MAKE_SET])])
  69. +# Copyright 2002 Free Software Foundation, Inc.
  70. +
  71. +# This program is free software; you can redistribute it and/or modify
  72. +# it under the terms of the GNU General Public License as published by
  73. +# the Free Software Foundation; either version 2, or (at your option)
  74. +# any later version.
  75. +
  76. +# This program is distributed in the hope that it will be useful,
  77. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  78. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  79. +# GNU General Public License for more details.
  80. +
  81. +# You should have received a copy of the GNU General Public License
  82. +# along with this program; if not, write to the Free Software
  83. +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  84. +
  85. +# AM_AUTOMAKE_VERSION(VERSION)
  86. +# ----------------------------
  87. +# Automake X.Y traces this macro to ensure aclocal.m4 has been
  88. +# generated from the m4 files accompanying Automake X.Y.
  89. +AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.4"])
  90. +
  91. +# AM_SET_CURRENT_AUTOMAKE_VERSION
  92. +# -------------------------------
  93. +# Call AM_AUTOMAKE_VERSION so it can be traced.
  94. +# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
  95. +AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  96. + [AM_AUTOMAKE_VERSION([1.4-p6])])
  97. +
  98. #
  99. # Check to make sure that the build environment is sane.
  100. #
  101. @@ -130,13 +160,14 @@
  102. dnl Look for flex, lex or missing, then run AC_PROG_LEX and AC_DECL_YYTEXT
  103. AC_DEFUN([AM_PROG_LEX],
  104. [missing_dir=ifelse([$1],,`cd $ac_aux_dir && pwd`,$1)
  105. -AC_CHECK_PROGS(LEX, flex lex, "$missing_dir/missing flex")
  106. +AC_CHECK_PROGS(LEX, flex lex, $missing_dir/missing flex)
  107. AC_PROG_LEX
  108. AC_DECL_YYTEXT])
  109. # libtool.m4 - Configure libtool for the host system. -*-Shell-script-*-
  110. # serial 46 AC_PROG_LIBTOOL
  111. +
  112. AC_DEFUN([AC_PROG_LIBTOOL],
  113. [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
  114. @@ -162,6 +193,8 @@
  115. AC_REQUIRE([AC_PROG_LD])dnl
  116. AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
  117. AC_REQUIRE([AC_PROG_NM])dnl
  118. +AC_REQUIRE([LT_AC_PROG_SED])dnl
  119. +
  120. AC_REQUIRE([AC_PROG_LN_S])dnl
  121. AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
  122. AC_REQUIRE([AC_OBJEXT])dnl
  123. @@ -262,9 +295,30 @@
  124. ])
  125. +# AC_LIBTOOL_HEADER_ASSERT
  126. +# ------------------------
  127. +AC_DEFUN([AC_LIBTOOL_HEADER_ASSERT],
  128. +[AC_CACHE_CHECK([whether $CC supports assert without backlinking],
  129. + [lt_cv_func_assert_works],
  130. + [case $host in
  131. + *-*-solaris*)
  132. + if test "$GCC" = yes && test "$with_gnu_ld" != yes; then
  133. + case `$CC --version 2>/dev/null` in
  134. + [[12]].*) lt_cv_func_assert_works=no ;;
  135. + *) lt_cv_func_assert_works=yes ;;
  136. + esac
  137. + fi
  138. + ;;
  139. + esac])
  140. +
  141. +if test "x$lt_cv_func_assert_works" = xyes; then
  142. + AC_CHECK_HEADERS(assert.h)
  143. +fi
  144. +])# AC_LIBTOOL_HEADER_ASSERT
  145. +
  146. # _LT_AC_CHECK_DLFCN
  147. # --------------------
  148. -AC_DEFUN(_LT_AC_CHECK_DLFCN,
  149. +AC_DEFUN([_LT_AC_CHECK_DLFCN],
  150. [AC_CHECK_HEADERS(dlfcn.h)
  151. ])# _LT_AC_CHECK_DLFCN
  152. @@ -282,10 +336,10 @@
  153. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  154. # Character class describing NM global symbol codes.
  155. -[symcode='[BCDEGRST]']
  156. +symcode='[[BCDEGRST]]'
  157. # Regexp to match symbols that can be accessed directly from C.
  158. -[sympat='\([_A-Za-z][_A-Za-z0-9]*\)']
  159. +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  160. # Transform the above into a raw symbol and a C symbol.
  161. symxfrm='\1 \2\3 \3'
  162. @@ -293,25 +347,32 @@
  163. # Transform an extracted symbol line into a proper C declaration
  164. lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
  165. +# Transform an extracted symbol line into symbol name and symbol address
  166. +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'"
  167. +
  168. # Define system-specific variables.
  169. case $host_os in
  170. aix*)
  171. - [symcode='[BCDT]']
  172. + symcode='[[BCDT]]'
  173. ;;
  174. cygwin* | mingw* | pw32*)
  175. - [symcode='[ABCDGISTW]']
  176. + symcode='[[ABCDGISTW]]'
  177. ;;
  178. hpux*) # Its linker distinguishes data from code symbols
  179. lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  180. + 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'"
  181. + ;;
  182. +irix* | nonstopux*)
  183. + symcode='[[BCDEGRST]]'
  184. ;;
  185. -irix*)
  186. - [symcode='[BCDEGRST]']
  187. +osf*)
  188. + symcode='[[BCDEGQRST]]'
  189. ;;
  190. solaris* | sysv5*)
  191. - [symcode='[BDT]']
  192. + symcode='[[BDT]]'
  193. ;;
  194. sysv4)
  195. - [symcode='[DFNSTU]']
  196. + symcode='[[DFNSTU]]'
  197. ;;
  198. esac
  199. @@ -325,14 +386,14 @@
  200. # If we're using GNU nm, then use its standard symbol codes.
  201. if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
  202. - [symcode='[ABCDGISTW]']
  203. + symcode='[[ABCDGISTW]]'
  204. fi
  205. # Try without a prefix undercore, then with it.
  206. for ac_symprfx in "" "_"; do
  207. # Write the raw and C identifiers.
  208. -[lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"]
  209. +lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
  210. # Check to see that the pipe works correctly.
  211. pipe_works=no
  212. @@ -374,23 +435,23 @@
  213. cat <<EOF >> conftest.$ac_ext
  214. #if defined (__STDC__) && __STDC__
  215. -# define lt_ptr_t void *
  216. +# define lt_ptr void *
  217. #else
  218. -# define lt_ptr_t char *
  219. +# define lt_ptr char *
  220. # define const
  221. #endif
  222. /* The mapping between symbol names and symbols. */
  223. const struct {
  224. const char *name;
  225. - lt_ptr_t address;
  226. + lt_ptr address;
  227. }
  228. -[lt_preloaded_symbols[] =]
  229. +lt_preloaded_symbols[[]] =
  230. {
  231. EOF
  232. - sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" >> conftest.$ac_ext
  233. + sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
  234. cat <<\EOF >> conftest.$ac_ext
  235. - {0, (lt_ptr_t) 0}
  236. + {0, (lt_ptr) 0}
  237. };
  238. #ifdef __cplusplus
  239. @@ -403,7 +464,7 @@
  240. save_CFLAGS="$CFLAGS"
  241. LIBS="conftstm.$ac_objext"
  242. CFLAGS="$CFLAGS$no_builtin_flag"
  243. - if AC_TRY_EVAL(ac_link) && test -s conftest; then
  244. + if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then
  245. pipe_works=yes
  246. fi
  247. LIBS="$save_LIBS"
  248. @@ -434,10 +495,13 @@
  249. global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
  250. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  251. global_symbol_to_cdecl=
  252. + global_symbol_to_c_name_address=
  253. else
  254. global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
  255. + global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
  256. fi
  257. -if test -z "$global_symbol_pipe$global_symbol_to_cdecl"; then
  258. +if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
  259. +then
  260. AC_MSG_RESULT(failed)
  261. else
  262. AC_MSG_RESULT(ok)
  263. @@ -455,16 +519,17 @@
  264. *-DOS) lt_cv_sys_path_separator=';' ;;
  265. *) lt_cv_sys_path_separator=':' ;;
  266. esac
  267. + PATH_SEPARATOR=$lt_cv_sys_path_separator
  268. fi
  269. ])# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
  270. # _LT_AC_PROG_ECHO_BACKSLASH
  271. # --------------------------
  272. # Add some code to the start of the generated configure script which
  273. -# will find an echo command which doesn;t interpret backslashes.
  274. +# will find an echo command which doesn't interpret backslashes.
  275. AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
  276. [ifdef([AC_DIVERSION_NOTICE], [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
  277. - [AC_DIVERT_PUSH(NOTICE)])
  278. + [AC_DIVERT_PUSH(NOTICE)])
  279. _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
  280. # Check that we are running under the correct shell.
  281. @@ -530,7 +595,7 @@
  282. #
  283. # So, first we look for a working echo in the user's PATH.
  284. - IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
  285. + IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  286. for dir in $PATH /usr/ucb; do
  287. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  288. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  289. @@ -619,7 +684,7 @@
  290. # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  291. # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  292. # ------------------------------------------------------------------
  293. -AC_DEFUN(_LT_AC_TRY_DLOPEN_SELF,
  294. +AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
  295. [if test "$cross_compiling" = yes; then :
  296. [$4]
  297. else
  298. @@ -706,7 +771,7 @@
  299. # AC_LIBTOOL_DLOPEN_SELF
  300. # -------------------
  301. -AC_DEFUN(AC_LIBTOOL_DLOPEN_SELF,
  302. +AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
  303. [if test "x$enable_dlopen" != xyes; then
  304. enable_dlopen=unknown
  305. enable_dlopen_self=unknown
  306. @@ -728,16 +793,22 @@
  307. ;;
  308. *)
  309. - AC_CHECK_LIB(dl, dlopen, [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
  310. - [AC_CHECK_FUNC(dlopen, lt_cv_dlopen="dlopen",
  311. - [AC_CHECK_FUNC(shl_load, lt_cv_dlopen="shl_load",
  312. - [AC_CHECK_LIB(svld, dlopen,
  313. - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  314. - [AC_CHECK_LIB(dld, shl_load,
  315. - [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
  316. + AC_CHECK_FUNC([shl_load],
  317. + [lt_cv_dlopen="shl_load"],
  318. + [AC_CHECK_LIB([dld], [shl_load],
  319. + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
  320. + [AC_CHECK_FUNC([dlopen],
  321. + [lt_cv_dlopen="dlopen"],
  322. + [AC_CHECK_LIB([dl], [dlopen],
  323. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
  324. + [AC_CHECK_LIB([svld], [dlopen],
  325. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  326. + [AC_CHECK_LIB([dld], [dld_link],
  327. + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
  328. + ])
  329. ])
  330. - ])
  331. - ])
  332. + ])
  333. + ])
  334. ])
  335. ;;
  336. esac
  337. @@ -800,10 +871,10 @@
  338. # Sed substitution that helps us do robust quoting. It backslashifies
  339. # metacharacters that are still active within double-quoted strings.
  340. Xsed='sed -e s/^X//'
  341. -[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
  342. +sed_quote_subst='s/\([[\\"\\`$\\\\]]\)/\\\1/g'
  343. # Same as above, but do not quote variable references.
  344. -[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
  345. +double_quote_subst='s/\([[\\"\\`\\\\]]\)/\\\1/g'
  346. # Sed substitution to delay expansion of an escaped shell variable in a
  347. # double_quote_subst'ed string.
  348. @@ -872,8 +943,15 @@
  349. old_postuninstall_cmds=
  350. if test -n "$RANLIB"; then
  351. + case $host_os in
  352. + openbsd*)
  353. + old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
  354. + ;;
  355. + *)
  356. + old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
  357. + ;;
  358. + esac
  359. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  360. - old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
  361. fi
  362. # Allow CC to be a program name with arguments.
  363. @@ -893,7 +971,7 @@
  364. AC_MSG_RESULT($objdir)
  365. -AC_ARG_WITH(pic,
  366. +AC_ARG_WITH(pic,
  367. [ --with-pic try to use only PIC/non-PIC objects [default=use both]],
  368. pic_mode="$withval", pic_mode=default)
  369. test -z "$pic_mode" && pic_mode=default
  370. @@ -921,7 +999,7 @@
  371. # libC (AIX C++ library), which obviously doesn't included in libraries
  372. # list by gcc. This cause undefined symbols with -static flags.
  373. # This hack allows C programs to be linked with "-static -ldl", but
  374. - # we not sure about C++ programs.
  375. + # not sure about C++ programs.
  376. lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
  377. ;;
  378. amigaos*)
  379. @@ -930,7 +1008,7 @@
  380. # like `-m68040'.
  381. lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
  382. ;;
  383. - beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
  384. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  385. # PIC is the default for these OSes.
  386. ;;
  387. darwin* | rhapsody*)
  388. @@ -956,13 +1034,13 @@
  389. # PORTME Check for PIC flags for the system compiler.
  390. case $host_os in
  391. aix3* | aix4* | aix5*)
  392. + lt_cv_prog_cc_wl='-Wl,'
  393. # All AIX code is PIC.
  394. if test "$host_cpu" = ia64; then
  395. - # AIX 5 now supports IA64 processor
  396. - lt_cv_prog_cc_static='-Bstatic'
  397. - lt_cv_prog_cc_wl='-Wl,'
  398. + # AIX 5 now supports IA64 processor
  399. + lt_cv_prog_cc_static='-Bstatic'
  400. else
  401. - lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
  402. + lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
  403. fi
  404. ;;
  405. @@ -973,7 +1051,7 @@
  406. lt_cv_prog_cc_pic='+Z'
  407. ;;
  408. - irix5* | irix6*)
  409. + irix5* | irix6* | nonstopux*)
  410. lt_cv_prog_cc_wl='-Wl,'
  411. lt_cv_prog_cc_static='-non_shared'
  412. # PIC (with -KPIC) is the default.
  413. @@ -1017,11 +1095,7 @@
  414. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  415. lt_cv_prog_cc_pic='-KPIC'
  416. lt_cv_prog_cc_static='-Bstatic'
  417. - if test "x$host_vendor" = xsni; then
  418. - lt_cv_prog_cc_wl='-LD'
  419. - else
  420. - lt_cv_prog_cc_wl='-Wl,'
  421. - fi
  422. + lt_cv_prog_cc_wl='-Wl,'
  423. ;;
  424. uts4*)
  425. @@ -1087,7 +1161,7 @@
  426. # Check for any special shared library compilation flags.
  427. if test -n "$lt_cv_prog_cc_shlib"; then
  428. AC_MSG_WARN([\`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries])
  429. - if echo "$old_CC $old_CFLAGS " | [egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]"] >/dev/null; then :
  430. + if echo "$old_CC $old_CFLAGS " | egrep -e "[[ ]]$lt_cv_prog_cc_shlib[[ ]]" >/dev/null; then :
  431. else
  432. AC_MSG_WARN([add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure])
  433. lt_cv_prog_cc_can_build_shared=no
  434. @@ -1163,6 +1237,8 @@
  435. lt_cv_compiler_o_lo=no
  436. save_CFLAGS="$CFLAGS"
  437. CFLAGS="$CFLAGS -c -o conftest.lo"
  438. + save_objext="$ac_objext"
  439. + ac_objext=lo
  440. AC_TRY_COMPILE([], [int some_variable = 0;], [dnl
  441. # The compiler can only warn and ignore the option if not recognized
  442. # So say no if there are warnings
  443. @@ -1172,6 +1248,7 @@
  444. lt_cv_compiler_o_lo=yes
  445. fi
  446. ])
  447. + ac_objext="$save_objext"
  448. CFLAGS="$save_CFLAGS"
  449. ])
  450. compiler_o_lo=$lt_cv_compiler_o_lo
  451. @@ -1268,7 +1345,7 @@
  452. extract_expsyms_cmds=
  453. case $host_os in
  454. -cygwin* | mingw* | pw32* )
  455. +cygwin* | mingw* | pw32*)
  456. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  457. # When not using gcc, we currently assume that we are using
  458. # Microsoft Visual C++.
  459. @@ -1276,7 +1353,9 @@
  460. with_gnu_ld=no
  461. fi
  462. ;;
  463. -
  464. +openbsd*)
  465. + with_gnu_ld=no
  466. + ;;
  467. esac
  468. ld_shlibs=yes
  469. @@ -1363,7 +1442,7 @@
  470. # can override, but on older systems we have to supply one (in ltdll.c)
  471. if test "x$lt_cv_need_dllmain" = "xyes"; then
  472. ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
  473. - 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~
  474. + 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~
  475. test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
  476. else
  477. ltdll_obj=
  478. @@ -1376,24 +1455,25 @@
  479. # Be careful not to strip the DATA tag left be newer dlltools.
  480. export_symbols_cmds="$ltdll_cmds"'
  481. $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
  482. - [sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//"] < $output_objdir/$soname-def > $export_symbols'
  483. + sed -e "1,/EXPORTS/d" -e "s/ @ [[0-9]]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
  484. # If the export-symbols file already is a .def file (1st line
  485. # is EXPORTS), use it as is.
  486. # If DATA tags from a recent dlltool are present, honour them!
  487. - archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
  488. - cp $export_symbols $output_objdir/$soname-def;
  489. + archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
  490. + cp $export_symbols $output_objdir/$soname-def;
  491. else
  492. - echo EXPORTS > $output_objdir/$soname-def;
  493. - _lt_hint=1;
  494. - cat $export_symbols | while read symbol; do
  495. - set dummy \$symbol;
  496. - case \[$]# in
  497. - 2) echo " \[$]2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
  498. - *) echo " \[$]2 @ \$_lt_hint \[$]3 ; " >> $output_objdir/$soname-def;;
  499. - esac;
  500. - _lt_hint=`expr 1 + \$_lt_hint`;
  501. - done;
  502. + echo EXPORTS > $output_objdir/$soname-def;
  503. + _lt_hint=1;
  504. + cat $export_symbols | while read symbol; do
  505. + set dummy \$symbol;
  506. + case \[$]# in
  507. + 2) echo " \[$]2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
  508. + 4) echo " \[$]2 \[$]3 \[$]4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
  509. + *) echo " \[$]2 @ \$_lt_hint \[$]3 ; " >> $output_objdir/$soname-def;;
  510. + esac;
  511. + _lt_hint=`expr 1 + \$_lt_hint`;
  512. + done;
  513. fi~
  514. '"$ltdll_cmds"'
  515. $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~
  516. @@ -1488,80 +1568,98 @@
  517. ;;
  518. aix4* | aix5*)
  519. + if test "$host_cpu" = ia64; then
  520. + # On IA64, the linker does run time linking by default, so we don't
  521. + # have to do anything special.
  522. + aix_use_runtimelinking=no
  523. + exp_sym_flag='-Bexport'
  524. + no_entry_flag=""
  525. + else
  526. + aix_use_runtimelinking=no
  527. +
  528. + # Test if we are trying to use run time linking or normal
  529. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  530. + # need to do runtime linking.
  531. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
  532. + for ld_flag in $LDFLAGS; do
  533. + case $ld_flag in
  534. + *-brtl*)
  535. + aix_use_runtimelinking=yes
  536. + break
  537. + ;;
  538. + esac
  539. + done
  540. + esac
  541. +
  542. + exp_sym_flag='-bexport'
  543. + no_entry_flag='-bnoentry'
  544. + fi
  545. +
  546. # When large executables or shared objects are built, AIX ld can
  547. # have problems creating the table of contents. If linking a library
  548. # or program results in "error TOC overflow" add -mminimal-toc to
  549. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  550. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  551. + hardcode_direct=yes
  552. archive_cmds=''
  553. hardcode_libdir_separator=':'
  554. if test "$GCC" = yes; then
  555. - collect2name=`${CC} -print-prog-name=collect2`
  556. - if test -f "$collect2name" && \
  557. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  558. - then
  559. - # We have reworked collect2
  560. - hardcode_direct=yes
  561. - else
  562. - # We have old collect2
  563. - hardcode_direct=unsupported
  564. - # It fails to find uninstalled libraries when the uninstalled
  565. - # path is not listed in the libpath. Setting hardcode_minus_L
  566. - # to unsupported forces relinking
  567. - hardcode_minus_L=yes
  568. - hardcode_libdir_flag_spec='-L$libdir'
  569. - hardcode_libdir_separator=
  570. - fi
  571. + case $host_os in aix4.[[012]]|aix4.[[012]].*)
  572. + collect2name=`${CC} -print-prog-name=collect2`
  573. + if test -f "$collect2name" && \
  574. + strings "$collect2name" | grep resolve_lib_name >/dev/null
  575. + then
  576. + # We have reworked collect2
  577. + hardcode_direct=yes
  578. + else
  579. + # We have old collect2
  580. + hardcode_direct=unsupported
  581. + # It fails to find uninstalled libraries when the uninstalled
  582. + # path is not listed in the libpath. Setting hardcode_minus_L
  583. + # to unsupported forces relinking
  584. + hardcode_minus_L=yes
  585. + hardcode_libdir_flag_spec='-L$libdir'
  586. + hardcode_libdir_separator=
  587. + fi
  588. + esac
  589. +
  590. shared_flag='-shared'
  591. else
  592. + # not using gcc
  593. if test "$host_cpu" = ia64; then
  594. - shared_flag='-G'
  595. + shared_flag='${wl}-G'
  596. else
  597. - shared_flag='${wl}-bM:SRE'
  598. + if test "$aix_use_runtimelinking" = yes; then
  599. + shared_flag='${wl}-G'
  600. + else
  601. + shared_flag='${wl}-bM:SRE'
  602. + fi
  603. fi
  604. - hardcode_direct=yes
  605. fi
  606. - if test "$host_cpu" = ia64; then
  607. - # On IA64, the linker does run time linking by default, so we don't
  608. - # have to do anything special.
  609. - aix_use_runtimelinking=no
  610. - exp_sym_flag='-Bexport'
  611. - no_entry_flag=""
  612. - else
  613. - # Test if we are trying to use run time linking, or normal AIX style linking.
  614. - # If -brtl is somewhere in LDFLAGS, we need to do run time linking.
  615. - aix_use_runtimelinking=no
  616. - for ld_flag in $LDFLAGS; do
  617. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl" ); then
  618. - aix_use_runtimelinking=yes
  619. - break
  620. - fi
  621. - done
  622. - exp_sym_flag='-bexport'
  623. - no_entry_flag='-bnoentry'
  624. - fi
  625. # It seems that -bexpall can do strange things, so it is better to
  626. # generate a list of symbols to export.
  627. always_export_symbols=yes
  628. if test "$aix_use_runtimelinking" = yes; then
  629. + # Warning - without using the other runtime loading flags (-brtl),
  630. + # -berok will link without error, but may produce a broken library.
  631. + allow_undefined_flag='-berok'
  632. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
  633. - allow_undefined_flag=' -Wl,-G'
  634. - 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"
  635. + 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"
  636. else
  637. if test "$host_cpu" = ia64; then
  638. - hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  639. - allow_undefined_flag="-znodefs"
  640. - 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"
  641. + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  642. + allow_undefined_flag="-z nodefs"
  643. + 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"
  644. else
  645. - hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
  646. - # Warning - without using the other run time loading flags, -berok will
  647. - # link without error, but may produce a broken library.
  648. - allow_undefined_flag='${wl}-berok'
  649. - # This is a bit strange, but is similar to how AIX traditionally builds
  650. - # it's shared libraries.
  651. - 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'
  652. + hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
  653. + # Warning - without using the other run time loading flags,
  654. + # -berok will link without error, but may produce a broken library.
  655. + allow_undefined_flag='${wl}-berok'
  656. + # This is a bit strange, but is similar to how AIX traditionally builds
  657. + # it's shared libraries.
  658. + 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'
  659. fi
  660. fi
  661. ;;
  662. @@ -1593,11 +1691,19 @@
  663. ;;
  664. darwin* | rhapsody*)
  665. - allow_undefined_flag='-undefined suppress'
  666. + case "$host_os" in
  667. + rhapsody* | darwin1.[[012]])
  668. + allow_undefined_flag='-undefined suppress'
  669. + ;;
  670. + *) # Darwin 1.3 on
  671. + allow_undefined_flag='-flat_namespace -undefined suppress'
  672. + ;;
  673. + esac
  674. # FIXME: Relying on posixy $() will cause problems for
  675. # cross-compilation, but unfortunately the echo tests do not
  676. - # yet detect zsh echo's removal of \ escapes.
  677. - 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)'
  678. + # yet detect zsh echo's removal of \ escapes. Also zsh mangles
  679. + # `"' quotes if we put them in here... so don't!
  680. + 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)'
  681. # We need to add '_' to the symbols in $export_symbols first
  682. #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
  683. hardcode_direct=yes
  684. @@ -1649,13 +1755,14 @@
  685. export_dynamic_flag_spec='${wl}-E'
  686. ;;
  687. - irix5* | irix6*)
  688. + irix5* | irix6* | nonstopux*)
  689. if test "$GCC" = yes; then
  690. 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'
  691. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  692. else
  693. 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'
  694. + hardcode_libdir_flag_spec='-rpath $libdir'
  695. fi
  696. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  697. hardcode_libdir_separator=:
  698. link_all_deplibs=yes
  699. ;;
  700. @@ -1672,7 +1779,7 @@
  701. ;;
  702. newsos6)
  703. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
  704. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  705. hardcode_direct=yes
  706. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  707. hardcode_libdir_separator=:
  708. @@ -1680,10 +1787,24 @@
  709. ;;
  710. openbsd*)
  711. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  712. - hardcode_libdir_flag_spec='-R$libdir'
  713. hardcode_direct=yes
  714. hardcode_shlibpath_var=no
  715. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  716. + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  717. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  718. + export_dynamic_flag_spec='${wl}-E'
  719. + else
  720. + case "$host_os" in
  721. + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  722. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  723. + hardcode_libdir_flag_spec='-R$libdir'
  724. + ;;
  725. + *)
  726. + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  727. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  728. + ;;
  729. + esac
  730. + fi
  731. ;;
  732. os2*)
  733. @@ -1728,10 +1849,39 @@
  734. hardcode_shlibpath_var=no
  735. runpath_var=LD_RUN_PATH
  736. hardcode_runpath_var=yes
  737. + export_dynamic_flag_spec='${wl}-Bexport'
  738. ;;
  739. solaris*)
  740. + # gcc --version < 3.0 without binutils cannot create self contained
  741. + # shared libraries reliably, requiring libgcc.a to resolve some of
  742. + # the object symbols generated in some cases. Libraries that use
  743. + # assert need libgcc.a to resolve __eprintf, for example. Linking
  744. + # a copy of libgcc.a into every shared library to guarantee resolving
  745. + # such symbols causes other problems: According to Tim Van Holder
  746. + # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
  747. + # (to the application) exception stack for one thing.
  748. no_undefined_flag=' -z defs'
  749. + if test "$GCC" = yes; then
  750. + case `$CC --version 2>/dev/null` in
  751. + [[12]].*)
  752. + cat <<EOF 1>&2
  753. +
  754. +*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
  755. +*** create self contained shared libraries on Solaris systems, without
  756. +*** introducing a dependency on libgcc.a. Therefore, libtool is disabling
  757. +*** -no-undefined support, which will at least allow you to build shared
  758. +*** libraries. However, you may find that when you link such libraries
  759. +*** into an application without using GCC, you have to manually add
  760. +*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
  761. +*** upgrade to a newer version of GCC. Another option is to rebuild your
  762. +*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
  763. +
  764. +EOF
  765. + no_undefined_flag=
  766. + ;;
  767. + esac
  768. + fi
  769. # $CC -shared without GNU ld will not create a library from C++
  770. # object files and a static libstdc++, better avoid it by now
  771. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  772. @@ -1740,7 +1890,7 @@
  773. hardcode_libdir_flag_spec='-R$libdir'
  774. hardcode_shlibpath_var=no
  775. case $host_os in
  776. - [solaris2.[0-5] | solaris2.[0-5].*]) ;;
  777. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  778. *) # Supported since Solaris 2.6 (maybe 2.5.1?)
  779. whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
  780. esac
  781. @@ -1762,13 +1912,23 @@
  782. ;;
  783. sysv4)
  784. - if test "x$host_vendor" = xsno; then
  785. - archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linkopts'
  786. - hardcode_direct=yes # is this really true???
  787. - else
  788. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  789. - hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  790. - fi
  791. + case $host_vendor in
  792. + sni)
  793. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  794. + hardcode_direct=yes # is this really true???
  795. + ;;
  796. + siemens)
  797. + ## LD is ld it makes a PLAMLIB
  798. + ## CC just makes a GrossModule.
  799. + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  800. + reload_cmds='$CC -r -o $output$reload_objs'
  801. + hardcode_direct=no
  802. + ;;
  803. + motorola)
  804. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  805. + hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  806. + ;;
  807. + esac
  808. runpath_var='LD_RUN_PATH'
  809. hardcode_shlibpath_var=no
  810. ;;
  811. @@ -1909,6 +2069,9 @@
  812. aix4* | aix5*)
  813. version_type=linux
  814. + need_lib_prefix=no
  815. + need_version=no
  816. + hardcode_into_libs=yes
  817. if test "$host_cpu" = ia64; then
  818. # AIX 5 supports IA64
  819. library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
  820. @@ -1920,22 +2083,24 @@
  821. # depend on `.', always an invalid library. This was fixed in
  822. # development snapshots of GCC prior to 3.0.
  823. case $host_os in
  824. - [ aix4 | aix4.[01] | aix4.[01].*)]
  825. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  826. - echo ' yes '
  827. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  828. - :
  829. - else
  830. - can_build_shared=no
  831. - fi
  832. - ;;
  833. + aix4 | aix4.[[01]] | aix4.[[01]].*)
  834. + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  835. + echo ' yes '
  836. + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  837. + :
  838. + else
  839. + can_build_shared=no
  840. + fi
  841. + ;;
  842. esac
  843. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  844. - # soname into executable. Probably we can add versioning support to
  845. - # collect2, so additional links can be useful in future.
  846. + # AIX (on Power*) has no versioning support, so currently we can
  847. + # not hardcode correct soname into executable. Probably we can
  848. + # add versioning support to collect2, so additional links can
  849. + # be useful in future.
  850. if test "$aix_use_runtimelinking" = yes; then
  851. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so instead of
  852. - # lib<name>.a to let people know that these are not typical AIX shared libraries.
  853. + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  854. + # instead of lib<name>.a to let people know that these are not
  855. + # typical AIX shared libraries.
  856. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  857. else
  858. # We preserve .a as extension for shared libraries through AIX4.2
  859. @@ -1944,14 +2109,14 @@
  860. soname_spec='${libname}${release}.so$major'
  861. fi
  862. shlibpath_var=LIBPATH
  863. - deplibs_check_method=pass_all
  864. fi
  865. + hardcode_into_libs=yes
  866. ;;
  867. amigaos*)
  868. library_names_spec='$libname.ixlibrary $libname.a'
  869. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  870. - 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'
  871. + 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'
  872. ;;
  873. beos*)
  874. @@ -1982,7 +2147,7 @@
  875. case $GCC,$host_os in
  876. yes,cygwin*)
  877. library_names_spec='$libname.dll.a'
  878. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | [sed -e 's/[.]/-/g']`${versuffix}.dll'
  879. + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll'
  880. postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
  881. dldir=$destdir/`dirname \$dlpath`~
  882. test -d \$dldir || mkdir -p \$dldir~
  883. @@ -1992,14 +2157,14 @@
  884. $rm \$dlpath'
  885. ;;
  886. yes,mingw*)
  887. - library_names_spec='${libname}`echo ${release} | [sed -e 's/[.]/-/g']`${versuffix}.dll'
  888. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
  889. + library_names_spec='${libname}`echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll'
  890. + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
  891. ;;
  892. yes,pw32*)
  893. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
  894. ;;
  895. *)
  896. - library_names_spec='${libname}`echo ${release} | [sed -e 's/[.]/-/g']`${versuffix}.dll $libname.lib'
  897. + library_names_spec='${libname}`echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll $libname.lib'
  898. ;;
  899. esac
  900. dynamic_linker='Win32 ld.exe'
  901. @@ -2025,6 +2190,18 @@
  902. dynamic_linker=no
  903. ;;
  904. +freebsd*-gnu*)
  905. + version_type=linux
  906. + need_lib_prefix=no
  907. + need_version=no
  908. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  909. + soname_spec='${libname}${release}.so$major'
  910. + shlibpath_var=LD_LIBRARY_PATH
  911. + shlibpath_overrides_runpath=no
  912. + hardcode_into_libs=yes
  913. + dynamic_linker='GNU/FreeBSD ld.so'
  914. + ;;
  915. +
  916. freebsd*)
  917. objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  918. version_type=freebsd-$objformat
  919. @@ -2076,14 +2253,17 @@
  920. postinstall_cmds='chmod 555 $lib'
  921. ;;
  922. -irix5* | irix6*)
  923. - version_type=irix
  924. +irix5* | irix6* | nonstopux*)
  925. + case $host_os in
  926. + nonstopux*) version_type=nonstopux ;;
  927. + *) version_type=irix ;;
  928. + esac
  929. need_lib_prefix=no
  930. need_version=no
  931. soname_spec='${libname}${release}.so$major'
  932. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
  933. case $host_os in
  934. - irix5*)
  935. + irix5* | nonstopux*)
  936. libsuff= shlibsuff=
  937. ;;
  938. *)
  939. @@ -2157,9 +2337,19 @@
  940. openbsd*)
  941. version_type=sunos
  942. - if test "$with_gnu_ld" = yes; then
  943. - need_lib_prefix=no
  944. - need_version=no
  945. + need_lib_prefix=no
  946. + need_version=no
  947. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  948. + case "$host_os" in
  949. + openbsd2.[[89]] | openbsd2.[[89]].*)
  950. + shlibpath_overrides_runpath=no
  951. + ;;
  952. + *)
  953. + shlibpath_overrides_runpath=yes
  954. + ;;
  955. + esac
  956. + else
  957. + shlibpath_overrides_runpath=yes
  958. fi
  959. library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
  960. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  961. @@ -2177,11 +2367,13 @@
  962. osf3* | osf4* | osf5*)
  963. version_type=osf
  964. need_version=no
  965. - soname_spec='${libname}${release}.so'
  966. - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
  967. + need_lib_prefix=no
  968. + soname_spec='${libname}${release}.so$major'
  969. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  970. shlibpath_var=LD_LIBRARY_PATH
  971. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  972. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  973. + hardcode_into_libs=yes
  974. ;;
  975. sco3.2v5*)
  976. @@ -2224,6 +2416,12 @@
  977. case $host_vendor in
  978. sni)
  979. shlibpath_overrides_runpath=no
  980. + need_lib_prefix=no
  981. + export_dynamic_flag_spec='${wl}-Blargedynsym'
  982. + runpath_var=LD_RUN_PATH
  983. + ;;
  984. + siemens)
  985. + need_lib_prefix=no
  986. ;;
  987. motorola)
  988. need_lib_prefix=no
  989. @@ -2270,6 +2468,33 @@
  990. AC_MSG_CHECKING([if libtool supports shared libraries])
  991. AC_MSG_RESULT([$can_build_shared])
  992. +AC_MSG_CHECKING([whether to build shared libraries])
  993. +test "$can_build_shared" = "no" && enable_shared=no
  994. +
  995. +# On AIX, shared libraries and static libraries use the same namespace, and
  996. +# are all built from PIC.
  997. +case "$host_os" in
  998. +aix3*)
  999. + test "$enable_shared" = yes && enable_static=no
  1000. + if test -n "$RANLIB"; then
  1001. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  1002. + postinstall_cmds='$RANLIB $lib'
  1003. + fi
  1004. + ;;
  1005. +
  1006. +aix4*)
  1007. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  1008. + test "$enable_shared" = yes && enable_static=no
  1009. + fi
  1010. + ;;
  1011. +esac
  1012. +AC_MSG_RESULT([$enable_shared])
  1013. +
  1014. +AC_MSG_CHECKING([whether to build static libraries])
  1015. +# Make sure either enable_shared or enable_static is yes.
  1016. +test "$enable_shared" = yes || enable_static=yes
  1017. +AC_MSG_RESULT([$enable_static])
  1018. +
  1019. if test "$hardcode_action" = relink; then
  1020. # Fast installation is not supported
  1021. enable_fast_install=no
  1022. @@ -2351,7 +2576,7 @@
  1023. # Now quote all the things that may contain metacharacters while being
  1024. # careful not to overquote the AC_SUBSTed values. We take copies of the
  1025. # variables and quote the copies for generation of the libtool script.
  1026. - for var in echo old_CC old_CFLAGS \
  1027. + for var in echo old_CC old_CFLAGS SED \
  1028. AR AR_FLAGS CC LD LN_S NM SHELL \
  1029. reload_flag reload_cmds wl \
  1030. pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
  1031. @@ -2363,6 +2588,7 @@
  1032. old_striplib striplib file_magic_cmd export_symbols_cmds \
  1033. deplibs_check_method allow_undefined_flag no_undefined_flag \
  1034. finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
  1035. + global_symbol_to_c_name_address \
  1036. hardcode_libdir_flag_spec hardcode_libdir_separator \
  1037. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  1038. compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
  1039. @@ -2412,8 +2638,11 @@
  1040. # configuration script generated by Autoconf, you may include it under
  1041. # the same distribution terms that you use for the rest of that program.
  1042. +# A sed that does not truncate output.
  1043. +SED=$lt_SED
  1044. +
  1045. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  1046. -Xsed="sed -e s/^X//"
  1047. +Xsed="${SED} -e s/^X//"
  1048. # The HP-UX ksh and POSIX shell print the target directory to stdout
  1049. # if CDPATH is set.
  1050. @@ -2429,12 +2658,12 @@
  1051. # Whether or not to build shared libraries.
  1052. build_libtool_libs=$enable_shared
  1053. -# Whether or not to add -lc for building shared libraries.
  1054. -build_libtool_need_lc=$need_lc
  1055. -
  1056. # Whether or not to build static libraries.
  1057. build_old_libs=$enable_static
  1058. +# Whether or not to add -lc for building shared libraries.
  1059. +build_libtool_need_lc=$need_lc
  1060. +
  1061. # Whether or not to optimize for fast installation.
  1062. fast_install=$enable_fast_install
  1063. @@ -2600,6 +2829,9 @@
  1064. # Transform the output of nm in a proper C declaration
  1065. global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
  1066. +# Transform the output of nm in a C name address pair
  1067. +global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
  1068. +
  1069. # This is the shared library runtime path variable.
  1070. runpath_var=$runpath_var
  1071. @@ -2722,9 +2954,9 @@
  1072. # return TRUE;
  1073. # }
  1074. # /* ltdll.c ends here */
  1075. - # This is a source program that is used to create import libraries
  1076. - # on Windows for dlls which lack them. Don't remove nor modify the
  1077. - # starting and closing comments
  1078. + # This is a source program that is used to create import libraries
  1079. + # on Windows for dlls which lack them. Don't remove nor modify the
  1080. + # starting and closing comments
  1081. # /* impgen.c starts here */
  1082. # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
  1083. #
  1084. @@ -3079,6 +3311,7 @@
  1085. AC_REQUIRE([AC_PROG_CC])dnl
  1086. AC_REQUIRE([AC_CANONICAL_HOST])dnl
  1087. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  1088. +AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl
  1089. ac_prog=ld
  1090. if test "$GCC" = yes; then
  1091. # Check if gcc -print-prog-name=ld gives a path.
  1092. @@ -3092,8 +3325,8 @@
  1093. esac
  1094. case $ac_prog in
  1095. # Accept absolute paths.
  1096. - [[\\/]* | [A-Za-z]:[\\/]*)]
  1097. - [re_direlt='/[^/][^/]*/\.\./']
  1098. + [[\\/]]* | [[A-Za-z]]:[[\\/]]*)
  1099. + re_direlt='/[[^/]][[^/]]*/\.\./'
  1100. # Canonicalize the path of ld
  1101. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  1102. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  1103. @@ -3117,7 +3350,7 @@
  1104. fi
  1105. AC_CACHE_VAL(lt_cv_path_LD,
  1106. [if test -z "$LD"; then
  1107. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  1108. + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  1109. for ac_dir in $PATH; do
  1110. test -z "$ac_dir" && ac_dir=.
  1111. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  1112. @@ -3170,7 +3403,7 @@
  1113. # AC_DEPLIBS_CHECK_METHOD - how to check for library dependencies
  1114. # -- PORTME fill in with the dynamic library characteristics
  1115. AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
  1116. -[AC_CACHE_CHECK([how to recognise dependant libraries],
  1117. +[AC_CACHE_CHECK([how to recognise dependent libraries],
  1118. lt_cv_deplibs_check_method,
  1119. [lt_cv_file_magic_cmd='$MAGIC_CMD'
  1120. lt_cv_file_magic_test_file=
  1121. @@ -3181,7 +3414,7 @@
  1122. # `unknown' -- same as none, but documents that we really don't know.
  1123. # 'pass_all' -- all dependencies passed with no checks.
  1124. # 'test_compile' -- check by making test program.
  1125. -# ['file_magic [regex]'] -- check by looking for files in library path
  1126. +# 'file_magic [[regex]]' -- check by looking for files in library path
  1127. # which responds to the $file_magic_cmd with a given egrep regex.
  1128. # If you have `file' or equivalent on your system and you're not sure
  1129. # whether `pass_all' will *always* work, you probably want this one.
  1130. @@ -3196,7 +3429,7 @@
  1131. ;;
  1132. bsdi4*)
  1133. - [lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)']
  1134. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
  1135. lt_cv_file_magic_cmd='/usr/bin/file -L'
  1136. lt_cv_file_magic_test_file=/shlib/libc.so
  1137. ;;
  1138. @@ -3210,7 +3443,7 @@
  1139. lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
  1140. lt_cv_file_magic_cmd='/usr/bin/file -L'
  1141. case "$host_os" in
  1142. - rhapsody* | darwin1.[012])
  1143. + rhapsody* | darwin1.[[012]])
  1144. lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
  1145. ;;
  1146. *) # Darwin 1.3 on
  1147. @@ -3225,7 +3458,7 @@
  1148. i*86 )
  1149. # Not sure whether the presence of OpenBSD here was a mistake.
  1150. # Let's accept both of them until this is cleared up.
  1151. - [lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library']
  1152. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
  1153. lt_cv_file_magic_cmd=/usr/bin/file
  1154. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  1155. ;;
  1156. @@ -3240,14 +3473,14 @@
  1157. ;;
  1158. hpux10.20*|hpux11*)
  1159. - [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library']
  1160. + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
  1161. lt_cv_file_magic_cmd=/usr/bin/file
  1162. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  1163. ;;
  1164. -irix5* | irix6*)
  1165. +irix5* | irix6* | nonstopux*)
  1166. case $host_os in
  1167. - irix5*)
  1168. + irix5* | nonstopux*)
  1169. # this will be overridden with pass_all, but let us keep it just in case
  1170. lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
  1171. ;;
  1172. @@ -3259,7 +3492,7 @@
  1173. *) libmagic=never-match;;
  1174. esac
  1175. # this will be overridden with pass_all, but let us keep it just in case
  1176. - [lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"]
  1177. + lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[[1234]] dynamic lib MIPS - version 1"
  1178. ;;
  1179. esac
  1180. lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
  1181. @@ -3269,29 +3502,39 @@
  1182. # This must be Linux ELF.
  1183. linux-gnu*)
  1184. case $host_cpu in
  1185. - alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* | s390* )
  1186. + alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | arm* | m68k)
  1187. lt_cv_deplibs_check_method=pass_all ;;
  1188. *)
  1189. # glibc up to 2.1.1 does not perform some relocations on ARM
  1190. - [lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;]
  1191. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;;
  1192. esac
  1193. lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
  1194. ;;
  1195. netbsd*)
  1196. if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  1197. - [lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$']
  1198. + lt_cv_deplibs_check_method='match_pattern /lib[[^/\.]]+\.so\.[[0-9]]+\.[[0-9]]+$'
  1199. else
  1200. - [lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$']
  1201. + lt_cv_deplibs_check_method='match_pattern /lib[[^/\.]]+\.so$'
  1202. fi
  1203. ;;
  1204. newos6*)
  1205. - [lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)']
  1206. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
  1207. lt_cv_file_magic_cmd=/usr/bin/file
  1208. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  1209. ;;
  1210. +openbsd*)
  1211. + lt_cv_file_magic_cmd=/usr/bin/file
  1212. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  1213. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  1214. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'
  1215. + else
  1216. + lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
  1217. + fi
  1218. + ;;
  1219. +
  1220. osf3* | osf4* | osf5*)
  1221. # this will be overridden with pass_all, but let us keep it just in case
  1222. lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
  1223. @@ -3308,14 +3551,14 @@
  1224. lt_cv_file_magic_test_file=/lib/libc.so
  1225. ;;
  1226. -[sysv5uw[78]* | sysv4*uw2*)]
  1227. +sysv5uw[[78]]* | sysv4*uw2*)
  1228. lt_cv_deplibs_check_method=pass_all
  1229. ;;
  1230. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  1231. case $host_vendor in
  1232. motorola)
  1233. - [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]']
  1234. + 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]]'
  1235. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  1236. ;;
  1237. ncr)
  1238. @@ -3323,13 +3566,16 @@
  1239. ;;
  1240. sequent)
  1241. lt_cv_file_magic_cmd='/bin/file'
  1242. - [lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )']
  1243. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
  1244. ;;
  1245. sni)
  1246. lt_cv_file_magic_cmd='/bin/file'
  1247. - [lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"]
  1248. + lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
  1249. lt_cv_file_magic_test_file=/lib/libc.so
  1250. ;;
  1251. + siemens)
  1252. + lt_cv_deplibs_check_method=pass_all
  1253. + ;;
  1254. esac
  1255. ;;
  1256. esac
  1257. @@ -3341,13 +3587,14 @@
  1258. # AC_PROG_NM - find the path to a BSD-compatible name lister
  1259. AC_DEFUN([AC_PROG_NM],
  1260. -[AC_MSG_CHECKING([for BSD-compatible nm])
  1261. +[AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl
  1262. +AC_MSG_CHECKING([for BSD-compatible nm])
  1263. AC_CACHE_VAL(lt_cv_path_NM,
  1264. [if test -n "$NM"; then
  1265. # Let the user override the test.
  1266. lt_cv_path_NM="$NM"
  1267. else
  1268. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  1269. + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  1270. for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
  1271. test -z "$ac_dir" && ac_dir=.
  1272. tmp_nm=$ac_dir/${ac_tool_prefix}nm
  1273. @@ -3394,12 +3641,12 @@
  1274. ])
  1275. # AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
  1276. -# the libltdl convenience library and INCLTDL to the include flags for
  1277. +# the libltdl convenience library and LTDLINCL to the include flags for
  1278. # the libltdl header and adds --enable-ltdl-convenience to the
  1279. -# configure arguments. Note that LIBLTDL and INCLTDL are not
  1280. +# configure arguments. Note that LIBLTDL and LTDLINCL are not
  1281. # AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If DIR is not
  1282. # provided, it is assumed to be `libltdl'. LIBLTDL will be prefixed
  1283. -# with '${top_builddir}/' and INCLTDL will be prefixed with
  1284. +# with '${top_builddir}/' and LTDLINCL will be prefixed with
  1285. # '${top_srcdir}/' (note the single quotes!). If your package is not
  1286. # flat and you're not using automake, define top_builddir and
  1287. # top_srcdir appropriately in the Makefiles.
  1288. @@ -3411,16 +3658,18 @@
  1289. ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
  1290. esac
  1291. LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
  1292. - INCLTDL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  1293. + LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  1294. + # For backwards non-gettext consistent compatibility...
  1295. + INCLTDL="$LTDLINCL"
  1296. ])
  1297. # AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
  1298. -# the libltdl installable library and INCLTDL to the include flags for
  1299. +# the libltdl installable library and LTDLINCL to the include flags for
  1300. # the libltdl header and adds --enable-ltdl-install to the configure
  1301. -# arguments. Note that LIBLTDL and INCLTDL are not AC_SUBSTed, nor is
  1302. +# arguments. Note that LIBLTDL and LTDLINCL are not AC_SUBSTed, nor is
  1303. # AC_CONFIG_SUBDIRS called. If DIR is not provided and an installed
  1304. # libltdl is not found, it is assumed to be `libltdl'. LIBLTDL will
  1305. -# be prefixed with '${top_builddir}/' and INCLTDL will be prefixed
  1306. +# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed
  1307. # with '${top_srcdir}/' (note the single quotes!). If your package is
  1308. # not flat and you're not using automake, define top_builddir and
  1309. # top_srcdir appropriately in the Makefiles.
  1310. @@ -3438,12 +3687,14 @@
  1311. if test x"$enable_ltdl_install" = x"yes"; then
  1312. ac_configure_args="$ac_configure_args --enable-ltdl-install"
  1313. LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
  1314. - INCLTDL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  1315. + LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  1316. else
  1317. ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
  1318. LIBLTDL="-lltdl"
  1319. - INCLTDL=
  1320. + LTDLINCL=
  1321. fi
  1322. + # For backwards non-gettext consistent compatibility...
  1323. + INCLTDL="$LTDLINCL"
  1324. ])
  1325. # old names
  1326. @@ -3458,3 +3709,92 @@
  1327. # This is just to silence aclocal about the macro not being used
  1328. ifelse([AC_DISABLE_FAST_INSTALL])
  1329. +# NOTE: This macro has been submitted for inclusion into #
  1330. +# GNU Autoconf as AC_PROG_SED. When it is available in #
  1331. +# a released version of Autoconf we should remove this #
  1332. +# macro and use it instead. #
  1333. +# LT_AC_PROG_SED
  1334. +# --------------
  1335. +# Check for a fully-functional sed program, that truncates
  1336. +# as few characters as possible. Prefer GNU sed if found.
  1337. +AC_DEFUN([LT_AC_PROG_SED],
  1338. +[AC_MSG_CHECKING([for a sed that does not truncate output])
  1339. +AC_CACHE_VAL(lt_cv_path_SED,
  1340. +[# Loop through the user's path and test for sed and gsed.
  1341. +# Then use that list of sed's as ones to test for truncation.
  1342. +as_executable_p="test -f"
  1343. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1344. +for as_dir in $PATH
  1345. +do
  1346. + IFS=$as_save_IFS
  1347. + test -z "$as_dir" && as_dir=.
  1348. + for ac_prog in sed gsed; do
  1349. + for ac_exec_ext in '' $ac_executable_extensions; do
  1350. + if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  1351. + _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
  1352. + fi
  1353. + done
  1354. + done
  1355. +done
  1356. +
  1357. + # Create a temporary directory, and hook for its removal unless debugging.
  1358. +$debug ||
  1359. +{
  1360. + trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  1361. + trap '{ (exit 1); exit 1; }' 1 2 13 15
  1362. +}
  1363. +
  1364. +# Create a (secure) tmp directory for tmp files.
  1365. +: ${TMPDIR=/tmp}
  1366. +{
  1367. + tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
  1368. + test -n "$tmp" && test -d "$tmp"
  1369. +} ||
  1370. +{
  1371. + tmp=$TMPDIR/sed$$-$RANDOM
  1372. + (umask 077 && mkdir $tmp)
  1373. +} ||
  1374. +{
  1375. + echo "$me: cannot create a temporary directory in $TMPDIR" >&2
  1376. + { (exit 1); exit 1; }
  1377. +}
  1378. + _max=0
  1379. + _count=0
  1380. + # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  1381. + # along with /bin/sed that truncates output.
  1382. + for _sed in $_sed_list /usr/xpg4/bin/sed; do
  1383. + test ! -f ${_sed} && break
  1384. + cat /dev/null > "$tmp/sed.in"
  1385. + _count=0
  1386. + echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
  1387. + # Check for GNU sed and select it if it is found.
  1388. + if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
  1389. + lt_cv_path_SED=${_sed}
  1390. + break
  1391. + fi
  1392. + while true; do
  1393. + cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
  1394. + mv "$tmp/sed.tmp" "$tmp/sed.in"
  1395. + cp "$tmp/sed.in" "$tmp/sed.nl"
  1396. + echo >>"$tmp/sed.nl"
  1397. + ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
  1398. + cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
  1399. + # 40000 chars as input seems more than enough
  1400. + test $_count -gt 10 && break
  1401. + _count=`expr $_count + 1`
  1402. + if test $_count -gt $_max; then
  1403. + _max=$_count
  1404. + lt_cv_path_SED=$_sed
  1405. + fi
  1406. + done
  1407. + done
  1408. + rm -rf "$tmp"
  1409. +])
  1410. +if test "X$SED" != "X"; then
  1411. + lt_cv_path_SED=$SED
  1412. +else
  1413. + SED=$lt_cv_path_SED
  1414. +fi
  1415. +AC_MSG_RESULT([$SED])
  1416. +])
  1417. +
  1418. --- linux-atm-2.4.1.orig/config.guess
  1419. +++ linux-atm-2.4.1/config.guess
  1420. @@ -1,9 +1,9 @@
  1421. #! /bin/sh
  1422. # Attempt to guess a canonical system name.
  1423. -# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
  1424. -# Free Software Foundation, Inc.
  1425. +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
  1426. +# 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
  1427. -timestamp='2001-04-20'
  1428. +timestamp='2003-05-19'
  1429. # This file is free software; you can redistribute it and/or modify it
  1430. # under the terms of the GNU General Public License as published by
  1431. @@ -24,8 +24,9 @@
  1432. # configuration script generated by Autoconf, you may include it under
  1433. # the same distribution terms that you use for the rest of that program.
  1434. -# Written by Per Bothner <bothner@cygnus.com>.
  1435. -# Please send patches to <config-patches@gnu.org>.
  1436. +# Originally written by Per Bothner <per@bothner.com>.
  1437. +# Please send patches to <config-patches@gnu.org>. Submit a context
  1438. +# diff and a properly formatted ChangeLog entry.
  1439. #
  1440. # This script attempts to guess a canonical system name similar to
  1441. # config.sub. If it succeeds, it prints the system name on stdout, and
  1442. @@ -52,7 +53,7 @@
  1443. GNU config.guess ($timestamp)
  1444. Originally written by Per Bothner.
  1445. -Copyright (C) 1992, 93, 94, 95, 96, 97, 98, 99, 2000
  1446. +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
  1447. Free Software Foundation, Inc.
  1448. This is free software; see the source for copying conditions. There is NO
  1449. @@ -87,33 +88,44 @@
  1450. exit 1
  1451. fi
  1452. +trap 'exit 1' 1 2 15
  1453. -dummy=dummy-$$
  1454. -trap 'rm -f $dummy.c $dummy.o $dummy.rel $dummy; exit 1' 1 2 15
  1455. +# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
  1456. +# compiler to aid in system detection is discouraged as it requires
  1457. +# temporary files to be created and, as you can see below, it is a
  1458. +# headache to deal with in a portable fashion.
  1459. -# CC_FOR_BUILD -- compiler used by this script.
  1460. # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
  1461. # use `HOST_CC' if defined, but it is deprecated.
  1462. +# Portable tmp directory creation inspired by the Autoconf team.
  1463. +
  1464. +set_cc_for_build='
  1465. +trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
  1466. +trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
  1467. +: ${TMPDIR=/tmp} ;
  1468. + { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
  1469. + { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
  1470. + { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
  1471. +dummy=$tmp/dummy ;
  1472. +tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
  1473. case $CC_FOR_BUILD,$HOST_CC,$CC in
  1474. - ,,) echo "int dummy(){}" > $dummy.c
  1475. - for c in cc gcc c89 ; do
  1476. - ($c $dummy.c -c -o $dummy.o) >/dev/null 2>&1
  1477. - if test $? = 0 ; then
  1478. - CC_FOR_BUILD="$c"; break
  1479. - fi
  1480. - done
  1481. - rm -f $dummy.c $dummy.o $dummy.rel
  1482. + ,,) echo "int x;" > $dummy.c ;
  1483. + for c in cc gcc c89 c99 ; do
  1484. + if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
  1485. + CC_FOR_BUILD="$c"; break ;
  1486. + fi ;
  1487. + done ;
  1488. if test x"$CC_FOR_BUILD" = x ; then
  1489. - CC_FOR_BUILD=no_compiler_found
  1490. + CC_FOR_BUILD=no_compiler_found ;
  1491. fi
  1492. ;;
  1493. ,,*) CC_FOR_BUILD=$CC ;;
  1494. ,*,*) CC_FOR_BUILD=$HOST_CC ;;
  1495. -esac
  1496. +esac ;'
  1497. # This is needed to find uname on a Pyramid OSx when run in the BSD universe.
  1498. -# (ghazi@noc.rutgers.edu 8/24/94.)
  1499. +# (ghazi@noc.rutgers.edu 1994-08-24)
  1500. if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
  1501. PATH=$PATH:/.attbin ; export PATH
  1502. fi
  1503. @@ -127,29 +139,31 @@
  1504. case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
  1505. *:NetBSD:*:*)
  1506. - # Netbsd (nbsd) targets should (where applicable) match one or
  1507. + # NetBSD (nbsd) targets should (where applicable) match one or
  1508. # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
  1509. # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
  1510. # switched to ELF, *-*-netbsd* would select the old
  1511. # object file format. This provides both forward
  1512. # compatibility and a consistent mechanism for selecting the
  1513. # object file format.
  1514. - # Determine the machine/vendor (is the vendor relevant).
  1515. - case "${UNAME_MACHINE}" in
  1516. - amiga) machine=m68k-unknown ;;
  1517. - arm32) machine=arm-unknown ;;
  1518. - atari*) machine=m68k-atari ;;
  1519. - sun3*) machine=m68k-sun ;;
  1520. - mac68k) machine=m68k-apple ;;
  1521. - macppc) machine=powerpc-apple ;;
  1522. - hp3[0-9][05]) machine=m68k-hp ;;
  1523. - ibmrt|romp-ibm) machine=romp-ibm ;;
  1524. - *) machine=${UNAME_MACHINE}-unknown ;;
  1525. + #
  1526. + # Note: NetBSD doesn't particularly care about the vendor
  1527. + # portion of the name. We always set it to "unknown".
  1528. + sysctl="sysctl -n hw.machine_arch"
  1529. + UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
  1530. + /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
  1531. + case "${UNAME_MACHINE_ARCH}" in
  1532. + armeb) machine=armeb-unknown ;;
  1533. + arm*) machine=arm-unknown ;;
  1534. + sh3el) machine=shl-unknown ;;
  1535. + sh3eb) machine=sh-unknown ;;
  1536. + *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
  1537. esac
  1538. # The Operating System including object format, if it has switched
  1539. # to ELF recently, or will in the future.
  1540. - case "${UNAME_MACHINE}" in
  1541. - i386|sparc|amiga|arm*|hp300|mvme68k|vax|atari|luna68k|mac68k|news68k|next68k|pc532|sun3*|x68k)
  1542. + case "${UNAME_MACHINE_ARCH}" in
  1543. + arm*|i386|m68k|ns32k|sh3*|sparc|vax)
  1544. + eval $set_cc_for_build
  1545. if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
  1546. | grep __ELF__ >/dev/null
  1547. then
  1548. @@ -165,69 +179,107 @@
  1549. ;;
  1550. esac
  1551. # The OS release
  1552. - release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
  1553. + # Debian GNU/NetBSD machines have a different userland, and
  1554. + # thus, need a distinct triplet. However, they do not need
  1555. + # kernel version information, so it can be replaced with a
  1556. + # suitable tag, in the style of linux-gnu.
  1557. + case "${UNAME_VERSION}" in
  1558. + Debian*)
  1559. + release='-gnu'
  1560. + ;;
  1561. + *)
  1562. + release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
  1563. + ;;
  1564. + esac
  1565. # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
  1566. # contains redundant information, the shorter form:
  1567. # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
  1568. echo "${machine}-${os}${release}"
  1569. exit 0 ;;
  1570. + amiga:OpenBSD:*:*)
  1571. + echo m68k-unknown-openbsd${UNAME_RELEASE}
  1572. + exit 0 ;;
  1573. + arc:OpenBSD:*:*)
  1574. + echo mipsel-unknown-openbsd${UNAME_RELEASE}
  1575. + exit 0 ;;
  1576. + hp300:OpenBSD:*:*)
  1577. + echo m68k-unknown-openbsd${UNAME_RELEASE}
  1578. + exit 0 ;;
  1579. + mac68k:OpenBSD:*:*)
  1580. + echo m68k-unknown-openbsd${UNAME_RELEASE}
  1581. + exit 0 ;;
  1582. + macppc:OpenBSD:*:*)
  1583. + echo powerpc-unknown-openbsd${UNAME_RELEASE}
  1584. + exit 0 ;;
  1585. + mvme68k:OpenBSD:*:*)
  1586. + echo m68k-unknown-openbsd${UNAME_RELEASE}
  1587. + exit 0 ;;
  1588. + mvme88k:OpenBSD:*:*)
  1589. + echo m88k-unknown-openbsd${UNAME_RELEASE}
  1590. + exit 0 ;;
  1591. + mvmeppc:OpenBSD:*:*)
  1592. + echo powerpc-unknown-openbsd${UNAME_RELEASE}
  1593. + exit 0 ;;
  1594. + pmax:OpenBSD:*:*)
  1595. + echo mipsel-unknown-openbsd${UNAME_RELEASE}
  1596. + exit 0 ;;
  1597. + sgi:OpenBSD:*:*)
  1598. + echo mipseb-unknown-openbsd${UNAME_RELEASE}
  1599. + exit 0 ;;
  1600. + sun3:OpenBSD:*:*)
  1601. + echo m68k-unknown-openbsd${UNAME_RELEASE}
  1602. + exit 0 ;;
  1603. + wgrisc:OpenBSD:*:*)
  1604. + echo mipsel-unknown-openbsd${UNAME_RELEASE}
  1605. + exit 0 ;;
  1606. + *:OpenBSD:*:*)
  1607. + echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
  1608. + exit 0 ;;
  1609. alpha:OSF1:*:*)
  1610. if test $UNAME_RELEASE = "V4.0"; then
  1611. UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
  1612. fi
  1613. + # According to Compaq, /usr/sbin/psrinfo has been available on
  1614. + # OSF/1 and Tru64 systems produced since 1995. I hope that
  1615. + # covers most systems running today. This code pipes the CPU
  1616. + # types through head -n 1, so we only detect the type of CPU 0.
  1617. + ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
  1618. + case "$ALPHA_CPU_TYPE" in
  1619. + "EV4 (21064)")
  1620. + UNAME_MACHINE="alpha" ;;
  1621. + "EV4.5 (21064)")
  1622. + UNAME_MACHINE="alpha" ;;
  1623. + "LCA4 (21066/21068)")
  1624. + UNAME_MACHINE="alpha" ;;
  1625. + "EV5 (21164)")
  1626. + UNAME_MACHINE="alphaev5" ;;
  1627. + "EV5.6 (21164A)")
  1628. + UNAME_MACHINE="alphaev56" ;;
  1629. + "EV5.6 (21164PC)")
  1630. + UNAME_MACHINE="alphapca56" ;;
  1631. + "EV5.7 (21164PC)")
  1632. + UNAME_MACHINE="alphapca57" ;;
  1633. + "EV6 (21264)")
  1634. + UNAME_MACHINE="alphaev6" ;;
  1635. + "EV6.7 (21264A)")
  1636. + UNAME_MACHINE="alphaev67" ;;
  1637. + "EV6.8CB (21264C)")
  1638. + UNAME_MACHINE="alphaev68" ;;
  1639. + "EV6.8AL (21264B)")
  1640. + UNAME_MACHINE="alphaev68" ;;
  1641. + "EV6.8CX (21264D)")
  1642. + UNAME_MACHINE="alphaev68" ;;
  1643. + "EV6.9A (21264/EV69A)")
  1644. + UNAME_MACHINE="alphaev69" ;;
  1645. + "EV7 (21364)")
  1646. + UNAME_MACHINE="alphaev7" ;;
  1647. + "EV7.9 (21364A)")
  1648. + UNAME_MACHINE="alphaev79" ;;
  1649. + esac
  1650. # A Vn.n version is a released version.
  1651. # A Tn.n version is a released field test version.
  1652. # A Xn.n version is an unreleased experimental baselevel.
  1653. # 1.2 uses "1.2" for uname -r.
  1654. - cat <<EOF >$dummy.s
  1655. - .data
  1656. -\$Lformat:
  1657. - .byte 37,100,45,37,120,10,0 # "%d-%x\n"
  1658. -
  1659. - .text
  1660. - .globl main
  1661. - .align 4
  1662. - .ent main
  1663. -main:
  1664. - .frame \$30,16,\$26,0
  1665. - ldgp \$29,0(\$27)
  1666. - .prologue 1
  1667. - .long 0x47e03d80 # implver \$0
  1668. - lda \$2,-1
  1669. - .long 0x47e20c21 # amask \$2,\$1
  1670. - lda \$16,\$Lformat
  1671. - mov \$0,\$17
  1672. - not \$1,\$18
  1673. - jsr \$26,printf
  1674. - ldgp \$29,0(\$26)
  1675. - mov 0,\$16
  1676. - jsr \$26,exit
  1677. - .end main
  1678. -EOF
  1679. - $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null
  1680. - if test "$?" = 0 ; then
  1681. - case `./$dummy` in
  1682. - 0-0)
  1683. - UNAME_MACHINE="alpha"
  1684. - ;;
  1685. - 1-0)
  1686. - UNAME_MACHINE="alphaev5"
  1687. - ;;
  1688. - 1-1)
  1689. - UNAME_MACHINE="alphaev56"
  1690. - ;;
  1691. - 1-101)
  1692. - UNAME_MACHINE="alphapca56"
  1693. - ;;
  1694. - 2-303)
  1695. - UNAME_MACHINE="alphaev6"
  1696. - ;;
  1697. - 2-307)
  1698. - UNAME_MACHINE="alphaev67"
  1699. - ;;
  1700. - esac
  1701. - fi
  1702. - rm -f $dummy.s $dummy
  1703. echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
  1704. exit 0 ;;
  1705. Alpha\ *:Windows_NT*:*)
  1706. @@ -242,29 +294,11 @@
  1707. Amiga*:UNIX_System_V:4.0:*)
  1708. echo m68k-unknown-sysv4
  1709. exit 0;;
  1710. - amiga:OpenBSD:*:*)
  1711. - echo m68k-unknown-openbsd${UNAME_RELEASE}
  1712. - exit 0 ;;
  1713. *:[Aa]miga[Oo][Ss]:*:*)
  1714. echo ${UNAME_MACHINE}-unknown-amigaos
  1715. exit 0 ;;
  1716. - arc64:OpenBSD:*:*)
  1717. - echo mips64el-unknown-openbsd${UNAME_RELEASE}
  1718. - exit 0 ;;
  1719. - arc:OpenBSD:*:*)
  1720. - echo mipsel-unknown-openbsd${UNAME_RELEASE}
  1721. - exit 0 ;;
  1722. - hkmips:OpenBSD:*:*)
  1723. - echo mips-unknown-openbsd${UNAME_RELEASE}
  1724. - exit 0 ;;
  1725. - pmax:OpenBSD:*:*)
  1726. - echo mipsel-unknown-openbsd${UNAME_RELEASE}
  1727. - exit 0 ;;
  1728. - sgi:OpenBSD:*:*)
  1729. - echo mips-unknown-openbsd${UNAME_RELEASE}
  1730. - exit 0 ;;
  1731. - wgrisc:OpenBSD:*:*)
  1732. - echo mipsel-unknown-openbsd${UNAME_RELEASE}
  1733. + *:[Mm]orph[Oo][Ss]:*:*)
  1734. + echo ${UNAME_MACHINE}-unknown-morphos
  1735. exit 0 ;;
  1736. *:OS/390:*:*)
  1737. echo i370-ibm-openedition
  1738. @@ -286,6 +320,10 @@
  1739. NILE*:*:*:dcosx)
  1740. echo pyramid-pyramid-svr4
  1741. exit 0 ;;
  1742. + DRS?6000:UNIX_SV:4.2*:7*)
  1743. + case `/usr/bin/uname -p` in
  1744. + sparc) echo sparc-icl-nx7 && exit 0 ;;
  1745. + esac ;;
  1746. sun4H:SunOS:5.*:*)
  1747. echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  1748. exit 0 ;;
  1749. @@ -314,7 +352,7 @@
  1750. echo m68k-sun-sunos${UNAME_RELEASE}
  1751. exit 0 ;;
  1752. sun*:*:4.2BSD:*)
  1753. - UNAME_RELEASE=`(head -1 /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
  1754. + UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
  1755. test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
  1756. case "`/bin/arch`" in
  1757. sun3)
  1758. @@ -328,9 +366,6 @@
  1759. aushp:SunOS:*:*)
  1760. echo sparc-auspex-sunos${UNAME_RELEASE}
  1761. exit 0 ;;
  1762. - atari*:OpenBSD:*:*)
  1763. - echo m68k-unknown-openbsd${UNAME_RELEASE}
  1764. - exit 0 ;;
  1765. # The situation for MiNT is a little confusing. The machine name
  1766. # can be virtually everything (everything which is not
  1767. # "atarist" or "atariste" at least should have a processor
  1768. @@ -357,18 +392,6 @@
  1769. *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
  1770. echo m68k-unknown-mint${UNAME_RELEASE}
  1771. exit 0 ;;
  1772. - sun3*:OpenBSD:*:*)
  1773. - echo m68k-unknown-openbsd${UNAME_RELEASE}
  1774. - exit 0 ;;
  1775. - mac68k:OpenBSD:*:*)
  1776. - echo m68k-unknown-openbsd${UNAME_RELEASE}
  1777. - exit 0 ;;
  1778. - mvme68k:OpenBSD:*:*)
  1779. - echo m68k-unknown-openbsd${UNAME_RELEASE}
  1780. - exit 0 ;;
  1781. - mvme88k:OpenBSD:*:*)
  1782. - echo m88k-unknown-openbsd${UNAME_RELEASE}
  1783. - exit 0 ;;
  1784. powerpc:machten:*:*)
  1785. echo powerpc-apple-machten${UNAME_RELEASE}
  1786. exit 0 ;;
  1787. @@ -385,6 +408,7 @@
  1788. echo clipper-intergraph-clix${UNAME_RELEASE}
  1789. exit 0 ;;
  1790. mips:*:*:UMIPS | mips:*:*:RISCos)
  1791. + eval $set_cc_for_build
  1792. sed 's/^ //' << EOF >$dummy.c
  1793. #ifdef __cplusplus
  1794. #include <stdio.h> /* for printf() prototype */
  1795. @@ -406,15 +430,20 @@
  1796. exit (-1);
  1797. }
  1798. EOF
  1799. - $CC_FOR_BUILD $dummy.c -o $dummy \
  1800. - && ./$dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
  1801. - && rm -f $dummy.c $dummy && exit 0
  1802. - rm -f $dummy.c $dummy
  1803. + $CC_FOR_BUILD -o $dummy $dummy.c \
  1804. + && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
  1805. + && exit 0
  1806. echo mips-mips-riscos${UNAME_RELEASE}
  1807. exit 0 ;;
  1808. Motorola:PowerMAX_OS:*:*)
  1809. echo powerpc-motorola-powermax
  1810. exit 0 ;;
  1811. + Motorola:*:4.3:PL8-*)
  1812. + echo powerpc-harris-powermax
  1813. + exit 0 ;;
  1814. + Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
  1815. + echo powerpc-harris-powermax
  1816. + exit 0 ;;
  1817. Night_Hawk:Power_UNIX:*:*)
  1818. echo powerpc-harris-powerunix
  1819. exit 0 ;;
  1820. @@ -475,6 +504,7 @@
  1821. exit 0 ;;
  1822. *:AIX:2:3)
  1823. if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
  1824. + eval $set_cc_for_build
  1825. sed 's/^ //' << EOF >$dummy.c
  1826. #include <sys/systemcfg.h>
  1827. @@ -486,8 +516,7 @@
  1828. exit(0);
  1829. }
  1830. EOF
  1831. - $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm -f $dummy.c $dummy && exit 0
  1832. - rm -f $dummy.c $dummy
  1833. + $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
  1834. echo rs6000-ibm-aix3.2.5
  1835. elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
  1836. echo rs6000-ibm-aix3.2.4
  1837. @@ -496,7 +525,7 @@
  1838. fi
  1839. exit 0 ;;
  1840. *:AIX:*:[45])
  1841. - IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | head -1 | awk '{ print $1 }'`
  1842. + IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
  1843. if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
  1844. IBM_ARCH=rs6000
  1845. else
  1846. @@ -536,10 +565,8 @@
  1847. 9000/31? ) HP_ARCH=m68000 ;;
  1848. 9000/[34]?? ) HP_ARCH=m68k ;;
  1849. 9000/[678][0-9][0-9])
  1850. - case "${HPUX_REV}" in
  1851. - 11.[0-9][0-9])
  1852. - if [ -x /usr/bin/getconf ]; then
  1853. - sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
  1854. + if [ -x /usr/bin/getconf ]; then
  1855. + sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
  1856. sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
  1857. case "${sc_cpu_version}" in
  1858. 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
  1859. @@ -548,12 +575,13 @@
  1860. case "${sc_kernel_bits}" in
  1861. 32) HP_ARCH="hppa2.0n" ;;
  1862. 64) HP_ARCH="hppa2.0w" ;;
  1863. + '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
  1864. esac ;;
  1865. esac
  1866. - fi ;;
  1867. - esac
  1868. - if [ "${HP_ARCH}" = "" ]; then
  1869. - sed 's/^ //' << EOF >$dummy.c
  1870. + fi
  1871. + if [ "${HP_ARCH}" = "" ]; then
  1872. + eval $set_cc_for_build
  1873. + sed 's/^ //' << EOF >$dummy.c
  1874. #define _HPUX_SOURCE
  1875. #include <stdlib.h>
  1876. @@ -586,11 +614,21 @@
  1877. exit (0);
  1878. }
  1879. EOF
  1880. - (CCOPTS= $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null ) && HP_ARCH=`./$dummy`
  1881. - if test -z "$HP_ARCH"; then HP_ARCH=hppa; fi
  1882. - rm -f $dummy.c $dummy
  1883. - fi ;;
  1884. + (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
  1885. + test -z "$HP_ARCH" && HP_ARCH=hppa
  1886. + fi ;;
  1887. esac
  1888. + if [ ${HP_ARCH} = "hppa2.0w" ]
  1889. + then
  1890. + # avoid double evaluation of $set_cc_for_build
  1891. + test -n "$CC_FOR_BUILD" || eval $set_cc_for_build
  1892. + if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null
  1893. + then
  1894. + HP_ARCH="hppa2.0w"
  1895. + else
  1896. + HP_ARCH="hppa64"
  1897. + fi
  1898. + fi
  1899. echo ${HP_ARCH}-hp-hpux${HPUX_REV}
  1900. exit 0 ;;
  1901. ia64:HP-UX:*:*)
  1902. @@ -598,6 +636,7 @@
  1903. echo ia64-hp-hpux${HPUX_REV}
  1904. exit 0 ;;
  1905. 3050*:HI-UX:*:*)
  1906. + eval $set_cc_for_build
  1907. sed 's/^ //' << EOF >$dummy.c
  1908. #include <unistd.h>
  1909. int
  1910. @@ -623,8 +662,7 @@
  1911. exit (0);
  1912. }
  1913. EOF
  1914. - $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm -f $dummy.c $dummy && exit 0
  1915. - rm -f $dummy.c $dummy
  1916. + $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
  1917. echo unknown-hitachi-hiuxwe2
  1918. exit 0 ;;
  1919. 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
  1920. @@ -633,7 +671,7 @@
  1921. 9000/8??:4.3bsd:*:*)
  1922. echo hppa1.0-hp-bsd
  1923. exit 0 ;;
  1924. - *9??*:MPE/iX:*:*)
  1925. + *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
  1926. echo hppa1.0-hp-mpeix
  1927. exit 0 ;;
  1928. hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
  1929. @@ -652,9 +690,6 @@
  1930. parisc*:Lites*:*:*)
  1931. echo hppa1.1-hp-lites
  1932. exit 0 ;;
  1933. - hppa*:OpenBSD:*:*)
  1934. - echo hppa-unknown-openbsd
  1935. - exit 0 ;;
  1936. C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
  1937. echo c1-convex-bsd
  1938. exit 0 ;;
  1939. @@ -673,41 +708,33 @@
  1940. C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
  1941. echo c4-convex-bsd
  1942. exit 0 ;;
  1943. - CRAY*X-MP:*:*:*)
  1944. - echo xmp-cray-unicos
  1945. - exit 0 ;;
  1946. CRAY*Y-MP:*:*:*)
  1947. - echo ymp-cray-unicos${UNAME_RELEASE}
  1948. + echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  1949. exit 0 ;;
  1950. CRAY*[A-Z]90:*:*:*)
  1951. echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
  1952. | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
  1953. - -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/
  1954. + -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
  1955. + -e 's/\.[^.]*$/.X/'
  1956. exit 0 ;;
  1957. CRAY*TS:*:*:*)
  1958. echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  1959. exit 0 ;;
  1960. - CRAY*T3D:*:*:*)
  1961. - echo alpha-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  1962. - exit 0 ;;
  1963. CRAY*T3E:*:*:*)
  1964. echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  1965. exit 0 ;;
  1966. CRAY*SV1:*:*:*)
  1967. echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  1968. exit 0 ;;
  1969. - CRAY-2:*:*:*)
  1970. - echo cray2-cray-unicos
  1971. - exit 0 ;;
  1972. + *:UNICOS/mp:*:*)
  1973. + echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  1974. + exit 0 ;;
  1975. F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
  1976. FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
  1977. FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
  1978. FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
  1979. echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
  1980. exit 0 ;;
  1981. - hp300:OpenBSD:*:*)
  1982. - echo m68k-unknown-openbsd${UNAME_RELEASE}
  1983. - exit 0 ;;
  1984. i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
  1985. echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
  1986. exit 0 ;;
  1987. @@ -717,11 +744,19 @@
  1988. *:BSD/OS:*:*)
  1989. echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
  1990. exit 0 ;;
  1991. - *:FreeBSD:*:*)
  1992. - echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
  1993. - exit 0 ;;
  1994. - *:OpenBSD:*:*)
  1995. - echo ${UNAME_MACHINE}-unknown-openbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
  1996. + *:FreeBSD:*:*|*:GNU/FreeBSD:*:*)
  1997. + # Determine whether the default compiler uses glibc.
  1998. + eval $set_cc_for_build
  1999. + sed 's/^ //' << EOF >$dummy.c
  2000. + #include <features.h>
  2001. + #if __GLIBC__ >= 2
  2002. + LIBC=gnu
  2003. + #else
  2004. + LIBC=
  2005. + #endif
  2006. +EOF
  2007. + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
  2008. + echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC}
  2009. exit 0 ;;
  2010. i*:CYGWIN*:*)
  2011. echo ${UNAME_MACHINE}-pc-cygwin
  2012. @@ -732,11 +767,17 @@
  2013. i*:PW*:*)
  2014. echo ${UNAME_MACHINE}-pc-pw32
  2015. exit 0 ;;
  2016. + x86:Interix*:3*)
  2017. + echo i586-pc-interix3
  2018. + exit 0 ;;
  2019. + [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
  2020. + echo i${UNAME_MACHINE}-pc-mks
  2021. + exit 0 ;;
  2022. i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
  2023. # How do we know it's Interix rather than the generic POSIX subsystem?
  2024. # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
  2025. # UNAME_MACHINE based on the output of uname instead of i386?
  2026. - echo i386-pc-interix
  2027. + echo i586-pc-interix
  2028. exit 0 ;;
  2029. i*:UWIN*:*)
  2030. echo ${UNAME_MACHINE}-pc-uwin
  2031. @@ -756,104 +797,71 @@
  2032. arm*:Linux:*:*)
  2033. echo ${UNAME_MACHINE}-unknown-linux-gnu
  2034. exit 0 ;;
  2035. + cris:Linux:*:*)
  2036. + echo cris-axis-linux-gnu
  2037. + exit 0 ;;
  2038. ia64:Linux:*:*)
  2039. - echo ${UNAME_MACHINE}-unknown-linux
  2040. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  2041. exit 0 ;;
  2042. m68*:Linux:*:*)
  2043. echo ${UNAME_MACHINE}-unknown-linux-gnu
  2044. exit 0 ;;
  2045. mips:Linux:*:*)
  2046. - cat >$dummy.c <<EOF
  2047. -#ifdef __cplusplus
  2048. -#include <stdio.h> /* for printf() prototype */
  2049. -int main (int argc, char *argv[]) {
  2050. -#else
  2051. -int main (argc, argv) int argc; char *argv[]; {
  2052. -#endif
  2053. -#ifdef __MIPSEB__
  2054. - printf ("%s-unknown-linux-gnu\n", argv[1]);
  2055. -#endif
  2056. -#ifdef __MIPSEL__
  2057. - printf ("%sel-unknown-linux-gnu\n", argv[1]);
  2058. -#endif
  2059. - return 0;
  2060. -}
  2061. + eval $set_cc_for_build
  2062. + sed 's/^ //' << EOF >$dummy.c
  2063. + #undef CPU
  2064. + #undef mips
  2065. + #undef mipsel
  2066. + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
  2067. + CPU=mipsel
  2068. + #else
  2069. + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
  2070. + CPU=mips
  2071. + #else
  2072. + CPU=
  2073. + #endif
  2074. + #endif
  2075. EOF
  2076. - $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy "${UNAME_MACHINE}" && rm -f $dummy.c $dummy && exit 0
  2077. - rm -f $dummy.c $dummy
  2078. + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
  2079. + test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
  2080. ;;
  2081. - ppc:Linux:*:*)
  2082. - # Determine Lib Version
  2083. - cat >$dummy.c <<EOF
  2084. -#include <features.h>
  2085. -#if defined(__GLIBC__)
  2086. -extern char __libc_version[];
  2087. -extern char __libc_release[];
  2088. -#endif
  2089. -main(argc, argv)
  2090. - int argc;
  2091. - char *argv[];
  2092. -{
  2093. -#if defined(__GLIBC__)
  2094. - printf("%s %s\n", __libc_version, __libc_release);
  2095. -#else
  2096. - printf("unknown\n");
  2097. -#endif
  2098. - return 0;
  2099. -}
  2100. + mips64:Linux:*:*)
  2101. + eval $set_cc_for_build
  2102. + sed 's/^ //' << EOF >$dummy.c
  2103. + #undef CPU
  2104. + #undef mips64
  2105. + #undef mips64el
  2106. + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
  2107. + CPU=mips64el
  2108. + #else
  2109. + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
  2110. + CPU=mips64
  2111. + #else
  2112. + CPU=
  2113. + #endif
  2114. + #endif
  2115. EOF
  2116. - LIBC=""
  2117. - $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null
  2118. - if test "$?" = 0 ; then
  2119. - ./$dummy | grep 1\.99 > /dev/null
  2120. - if test "$?" = 0 ; then LIBC="libc1" ; fi
  2121. - fi
  2122. - rm -f $dummy.c $dummy
  2123. - echo powerpc-unknown-linux-gnu${LIBC}
  2124. + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
  2125. + test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
  2126. + ;;
  2127. + ppc:Linux:*:*)
  2128. + echo powerpc-unknown-linux-gnu
  2129. + exit 0 ;;
  2130. + ppc64:Linux:*:*)
  2131. + echo powerpc64-unknown-linux-gnu
  2132. exit 0 ;;
  2133. alpha:Linux:*:*)
  2134. - cat <<EOF >$dummy.s
  2135. - .data
  2136. - \$Lformat:
  2137. - .byte 37,100,45,37,120,10,0 # "%d-%x\n"
  2138. - .text
  2139. - .globl main
  2140. - .align 4
  2141. - .ent main
  2142. - main:
  2143. - .frame \$30,16,\$26,0
  2144. - ldgp \$29,0(\$27)
  2145. - .prologue 1
  2146. - .long 0x47e03d80 # implver \$0
  2147. - lda \$2,-1
  2148. - .long 0x47e20c21 # amask \$2,\$1
  2149. - lda \$16,\$Lformat
  2150. - mov \$0,\$17
  2151. - not \$1,\$18
  2152. - jsr \$26,printf
  2153. - ldgp \$29,0(\$26)
  2154. - mov 0,\$16
  2155. - jsr \$26,exit
  2156. - .end main
  2157. -EOF
  2158. - LIBC=""
  2159. - $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null
  2160. - if test "$?" = 0 ; then
  2161. - case `./$dummy` in
  2162. - 0-0) UNAME_MACHINE="alpha" ;;
  2163. - 1-0) UNAME_MACHINE="alphaev5" ;;
  2164. - 1-1) UNAME_MACHINE="alphaev56" ;;
  2165. - 1-101) UNAME_MACHINE="alphapca56" ;;
  2166. - 2-303) UNAME_MACHINE="alphaev6" ;;
  2167. - 2-307) UNAME_MACHINE="alphaev67" ;;
  2168. - esac
  2169. - objdump --private-headers $dummy | \
  2170. - grep ld.so.1 > /dev/null
  2171. - if test "$?" = 0 ; then
  2172. - LIBC="libc1"
  2173. - fi
  2174. - fi
  2175. - rm -f $dummy.s $dummy
  2176. + case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
  2177. + EV5) UNAME_MACHINE=alphaev5 ;;
  2178. + EV56) UNAME_MACHINE=alphaev56 ;;
  2179. + PCA56) UNAME_MACHINE=alphapca56 ;;
  2180. + PCA57) UNAME_MACHINE=alphapca56 ;;
  2181. + EV6) UNAME_MACHINE=alphaev6 ;;
  2182. + EV67) UNAME_MACHINE=alphaev67 ;;
  2183. + EV68*) UNAME_MACHINE=alphaev68 ;;
  2184. + esac
  2185. + objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
  2186. + if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
  2187. echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
  2188. exit 0 ;;
  2189. parisc:Linux:*:* | hppa:Linux:*:*)
  2190. @@ -883,71 +891,59 @@
  2191. # The BFD linker knows what the default object file format is, so
  2192. # first see if it will tell us. cd to the root directory to prevent
  2193. # problems with other programs or directories called `ld' in the path.
  2194. - ld_supported_emulations=`cd /; ld --help 2>&1 \
  2195. - | sed -ne '/supported emulations:/!d
  2196. + # Set LC_ALL=C to ensure ld outputs messages in English.
  2197. + ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
  2198. + | sed -ne '/supported targets:/!d
  2199. s/[ ][ ]*/ /g
  2200. - s/.*supported emulations: *//
  2201. + s/.*supported targets: *//
  2202. s/ .*//
  2203. p'`
  2204. - case "$ld_supported_emulations" in
  2205. - i*86linux)
  2206. - echo "${UNAME_MACHINE}-pc-linux-gnuaout"
  2207. - exit 0
  2208. - ;;
  2209. - elf_i*86)
  2210. + case "$ld_supported_targets" in
  2211. + elf32-i386)
  2212. TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
  2213. ;;
  2214. - i*86coff)
  2215. + a.out-i386-linux)
  2216. + echo "${UNAME_MACHINE}-pc-linux-gnuaout"
  2217. + exit 0 ;;
  2218. + coff-i386)
  2219. echo "${UNAME_MACHINE}-pc-linux-gnucoff"
  2220. - exit 0
  2221. - ;;
  2222. - esac
  2223. - # Either a pre-BFD a.out linker (linux-gnuoldld)
  2224. - # or one that does not give us useful --help.
  2225. - # GCC wants to distinguish between linux-gnuoldld and linux-gnuaout.
  2226. - # If ld does not provide *any* "supported emulations:"
  2227. - # that means it is gnuoldld.
  2228. - test -z "$ld_supported_emulations" && echo "${UNAME_MACHINE}-pc-linux-gnuoldld" && exit 0
  2229. - case "${UNAME_MACHINE}" in
  2230. - i*86)
  2231. - VENDOR=pc;
  2232. - ;;
  2233. - *)
  2234. - VENDOR=unknown;
  2235. - ;;
  2236. + exit 0 ;;
  2237. + "")
  2238. + # Either a pre-BFD a.out linker (linux-gnuoldld) or
  2239. + # one that does not give us useful --help.
  2240. + echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
  2241. + exit 0 ;;
  2242. esac
  2243. # Determine whether the default compiler is a.out or elf
  2244. - cat >$dummy.c <<EOF
  2245. -#include <features.h>
  2246. -#ifdef __cplusplus
  2247. -#include <stdio.h> /* for printf() prototype */
  2248. - int main (int argc, char *argv[]) {
  2249. -#else
  2250. - int main (argc, argv) int argc; char *argv[]; {
  2251. -#endif
  2252. -#ifdef __ELF__
  2253. -# ifdef __GLIBC__
  2254. -# if __GLIBC__ >= 2
  2255. - printf ("%s-${VENDOR}-linux-gnu\n", argv[1]);
  2256. -# else
  2257. - printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]);
  2258. -# endif
  2259. -# else
  2260. - printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]);
  2261. -# endif
  2262. -#else
  2263. - printf ("%s-${VENDOR}-linux-gnuaout\n", argv[1]);
  2264. -#endif
  2265. - return 0;
  2266. -}
  2267. + eval $set_cc_for_build
  2268. + sed 's/^ //' << EOF >$dummy.c
  2269. + #include <features.h>
  2270. + #ifdef __ELF__
  2271. + # ifdef __GLIBC__
  2272. + # if __GLIBC__ >= 2
  2273. + LIBC=gnu
  2274. + # else
  2275. + LIBC=gnulibc1
  2276. + # endif
  2277. + # else
  2278. + LIBC=gnulibc1
  2279. + # endif
  2280. + #else
  2281. + #ifdef __INTEL_COMPILER
  2282. + LIBC=gnu
  2283. + #else
  2284. + LIBC=gnuaout
  2285. + #endif
  2286. + #endif
  2287. EOF
  2288. - $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy "${UNAME_MACHINE}" && rm -f $dummy.c $dummy && exit 0
  2289. - rm -f $dummy.c $dummy
  2290. + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
  2291. + test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
  2292. test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
  2293. ;;
  2294. -# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. earlier versions
  2295. -# are messed up and put the nodename in both sysname and nodename.
  2296. i*86:DYNIX/ptx:4*:*)
  2297. + # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
  2298. + # earlier versions are messed up and put the nodename in both
  2299. + # sysname and nodename.
  2300. echo i386-sequent-sysv4
  2301. exit 0 ;;
  2302. i*86:UNIX_SV:4.2MP:2.*)
  2303. @@ -958,6 +954,23 @@
  2304. # Use sysv4.2uw... so that sysv4* matches it.
  2305. echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
  2306. exit 0 ;;
  2307. + i*86:OS/2:*:*)
  2308. + # If we were able to find `uname', then EMX Unix compatibility
  2309. + # is probably installed.
  2310. + echo ${UNAME_MACHINE}-pc-os2-emx
  2311. + exit 0 ;;
  2312. + i*86:XTS-300:*:STOP)
  2313. + echo ${UNAME_MACHINE}-unknown-stop
  2314. + exit 0 ;;
  2315. + i*86:atheos:*:*)
  2316. + echo ${UNAME_MACHINE}-unknown-atheos
  2317. + exit 0 ;;
  2318. + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
  2319. + echo i386-unknown-lynxos${UNAME_RELEASE}
  2320. + exit 0 ;;
  2321. + i*86:*DOS:*:*)
  2322. + echo ${UNAME_MACHINE}-pc-msdosdjgpp
  2323. + exit 0 ;;
  2324. i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
  2325. UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
  2326. if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
  2327. @@ -966,36 +979,32 @@
  2328. echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
  2329. fi
  2330. exit 0 ;;
  2331. - i*86:*:5:7*)
  2332. - # Fixed at (any) Pentium or better
  2333. - UNAME_MACHINE=i586
  2334. - if [ ${UNAME_SYSTEM} = "UnixWare" ] ; then
  2335. - echo ${UNAME_MACHINE}-sco-sysv${UNAME_RELEASE}uw${UNAME_VERSION}
  2336. - else
  2337. - echo ${UNAME_MACHINE}-pc-sysv${UNAME_RELEASE}
  2338. - fi
  2339. + i*86:*:5:[78]*)
  2340. + case `/bin/uname -X | grep "^Machine"` in
  2341. + *486*) UNAME_MACHINE=i486 ;;
  2342. + *Pentium) UNAME_MACHINE=i586 ;;
  2343. + *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
  2344. + esac
  2345. + echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
  2346. exit 0 ;;
  2347. i*86:*:3.2:*)
  2348. if test -f /usr/options/cb.name; then
  2349. UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
  2350. echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
  2351. elif /bin/uname -X 2>/dev/null >/dev/null ; then
  2352. - UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')`
  2353. - (/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486
  2354. - (/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \
  2355. + UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
  2356. + (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
  2357. + (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
  2358. && UNAME_MACHINE=i586
  2359. - (/bin/uname -X|egrep '^Machine.*Pent ?II' >/dev/null) \
  2360. + (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
  2361. && UNAME_MACHINE=i686
  2362. - (/bin/uname -X|egrep '^Machine.*Pentium Pro' >/dev/null) \
  2363. + (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
  2364. && UNAME_MACHINE=i686
  2365. echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
  2366. else
  2367. echo ${UNAME_MACHINE}-pc-sysv32
  2368. fi
  2369. exit 0 ;;
  2370. - i*86:*DOS:*:*)
  2371. - echo ${UNAME_MACHINE}-pc-msdosdjgpp
  2372. - exit 0 ;;
  2373. pc:*:*:*)
  2374. # Left here for compatibility:
  2375. # uname -m prints for DJGPP always 'pc', but it prints nothing about
  2376. @@ -1019,9 +1028,15 @@
  2377. # "miniframe"
  2378. echo m68010-convergent-sysv
  2379. exit 0 ;;
  2380. + mc68k:UNIX:SYSTEM5:3.51m)
  2381. + echo m68k-convergent-sysv
  2382. + exit 0 ;;
  2383. + M680?0:D-NIX:5.3:*)
  2384. + echo m68k-diab-dnix
  2385. + exit 0 ;;
  2386. M68*:*:R3V[567]*:*)
  2387. test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
  2388. - 3[34]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 4850:*:4.0:3.0)
  2389. + 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)
  2390. OS_REL=''
  2391. test -r /etc/.relid \
  2392. && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
  2393. @@ -1038,9 +1053,6 @@
  2394. mc68030:UNIX_System_V:4.*:*)
  2395. echo m68k-atari-sysv4
  2396. exit 0 ;;
  2397. - i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
  2398. - echo i386-unknown-lynxos${UNAME_RELEASE}
  2399. - exit 0 ;;
  2400. TSUNAMI:LynxOS:2.*:*)
  2401. echo sparc-unknown-lynxos${UNAME_RELEASE}
  2402. exit 0 ;;
  2403. @@ -1067,8 +1079,8 @@
  2404. echo ns32k-sni-sysv
  2405. fi
  2406. exit 0 ;;
  2407. - PENTIUM:CPunix:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
  2408. - # says <Richard.M.Bartel@ccMail.Census.GOV>
  2409. + PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
  2410. + # says <Richard.M.Bartel@ccMail.Census.GOV>
  2411. echo i586-unisys-sysv4
  2412. exit 0 ;;
  2413. *:UNIX_System_V:4*:FTX*)
  2414. @@ -1080,6 +1092,10 @@
  2415. # From seanf@swdc.stratus.com.
  2416. echo i860-stratus-sysv4
  2417. exit 0 ;;
  2418. + *:VOS:*:*)
  2419. + # From Paul.Green@stratus.com.
  2420. + echo hppa1.1-stratus-vos
  2421. + exit 0 ;;
  2422. mc68*:A/UX:*:*)
  2423. echo m68k-apple-aux${UNAME_RELEASE}
  2424. exit 0 ;;
  2425. @@ -1108,6 +1124,9 @@
  2426. SX-5:SUPER-UX:*:*)
  2427. echo sx5-nec-superux${UNAME_RELEASE}
  2428. exit 0 ;;
  2429. + SX-6:SUPER-UX:*:*)
  2430. + echo sx6-nec-superux${UNAME_RELEASE}
  2431. + exit 0 ;;
  2432. Power*:Rhapsody:*:*)
  2433. echo powerpc-apple-rhapsody${UNAME_RELEASE}
  2434. exit 0 ;;
  2435. @@ -1115,18 +1134,24 @@
  2436. echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
  2437. exit 0 ;;
  2438. *:Darwin:*:*)
  2439. - echo `uname -p`-apple-darwin${UNAME_RELEASE}
  2440. + case `uname -p` in
  2441. + *86) UNAME_PROCESSOR=i686 ;;
  2442. + powerpc) UNAME_PROCESSOR=powerpc ;;
  2443. + esac
  2444. + echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
  2445. exit 0 ;;
  2446. *:procnto*:*:* | *:QNX:[0123456789]*:*)
  2447. - if test "${UNAME_MACHINE}" = "x86pc"; then
  2448. + UNAME_PROCESSOR=`uname -p`
  2449. + if test "$UNAME_PROCESSOR" = "x86"; then
  2450. + UNAME_PROCESSOR=i386
  2451. UNAME_MACHINE=pc
  2452. fi
  2453. - echo `uname -p`-${UNAME_MACHINE}-nto-qnx
  2454. + echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
  2455. exit 0 ;;
  2456. *:QNX:*:4*)
  2457. echo i386-pc-qnx
  2458. exit 0 ;;
  2459. - NSR-[KW]:NONSTOP_KERNEL:*:*)
  2460. + NSR-[DGKLNPTVW]:NONSTOP_KERNEL:*:*)
  2461. echo nsr-tandem-nsk${UNAME_RELEASE}
  2462. exit 0 ;;
  2463. *:NonStop-UX:*:*)
  2464. @@ -1149,11 +1174,6 @@
  2465. fi
  2466. echo ${UNAME_MACHINE}-unknown-plan9
  2467. exit 0 ;;
  2468. - i*86:OS/2:*:*)
  2469. - # If we were able to find `uname', then EMX Unix compatibility
  2470. - # is probably installed.
  2471. - echo ${UNAME_MACHINE}-pc-os2-emx
  2472. - exit 0 ;;
  2473. *:TOPS-10:*:*)
  2474. echo pdp10-unknown-tops10
  2475. exit 0 ;;
  2476. @@ -1177,6 +1197,7 @@
  2477. #echo '(No uname command or uname output not recognized.)' 1>&2
  2478. #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
  2479. +eval $set_cc_for_build
  2480. cat >$dummy.c <<EOF
  2481. #ifdef _SEQUENT_
  2482. # include <sys/types.h>
  2483. @@ -1291,8 +1312,7 @@
  2484. }
  2485. EOF
  2486. -$CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy && rm -f $dummy.c $dummy && exit 0
  2487. -rm -f $dummy.c $dummy
  2488. +$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0
  2489. # Apollos put the system type in the environment.
  2490. --- linux-atm-2.4.1.orig/config.h.in
  2491. +++ linux-atm-2.4.1/config.h.in
  2492. @@ -1,4 +1,4 @@
  2493. -/* config.h.in. Generated automatically from configure.in by autoheader. */
  2494. +/* config.h.in. Generated automatically from configure.in by autoheader 2.13. */
  2495. #ifndef _ATM_CONFIG_H
  2496. #define _ATM_CONFIG_H
  2497. --- linux-atm-2.4.1.orig/config.sub
  2498. +++ linux-atm-2.4.1/config.sub
  2499. @@ -1,9 +1,9 @@
  2500. #! /bin/sh
  2501. # Configuration validation subroutine script.
  2502. -# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
  2503. -# Free Software Foundation, Inc.
  2504. +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
  2505. +# 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
  2506. -timestamp='2001-04-20'
  2507. +timestamp='2003-05-09'
  2508. # This file is (in principle) common to ALL GNU software.
  2509. # The presence of a machine in this file suggests that SOME GNU software
  2510. @@ -29,7 +29,8 @@
  2511. # configuration script generated by Autoconf, you may include it under
  2512. # the same distribution terms that you use for the rest of that program.
  2513. -# Please send patches to <config-patches@gnu.org>.
  2514. +# Please send patches to <config-patches@gnu.org>. Submit a context
  2515. +# diff and a properly formatted ChangeLog entry.
  2516. #
  2517. # Configuration subroutine to validate and canonicalize a configuration type.
  2518. # Supply the specified configuration type as an argument.
  2519. @@ -117,7 +118,7 @@
  2520. # Here we must recognize all the valid KERNEL-OS combinations.
  2521. maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
  2522. case $maybe_os in
  2523. - nto-qnx* | linux-gnu* | storm-chaos* | os2-emx*)
  2524. + nto-qnx* | linux-gnu* | freebsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
  2525. os=-$maybe_os
  2526. basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
  2527. ;;
  2528. @@ -157,6 +158,14 @@
  2529. os=-vxworks
  2530. basic_machine=$1
  2531. ;;
  2532. + -chorusos*)
  2533. + os=-chorusos
  2534. + basic_machine=$1
  2535. + ;;
  2536. + -chorusrdb)
  2537. + os=-chorusrdb
  2538. + basic_machine=$1
  2539. + ;;
  2540. -hiux*)
  2541. os=-hiuxwe2
  2542. ;;
  2543. @@ -215,26 +224,48 @@
  2544. case $basic_machine in
  2545. # Recognize the basic CPU types without company name.
  2546. # Some are omitted here because they have special meanings below.
  2547. - tahoe | i860 | ia64 | m32r | m68k | m68000 | m88k | ns32k | arc \
  2548. - | arm | arme[lb] | arm[bl]e | armv[2345] | armv[345][lb] | strongarm | xscale \
  2549. - | pyramid | mn10200 | mn10300 | tron | a29k \
  2550. - | 580 | i960 | h8300 \
  2551. - | x86 | ppcbe | mipsbe | mipsle | shbe | shle \
  2552. - | hppa | hppa1.0 | hppa1.1 | hppa2.0 | hppa2.0w | hppa2.0n \
  2553. - | hppa64 \
  2554. - | alpha | alphaev[4-8] | alphaev56 | alphapca5[67] \
  2555. - | alphaev6[78] \
  2556. - | we32k | ns16k | clipper | i370 | sh | sh[34] \
  2557. - | powerpc | powerpcle \
  2558. - | 1750a | dsp16xx | pdp10 | pdp11 \
  2559. - | mips16 | mips64 | mipsel | mips64el \
  2560. - | mips64orion | mips64orionel | mipstx39 | mipstx39el \
  2561. - | mips64vr4300 | mips64vr4300el | mips64vr4100 | mips64vr4100el \
  2562. - | mips64vr5000 | miprs64vr5000el | mcore | s390 | s390x \
  2563. - | sparc | sparclet | sparclite | sparc64 | sparcv9 | sparcv9b \
  2564. - | v850 | c4x \
  2565. - | thumb | d10v | d30v | fr30 | avr | openrisc | tic80 \
  2566. - | pj | pjl | h8500)
  2567. + 1750a | 580 \
  2568. + | a29k \
  2569. + | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
  2570. + | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
  2571. + | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
  2572. + | clipper \
  2573. + | d10v | d30v | dlx | dsp16xx \
  2574. + | fr30 | frv \
  2575. + | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
  2576. + | i370 | i860 | i960 | ia64 \
  2577. + | ip2k \
  2578. + | m32r | m68000 | m68k | m88k | mcore \
  2579. + | mips | mipsbe | mipseb | mipsel | mipsle \
  2580. + | mips16 \
  2581. + | mips64 | mips64el \
  2582. + | mips64vr | mips64vrel \
  2583. + | mips64orion | mips64orionel \
  2584. + | mips64vr4100 | mips64vr4100el \
  2585. + | mips64vr4300 | mips64vr4300el \
  2586. + | mips64vr5000 | mips64vr5000el \
  2587. + | mipsisa32 | mipsisa32el \
  2588. + | mipsisa32r2 | mipsisa32r2el \
  2589. + | mipsisa64 | mipsisa64el \
  2590. + | mipsisa64sb1 | mipsisa64sb1el \
  2591. + | mipsisa64sr71k | mipsisa64sr71kel \
  2592. + | mipstx39 | mipstx39el \
  2593. + | mn10200 | mn10300 \
  2594. + | msp430 \
  2595. + | ns16k | ns32k \
  2596. + | openrisc | or32 \
  2597. + | pdp10 | pdp11 | pj | pjl \
  2598. + | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
  2599. + | pyramid \
  2600. + | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
  2601. + | sh64 | sh64le \
  2602. + | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \
  2603. + | strongarm \
  2604. + | tahoe | thumb | tic80 | tron \
  2605. + | v850 | v850e \
  2606. + | we32k \
  2607. + | x86 | xscale | xstormy16 | xtensa \
  2608. + | z8k)
  2609. basic_machine=$basic_machine-unknown
  2610. ;;
  2611. m6811 | m68hc11 | m6812 | m68hc12)
  2612. @@ -242,7 +273,7 @@
  2613. basic_machine=$basic_machine-unknown
  2614. os=-none
  2615. ;;
  2616. - m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | z8k | v70 | w65)
  2617. + m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
  2618. ;;
  2619. # We use `pc' rather than `unknown'
  2620. @@ -257,31 +288,60 @@
  2621. exit 1
  2622. ;;
  2623. # Recognize the basic CPU types with company name.
  2624. - # FIXME: clean up the formatting here.
  2625. - vax-* | tahoe-* | i*86-* | i860-* | ia64-* | m32r-* | m68k-* | m68000-* \
  2626. - | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | c[123]* \
  2627. - | arm-* | armbe-* | armle-* | armv*-* | strongarm-* | xscale-* \
  2628. - | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \
  2629. - | power-* | none-* | 580-* | cray2-* | h8300-* | h8500-* | i960-* \
  2630. - | xmp-* | ymp-* \
  2631. - | x86-* | ppcbe-* | mipsbe-* | mipsle-* | shbe-* | shle-* \
  2632. - | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* | hppa2.0w-* \
  2633. - | hppa2.0n-* | hppa64-* \
  2634. - | alpha-* | alphaev[4-8]-* | alphaev56-* | alphapca5[67]-* \
  2635. - | alphaev6[78]-* \
  2636. - | we32k-* | cydra-* | ns16k-* | pn-* | np1-* | xps100-* \
  2637. - | clipper-* | orion-* \
  2638. - | sparclite-* | pdp10-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \
  2639. - | sparc64-* | sparcv9-* | sparcv9b-* | sparc86x-* \
  2640. - | mips16-* | mips64-* | mipsel-* \
  2641. - | mips64el-* | mips64orion-* | mips64orionel-* \
  2642. - | mips64vr4100-* | mips64vr4100el-* | mips64vr4300-* | mips64vr4300el-* \
  2643. - | mipstx39-* | mipstx39el-* | mcore-* \
  2644. - | f30[01]-* | f700-* | s390-* | s390x-* | sv1-* | t3e-* \
  2645. - | [cjt]90-* \
  2646. - | m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | d10v-* \
  2647. - | thumb-* | v850-* | d30v-* | tic30-* | tic80-* | c30-* | fr30-* \
  2648. - | bs2000-* | tic54x-* | c54x-* | x86_64-* | pj-* | pjl-*)
  2649. + 580-* \
  2650. + | a29k-* \
  2651. + | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
  2652. + | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
  2653. + | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
  2654. + | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
  2655. + | avr-* \
  2656. + | bs2000-* \
  2657. + | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
  2658. + | clipper-* | cydra-* \
  2659. + | d10v-* | d30v-* | dlx-* \
  2660. + | elxsi-* \
  2661. + | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
  2662. + | h8300-* | h8500-* \
  2663. + | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
  2664. + | i*86-* | i860-* | i960-* | ia64-* \
  2665. + | ip2k-* \
  2666. + | m32r-* \
  2667. + | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
  2668. + | m88110-* | m88k-* | mcore-* \
  2669. + | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
  2670. + | mips16-* \
  2671. + | mips64-* | mips64el-* \
  2672. + | mips64vr-* | mips64vrel-* \
  2673. + | mips64orion-* | mips64orionel-* \
  2674. + | mips64vr4100-* | mips64vr4100el-* \
  2675. + | mips64vr4300-* | mips64vr4300el-* \
  2676. + | mips64vr5000-* | mips64vr5000el-* \
  2677. + | mipsisa32-* | mipsisa32el-* \
  2678. + | mipsisa32r2-* | mipsisa32r2el-* \
  2679. + | mipsisa64-* | mipsisa64el-* \
  2680. + | mipsisa64sb1-* | mipsisa64sb1el-* \
  2681. + | mipsisa64sr71k-* | mipsisa64sr71kel-* \
  2682. + | mipstx39-* | mipstx39el-* \
  2683. + | msp430-* \
  2684. + | none-* | np1-* | nv1-* | ns16k-* | ns32k-* \
  2685. + | orion-* \
  2686. + | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
  2687. + | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
  2688. + | pyramid-* \
  2689. + | romp-* | rs6000-* \
  2690. + | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
  2691. + | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
  2692. + | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
  2693. + | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
  2694. + | tahoe-* | thumb-* \
  2695. + | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
  2696. + | tron-* \
  2697. + | v850-* | v850e-* | vax-* \
  2698. + | we32k-* \
  2699. + | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \
  2700. + | xtensa-* \
  2701. + | ymp-* \
  2702. + | z8k-*)
  2703. ;;
  2704. # Recognize the various machine names and aliases which stand
  2705. # for a CPU type and a company and sometimes even an OS.
  2706. @@ -313,6 +373,9 @@
  2707. basic_machine=a29k-none
  2708. os=-bsd
  2709. ;;
  2710. + amd64)
  2711. + basic_machine=x86_64-pc
  2712. + ;;
  2713. amdahl)
  2714. basic_machine=580-amdahl
  2715. os=-sysv
  2716. @@ -344,6 +407,10 @@
  2717. basic_machine=ns32k-sequent
  2718. os=-dynix
  2719. ;;
  2720. + c90)
  2721. + basic_machine=c90-cray
  2722. + os=-unicos
  2723. + ;;
  2724. convex-c1)
  2725. basic_machine=c1-convex
  2726. os=-bsd
  2727. @@ -364,16 +431,8 @@
  2728. basic_machine=c38-convex
  2729. os=-bsd
  2730. ;;
  2731. - cray | ymp)
  2732. - basic_machine=ymp-cray
  2733. - os=-unicos
  2734. - ;;
  2735. - cray2)
  2736. - basic_machine=cray2-cray
  2737. - os=-unicos
  2738. - ;;
  2739. - [cjt]90)
  2740. - basic_machine=${basic_machine}-cray
  2741. + cray | j90)
  2742. + basic_machine=j90-cray
  2743. os=-unicos
  2744. ;;
  2745. crds | unos)
  2746. @@ -388,6 +447,14 @@
  2747. decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
  2748. basic_machine=mips-dec
  2749. ;;
  2750. + decsystem10* | dec10*)
  2751. + basic_machine=pdp10-dec
  2752. + os=-tops10
  2753. + ;;
  2754. + decsystem20* | dec20*)
  2755. + basic_machine=pdp10-dec
  2756. + os=-tops20
  2757. + ;;
  2758. delta | 3300 | motorola-3300 | motorola-delta \
  2759. | 3300-motorola | delta-motorola)
  2760. basic_machine=m68k-motorola
  2761. @@ -568,14 +635,6 @@
  2762. basic_machine=m68k-atari
  2763. os=-mint
  2764. ;;
  2765. - mipsel*-linux*)
  2766. - basic_machine=mipsel-unknown
  2767. - os=-linux-gnu
  2768. - ;;
  2769. - mips*-linux*)
  2770. - basic_machine=mips-unknown
  2771. - os=-linux-gnu
  2772. - ;;
  2773. mips3*-*)
  2774. basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
  2775. ;;
  2776. @@ -590,6 +649,10 @@
  2777. basic_machine=m68k-rom68k
  2778. os=-coff
  2779. ;;
  2780. + morphos)
  2781. + basic_machine=powerpc-unknown
  2782. + os=-morphos
  2783. + ;;
  2784. msdos)
  2785. basic_machine=i386-pc
  2786. os=-msdos
  2787. @@ -662,6 +725,10 @@
  2788. np1)
  2789. basic_machine=np1-gould
  2790. ;;
  2791. + nv1)
  2792. + basic_machine=nv1-cray
  2793. + os=-unicosmp
  2794. + ;;
  2795. nsr-tandem)
  2796. basic_machine=nsr-tandem
  2797. ;;
  2798. @@ -669,6 +736,10 @@
  2799. basic_machine=hppa1.1-oki
  2800. os=-proelf
  2801. ;;
  2802. + or32 | or32-*)
  2803. + basic_machine=or32-unknown
  2804. + os=-coff
  2805. + ;;
  2806. OSE68000 | ose68000)
  2807. basic_machine=m68000-ericsson
  2808. os=-ose
  2809. @@ -691,19 +762,19 @@
  2810. pbb)
  2811. basic_machine=m68k-tti
  2812. ;;
  2813. - pc532 | pc532-*)
  2814. + pc532 | pc532-*)
  2815. basic_machine=ns32k-pc532
  2816. ;;
  2817. - pentium | p5 | k5 | k6 | nexgen)
  2818. + pentium | p5 | k5 | k6 | nexgen | viac3)
  2819. basic_machine=i586-pc
  2820. ;;
  2821. - pentiumpro | p6 | 6x86 | athlon)
  2822. + pentiumpro | p6 | 6x86 | athlon | athlon_*)
  2823. basic_machine=i686-pc
  2824. ;;
  2825. pentiumii | pentium2)
  2826. basic_machine=i686-pc
  2827. ;;
  2828. - pentium-* | p5-* | k5-* | k6-* | nexgen-*)
  2829. + pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
  2830. basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
  2831. ;;
  2832. pentiumpro-* | p6-* | 6x86-* | athlon-*)
  2833. @@ -718,15 +789,25 @@
  2834. power) basic_machine=power-ibm
  2835. ;;
  2836. ppc) basic_machine=powerpc-unknown
  2837. - ;;
  2838. + ;;
  2839. ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
  2840. ;;
  2841. ppcle | powerpclittle | ppc-le | powerpc-little)
  2842. basic_machine=powerpcle-unknown
  2843. - ;;
  2844. + ;;
  2845. ppcle-* | powerpclittle-*)
  2846. basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
  2847. ;;
  2848. + ppc64) basic_machine=powerpc64-unknown
  2849. + ;;
  2850. + ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
  2851. + ;;
  2852. + ppc64le | powerpc64little | ppc64-le | powerpc64-little)
  2853. + basic_machine=powerpc64le-unknown
  2854. + ;;
  2855. + ppc64le-* | powerpc64little-*)
  2856. + basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
  2857. + ;;
  2858. ps2)
  2859. basic_machine=i386-ibm
  2860. ;;
  2861. @@ -744,10 +825,22 @@
  2862. rtpc | rtpc-*)
  2863. basic_machine=romp-ibm
  2864. ;;
  2865. + s390 | s390-*)
  2866. + basic_machine=s390-ibm
  2867. + ;;
  2868. + s390x | s390x-*)
  2869. + basic_machine=s390x-ibm
  2870. + ;;
  2871. sa29200)
  2872. basic_machine=a29k-amd
  2873. os=-udi
  2874. ;;
  2875. + sb1)
  2876. + basic_machine=mipsisa64sb1-unknown
  2877. + ;;
  2878. + sb1el)
  2879. + basic_machine=mipsisa64sb1el-unknown
  2880. + ;;
  2881. sequent)
  2882. basic_machine=i386-sequent
  2883. ;;
  2884. @@ -755,7 +848,7 @@
  2885. basic_machine=sh-hitachi
  2886. os=-hms
  2887. ;;
  2888. - sparclite-wrs)
  2889. + sparclite-wrs | simso-wrs)
  2890. basic_machine=sparclite-wrs
  2891. os=-vxworks
  2892. ;;
  2893. @@ -822,19 +915,39 @@
  2894. os=-dynix
  2895. ;;
  2896. t3e)
  2897. - basic_machine=t3e-cray
  2898. + basic_machine=alphaev5-cray
  2899. os=-unicos
  2900. ;;
  2901. + t90)
  2902. + basic_machine=t90-cray
  2903. + os=-unicos
  2904. + ;;
  2905. + tic4x | c4x*)
  2906. + basic_machine=tic4x-unknown
  2907. + os=-coff
  2908. + ;;
  2909. tic54x | c54x*)
  2910. basic_machine=tic54x-unknown
  2911. os=-coff
  2912. ;;
  2913. + tic55x | c55x*)
  2914. + basic_machine=tic55x-unknown
  2915. + os=-coff
  2916. + ;;
  2917. + tic6x | c6x*)
  2918. + basic_machine=tic6x-unknown
  2919. + os=-coff
  2920. + ;;
  2921. tx39)
  2922. basic_machine=mipstx39-unknown
  2923. ;;
  2924. tx39el)
  2925. basic_machine=mipstx39el-unknown
  2926. ;;
  2927. + toad1)
  2928. + basic_machine=pdp10-xkl
  2929. + os=-tops20
  2930. + ;;
  2931. tower | tower-32)
  2932. basic_machine=m68k-ncr
  2933. ;;
  2934. @@ -859,8 +972,8 @@
  2935. os=-vms
  2936. ;;
  2937. vpp*|vx|vx-*)
  2938. - basic_machine=f301-fujitsu
  2939. - ;;
  2940. + basic_machine=f301-fujitsu
  2941. + ;;
  2942. vxworks960)
  2943. basic_machine=i960-wrs
  2944. os=-vxworks
  2945. @@ -881,13 +994,13 @@
  2946. basic_machine=hppa1.1-winbond
  2947. os=-proelf
  2948. ;;
  2949. - xmp)
  2950. - basic_machine=xmp-cray
  2951. - os=-unicos
  2952. - ;;
  2953. - xps | xps100)
  2954. + xps | xps100)
  2955. basic_machine=xps100-honeywell
  2956. ;;
  2957. + ymp)
  2958. + basic_machine=ymp-cray
  2959. + os=-unicos
  2960. + ;;
  2961. z8k-*-coff)
  2962. basic_machine=z8k-unknown
  2963. os=-sim
  2964. @@ -908,13 +1021,6 @@
  2965. op60c)
  2966. basic_machine=hppa1.1-oki
  2967. ;;
  2968. - mips)
  2969. - if [ x$os = x-linux-gnu ]; then
  2970. - basic_machine=mips-unknown
  2971. - else
  2972. - basic_machine=mips-mips
  2973. - fi
  2974. - ;;
  2975. romp)
  2976. basic_machine=romp-ibm
  2977. ;;
  2978. @@ -934,13 +1040,16 @@
  2979. we32k)
  2980. basic_machine=we32k-att
  2981. ;;
  2982. - sh3 | sh4)
  2983. + sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
  2984. basic_machine=sh-unknown
  2985. ;;
  2986. + sh64)
  2987. + basic_machine=sh64-unknown
  2988. + ;;
  2989. sparc | sparcv9 | sparcv9b)
  2990. basic_machine=sparc-sun
  2991. ;;
  2992. - cydra)
  2993. + cydra)
  2994. basic_machine=cydra-cydrome
  2995. ;;
  2996. orion)
  2997. @@ -955,10 +1064,6 @@
  2998. pmac | pmac-mpw)
  2999. basic_machine=powerpc-apple
  3000. ;;
  3001. - c4x*)
  3002. - basic_machine=c4x-none
  3003. - os=-coff
  3004. - ;;
  3005. *-unknown)
  3006. # Make sure to match an already-canonicalized machine name.
  3007. ;;
  3008. @@ -1018,11 +1123,15 @@
  3009. | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
  3010. | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
  3011. | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
  3012. + | -chorusos* | -chorusrdb* \
  3013. | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
  3014. | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
  3015. - | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \
  3016. + | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
  3017. | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
  3018. - | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* | -os2*)
  3019. + | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
  3020. + | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
  3021. + | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
  3022. + | -powermax* | -dnix*)
  3023. # Remember, each alternative MUST END IN *, to match a version number.
  3024. ;;
  3025. -qnx*)
  3026. @@ -1034,8 +1143,10 @@
  3027. ;;
  3028. esac
  3029. ;;
  3030. + -nto-qnx*)
  3031. + ;;
  3032. -nto*)
  3033. - os=-nto-qnx
  3034. + os=`echo $os | sed -e 's|nto|nto-qnx|'`
  3035. ;;
  3036. -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
  3037. | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
  3038. @@ -1074,14 +1185,20 @@
  3039. -acis*)
  3040. os=-aos
  3041. ;;
  3042. + -atheos*)
  3043. + os=-atheos
  3044. + ;;
  3045. -386bsd)
  3046. os=-bsd
  3047. ;;
  3048. -ctix* | -uts*)
  3049. os=-sysv
  3050. ;;
  3051. + -nova*)
  3052. + os=-rtmk-nova
  3053. + ;;
  3054. -ns2 )
  3055. - os=-nextstep2
  3056. + os=-nextstep2
  3057. ;;
  3058. -nsk*)
  3059. os=-nsk
  3060. @@ -1120,8 +1237,14 @@
  3061. -xenix)
  3062. os=-xenix
  3063. ;;
  3064. - -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
  3065. - os=-mint
  3066. + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
  3067. + os=-mint
  3068. + ;;
  3069. + -aros*)
  3070. + os=-aros
  3071. + ;;
  3072. + -kaos*)
  3073. + os=-kaos
  3074. ;;
  3075. -none)
  3076. ;;
  3077. @@ -1154,10 +1277,11 @@
  3078. arm*-semi)
  3079. os=-aout
  3080. ;;
  3081. + # This must come before the *-dec entry.
  3082. pdp10-*)
  3083. os=-tops20
  3084. ;;
  3085. - pdp11-*)
  3086. + pdp11-*)
  3087. os=-none
  3088. ;;
  3089. *-dec | vax-*)
  3090. @@ -1184,6 +1308,9 @@
  3091. mips*-*)
  3092. os=-elf
  3093. ;;
  3094. + or32-*)
  3095. + os=-coff
  3096. + ;;
  3097. *-tti) # must be before sparc entry or we get the wrong os.
  3098. os=-sysv3
  3099. ;;
  3100. @@ -1247,19 +1374,19 @@
  3101. *-next)
  3102. os=-nextstep3
  3103. ;;
  3104. - *-gould)
  3105. + *-gould)
  3106. os=-sysv
  3107. ;;
  3108. - *-highlevel)
  3109. + *-highlevel)
  3110. os=-bsd
  3111. ;;
  3112. *-encore)
  3113. os=-bsd
  3114. ;;
  3115. - *-sgi)
  3116. + *-sgi)
  3117. os=-irix
  3118. ;;
  3119. - *-siemens)
  3120. + *-siemens)
  3121. os=-sysv4
  3122. ;;
  3123. *-masscomp)
  3124. @@ -1331,7 +1458,7 @@
  3125. -ptx*)
  3126. vendor=sequent
  3127. ;;
  3128. - -vxsim* | -vxworks*)
  3129. + -vxsim* | -vxworks* | -windiss*)
  3130. vendor=wrs
  3131. ;;
  3132. -aux*)
  3133. @@ -1346,6 +1473,9 @@
  3134. -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
  3135. vendor=atari
  3136. ;;
  3137. + -vos*)
  3138. + vendor=stratus
  3139. + ;;
  3140. esac
  3141. basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
  3142. ;;
  3143. --- linux-atm-2.4.1.orig/configure
  3144. +++ linux-atm-2.4.1/configure
  3145. @@ -1,24 +1,244 @@
  3146. #! /bin/sh
  3147. -
  3148. # Guess values for system-dependent variables and create Makefiles.
  3149. -# Generated automatically using autoconf version 2.13
  3150. -# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  3151. +# Generated by GNU Autoconf 2.57.
  3152. #
  3153. +# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
  3154. +# Free Software Foundation, Inc.
  3155. # This configure script is free software; the Free Software Foundation
  3156. # gives unlimited permission to copy, distribute and modify it.
  3157. +## --------------------- ##
  3158. +## M4sh Initialization. ##
  3159. +## --------------------- ##
  3160. +
  3161. +# Be Bourne compatible
  3162. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  3163. + emulate sh
  3164. + NULLCMD=:
  3165. + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  3166. + # is contrary to our usage. Disable this feature.
  3167. + alias -g '${1+"$@"}'='"$@"'
  3168. +elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  3169. + set -o posix
  3170. +fi
  3171. +
  3172. +# Support unset when possible.
  3173. +if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
  3174. + as_unset=unset
  3175. +else
  3176. + as_unset=false
  3177. +fi
  3178. +
  3179. +
  3180. +# Work around bugs in pre-3.0 UWIN ksh.
  3181. +$as_unset ENV MAIL MAILPATH
  3182. +PS1='$ '
  3183. +PS2='> '
  3184. +PS4='+ '
  3185. +
  3186. +# NLS nuisances.
  3187. +for as_var in \
  3188. + LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  3189. + LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  3190. + LC_TELEPHONE LC_TIME
  3191. +do
  3192. + if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
  3193. + eval $as_var=C; export $as_var
  3194. + else
  3195. + $as_unset $as_var
  3196. + fi
  3197. +done
  3198. +
  3199. +# Required to use basename.
  3200. +if expr a : '\(a\)' >/dev/null 2>&1; then
  3201. + as_expr=expr
  3202. +else
  3203. + as_expr=false
  3204. +fi
  3205. +
  3206. +if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  3207. + as_basename=basename
  3208. +else
  3209. + as_basename=false
  3210. +fi
  3211. +
  3212. +
  3213. +# Name of the executable.
  3214. +as_me=`$as_basename "$0" ||
  3215. +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  3216. + X"$0" : 'X\(//\)$' \| \
  3217. + X"$0" : 'X\(/\)$' \| \
  3218. + . : '\(.\)' 2>/dev/null ||
  3219. +echo X/"$0" |
  3220. + sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  3221. + /^X\/\(\/\/\)$/{ s//\1/; q; }
  3222. + /^X\/\(\/\).*/{ s//\1/; q; }
  3223. + s/.*/./; q'`
  3224. +
  3225. +
  3226. +# PATH needs CR, and LINENO needs CR and PATH.
  3227. +# Avoid depending upon Character Ranges.
  3228. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  3229. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  3230. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  3231. +as_cr_digits='0123456789'
  3232. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  3233. +
  3234. +# The user is always right.
  3235. +if test "${PATH_SEPARATOR+set}" != set; then
  3236. + echo "#! /bin/sh" >conf$$.sh
  3237. + echo "exit 0" >>conf$$.sh
  3238. + chmod +x conf$$.sh
  3239. + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  3240. + PATH_SEPARATOR=';'
  3241. + else
  3242. + PATH_SEPARATOR=:
  3243. + fi
  3244. + rm -f conf$$.sh
  3245. +fi
  3246. +
  3247. +
  3248. + as_lineno_1=$LINENO
  3249. + as_lineno_2=$LINENO
  3250. + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  3251. + test "x$as_lineno_1" != "x$as_lineno_2" &&
  3252. + test "x$as_lineno_3" = "x$as_lineno_2" || {
  3253. + # Find who we are. Look in the path if we contain no path at all
  3254. + # relative or not.
  3255. + case $0 in
  3256. + *[\\/]* ) as_myself=$0 ;;
  3257. + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3258. +for as_dir in $PATH
  3259. +do
  3260. + IFS=$as_save_IFS
  3261. + test -z "$as_dir" && as_dir=.
  3262. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  3263. +done
  3264. +
  3265. + ;;
  3266. + esac
  3267. + # We did not find ourselves, most probably we were run as `sh COMMAND'
  3268. + # in which case we are not to be found in the path.
  3269. + if test "x$as_myself" = x; then
  3270. + as_myself=$0
  3271. + fi
  3272. + if test ! -f "$as_myself"; then
  3273. + { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  3274. + { (exit 1); exit 1; }; }
  3275. + fi
  3276. + case $CONFIG_SHELL in
  3277. + '')
  3278. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3279. +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  3280. +do
  3281. + IFS=$as_save_IFS
  3282. + test -z "$as_dir" && as_dir=.
  3283. + for as_base in sh bash ksh sh5; do
  3284. + case $as_dir in
  3285. + /*)
  3286. + if ("$as_dir/$as_base" -c '
  3287. + as_lineno_1=$LINENO
  3288. + as_lineno_2=$LINENO
  3289. + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  3290. + test "x$as_lineno_1" != "x$as_lineno_2" &&
  3291. + test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  3292. + $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  3293. + $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  3294. + CONFIG_SHELL=$as_dir/$as_base
  3295. + export CONFIG_SHELL
  3296. + exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  3297. + fi;;
  3298. + esac
  3299. + done
  3300. +done
  3301. +;;
  3302. + esac
  3303. +
  3304. + # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  3305. + # uniformly replaced by the line number. The first 'sed' inserts a
  3306. + # line-number line before each line; the second 'sed' does the real
  3307. + # work. The second script uses 'N' to pair each line-number line
  3308. + # with the numbered line, and appends trailing '-' during
  3309. + # substitution so that $LINENO is not a special case at line end.
  3310. + # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  3311. + # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  3312. + sed '=' <$as_myself |
  3313. + sed '
  3314. + N
  3315. + s,$,-,
  3316. + : loop
  3317. + s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  3318. + t loop
  3319. + s,-$,,
  3320. + s,^['$as_cr_digits']*\n,,
  3321. + ' >$as_me.lineno &&
  3322. + chmod +x $as_me.lineno ||
  3323. + { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  3324. + { (exit 1); exit 1; }; }
  3325. +
  3326. + # Don't try to exec as it changes $[0], causing all sort of problems
  3327. + # (the dirname of $[0] is not the place where we might find the
  3328. + # original and so on. Autoconf is especially sensible to this).
  3329. + . ./$as_me.lineno
  3330. + # Exit status is that of the last command.
  3331. + exit
  3332. +}
  3333. +
  3334. +
  3335. +case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  3336. + *c*,-n*) ECHO_N= ECHO_C='
  3337. +' ECHO_T=' ' ;;
  3338. + *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  3339. + *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  3340. +esac
  3341. +
  3342. +if expr a : '\(a\)' >/dev/null 2>&1; then
  3343. + as_expr=expr
  3344. +else
  3345. + as_expr=false
  3346. +fi
  3347. +
  3348. +rm -f conf$$ conf$$.exe conf$$.file
  3349. +echo >conf$$.file
  3350. +if ln -s conf$$.file conf$$ 2>/dev/null; then
  3351. + # We could just check for DJGPP; but this test a) works b) is more generic
  3352. + # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  3353. + if test -f conf$$.exe; then
  3354. + # Don't use ln at all; we don't have any links
  3355. + as_ln_s='cp -p'
  3356. + else
  3357. + as_ln_s='ln -s'
  3358. + fi
  3359. +elif ln conf$$.file conf$$ 2>/dev/null; then
  3360. + as_ln_s=ln
  3361. +else
  3362. + as_ln_s='cp -p'
  3363. +fi
  3364. +rm -f conf$$ conf$$.exe conf$$.file
  3365. +
  3366. +if mkdir -p . 2>/dev/null; then
  3367. + as_mkdir_p=:
  3368. +else
  3369. + as_mkdir_p=false
  3370. +fi
  3371. +
  3372. +as_executable_p="test -f"
  3373. +
  3374. +# Sed expression to map a string onto a valid CPP name.
  3375. +as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
  3376. +
  3377. +# Sed expression to map a string onto a valid variable name.
  3378. +as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
  3379. +
  3380. +
  3381. +# IFS
  3382. +# We need space, tab and new line, in precisely that order.
  3383. +as_nl='
  3384. +'
  3385. +IFS=" $as_nl"
  3386. +
  3387. +# CDPATH.
  3388. +$as_unset CDPATH
  3389. -# Defaults:
  3390. -ac_help=
  3391. -ac_default_prefix=/usr/local
  3392. -# Any additions from configure.in:
  3393. -ac_help="$ac_help
  3394. - --enable-shared[=PKGS] build shared libraries [default=yes]"
  3395. -ac_help="$ac_help
  3396. - --enable-static[=PKGS] build static libraries [default=yes]"
  3397. -ac_help="$ac_help
  3398. - --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
  3399. -ac_help="$ac_help
  3400. - --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
  3401. # Find the correct PATH separator. Usually this is `:', but
  3402. # DJGPP uses `;' like DOS.
  3403. @@ -28,6 +248,7 @@
  3404. *-DOS) lt_cv_sys_path_separator=';' ;;
  3405. *) lt_cv_sys_path_separator=':' ;;
  3406. esac
  3407. + PATH_SEPARATOR=$lt_cv_sys_path_separator
  3408. fi
  3409. @@ -94,7 +315,7 @@
  3410. #
  3411. # So, first we look for a working echo in the user's PATH.
  3412. - IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
  3413. + IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3414. for dir in $PATH /usr/ucb; do
  3415. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  3416. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  3417. @@ -177,34 +398,86 @@
  3418. fi
  3419. -ac_help="$ac_help
  3420. - --disable-libtool-lock avoid locking (might break parallel builds)"
  3421. -ac_help="$ac_help
  3422. - --with-pic try to use only PIC/non-PIC objects [default=use both]"
  3423. -ac_help="$ac_help
  3424. - --with-uni=VERSION UNI version to use (3.0,3.1,4.0) [default=dynamic]"
  3425. -ac_help="$ac_help
  3426. - --enable-allow_uni30 Allow UNI 3.0 backwards-compatible extensions (if using UNI 3.1)"
  3427. -ac_help="$ac_help
  3428. - --enable-q2963_1 Enable peak cell rate modification as specified in Q.2963.1 (if using UNI 4.0)"
  3429. -ac_help="$ac_help
  3430. - --enable-cisco Enable work around for point-to-multipoint signaling bug in Cisco LS100 or LS7010 switches"
  3431. -ac_help="$ac_help
  3432. - --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."
  3433. -ac_help="$ac_help
  3434. - --enable-mpoa_1_1 Enable proposed MPOA 1.1 features"
  3435. -ac_help="$ac_help
  3436. - --enable-mpr Enable memory debugging (if MPR is installed)"
  3437. +
  3438. +# Name of the host.
  3439. +# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  3440. +# so uname gets run too.
  3441. +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  3442. +
  3443. +exec 6>&1
  3444. +
  3445. +#
  3446. +# Initializations.
  3447. +#
  3448. +ac_default_prefix=/usr/local
  3449. +ac_config_libobj_dir=.
  3450. +cross_compiling=no
  3451. +subdirs=
  3452. +MFLAGS=
  3453. +MAKEFLAGS=
  3454. +SHELL=${CONFIG_SHELL-/bin/sh}
  3455. +
  3456. +# Maximum number of lines to put in a shell here document.
  3457. +# This variable seems obsolete. It should probably be removed, and
  3458. +# only ac_max_sed_lines should be used.
  3459. +: ${ac_max_here_lines=38}
  3460. +
  3461. +# Identity of this package.
  3462. +PACKAGE_NAME=
  3463. +PACKAGE_TARNAME=
  3464. +PACKAGE_VERSION=
  3465. +PACKAGE_STRING=
  3466. +PACKAGE_BUGREPORT=
  3467. +
  3468. +ac_unique_file="src/include/atm.h"
  3469. +# Factoring default headers for most tests.
  3470. +ac_includes_default="\
  3471. +#include <stdio.h>
  3472. +#if HAVE_SYS_TYPES_H
  3473. +# include <sys/types.h>
  3474. +#endif
  3475. +#if HAVE_SYS_STAT_H
  3476. +# include <sys/stat.h>
  3477. +#endif
  3478. +#if STDC_HEADERS
  3479. +# include <stdlib.h>
  3480. +# include <stddef.h>
  3481. +#else
  3482. +# if HAVE_STDLIB_H
  3483. +# include <stdlib.h>
  3484. +# endif
  3485. +#endif
  3486. +#if HAVE_STRING_H
  3487. +# if !STDC_HEADERS && HAVE_MEMORY_H
  3488. +# include <memory.h>
  3489. +# endif
  3490. +# include <string.h>
  3491. +#endif
  3492. +#if HAVE_STRINGS_H
  3493. +# include <strings.h>
  3494. +#endif
  3495. +#if HAVE_INTTYPES_H
  3496. +# include <inttypes.h>
  3497. +#else
  3498. +# if HAVE_STDINT_H
  3499. +# include <stdint.h>
  3500. +# endif
  3501. +#endif
  3502. +#if HAVE_UNISTD_H
  3503. +# include <unistd.h>
  3504. +#endif"
  3505. +
  3506. +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'
  3507. +ac_subst_files=''
  3508. # Initialize some variables set by options.
  3509. +ac_init_help=
  3510. +ac_init_version=false
  3511. # The variables have the same names as the options, with
  3512. # dashes changed to underlines.
  3513. -build=NONE
  3514. -cache_file=./config.cache
  3515. +cache_file=/dev/null
  3516. exec_prefix=NONE
  3517. -host=NONE
  3518. no_create=
  3519. -nonopt=NONE
  3520. no_recursion=
  3521. prefix=NONE
  3522. program_prefix=NONE
  3523. @@ -213,10 +486,15 @@
  3524. silent=
  3525. site=
  3526. srcdir=
  3527. -target=NONE
  3528. verbose=
  3529. x_includes=NONE
  3530. x_libraries=NONE
  3531. +
  3532. +# Installation directory options.
  3533. +# These are left unexpanded so users can "make install exec_prefix=/foo"
  3534. +# and all the variables that are supposed to be based on exec_prefix
  3535. +# by default will actually change.
  3536. +# Use braces instead of parens because sh, perl, etc. also accept them.
  3537. bindir='${exec_prefix}/bin'
  3538. sbindir='${exec_prefix}/sbin'
  3539. libexecdir='${exec_prefix}/libexec'
  3540. @@ -230,17 +508,9 @@
  3541. infodir='${prefix}/info'
  3542. mandir='${prefix}/man'
  3543. -# Initialize some other variables.
  3544. -subdirs=
  3545. -MFLAGS= MAKEFLAGS=
  3546. -SHELL=${CONFIG_SHELL-/bin/sh}
  3547. -# Maximum number of lines to put in a shell here document.
  3548. -ac_max_here_lines=12
  3549. -
  3550. ac_prev=
  3551. for ac_option
  3552. do
  3553. -
  3554. # If the previous option needs an argument, assign it.
  3555. if test -n "$ac_prev"; then
  3556. eval "$ac_prev=\$ac_option"
  3557. @@ -248,59 +518,59 @@
  3558. continue
  3559. fi
  3560. - case "$ac_option" in
  3561. - -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  3562. - *) ac_optarg= ;;
  3563. - esac
  3564. + ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  3565. # Accept the important Cygnus configure options, so we can diagnose typos.
  3566. - case "$ac_option" in
  3567. + case $ac_option in
  3568. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  3569. ac_prev=bindir ;;
  3570. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  3571. - bindir="$ac_optarg" ;;
  3572. + bindir=$ac_optarg ;;
  3573. -build | --build | --buil | --bui | --bu)
  3574. - ac_prev=build ;;
  3575. + ac_prev=build_alias ;;
  3576. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  3577. - build="$ac_optarg" ;;
  3578. + build_alias=$ac_optarg ;;
  3579. -cache-file | --cache-file | --cache-fil | --cache-fi \
  3580. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  3581. ac_prev=cache_file ;;
  3582. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  3583. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  3584. - cache_file="$ac_optarg" ;;
  3585. + cache_file=$ac_optarg ;;
  3586. +
  3587. + --config-cache | -C)
  3588. + cache_file=config.cache ;;
  3589. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  3590. ac_prev=datadir ;;
  3591. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  3592. | --da=*)
  3593. - datadir="$ac_optarg" ;;
  3594. + datadir=$ac_optarg ;;
  3595. -disable-* | --disable-*)
  3596. - ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  3597. + ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  3598. # Reject names that are not valid shell variable names.
  3599. - if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  3600. - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  3601. - fi
  3602. - ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  3603. - eval "enable_${ac_feature}=no" ;;
  3604. + expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  3605. + { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  3606. + { (exit 1); exit 1; }; }
  3607. + ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  3608. + eval "enable_$ac_feature=no" ;;
  3609. -enable-* | --enable-*)
  3610. - ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  3611. + ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  3612. # Reject names that are not valid shell variable names.
  3613. - if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  3614. - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  3615. - fi
  3616. - ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  3617. - case "$ac_option" in
  3618. - *=*) ;;
  3619. + expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  3620. + { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  3621. + { (exit 1); exit 1; }; }
  3622. + ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  3623. + case $ac_option in
  3624. + *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  3625. *) ac_optarg=yes ;;
  3626. esac
  3627. - eval "enable_${ac_feature}='$ac_optarg'" ;;
  3628. + eval "enable_$ac_feature='$ac_optarg'" ;;
  3629. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  3630. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  3631. @@ -309,95 +579,47 @@
  3632. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  3633. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  3634. | --exec=* | --exe=* | --ex=*)
  3635. - exec_prefix="$ac_optarg" ;;
  3636. + exec_prefix=$ac_optarg ;;
  3637. -gas | --gas | --ga | --g)
  3638. # Obsolete; use --with-gas.
  3639. with_gas=yes ;;
  3640. - -help | --help | --hel | --he)
  3641. - # Omit some internal or obsolete options to make the list less imposing.
  3642. - # This message is too long to be a string in the A/UX 3.1 sh.
  3643. - cat << EOF
  3644. -Usage: configure [options] [host]
  3645. -Options: [defaults in brackets after descriptions]
  3646. -Configuration:
  3647. - --cache-file=FILE cache test results in FILE
  3648. - --help print this message
  3649. - --no-create do not create output files
  3650. - --quiet, --silent do not print \`checking...' messages
  3651. - --version print the version of autoconf that created configure
  3652. -Directory and file names:
  3653. - --prefix=PREFIX install architecture-independent files in PREFIX
  3654. - [$ac_default_prefix]
  3655. - --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  3656. - [same as prefix]
  3657. - --bindir=DIR user executables in DIR [EPREFIX/bin]
  3658. - --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
  3659. - --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
  3660. - --datadir=DIR read-only architecture-independent data in DIR
  3661. - [PREFIX/share]
  3662. - --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
  3663. - --sharedstatedir=DIR modifiable architecture-independent data in DIR
  3664. - [PREFIX/com]
  3665. - --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
  3666. - --libdir=DIR object code libraries in DIR [EPREFIX/lib]
  3667. - --includedir=DIR C header files in DIR [PREFIX/include]
  3668. - --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
  3669. - --infodir=DIR info documentation in DIR [PREFIX/info]
  3670. - --mandir=DIR man documentation in DIR [PREFIX/man]
  3671. - --srcdir=DIR find the sources in DIR [configure dir or ..]
  3672. - --program-prefix=PREFIX prepend PREFIX to installed program names
  3673. - --program-suffix=SUFFIX append SUFFIX to installed program names
  3674. - --program-transform-name=PROGRAM
  3675. - run sed PROGRAM on installed program names
  3676. -EOF
  3677. - cat << EOF
  3678. -Host type:
  3679. - --build=BUILD configure for building on BUILD [BUILD=HOST]
  3680. - --host=HOST configure for HOST [guessed]
  3681. - --target=TARGET configure for TARGET [TARGET=HOST]
  3682. -Features and packages:
  3683. - --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  3684. - --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  3685. - --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  3686. - --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  3687. - --x-includes=DIR X include files are in DIR
  3688. - --x-libraries=DIR X library files are in DIR
  3689. -EOF
  3690. - if test -n "$ac_help"; then
  3691. - echo "--enable and --with options recognized:$ac_help"
  3692. - fi
  3693. - exit 0 ;;
  3694. + -help | --help | --hel | --he | -h)
  3695. + ac_init_help=long ;;
  3696. + -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  3697. + ac_init_help=recursive ;;
  3698. + -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  3699. + ac_init_help=short ;;
  3700. -host | --host | --hos | --ho)
  3701. - ac_prev=host ;;
  3702. + ac_prev=host_alias ;;
  3703. -host=* | --host=* | --hos=* | --ho=*)
  3704. - host="$ac_optarg" ;;
  3705. + host_alias=$ac_optarg ;;
  3706. -includedir | --includedir | --includedi | --included | --include \
  3707. | --includ | --inclu | --incl | --inc)
  3708. ac_prev=includedir ;;
  3709. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  3710. | --includ=* | --inclu=* | --incl=* | --inc=*)
  3711. - includedir="$ac_optarg" ;;
  3712. + includedir=$ac_optarg ;;
  3713. -infodir | --infodir | --infodi | --infod | --info | --inf)
  3714. ac_prev=infodir ;;
  3715. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  3716. - infodir="$ac_optarg" ;;
  3717. + infodir=$ac_optarg ;;
  3718. -libdir | --libdir | --libdi | --libd)
  3719. ac_prev=libdir ;;
  3720. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  3721. - libdir="$ac_optarg" ;;
  3722. + libdir=$ac_optarg ;;
  3723. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  3724. | --libexe | --libex | --libe)
  3725. ac_prev=libexecdir ;;
  3726. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  3727. | --libexe=* | --libex=* | --libe=*)
  3728. - libexecdir="$ac_optarg" ;;
  3729. + libexecdir=$ac_optarg ;;
  3730. -localstatedir | --localstatedir | --localstatedi | --localstated \
  3731. | --localstate | --localstat | --localsta | --localst \
  3732. @@ -406,19 +628,19 @@
  3733. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  3734. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  3735. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  3736. - localstatedir="$ac_optarg" ;;
  3737. + localstatedir=$ac_optarg ;;
  3738. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  3739. ac_prev=mandir ;;
  3740. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  3741. - mandir="$ac_optarg" ;;
  3742. + mandir=$ac_optarg ;;
  3743. -nfp | --nfp | --nf)
  3744. # Obsolete; use --without-fp.
  3745. with_fp=no ;;
  3746. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  3747. - | --no-cr | --no-c)
  3748. + | --no-cr | --no-c | -n)
  3749. no_create=yes ;;
  3750. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  3751. @@ -432,26 +654,26 @@
  3752. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  3753. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  3754. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  3755. - oldincludedir="$ac_optarg" ;;
  3756. + oldincludedir=$ac_optarg ;;
  3757. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  3758. ac_prev=prefix ;;
  3759. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  3760. - prefix="$ac_optarg" ;;
  3761. + prefix=$ac_optarg ;;
  3762. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  3763. | --program-pre | --program-pr | --program-p)
  3764. ac_prev=program_prefix ;;
  3765. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  3766. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  3767. - program_prefix="$ac_optarg" ;;
  3768. + program_prefix=$ac_optarg ;;
  3769. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  3770. | --program-suf | --program-su | --program-s)
  3771. ac_prev=program_suffix ;;
  3772. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  3773. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  3774. - program_suffix="$ac_optarg" ;;
  3775. + program_suffix=$ac_optarg ;;
  3776. -program-transform-name | --program-transform-name \
  3777. | --program-transform-nam | --program-transform-na \
  3778. @@ -468,7 +690,7 @@
  3779. | --program-transfo=* | --program-transf=* \
  3780. | --program-trans=* | --program-tran=* \
  3781. | --progr-tra=* | --program-tr=* | --program-t=*)
  3782. - program_transform_name="$ac_optarg" ;;
  3783. + program_transform_name=$ac_optarg ;;
  3784. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  3785. | -silent | --silent | --silen | --sile | --sil)
  3786. @@ -478,7 +700,7 @@
  3787. ac_prev=sbindir ;;
  3788. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  3789. | --sbi=* | --sb=*)
  3790. - sbindir="$ac_optarg" ;;
  3791. + sbindir=$ac_optarg ;;
  3792. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  3793. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  3794. @@ -489,58 +711,57 @@
  3795. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  3796. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  3797. | --sha=* | --sh=*)
  3798. - sharedstatedir="$ac_optarg" ;;
  3799. + sharedstatedir=$ac_optarg ;;
  3800. -site | --site | --sit)
  3801. ac_prev=site ;;
  3802. -site=* | --site=* | --sit=*)
  3803. - site="$ac_optarg" ;;
  3804. + site=$ac_optarg ;;
  3805. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  3806. ac_prev=srcdir ;;
  3807. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  3808. - srcdir="$ac_optarg" ;;
  3809. + srcdir=$ac_optarg ;;
  3810. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  3811. | --syscon | --sysco | --sysc | --sys | --sy)
  3812. ac_prev=sysconfdir ;;
  3813. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  3814. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  3815. - sysconfdir="$ac_optarg" ;;
  3816. + sysconfdir=$ac_optarg ;;
  3817. -target | --target | --targe | --targ | --tar | --ta | --t)
  3818. - ac_prev=target ;;
  3819. + ac_prev=target_alias ;;
  3820. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  3821. - target="$ac_optarg" ;;
  3822. + target_alias=$ac_optarg ;;
  3823. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  3824. verbose=yes ;;
  3825. - -version | --version | --versio | --versi | --vers)
  3826. - echo "configure generated by autoconf version 2.13"
  3827. - exit 0 ;;
  3828. + -version | --version | --versio | --versi | --vers | -V)
  3829. + ac_init_version=: ;;
  3830. -with-* | --with-*)
  3831. - ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  3832. + ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  3833. # Reject names that are not valid shell variable names.
  3834. - if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  3835. - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  3836. - fi
  3837. + expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  3838. + { echo "$as_me: error: invalid package name: $ac_package" >&2
  3839. + { (exit 1); exit 1; }; }
  3840. ac_package=`echo $ac_package| sed 's/-/_/g'`
  3841. - case "$ac_option" in
  3842. - *=*) ;;
  3843. + case $ac_option in
  3844. + *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  3845. *) ac_optarg=yes ;;
  3846. esac
  3847. - eval "with_${ac_package}='$ac_optarg'" ;;
  3848. + eval "with_$ac_package='$ac_optarg'" ;;
  3849. -without-* | --without-*)
  3850. - ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  3851. + ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  3852. # Reject names that are not valid shell variable names.
  3853. - if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  3854. - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  3855. - fi
  3856. - ac_package=`echo $ac_package| sed 's/-/_/g'`
  3857. - eval "with_${ac_package}=no" ;;
  3858. + expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  3859. + { echo "$as_me: error: invalid package name: $ac_package" >&2
  3860. + { (exit 1); exit 1; }; }
  3861. + ac_package=`echo $ac_package | sed 's/-/_/g'`
  3862. + eval "with_$ac_package=no" ;;
  3863. --x)
  3864. # Obsolete; use --with-x.
  3865. @@ -551,99 +772,110 @@
  3866. ac_prev=x_includes ;;
  3867. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  3868. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  3869. - x_includes="$ac_optarg" ;;
  3870. + x_includes=$ac_optarg ;;
  3871. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  3872. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  3873. ac_prev=x_libraries ;;
  3874. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  3875. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  3876. - x_libraries="$ac_optarg" ;;
  3877. + x_libraries=$ac_optarg ;;
  3878. - -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  3879. + -*) { echo "$as_me: error: unrecognized option: $ac_option
  3880. +Try \`$0 --help' for more information." >&2
  3881. + { (exit 1); exit 1; }; }
  3882. ;;
  3883. + *=*)
  3884. + ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  3885. + # Reject names that are not valid shell variable names.
  3886. + expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  3887. + { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  3888. + { (exit 1); exit 1; }; }
  3889. + ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  3890. + eval "$ac_envvar='$ac_optarg'"
  3891. + export $ac_envvar ;;
  3892. +
  3893. *)
  3894. - if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  3895. - echo "configure: warning: $ac_option: invalid host type" 1>&2
  3896. - fi
  3897. - if test "x$nonopt" != xNONE; then
  3898. - { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  3899. - fi
  3900. - nonopt="$ac_option"
  3901. + # FIXME: should be removed in autoconf 3.0.
  3902. + echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  3903. + expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  3904. + echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  3905. + : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  3906. ;;
  3907. esac
  3908. done
  3909. if test -n "$ac_prev"; then
  3910. - { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  3911. -fi
  3912. -
  3913. -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  3914. -
  3915. -# File descriptor usage:
  3916. -# 0 standard input
  3917. -# 1 file creation
  3918. -# 2 errors and warnings
  3919. -# 3 some systems may open it to /dev/tty
  3920. -# 4 used on the Kubota Titan
  3921. -# 6 checking for... messages and results
  3922. -# 5 compiler messages saved in config.log
  3923. -if test "$silent" = yes; then
  3924. - exec 6>/dev/null
  3925. -else
  3926. - exec 6>&1
  3927. + ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  3928. + { echo "$as_me: error: missing argument to $ac_option" >&2
  3929. + { (exit 1); exit 1; }; }
  3930. fi
  3931. -exec 5>./config.log
  3932. -echo "\
  3933. -This file contains any messages produced by compilers while
  3934. -running configure, to aid debugging if configure makes a mistake.
  3935. -" 1>&5
  3936. +# Be sure to have absolute paths.
  3937. +for ac_var in exec_prefix prefix
  3938. +do
  3939. + eval ac_val=$`echo $ac_var`
  3940. + case $ac_val in
  3941. + [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  3942. + *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  3943. + { (exit 1); exit 1; }; };;
  3944. + esac
  3945. +done
  3946. -# Strip out --no-create and --no-recursion so they do not pile up.
  3947. -# Also quote any args containing shell metacharacters.
  3948. -ac_configure_args=
  3949. -for ac_arg
  3950. +# Be sure to have absolute paths.
  3951. +for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  3952. + localstatedir libdir includedir oldincludedir infodir mandir
  3953. do
  3954. - case "$ac_arg" in
  3955. - -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  3956. - | --no-cr | --no-c) ;;
  3957. - -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  3958. - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  3959. - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  3960. - ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  3961. - *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  3962. + eval ac_val=$`echo $ac_var`
  3963. + case $ac_val in
  3964. + [\\/$]* | ?:[\\/]* ) ;;
  3965. + *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  3966. + { (exit 1); exit 1; }; };;
  3967. esac
  3968. done
  3969. -# NLS nuisances.
  3970. -# Only set these to C if already set. These must not be set unconditionally
  3971. -# because not all systems understand e.g. LANG=C (notably SCO).
  3972. -# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  3973. -# Non-C LC_CTYPE values break the ctype check.
  3974. -if test "${LANG+set}" = set; then LANG=C; export LANG; fi
  3975. -if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  3976. -if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  3977. -if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
  3978. +# There might be people who depend on the old broken behavior: `$host'
  3979. +# used to hold the argument of --host etc.
  3980. +# FIXME: To remove some day.
  3981. +build=$build_alias
  3982. +host=$host_alias
  3983. +target=$target_alias
  3984. +
  3985. +# FIXME: To remove some day.
  3986. +if test "x$host_alias" != x; then
  3987. + if test "x$build_alias" = x; then
  3988. + cross_compiling=maybe
  3989. + echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  3990. + If a cross compiler is detected then cross compile mode will be used." >&2
  3991. + elif test "x$build_alias" != "x$host_alias"; then
  3992. + cross_compiling=yes
  3993. + fi
  3994. +fi
  3995. -# confdefs.h avoids OS command line length limits that DEFS can exceed.
  3996. -rm -rf conftest* confdefs.h
  3997. -# AIX cpp loses on an empty file, so make sure it contains at least a newline.
  3998. -echo > confdefs.h
  3999. +ac_tool_prefix=
  4000. +test -n "$host_alias" && ac_tool_prefix=$host_alias-
  4001. +
  4002. +test "$silent" = yes && exec 6>/dev/null
  4003. -# A filename unique to this package, relative to the directory that
  4004. -# configure is in, which we can look for to find out if srcdir is correct.
  4005. -ac_unique_file=src/include/atm.h
  4006. # Find the source files, if location was not specified.
  4007. if test -z "$srcdir"; then
  4008. ac_srcdir_defaulted=yes
  4009. # Try the directory containing this script, then its parent.
  4010. - ac_prog=$0
  4011. - ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  4012. - test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  4013. + ac_confdir=`(dirname "$0") 2>/dev/null ||
  4014. +$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  4015. + X"$0" : 'X\(//\)[^/]' \| \
  4016. + X"$0" : 'X\(//\)$' \| \
  4017. + X"$0" : 'X\(/\)' \| \
  4018. + . : '\(.\)' 2>/dev/null ||
  4019. +echo X"$0" |
  4020. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  4021. + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  4022. + /^X\(\/\/\)$/{ s//\1/; q; }
  4023. + /^X\(\/\).*/{ s//\1/; q; }
  4024. + s/.*/./; q'`
  4025. srcdir=$ac_confdir
  4026. if test ! -r $srcdir/$ac_unique_file; then
  4027. srcdir=..
  4028. @@ -653,13 +885,453 @@
  4029. fi
  4030. if test ! -r $srcdir/$ac_unique_file; then
  4031. if test "$ac_srcdir_defaulted" = yes; then
  4032. - { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  4033. + { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  4034. + { (exit 1); exit 1; }; }
  4035. else
  4036. - { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  4037. + { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  4038. + { (exit 1); exit 1; }; }
  4039. fi
  4040. fi
  4041. -srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  4042. +(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  4043. + { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  4044. + { (exit 1); exit 1; }; }
  4045. +srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  4046. +ac_env_build_alias_set=${build_alias+set}
  4047. +ac_env_build_alias_value=$build_alias
  4048. +ac_cv_env_build_alias_set=${build_alias+set}
  4049. +ac_cv_env_build_alias_value=$build_alias
  4050. +ac_env_host_alias_set=${host_alias+set}
  4051. +ac_env_host_alias_value=$host_alias
  4052. +ac_cv_env_host_alias_set=${host_alias+set}
  4053. +ac_cv_env_host_alias_value=$host_alias
  4054. +ac_env_target_alias_set=${target_alias+set}
  4055. +ac_env_target_alias_value=$target_alias
  4056. +ac_cv_env_target_alias_set=${target_alias+set}
  4057. +ac_cv_env_target_alias_value=$target_alias
  4058. +ac_env_CC_set=${CC+set}
  4059. +ac_env_CC_value=$CC
  4060. +ac_cv_env_CC_set=${CC+set}
  4061. +ac_cv_env_CC_value=$CC
  4062. +ac_env_CFLAGS_set=${CFLAGS+set}
  4063. +ac_env_CFLAGS_value=$CFLAGS
  4064. +ac_cv_env_CFLAGS_set=${CFLAGS+set}
  4065. +ac_cv_env_CFLAGS_value=$CFLAGS
  4066. +ac_env_LDFLAGS_set=${LDFLAGS+set}
  4067. +ac_env_LDFLAGS_value=$LDFLAGS
  4068. +ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  4069. +ac_cv_env_LDFLAGS_value=$LDFLAGS
  4070. +ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  4071. +ac_env_CPPFLAGS_value=$CPPFLAGS
  4072. +ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  4073. +ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  4074. +ac_env_CPP_set=${CPP+set}
  4075. +ac_env_CPP_value=$CPP
  4076. +ac_cv_env_CPP_set=${CPP+set}
  4077. +ac_cv_env_CPP_value=$CPP
  4078. +
  4079. +#
  4080. +# Report the --help message.
  4081. +#
  4082. +if test "$ac_init_help" = "long"; then
  4083. + # Omit some internal or obsolete options to make the list less imposing.
  4084. + # This message is too long to be a string in the A/UX 3.1 sh.
  4085. + cat <<_ACEOF
  4086. +\`configure' configures this package to adapt to many kinds of systems.
  4087. +
  4088. +Usage: $0 [OPTION]... [VAR=VALUE]...
  4089. +
  4090. +To assign environment variables (e.g., CC, CFLAGS...), specify them as
  4091. +VAR=VALUE. See below for descriptions of some of the useful variables.
  4092. +
  4093. +Defaults for the options are specified in brackets.
  4094. +
  4095. +Configuration:
  4096. + -h, --help display this help and exit
  4097. + --help=short display options specific to this package
  4098. + --help=recursive display the short help of all the included packages
  4099. + -V, --version display version information and exit
  4100. + -q, --quiet, --silent do not print \`checking...' messages
  4101. + --cache-file=FILE cache test results in FILE [disabled]
  4102. + -C, --config-cache alias for \`--cache-file=config.cache'
  4103. + -n, --no-create do not create output files
  4104. + --srcdir=DIR find the sources in DIR [configure dir or \`..']
  4105. +
  4106. +_ACEOF
  4107. +
  4108. + cat <<_ACEOF
  4109. +Installation directories:
  4110. + --prefix=PREFIX install architecture-independent files in PREFIX
  4111. + [$ac_default_prefix]
  4112. + --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  4113. + [PREFIX]
  4114. +
  4115. +By default, \`make install' will install all the files in
  4116. +\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  4117. +an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  4118. +for instance \`--prefix=\$HOME'.
  4119. +
  4120. +For better control, use the options below.
  4121. +
  4122. +Fine tuning of the installation directories:
  4123. + --bindir=DIR user executables [EPREFIX/bin]
  4124. + --sbindir=DIR system admin executables [EPREFIX/sbin]
  4125. + --libexecdir=DIR program executables [EPREFIX/libexec]
  4126. + --datadir=DIR read-only architecture-independent data [PREFIX/share]
  4127. + --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  4128. + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  4129. + --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  4130. + --libdir=DIR object code libraries [EPREFIX/lib]
  4131. + --includedir=DIR C header files [PREFIX/include]
  4132. + --oldincludedir=DIR C header files for non-gcc [/usr/include]
  4133. + --infodir=DIR info documentation [PREFIX/info]
  4134. + --mandir=DIR man documentation [PREFIX/man]
  4135. +_ACEOF
  4136. +
  4137. + cat <<\_ACEOF
  4138. +
  4139. +Program names:
  4140. + --program-prefix=PREFIX prepend PREFIX to installed program names
  4141. + --program-suffix=SUFFIX append SUFFIX to installed program names
  4142. + --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  4143. +
  4144. +System types:
  4145. + --build=BUILD configure for building on BUILD [guessed]
  4146. + --host=HOST cross-compile to build programs to run on HOST [BUILD]
  4147. + --target=TARGET configure for building compilers for TARGET [HOST]
  4148. +_ACEOF
  4149. +fi
  4150. +
  4151. +if test -n "$ac_init_help"; then
  4152. +
  4153. + cat <<\_ACEOF
  4154. +
  4155. +Optional Features:
  4156. + --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  4157. + --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  4158. + --enable-shared=PKGS build shared libraries default=yes
  4159. + --enable-static=PKGS build static libraries default=yes
  4160. + --enable-fast-install=PKGS optimize for fast installation default=yes
  4161. + --disable-libtool-lock avoid locking (might break parallel builds)
  4162. + --enable-allow_uni30 Allow UNI 3.0 backwards-compatible extensions (if using UNI 3.1)
  4163. + --enable-q2963_1 Enable peak cell rate modification as specified in Q.2963.1 (if using UNI 4.0)
  4164. + --enable-cisco Enable work around for point-to-multipoint signaling bug in Cisco LS100 or LS7010 switches
  4165. + --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.
  4166. + --enable-mpoa_1_1 Enable proposed MPOA 1.1 features
  4167. + --enable-mpr Enable memory debugging (if MPR is installed)
  4168. +
  4169. +Optional Packages:
  4170. + --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  4171. + --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  4172. + --with-gnu-ld assume the C compiler uses GNU ld default=no
  4173. + --with-pic try to use only PIC/non-PIC objects default=use both
  4174. + --with-uni=VERSION UNI version to use (3.0,3.1,4.0) default=dynamic
  4175. +
  4176. +Some influential environment variables:
  4177. + CC C compiler command
  4178. + CFLAGS C compiler flags
  4179. + LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  4180. + nonstandard directory <lib dir>
  4181. + CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  4182. + headers in a nonstandard directory <include dir>
  4183. + CPP C preprocessor
  4184. +
  4185. +Use these variables to override the choices made by `configure' or to help
  4186. +it to find libraries and programs with nonstandard names/locations.
  4187. +
  4188. +_ACEOF
  4189. +fi
  4190. +
  4191. +if test "$ac_init_help" = "recursive"; then
  4192. + # If there are subdirs, report their specific --help.
  4193. + ac_popdir=`pwd`
  4194. + for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  4195. + test -d $ac_dir || continue
  4196. + ac_builddir=.
  4197. +
  4198. +if test "$ac_dir" != .; then
  4199. + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  4200. + # A "../" for each directory in $ac_dir_suffix.
  4201. + ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  4202. +else
  4203. + ac_dir_suffix= ac_top_builddir=
  4204. +fi
  4205. +
  4206. +case $srcdir in
  4207. + .) # No --srcdir option. We are building in place.
  4208. + ac_srcdir=.
  4209. + if test -z "$ac_top_builddir"; then
  4210. + ac_top_srcdir=.
  4211. + else
  4212. + ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  4213. + fi ;;
  4214. + [\\/]* | ?:[\\/]* ) # Absolute path.
  4215. + ac_srcdir=$srcdir$ac_dir_suffix;
  4216. + ac_top_srcdir=$srcdir ;;
  4217. + *) # Relative path.
  4218. + ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  4219. + ac_top_srcdir=$ac_top_builddir$srcdir ;;
  4220. +esac
  4221. +# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
  4222. +# absolute.
  4223. +ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
  4224. +ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
  4225. +ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
  4226. +ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
  4227. +
  4228. + cd $ac_dir
  4229. + # Check for guested configure; otherwise get Cygnus style configure.
  4230. + if test -f $ac_srcdir/configure.gnu; then
  4231. + echo
  4232. + $SHELL $ac_srcdir/configure.gnu --help=recursive
  4233. + elif test -f $ac_srcdir/configure; then
  4234. + echo
  4235. + $SHELL $ac_srcdir/configure --help=recursive
  4236. + elif test -f $ac_srcdir/configure.ac ||
  4237. + test -f $ac_srcdir/configure.in; then
  4238. + echo
  4239. + $ac_configure --help
  4240. + else
  4241. + echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  4242. + fi
  4243. + cd $ac_popdir
  4244. + done
  4245. +fi
  4246. +
  4247. +test -n "$ac_init_help" && exit 0
  4248. +if $ac_init_version; then
  4249. + cat <<\_ACEOF
  4250. +
  4251. +Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
  4252. +Free Software Foundation, Inc.
  4253. +This configure script is free software; the Free Software Foundation
  4254. +gives unlimited permission to copy, distribute and modify it.
  4255. +_ACEOF
  4256. + exit 0
  4257. +fi
  4258. +exec 5>config.log
  4259. +cat >&5 <<_ACEOF
  4260. +This file contains any messages produced by compilers while
  4261. +running configure, to aid debugging if configure makes a mistake.
  4262. +
  4263. +It was created by $as_me, which was
  4264. +generated by GNU Autoconf 2.57. Invocation command line was
  4265. +
  4266. + $ $0 $@
  4267. +
  4268. +_ACEOF
  4269. +{
  4270. +cat <<_ASUNAME
  4271. +## --------- ##
  4272. +## Platform. ##
  4273. +## --------- ##
  4274. +
  4275. +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  4276. +uname -m = `(uname -m) 2>/dev/null || echo unknown`
  4277. +uname -r = `(uname -r) 2>/dev/null || echo unknown`
  4278. +uname -s = `(uname -s) 2>/dev/null || echo unknown`
  4279. +uname -v = `(uname -v) 2>/dev/null || echo unknown`
  4280. +
  4281. +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  4282. +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  4283. +
  4284. +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  4285. +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  4286. +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  4287. +hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  4288. +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  4289. +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  4290. +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  4291. +
  4292. +_ASUNAME
  4293. +
  4294. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4295. +for as_dir in $PATH
  4296. +do
  4297. + IFS=$as_save_IFS
  4298. + test -z "$as_dir" && as_dir=.
  4299. + echo "PATH: $as_dir"
  4300. +done
  4301. +
  4302. +} >&5
  4303. +
  4304. +cat >&5 <<_ACEOF
  4305. +
  4306. +
  4307. +## ----------- ##
  4308. +## Core tests. ##
  4309. +## ----------- ##
  4310. +
  4311. +_ACEOF
  4312. +
  4313. +
  4314. +# Keep a trace of the command line.
  4315. +# Strip out --no-create and --no-recursion so they do not pile up.
  4316. +# Strip out --silent because we don't want to record it for future runs.
  4317. +# Also quote any args containing shell meta-characters.
  4318. +# Make two passes to allow for proper duplicate-argument suppression.
  4319. +ac_configure_args=
  4320. +ac_configure_args0=
  4321. +ac_configure_args1=
  4322. +ac_sep=
  4323. +ac_must_keep_next=false
  4324. +for ac_pass in 1 2
  4325. +do
  4326. + for ac_arg
  4327. + do
  4328. + case $ac_arg in
  4329. + -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  4330. + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  4331. + | -silent | --silent | --silen | --sile | --sil)
  4332. + continue ;;
  4333. + *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  4334. + ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  4335. + esac
  4336. + case $ac_pass in
  4337. + 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  4338. + 2)
  4339. + ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  4340. + if test $ac_must_keep_next = true; then
  4341. + ac_must_keep_next=false # Got value, back to normal.
  4342. + else
  4343. + case $ac_arg in
  4344. + *=* | --config-cache | -C | -disable-* | --disable-* \
  4345. + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  4346. + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  4347. + | -with-* | --with-* | -without-* | --without-* | --x)
  4348. + case "$ac_configure_args0 " in
  4349. + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  4350. + esac
  4351. + ;;
  4352. + -* ) ac_must_keep_next=true ;;
  4353. + esac
  4354. + fi
  4355. + ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  4356. + # Get rid of the leading space.
  4357. + ac_sep=" "
  4358. + ;;
  4359. + esac
  4360. + done
  4361. +done
  4362. +$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  4363. +$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  4364. +
  4365. +# When interrupted or exit'd, cleanup temporary files, and complete
  4366. +# config.log. We remove comments because anyway the quotes in there
  4367. +# would cause problems or look ugly.
  4368. +# WARNING: Be sure not to use single quotes in there, as some shells,
  4369. +# such as our DU 5.0 friend, will then `close' the trap.
  4370. +trap 'exit_status=$?
  4371. + # Save into config.log some information that might help in debugging.
  4372. + {
  4373. + echo
  4374. +
  4375. + cat <<\_ASBOX
  4376. +## ---------------- ##
  4377. +## Cache variables. ##
  4378. +## ---------------- ##
  4379. +_ASBOX
  4380. + echo
  4381. + # The following way of writing the cache mishandles newlines in values,
  4382. +{
  4383. + (set) 2>&1 |
  4384. + case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  4385. + *ac_space=\ *)
  4386. + sed -n \
  4387. + "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  4388. + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  4389. + ;;
  4390. + *)
  4391. + sed -n \
  4392. + "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  4393. + ;;
  4394. + esac;
  4395. +}
  4396. + echo
  4397. +
  4398. + cat <<\_ASBOX
  4399. +## ----------------- ##
  4400. +## Output variables. ##
  4401. +## ----------------- ##
  4402. +_ASBOX
  4403. + echo
  4404. + for ac_var in $ac_subst_vars
  4405. + do
  4406. + eval ac_val=$`echo $ac_var`
  4407. + echo "$ac_var='"'"'$ac_val'"'"'"
  4408. + done | sort
  4409. + echo
  4410. +
  4411. + if test -n "$ac_subst_files"; then
  4412. + cat <<\_ASBOX
  4413. +## ------------- ##
  4414. +## Output files. ##
  4415. +## ------------- ##
  4416. +_ASBOX
  4417. + echo
  4418. + for ac_var in $ac_subst_files
  4419. + do
  4420. + eval ac_val=$`echo $ac_var`
  4421. + echo "$ac_var='"'"'$ac_val'"'"'"
  4422. + done | sort
  4423. + echo
  4424. + fi
  4425. +
  4426. + if test -s confdefs.h; then
  4427. + cat <<\_ASBOX
  4428. +## ----------- ##
  4429. +## confdefs.h. ##
  4430. +## ----------- ##
  4431. +_ASBOX
  4432. + echo
  4433. + sed "/^$/d" confdefs.h | sort
  4434. + echo
  4435. + fi
  4436. + test "$ac_signal" != 0 &&
  4437. + echo "$as_me: caught signal $ac_signal"
  4438. + echo "$as_me: exit $exit_status"
  4439. + } >&5
  4440. + rm -f core *.core &&
  4441. + rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  4442. + exit $exit_status
  4443. + ' 0
  4444. +for ac_signal in 1 2 13 15; do
  4445. + trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  4446. +done
  4447. +ac_signal=0
  4448. +
  4449. +# confdefs.h avoids OS command line length limits that DEFS can exceed.
  4450. +rm -rf conftest* confdefs.h
  4451. +# AIX cpp loses on an empty file, so make sure it contains at least a newline.
  4452. +echo >confdefs.h
  4453. +
  4454. +# Predefined preprocessor variables.
  4455. +cat >>confdefs.h <<_ACEOF
  4456. +#define PACKAGE_NAME "$PACKAGE_NAME"
  4457. +_ACEOF
  4458. +
  4459. +
  4460. +cat >>confdefs.h <<_ACEOF
  4461. +#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  4462. +_ACEOF
  4463. +
  4464. +
  4465. +cat >>confdefs.h <<_ACEOF
  4466. +#define PACKAGE_VERSION "$PACKAGE_VERSION"
  4467. +_ACEOF
  4468. +
  4469. +
  4470. +cat >>confdefs.h <<_ACEOF
  4471. +#define PACKAGE_STRING "$PACKAGE_STRING"
  4472. +_ACEOF
  4473. +
  4474. +
  4475. +cat >>confdefs.h <<_ACEOF
  4476. +#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  4477. +_ACEOF
  4478. +
  4479. +
  4480. +# Let the site file select an alternate cache file if it wants to.
  4481. # Prefer explicitly selected file to automatically selected ones.
  4482. if test -z "$CONFIG_SITE"; then
  4483. if test "x$prefix" != xNONE; then
  4484. @@ -670,45 +1342,111 @@
  4485. fi
  4486. for ac_site_file in $CONFIG_SITE; do
  4487. if test -r "$ac_site_file"; then
  4488. - echo "loading site script $ac_site_file"
  4489. + { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  4490. +echo "$as_me: loading site script $ac_site_file" >&6;}
  4491. + sed 's/^/| /' "$ac_site_file" >&5
  4492. . "$ac_site_file"
  4493. fi
  4494. done
  4495. if test -r "$cache_file"; then
  4496. - echo "loading cache $cache_file"
  4497. - . $cache_file
  4498. + # Some versions of bash will fail to source /dev/null (special
  4499. + # files actually), so we avoid doing that.
  4500. + if test -f "$cache_file"; then
  4501. + { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  4502. +echo "$as_me: loading cache $cache_file" >&6;}
  4503. + case $cache_file in
  4504. + [\\/]* | ?:[\\/]* ) . $cache_file;;
  4505. + *) . ./$cache_file;;
  4506. + esac
  4507. + fi
  4508. else
  4509. - echo "creating cache $cache_file"
  4510. - > $cache_file
  4511. + { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  4512. +echo "$as_me: creating cache $cache_file" >&6;}
  4513. + >$cache_file
  4514. +fi
  4515. +
  4516. +# Check that the precious variables saved in the cache have kept the same
  4517. +# value.
  4518. +ac_cache_corrupted=false
  4519. +for ac_var in `(set) 2>&1 |
  4520. + sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  4521. + eval ac_old_set=\$ac_cv_env_${ac_var}_set
  4522. + eval ac_new_set=\$ac_env_${ac_var}_set
  4523. + eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  4524. + eval ac_new_val="\$ac_env_${ac_var}_value"
  4525. + case $ac_old_set,$ac_new_set in
  4526. + set,)
  4527. + { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  4528. +echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  4529. + ac_cache_corrupted=: ;;
  4530. + ,set)
  4531. + { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  4532. +echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  4533. + ac_cache_corrupted=: ;;
  4534. + ,);;
  4535. + *)
  4536. + if test "x$ac_old_val" != "x$ac_new_val"; then
  4537. + { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  4538. +echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  4539. + { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  4540. +echo "$as_me: former value: $ac_old_val" >&2;}
  4541. + { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  4542. +echo "$as_me: current value: $ac_new_val" >&2;}
  4543. + ac_cache_corrupted=:
  4544. + fi;;
  4545. + esac
  4546. + # Pass precious variables to config.status.
  4547. + if test "$ac_new_set" = set; then
  4548. + case $ac_new_val in
  4549. + *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  4550. + ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  4551. + *) ac_arg=$ac_var=$ac_new_val ;;
  4552. + esac
  4553. + case " $ac_configure_args " in
  4554. + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  4555. + *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  4556. + esac
  4557. + fi
  4558. +done
  4559. +if $ac_cache_corrupted; then
  4560. + { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  4561. +echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  4562. + { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  4563. +echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  4564. + { (exit 1); exit 1; }; }
  4565. fi
  4566. ac_ext=c
  4567. -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  4568. ac_cpp='$CPP $CPPFLAGS'
  4569. -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  4570. -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  4571. -cross_compiling=$ac_cv_prog_cc_cross
  4572. -
  4573. -ac_exeext=
  4574. -ac_objext=o
  4575. -if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  4576. - # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  4577. - if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  4578. - ac_n= ac_c='
  4579. -' ac_t=' '
  4580. - else
  4581. - ac_n=-n ac_c= ac_t=
  4582. - fi
  4583. -else
  4584. - ac_n= ac_c='\c' ac_t=
  4585. -fi
  4586. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4587. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4588. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4589. +
  4590. +
  4591. +
  4592. +
  4593. +
  4594. +
  4595. +
  4596. +
  4597. +
  4598. +
  4599. +
  4600. +
  4601. +
  4602. +
  4603. + ac_config_headers="$ac_config_headers config.h"
  4604. +
  4605. + ac_config_commands="$ac_config_commands default-1"
  4606. +
  4607. +
  4608. ac_aux_dir=
  4609. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  4610. if test -f $ac_dir/install-sh; then
  4611. @@ -719,105 +1457,105 @@
  4612. ac_aux_dir=$ac_dir
  4613. ac_install_sh="$ac_aux_dir/install.sh -c"
  4614. break
  4615. + elif test -f $ac_dir/shtool; then
  4616. + ac_aux_dir=$ac_dir
  4617. + ac_install_sh="$ac_aux_dir/shtool install -c"
  4618. + break
  4619. fi
  4620. done
  4621. if test -z "$ac_aux_dir"; then
  4622. - { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  4623. -fi
  4624. -ac_config_guess=$ac_aux_dir/config.guess
  4625. -ac_config_sub=$ac_aux_dir/config.sub
  4626. -ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  4627. -
  4628. -
  4629. -# Do some error checking and defaulting for the host and target type.
  4630. -# The inputs are:
  4631. -# configure --host=HOST --target=TARGET --build=BUILD NONOPT
  4632. -#
  4633. -# The rules are:
  4634. -# 1. You are not allowed to specify --host, --target, and nonopt at the
  4635. -# same time.
  4636. -# 2. Host defaults to nonopt.
  4637. -# 3. If nonopt is not specified, then host defaults to the current host,
  4638. -# as determined by config.guess.
  4639. -# 4. Target and build default to nonopt.
  4640. -# 5. If nonopt is not specified, then target and build default to host.
  4641. -
  4642. -# The aliases save the names the user supplied, while $host etc.
  4643. -# will get canonicalized.
  4644. -case $host---$target---$nonopt in
  4645. -NONE---*---* | *---NONE---* | *---*---NONE) ;;
  4646. -*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
  4647. -esac
  4648. -
  4649. + { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
  4650. +echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
  4651. + { (exit 1); exit 1; }; }
  4652. +fi
  4653. +ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  4654. +ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  4655. +ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  4656. # Make sure we can run config.sub.
  4657. -if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
  4658. -else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  4659. -fi
  4660. +$ac_config_sub sun4 >/dev/null 2>&1 ||
  4661. + { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
  4662. +echo "$as_me: error: cannot run $ac_config_sub" >&2;}
  4663. + { (exit 1); exit 1; }; }
  4664. +
  4665. +echo "$as_me:$LINENO: checking build system type" >&5
  4666. +echo $ECHO_N "checking build system type... $ECHO_C" >&6
  4667. +if test "${ac_cv_build+set}" = set; then
  4668. + echo $ECHO_N "(cached) $ECHO_C" >&6
  4669. +else
  4670. + ac_cv_build_alias=$build_alias
  4671. +test -z "$ac_cv_build_alias" &&
  4672. + ac_cv_build_alias=`$ac_config_guess`
  4673. +test -z "$ac_cv_build_alias" &&
  4674. + { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  4675. +echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  4676. + { (exit 1); exit 1; }; }
  4677. +ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  4678. + { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
  4679. +echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
  4680. + { (exit 1); exit 1; }; }
  4681. +
  4682. +fi
  4683. +echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  4684. +echo "${ECHO_T}$ac_cv_build" >&6
  4685. +build=$ac_cv_build
  4686. +build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  4687. +build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  4688. +build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  4689. +
  4690. +
  4691. +echo "$as_me:$LINENO: checking host system type" >&5
  4692. +echo $ECHO_N "checking host system type... $ECHO_C" >&6
  4693. +if test "${ac_cv_host+set}" = set; then
  4694. + echo $ECHO_N "(cached) $ECHO_C" >&6
  4695. +else
  4696. + ac_cv_host_alias=$host_alias
  4697. +test -z "$ac_cv_host_alias" &&
  4698. + ac_cv_host_alias=$ac_cv_build_alias
  4699. +ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  4700. + { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
  4701. +echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
  4702. + { (exit 1); exit 1; }; }
  4703. +
  4704. +fi
  4705. +echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  4706. +echo "${ECHO_T}$ac_cv_host" >&6
  4707. +host=$ac_cv_host
  4708. +host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  4709. +host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  4710. +host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  4711. +
  4712. +
  4713. +echo "$as_me:$LINENO: checking target system type" >&5
  4714. +echo $ECHO_N "checking target system type... $ECHO_C" >&6
  4715. +if test "${ac_cv_target+set}" = set; then
  4716. + echo $ECHO_N "(cached) $ECHO_C" >&6
  4717. +else
  4718. + ac_cv_target_alias=$target_alias
  4719. +test "x$ac_cv_target_alias" = "x" &&
  4720. + ac_cv_target_alias=$ac_cv_host_alias
  4721. +ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
  4722. + { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
  4723. +echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
  4724. + { (exit 1); exit 1; }; }
  4725. +
  4726. +fi
  4727. +echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  4728. +echo "${ECHO_T}$ac_cv_target" >&6
  4729. +target=$ac_cv_target
  4730. +target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  4731. +target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  4732. +target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  4733. -echo $ac_n "checking host system type""... $ac_c" 1>&6
  4734. -echo "configure:760: checking host system type" >&5
  4735. -host_alias=$host
  4736. -case "$host_alias" in
  4737. -NONE)
  4738. - case $nonopt in
  4739. - NONE)
  4740. - if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
  4741. - else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
  4742. - fi ;;
  4743. - *) host_alias=$nonopt ;;
  4744. - esac ;;
  4745. -esac
  4746. -
  4747. -host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
  4748. -host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  4749. -host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  4750. -host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  4751. -echo "$ac_t""$host" 1>&6
  4752. -
  4753. -echo $ac_n "checking target system type""... $ac_c" 1>&6
  4754. -echo "configure:781: checking target system type" >&5
  4755. -
  4756. -target_alias=$target
  4757. -case "$target_alias" in
  4758. -NONE)
  4759. - case $nonopt in
  4760. - NONE) target_alias=$host_alias ;;
  4761. - *) target_alias=$nonopt ;;
  4762. - esac ;;
  4763. -esac
  4764. -
  4765. -target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
  4766. -target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  4767. -target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  4768. -target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  4769. -echo "$ac_t""$target" 1>&6
  4770. -
  4771. -echo $ac_n "checking build system type""... $ac_c" 1>&6
  4772. -echo "configure:799: checking build system type" >&5
  4773. -
  4774. -build_alias=$build
  4775. -case "$build_alias" in
  4776. -NONE)
  4777. - case $nonopt in
  4778. - NONE) build_alias=$host_alias ;;
  4779. - *) build_alias=$nonopt ;;
  4780. - esac ;;
  4781. -esac
  4782. -
  4783. -build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
  4784. -build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  4785. -build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  4786. -build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  4787. -echo "$ac_t""$build" 1>&6
  4788. -
  4789. -test "$host_alias" != "$target_alias" &&
  4790. +# The aliases save the names the user supplied, while $host etc.
  4791. +# will get canonicalized.
  4792. +test -n "$target_alias" &&
  4793. test "$program_prefix$program_suffix$program_transform_name" = \
  4794. NONENONEs,x,x, &&
  4795. program_prefix=${target_alias}-
  4796. -
  4797. +am__api_version="1.4"
  4798. # Find a good install program. We prefer a C program (faster),
  4799. # so one script is as good as another. But avoid the broken or
  4800. # incompatible versions:
  4801. @@ -825,65 +1563,78 @@
  4802. # SunOS /usr/etc/install
  4803. # IRIX /sbin/install
  4804. # AIX /bin/install
  4805. +# AmigaOS /C/install, which installs bootblocks on floppy discs
  4806. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  4807. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  4808. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  4809. # ./install, which can be erroneously created by make from ./install.sh.
  4810. -echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  4811. -echo "configure:834: checking for a BSD compatible install" >&5
  4812. +echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  4813. +echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  4814. if test -z "$INSTALL"; then
  4815. -if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  4816. - echo $ac_n "(cached) $ac_c" 1>&6
  4817. +if test "${ac_cv_path_install+set}" = set; then
  4818. + echo $ECHO_N "(cached) $ECHO_C" >&6
  4819. else
  4820. - IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
  4821. - for ac_dir in $PATH; do
  4822. - # Account for people who put trailing slashes in PATH elements.
  4823. - case "$ac_dir/" in
  4824. - /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  4825. - *)
  4826. - # OSF1 and SCO ODT 3.0 have their own names for install.
  4827. - # Don't use installbsd from OSF since it installs stuff as root
  4828. - # by default.
  4829. - for ac_prog in ginstall scoinst install; do
  4830. - if test -f $ac_dir/$ac_prog; then
  4831. - if test $ac_prog = install &&
  4832. - grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  4833. - # AIX install. It has an incompatible calling convention.
  4834. - :
  4835. - else
  4836. - ac_cv_path_install="$ac_dir/$ac_prog -c"
  4837. - break 2
  4838. - fi
  4839. - fi
  4840. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4841. +for as_dir in $PATH
  4842. +do
  4843. + IFS=$as_save_IFS
  4844. + test -z "$as_dir" && as_dir=.
  4845. + # Account for people who put trailing slashes in PATH elements.
  4846. +case $as_dir/ in
  4847. + ./ | .// | /cC/* | \
  4848. + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  4849. + /usr/ucb/* ) ;;
  4850. + *)
  4851. + # OSF1 and SCO ODT 3.0 have their own names for install.
  4852. + # Don't use installbsd from OSF since it installs stuff as root
  4853. + # by default.
  4854. + for ac_prog in ginstall scoinst install; do
  4855. + for ac_exec_ext in '' $ac_executable_extensions; do
  4856. + if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  4857. + if test $ac_prog = install &&
  4858. + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  4859. + # AIX install. It has an incompatible calling convention.
  4860. + :
  4861. + elif test $ac_prog = install &&
  4862. + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  4863. + # program-specific install script used by HP pwplus--don't use.
  4864. + :
  4865. + else
  4866. + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  4867. + break 3
  4868. + fi
  4869. + fi
  4870. done
  4871. - ;;
  4872. - esac
  4873. - done
  4874. - IFS="$ac_save_IFS"
  4875. + done
  4876. + ;;
  4877. +esac
  4878. +done
  4879. +
  4880. fi
  4881. if test "${ac_cv_path_install+set}" = set; then
  4882. - INSTALL="$ac_cv_path_install"
  4883. + INSTALL=$ac_cv_path_install
  4884. else
  4885. # As a last resort, use the slow shell script. We don't cache a
  4886. # path for INSTALL within a source directory, because that will
  4887. # break other packages using the cache if that directory is
  4888. # removed, or if the path is relative.
  4889. - INSTALL="$ac_install_sh"
  4890. + INSTALL=$ac_install_sh
  4891. fi
  4892. fi
  4893. -echo "$ac_t""$INSTALL" 1>&6
  4894. +echo "$as_me:$LINENO: result: $INSTALL" >&5
  4895. +echo "${ECHO_T}$INSTALL" >&6
  4896. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  4897. # It thinks the first close brace ends the variable substitution.
  4898. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  4899. -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  4900. +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  4901. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  4902. -echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
  4903. -echo "configure:887: checking whether build environment is sane" >&5
  4904. +echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  4905. +echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
  4906. # Just in case
  4907. sleep 1
  4908. echo timestamp > conftestfile
  4909. @@ -905,8 +1656,11 @@
  4910. # if, for instance, CONFIG_SHELL is bash and it inherits a
  4911. # broken ls alias from the environment. This has actually
  4912. # happened. Such a system could not be considered "sane".
  4913. - { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
  4914. -alias in your environment" 1>&2; exit 1; }
  4915. + { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  4916. +alias in your environment" >&5
  4917. +echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  4918. +alias in your environment" >&2;}
  4919. + { (exit 1); exit 1; }; }
  4920. fi
  4921. test "$2" = conftestfile
  4922. @@ -915,54 +1669,54 @@
  4923. # Ok.
  4924. :
  4925. else
  4926. - { echo "configure: error: newly created file is older than distributed files!
  4927. -Check your system clock" 1>&2; exit 1; }
  4928. + { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  4929. +Check your system clock" >&5
  4930. +echo "$as_me: error: newly created file is older than distributed files!
  4931. +Check your system clock" >&2;}
  4932. + { (exit 1); exit 1; }; }
  4933. fi
  4934. rm -f conftest*
  4935. -echo "$ac_t""yes" 1>&6
  4936. -if test "$program_transform_name" = s,x,x,; then
  4937. - program_transform_name=
  4938. -else
  4939. - # Double any \ or $. echo might interpret backslashes.
  4940. - cat <<\EOF_SED > conftestsed
  4941. -s,\\,\\\\,g; s,\$,$$,g
  4942. -EOF_SED
  4943. - program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
  4944. - rm -f conftestsed
  4945. -fi
  4946. +echo "$as_me:$LINENO: result: yes" >&5
  4947. +echo "${ECHO_T}yes" >&6
  4948. test "$program_prefix" != NONE &&
  4949. - program_transform_name="s,^,${program_prefix},; $program_transform_name"
  4950. + program_transform_name="s,^,$program_prefix,;$program_transform_name"
  4951. # Use a double $ so make ignores it.
  4952. test "$program_suffix" != NONE &&
  4953. - program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
  4954. -
  4955. -# sed with no file args requires a program.
  4956. -test "$program_transform_name" = "" && program_transform_name="s,x,x,"
  4957. -
  4958. -echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  4959. -echo "configure:944: checking whether ${MAKE-make} sets \${MAKE}" >&5
  4960. -set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
  4961. -if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  4962. - echo $ac_n "(cached) $ac_c" 1>&6
  4963. + program_transform_name="s,\$,$program_suffix,;$program_transform_name"
  4964. +# Double any \ or $. echo might interpret backslashes.
  4965. +# By default was `s,x,x', remove it if useless.
  4966. +cat <<\_ACEOF >conftest.sed
  4967. +s/[\\$]/&&/g;s/;s,x,x,$//
  4968. +_ACEOF
  4969. +program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  4970. +rm conftest.sed
  4971. +
  4972. +echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  4973. +echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  4974. +set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
  4975. +if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  4976. + echo $ECHO_N "(cached) $ECHO_C" >&6
  4977. else
  4978. - cat > conftestmake <<\EOF
  4979. + cat >conftest.make <<\_ACEOF
  4980. all:
  4981. - @echo 'ac_maketemp="${MAKE}"'
  4982. -EOF
  4983. + @echo 'ac_maketemp="$(MAKE)"'
  4984. +_ACEOF
  4985. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  4986. -eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  4987. +eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  4988. if test -n "$ac_maketemp"; then
  4989. eval ac_cv_prog_make_${ac_make}_set=yes
  4990. else
  4991. eval ac_cv_prog_make_${ac_make}_set=no
  4992. fi
  4993. -rm -f conftestmake
  4994. +rm -f conftest.make
  4995. fi
  4996. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  4997. - echo "$ac_t""yes" 1>&6
  4998. + echo "$as_me:$LINENO: result: yes" >&5
  4999. +echo "${ECHO_T}yes" >&6
  5000. SET_MAKE=
  5001. else
  5002. - echo "$ac_t""no" 1>&6
  5003. + echo "$as_me:$LINENO: result: no" >&5
  5004. +echo "${ECHO_T}no" >&6
  5005. SET_MAKE="MAKE=${MAKE-make}"
  5006. fi
  5007. @@ -972,82 +1726,96 @@
  5008. VERSION=2.4.1
  5009. if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
  5010. - { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
  5011. + { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  5012. +echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  5013. + { (exit 1); exit 1; }; }
  5014. fi
  5015. -cat >> confdefs.h <<EOF
  5016. +
  5017. +cat >>confdefs.h <<_ACEOF
  5018. #define PACKAGE "$PACKAGE"
  5019. -EOF
  5020. +_ACEOF
  5021. -cat >> confdefs.h <<EOF
  5022. +
  5023. +cat >>confdefs.h <<_ACEOF
  5024. #define VERSION "$VERSION"
  5025. -EOF
  5026. +_ACEOF
  5027. missing_dir=`cd $ac_aux_dir && pwd`
  5028. -echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
  5029. -echo "configure:990: checking for working aclocal" >&5
  5030. +echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5
  5031. +echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6
  5032. # Run test in a subshell; some versions of sh will print an error if
  5033. # an executable is not found, even if stderr is redirected.
  5034. # Redirect stdin to placate older versions of autoconf. Sigh.
  5035. -if (aclocal --version) < /dev/null > /dev/null 2>&1; then
  5036. - ACLOCAL=aclocal
  5037. - echo "$ac_t""found" 1>&6
  5038. -else
  5039. - ACLOCAL="$missing_dir/missing aclocal"
  5040. - echo "$ac_t""missing" 1>&6
  5041. +if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
  5042. + ACLOCAL=aclocal-${am__api_version}
  5043. + echo "$as_me:$LINENO: result: found" >&5
  5044. +echo "${ECHO_T}found" >&6
  5045. +else
  5046. + ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
  5047. + echo "$as_me:$LINENO: result: missing" >&5
  5048. +echo "${ECHO_T}missing" >&6
  5049. fi
  5050. -echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
  5051. -echo "configure:1003: checking for working autoconf" >&5
  5052. +echo "$as_me:$LINENO: checking for working autoconf" >&5
  5053. +echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
  5054. # Run test in a subshell; some versions of sh will print an error if
  5055. # an executable is not found, even if stderr is redirected.
  5056. # Redirect stdin to placate older versions of autoconf. Sigh.
  5057. if (autoconf --version) < /dev/null > /dev/null 2>&1; then
  5058. AUTOCONF=autoconf
  5059. - echo "$ac_t""found" 1>&6
  5060. + echo "$as_me:$LINENO: result: found" >&5
  5061. +echo "${ECHO_T}found" >&6
  5062. else
  5063. AUTOCONF="$missing_dir/missing autoconf"
  5064. - echo "$ac_t""missing" 1>&6
  5065. + echo "$as_me:$LINENO: result: missing" >&5
  5066. +echo "${ECHO_T}missing" >&6
  5067. fi
  5068. -echo $ac_n "checking for working automake""... $ac_c" 1>&6
  5069. -echo "configure:1016: checking for working automake" >&5
  5070. +echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5
  5071. +echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6
  5072. # Run test in a subshell; some versions of sh will print an error if
  5073. # an executable is not found, even if stderr is redirected.
  5074. # Redirect stdin to placate older versions of autoconf. Sigh.
  5075. -if (automake --version) < /dev/null > /dev/null 2>&1; then
  5076. - AUTOMAKE=automake
  5077. - echo "$ac_t""found" 1>&6
  5078. -else
  5079. - AUTOMAKE="$missing_dir/missing automake"
  5080. - echo "$ac_t""missing" 1>&6
  5081. +if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
  5082. + AUTOMAKE=automake-${am__api_version}
  5083. + echo "$as_me:$LINENO: result: found" >&5
  5084. +echo "${ECHO_T}found" >&6
  5085. +else
  5086. + AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
  5087. + echo "$as_me:$LINENO: result: missing" >&5
  5088. +echo "${ECHO_T}missing" >&6
  5089. fi
  5090. -echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
  5091. -echo "configure:1029: checking for working autoheader" >&5
  5092. +echo "$as_me:$LINENO: checking for working autoheader" >&5
  5093. +echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
  5094. # Run test in a subshell; some versions of sh will print an error if
  5095. # an executable is not found, even if stderr is redirected.
  5096. # Redirect stdin to placate older versions of autoconf. Sigh.
  5097. if (autoheader --version) < /dev/null > /dev/null 2>&1; then
  5098. AUTOHEADER=autoheader
  5099. - echo "$ac_t""found" 1>&6
  5100. + echo "$as_me:$LINENO: result: found" >&5
  5101. +echo "${ECHO_T}found" >&6
  5102. else
  5103. AUTOHEADER="$missing_dir/missing autoheader"
  5104. - echo "$ac_t""missing" 1>&6
  5105. + echo "$as_me:$LINENO: result: missing" >&5
  5106. +echo "${ECHO_T}missing" >&6
  5107. fi
  5108. -echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
  5109. -echo "configure:1042: checking for working makeinfo" >&5
  5110. +echo "$as_me:$LINENO: checking for working makeinfo" >&5
  5111. +echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
  5112. # Run test in a subshell; some versions of sh will print an error if
  5113. # an executable is not found, even if stderr is redirected.
  5114. # Redirect stdin to placate older versions of autoconf. Sigh.
  5115. if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
  5116. MAKEINFO=makeinfo
  5117. - echo "$ac_t""found" 1>&6
  5118. + echo "$as_me:$LINENO: result: found" >&5
  5119. +echo "${ECHO_T}found" >&6
  5120. else
  5121. MAKEINFO="$missing_dir/missing makeinfo"
  5122. - echo "$ac_t""missing" 1>&6
  5123. + echo "$as_me:$LINENO: result: missing" >&5
  5124. +echo "${ECHO_T}missing" >&6
  5125. fi
  5126. @@ -1059,214 +1827,643 @@
  5127. -# Extract the first word of "gcc", so it can be a program name with args.
  5128. +ac_ext=c
  5129. +ac_cpp='$CPP $CPPFLAGS'
  5130. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5131. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5132. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5133. +if test -n "$ac_tool_prefix"; then
  5134. + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  5135. +set dummy ${ac_tool_prefix}gcc; ac_word=$2
  5136. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  5137. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5138. +if test "${ac_cv_prog_CC+set}" = set; then
  5139. + echo $ECHO_N "(cached) $ECHO_C" >&6
  5140. +else
  5141. + if test -n "$CC"; then
  5142. + ac_cv_prog_CC="$CC" # Let the user override the test.
  5143. +else
  5144. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5145. +for as_dir in $PATH
  5146. +do
  5147. + IFS=$as_save_IFS
  5148. + test -z "$as_dir" && as_dir=.
  5149. + for ac_exec_ext in '' $ac_executable_extensions; do
  5150. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5151. + ac_cv_prog_CC="${ac_tool_prefix}gcc"
  5152. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5153. + break 2
  5154. + fi
  5155. +done
  5156. +done
  5157. +
  5158. +fi
  5159. +fi
  5160. +CC=$ac_cv_prog_CC
  5161. +if test -n "$CC"; then
  5162. + echo "$as_me:$LINENO: result: $CC" >&5
  5163. +echo "${ECHO_T}$CC" >&6
  5164. +else
  5165. + echo "$as_me:$LINENO: result: no" >&5
  5166. +echo "${ECHO_T}no" >&6
  5167. +fi
  5168. +
  5169. +fi
  5170. +if test -z "$ac_cv_prog_CC"; then
  5171. + ac_ct_CC=$CC
  5172. + # Extract the first word of "gcc", so it can be a program name with args.
  5173. set dummy gcc; ac_word=$2
  5174. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  5175. -echo "configure:1066: checking for $ac_word" >&5
  5176. -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  5177. - echo $ac_n "(cached) $ac_c" 1>&6
  5178. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  5179. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5180. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  5181. + echo $ECHO_N "(cached) $ECHO_C" >&6
  5182. +else
  5183. + if test -n "$ac_ct_CC"; then
  5184. + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  5185. +else
  5186. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5187. +for as_dir in $PATH
  5188. +do
  5189. + IFS=$as_save_IFS
  5190. + test -z "$as_dir" && as_dir=.
  5191. + for ac_exec_ext in '' $ac_executable_extensions; do
  5192. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5193. + ac_cv_prog_ac_ct_CC="gcc"
  5194. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5195. + break 2
  5196. + fi
  5197. +done
  5198. +done
  5199. +
  5200. +fi
  5201. +fi
  5202. +ac_ct_CC=$ac_cv_prog_ac_ct_CC
  5203. +if test -n "$ac_ct_CC"; then
  5204. + echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  5205. +echo "${ECHO_T}$ac_ct_CC" >&6
  5206. +else
  5207. + echo "$as_me:$LINENO: result: no" >&5
  5208. +echo "${ECHO_T}no" >&6
  5209. +fi
  5210. +
  5211. + CC=$ac_ct_CC
  5212. +else
  5213. + CC="$ac_cv_prog_CC"
  5214. +fi
  5215. +
  5216. +if test -z "$CC"; then
  5217. + if test -n "$ac_tool_prefix"; then
  5218. + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  5219. +set dummy ${ac_tool_prefix}cc; ac_word=$2
  5220. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  5221. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5222. +if test "${ac_cv_prog_CC+set}" = set; then
  5223. + echo $ECHO_N "(cached) $ECHO_C" >&6
  5224. else
  5225. if test -n "$CC"; then
  5226. ac_cv_prog_CC="$CC" # Let the user override the test.
  5227. else
  5228. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  5229. - ac_dummy="$PATH"
  5230. - for ac_dir in $ac_dummy; do
  5231. - test -z "$ac_dir" && ac_dir=.
  5232. - if test -f $ac_dir/$ac_word; then
  5233. - ac_cv_prog_CC="gcc"
  5234. - break
  5235. - fi
  5236. - done
  5237. - IFS="$ac_save_ifs"
  5238. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5239. +for as_dir in $PATH
  5240. +do
  5241. + IFS=$as_save_IFS
  5242. + test -z "$as_dir" && as_dir=.
  5243. + for ac_exec_ext in '' $ac_executable_extensions; do
  5244. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5245. + ac_cv_prog_CC="${ac_tool_prefix}cc"
  5246. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5247. + break 2
  5248. + fi
  5249. +done
  5250. +done
  5251. +
  5252. fi
  5253. fi
  5254. -CC="$ac_cv_prog_CC"
  5255. +CC=$ac_cv_prog_CC
  5256. if test -n "$CC"; then
  5257. - echo "$ac_t""$CC" 1>&6
  5258. + echo "$as_me:$LINENO: result: $CC" >&5
  5259. +echo "${ECHO_T}$CC" >&6
  5260. +else
  5261. + echo "$as_me:$LINENO: result: no" >&5
  5262. +echo "${ECHO_T}no" >&6
  5263. +fi
  5264. +
  5265. +fi
  5266. +if test -z "$ac_cv_prog_CC"; then
  5267. + ac_ct_CC=$CC
  5268. + # Extract the first word of "cc", so it can be a program name with args.
  5269. +set dummy cc; ac_word=$2
  5270. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  5271. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5272. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  5273. + echo $ECHO_N "(cached) $ECHO_C" >&6
  5274. +else
  5275. + if test -n "$ac_ct_CC"; then
  5276. + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  5277. +else
  5278. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5279. +for as_dir in $PATH
  5280. +do
  5281. + IFS=$as_save_IFS
  5282. + test -z "$as_dir" && as_dir=.
  5283. + for ac_exec_ext in '' $ac_executable_extensions; do
  5284. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5285. + ac_cv_prog_ac_ct_CC="cc"
  5286. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5287. + break 2
  5288. + fi
  5289. +done
  5290. +done
  5291. +
  5292. +fi
  5293. +fi
  5294. +ac_ct_CC=$ac_cv_prog_ac_ct_CC
  5295. +if test -n "$ac_ct_CC"; then
  5296. + echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  5297. +echo "${ECHO_T}$ac_ct_CC" >&6
  5298. else
  5299. - echo "$ac_t""no" 1>&6
  5300. + echo "$as_me:$LINENO: result: no" >&5
  5301. +echo "${ECHO_T}no" >&6
  5302. fi
  5303. + CC=$ac_ct_CC
  5304. +else
  5305. + CC="$ac_cv_prog_CC"
  5306. +fi
  5307. +
  5308. +fi
  5309. if test -z "$CC"; then
  5310. # Extract the first word of "cc", so it can be a program name with args.
  5311. set dummy cc; ac_word=$2
  5312. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  5313. -echo "configure:1096: checking for $ac_word" >&5
  5314. -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  5315. - echo $ac_n "(cached) $ac_c" 1>&6
  5316. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  5317. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5318. +if test "${ac_cv_prog_CC+set}" = set; then
  5319. + echo $ECHO_N "(cached) $ECHO_C" >&6
  5320. else
  5321. if test -n "$CC"; then
  5322. ac_cv_prog_CC="$CC" # Let the user override the test.
  5323. else
  5324. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  5325. ac_prog_rejected=no
  5326. - ac_dummy="$PATH"
  5327. - for ac_dir in $ac_dummy; do
  5328. - test -z "$ac_dir" && ac_dir=.
  5329. - if test -f $ac_dir/$ac_word; then
  5330. - if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  5331. - ac_prog_rejected=yes
  5332. - continue
  5333. - fi
  5334. - ac_cv_prog_CC="cc"
  5335. - break
  5336. - fi
  5337. - done
  5338. - IFS="$ac_save_ifs"
  5339. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5340. +for as_dir in $PATH
  5341. +do
  5342. + IFS=$as_save_IFS
  5343. + test -z "$as_dir" && as_dir=.
  5344. + for ac_exec_ext in '' $ac_executable_extensions; do
  5345. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5346. + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  5347. + ac_prog_rejected=yes
  5348. + continue
  5349. + fi
  5350. + ac_cv_prog_CC="cc"
  5351. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5352. + break 2
  5353. + fi
  5354. +done
  5355. +done
  5356. +
  5357. if test $ac_prog_rejected = yes; then
  5358. # We found a bogon in the path, so make sure we never use it.
  5359. set dummy $ac_cv_prog_CC
  5360. shift
  5361. - if test $# -gt 0; then
  5362. + if test $# != 0; then
  5363. # We chose a different compiler from the bogus one.
  5364. # However, it has the same basename, so the bogon will be chosen
  5365. # first if we set CC to just the basename; use the full file name.
  5366. shift
  5367. - set dummy "$ac_dir/$ac_word" "$@"
  5368. - shift
  5369. - ac_cv_prog_CC="$@"
  5370. + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  5371. fi
  5372. fi
  5373. fi
  5374. fi
  5375. -CC="$ac_cv_prog_CC"
  5376. +CC=$ac_cv_prog_CC
  5377. if test -n "$CC"; then
  5378. - echo "$ac_t""$CC" 1>&6
  5379. + echo "$as_me:$LINENO: result: $CC" >&5
  5380. +echo "${ECHO_T}$CC" >&6
  5381. else
  5382. - echo "$ac_t""no" 1>&6
  5383. + echo "$as_me:$LINENO: result: no" >&5
  5384. +echo "${ECHO_T}no" >&6
  5385. fi
  5386. - if test -z "$CC"; then
  5387. - case "`uname -s`" in
  5388. - *win32* | *WIN32*)
  5389. - # Extract the first word of "cl", so it can be a program name with args.
  5390. -set dummy cl; ac_word=$2
  5391. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  5392. -echo "configure:1147: checking for $ac_word" >&5
  5393. -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  5394. - echo $ac_n "(cached) $ac_c" 1>&6
  5395. +fi
  5396. +if test -z "$CC"; then
  5397. + if test -n "$ac_tool_prefix"; then
  5398. + for ac_prog in cl
  5399. + do
  5400. + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5401. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5402. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  5403. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5404. +if test "${ac_cv_prog_CC+set}" = set; then
  5405. + echo $ECHO_N "(cached) $ECHO_C" >&6
  5406. else
  5407. if test -n "$CC"; then
  5408. ac_cv_prog_CC="$CC" # Let the user override the test.
  5409. else
  5410. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  5411. - ac_dummy="$PATH"
  5412. - for ac_dir in $ac_dummy; do
  5413. - test -z "$ac_dir" && ac_dir=.
  5414. - if test -f $ac_dir/$ac_word; then
  5415. - ac_cv_prog_CC="cl"
  5416. - break
  5417. - fi
  5418. - done
  5419. - IFS="$ac_save_ifs"
  5420. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5421. +for as_dir in $PATH
  5422. +do
  5423. + IFS=$as_save_IFS
  5424. + test -z "$as_dir" && as_dir=.
  5425. + for ac_exec_ext in '' $ac_executable_extensions; do
  5426. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5427. + ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  5428. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5429. + break 2
  5430. + fi
  5431. +done
  5432. +done
  5433. +
  5434. fi
  5435. fi
  5436. -CC="$ac_cv_prog_CC"
  5437. +CC=$ac_cv_prog_CC
  5438. if test -n "$CC"; then
  5439. - echo "$ac_t""$CC" 1>&6
  5440. + echo "$as_me:$LINENO: result: $CC" >&5
  5441. +echo "${ECHO_T}$CC" >&6
  5442. else
  5443. - echo "$ac_t""no" 1>&6
  5444. + echo "$as_me:$LINENO: result: no" >&5
  5445. +echo "${ECHO_T}no" >&6
  5446. fi
  5447. - ;;
  5448. - esac
  5449. +
  5450. + test -n "$CC" && break
  5451. + done
  5452. +fi
  5453. +if test -z "$CC"; then
  5454. + ac_ct_CC=$CC
  5455. + for ac_prog in cl
  5456. +do
  5457. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  5458. +set dummy $ac_prog; ac_word=$2
  5459. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  5460. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5461. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  5462. + echo $ECHO_N "(cached) $ECHO_C" >&6
  5463. +else
  5464. + if test -n "$ac_ct_CC"; then
  5465. + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  5466. +else
  5467. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5468. +for as_dir in $PATH
  5469. +do
  5470. + IFS=$as_save_IFS
  5471. + test -z "$as_dir" && as_dir=.
  5472. + for ac_exec_ext in '' $ac_executable_extensions; do
  5473. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5474. + ac_cv_prog_ac_ct_CC="$ac_prog"
  5475. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5476. + break 2
  5477. fi
  5478. - test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  5479. +done
  5480. +done
  5481. +
  5482. fi
  5483. +fi
  5484. +ac_ct_CC=$ac_cv_prog_ac_ct_CC
  5485. +if test -n "$ac_ct_CC"; then
  5486. + echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  5487. +echo "${ECHO_T}$ac_ct_CC" >&6
  5488. +else
  5489. + echo "$as_me:$LINENO: result: no" >&5
  5490. +echo "${ECHO_T}no" >&6
  5491. +fi
  5492. +
  5493. + test -n "$ac_ct_CC" && break
  5494. +done
  5495. -echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  5496. -echo "configure:1179: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  5497. + CC=$ac_ct_CC
  5498. +fi
  5499. -ac_ext=c
  5500. -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  5501. -ac_cpp='$CPP $CPPFLAGS'
  5502. -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  5503. -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  5504. -cross_compiling=$ac_cv_prog_cc_cross
  5505. +fi
  5506. -cat > conftest.$ac_ext << EOF
  5507. -#line 1190 "configure"
  5508. -#include "confdefs.h"
  5509. +test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  5510. +See \`config.log' for more details." >&5
  5511. +echo "$as_me: error: no acceptable C compiler found in \$PATH
  5512. +See \`config.log' for more details." >&2;}
  5513. + { (exit 1); exit 1; }; }
  5514. +
  5515. +# Provide some information about the compiler.
  5516. +echo "$as_me:$LINENO:" \
  5517. + "checking for C compiler version" >&5
  5518. +ac_compiler=`set X $ac_compile; echo $2`
  5519. +{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  5520. + (eval $ac_compiler --version </dev/null >&5) 2>&5
  5521. + ac_status=$?
  5522. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5523. + (exit $ac_status); }
  5524. +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  5525. + (eval $ac_compiler -v </dev/null >&5) 2>&5
  5526. + ac_status=$?
  5527. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5528. + (exit $ac_status); }
  5529. +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  5530. + (eval $ac_compiler -V </dev/null >&5) 2>&5
  5531. + ac_status=$?
  5532. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5533. + (exit $ac_status); }
  5534. +
  5535. +cat >conftest.$ac_ext <<_ACEOF
  5536. +#line $LINENO "configure"
  5537. +/* confdefs.h. */
  5538. +_ACEOF
  5539. +cat confdefs.h >>conftest.$ac_ext
  5540. +cat >>conftest.$ac_ext <<_ACEOF
  5541. +/* end confdefs.h. */
  5542. -main(){return(0);}
  5543. -EOF
  5544. -if { (eval echo configure:1195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  5545. - ac_cv_prog_cc_works=yes
  5546. - # If we can't run a trivial program, we are probably using a cross compiler.
  5547. - if (./conftest; exit) 2>/dev/null; then
  5548. - ac_cv_prog_cc_cross=no
  5549. - else
  5550. - ac_cv_prog_cc_cross=yes
  5551. - fi
  5552. +int
  5553. +main ()
  5554. +{
  5555. +
  5556. + ;
  5557. + return 0;
  5558. +}
  5559. +_ACEOF
  5560. +ac_clean_files_save=$ac_clean_files
  5561. +ac_clean_files="$ac_clean_files a.out a.exe b.out"
  5562. +# Try to create an executable without -o first, disregard a.out.
  5563. +# It will help us diagnose broken compilers, and finding out an intuition
  5564. +# of exeext.
  5565. +echo "$as_me:$LINENO: checking for C compiler default output" >&5
  5566. +echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
  5567. +ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  5568. +if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  5569. + (eval $ac_link_default) 2>&5
  5570. + ac_status=$?
  5571. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5572. + (exit $ac_status); }; then
  5573. + # Find the output, starting from the most likely. This scheme is
  5574. +# not robust to junk in `.', hence go to wildcards (a.*) only as a last
  5575. +# resort.
  5576. +
  5577. +# Be careful to initialize this variable, since it used to be cached.
  5578. +# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  5579. +ac_cv_exeext=
  5580. +# b.out is created by i960 compilers.
  5581. +for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  5582. +do
  5583. + test -f "$ac_file" || continue
  5584. + case $ac_file in
  5585. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  5586. + ;;
  5587. + conftest.$ac_ext )
  5588. + # This is the source file.
  5589. + ;;
  5590. + [ab].out )
  5591. + # We found the default executable, but exeext='' is most
  5592. + # certainly right.
  5593. + break;;
  5594. + *.* )
  5595. + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  5596. + # FIXME: I believe we export ac_cv_exeext for Libtool,
  5597. + # but it would be cool to find out if it's true. Does anybody
  5598. + # maintain Libtool? --akim.
  5599. + export ac_cv_exeext
  5600. + break;;
  5601. + * )
  5602. + break;;
  5603. + esac
  5604. +done
  5605. else
  5606. - echo "configure: failed program was:" >&5
  5607. - cat conftest.$ac_ext >&5
  5608. - ac_cv_prog_cc_works=no
  5609. + echo "$as_me: failed program was:" >&5
  5610. +sed 's/^/| /' conftest.$ac_ext >&5
  5611. +
  5612. +{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
  5613. +See \`config.log' for more details." >&5
  5614. +echo "$as_me: error: C compiler cannot create executables
  5615. +See \`config.log' for more details." >&2;}
  5616. + { (exit 77); exit 77; }; }
  5617. +fi
  5618. +
  5619. +ac_exeext=$ac_cv_exeext
  5620. +echo "$as_me:$LINENO: result: $ac_file" >&5
  5621. +echo "${ECHO_T}$ac_file" >&6
  5622. +
  5623. +# Check the compiler produces executables we can run. If not, either
  5624. +# the compiler is broken, or we cross compile.
  5625. +echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  5626. +echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  5627. +# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  5628. +# If not cross compiling, check that we can run a simple program.
  5629. +if test "$cross_compiling" != yes; then
  5630. + if { ac_try='./$ac_file'
  5631. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5632. + (eval $ac_try) 2>&5
  5633. + ac_status=$?
  5634. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5635. + (exit $ac_status); }; }; then
  5636. + cross_compiling=no
  5637. + else
  5638. + if test "$cross_compiling" = maybe; then
  5639. + cross_compiling=yes
  5640. + else
  5641. + { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  5642. +If you meant to cross compile, use \`--host'.
  5643. +See \`config.log' for more details." >&5
  5644. +echo "$as_me: error: cannot run C compiled programs.
  5645. +If you meant to cross compile, use \`--host'.
  5646. +See \`config.log' for more details." >&2;}
  5647. + { (exit 1); exit 1; }; }
  5648. + fi
  5649. + fi
  5650. fi
  5651. -rm -fr conftest*
  5652. -ac_ext=c
  5653. -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  5654. -ac_cpp='$CPP $CPPFLAGS'
  5655. -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  5656. -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  5657. -cross_compiling=$ac_cv_prog_cc_cross
  5658. -
  5659. -echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  5660. -if test $ac_cv_prog_cc_works = no; then
  5661. - { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  5662. -fi
  5663. -echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  5664. -echo "configure:1221: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  5665. -echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  5666. -cross_compiling=$ac_cv_prog_cc_cross
  5667. -
  5668. -echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  5669. -echo "configure:1226: checking whether we are using GNU C" >&5
  5670. -if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  5671. - echo $ac_n "(cached) $ac_c" 1>&6
  5672. -else
  5673. - cat > conftest.c <<EOF
  5674. -#ifdef __GNUC__
  5675. - yes;
  5676. -#endif
  5677. -EOF
  5678. -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
  5679. - ac_cv_prog_gcc=yes
  5680. +echo "$as_me:$LINENO: result: yes" >&5
  5681. +echo "${ECHO_T}yes" >&6
  5682. +
  5683. +rm -f a.out a.exe conftest$ac_cv_exeext b.out
  5684. +ac_clean_files=$ac_clean_files_save
  5685. +# Check the compiler produces executables we can run. If not, either
  5686. +# the compiler is broken, or we cross compile.
  5687. +echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  5688. +echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  5689. +echo "$as_me:$LINENO: result: $cross_compiling" >&5
  5690. +echo "${ECHO_T}$cross_compiling" >&6
  5691. +
  5692. +echo "$as_me:$LINENO: checking for suffix of executables" >&5
  5693. +echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  5694. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5695. + (eval $ac_link) 2>&5
  5696. + ac_status=$?
  5697. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5698. + (exit $ac_status); }; then
  5699. + # If both `conftest.exe' and `conftest' are `present' (well, observable)
  5700. +# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  5701. +# work properly (i.e., refer to `conftest.exe'), while it won't with
  5702. +# `rm'.
  5703. +for ac_file in conftest.exe conftest conftest.*; do
  5704. + test -f "$ac_file" || continue
  5705. + case $ac_file in
  5706. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  5707. + *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  5708. + export ac_cv_exeext
  5709. + break;;
  5710. + * ) break;;
  5711. + esac
  5712. +done
  5713. else
  5714. - ac_cv_prog_gcc=no
  5715. -fi
  5716. + { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  5717. +See \`config.log' for more details." >&5
  5718. +echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  5719. +See \`config.log' for more details." >&2;}
  5720. + { (exit 1); exit 1; }; }
  5721. fi
  5722. -echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  5723. +rm -f conftest$ac_cv_exeext
  5724. +echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  5725. +echo "${ECHO_T}$ac_cv_exeext" >&6
  5726. +
  5727. +rm -f conftest.$ac_ext
  5728. +EXEEXT=$ac_cv_exeext
  5729. +ac_exeext=$EXEEXT
  5730. +echo "$as_me:$LINENO: checking for suffix of object files" >&5
  5731. +echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  5732. +if test "${ac_cv_objext+set}" = set; then
  5733. + echo $ECHO_N "(cached) $ECHO_C" >&6
  5734. +else
  5735. + cat >conftest.$ac_ext <<_ACEOF
  5736. +#line $LINENO "configure"
  5737. +/* confdefs.h. */
  5738. +_ACEOF
  5739. +cat confdefs.h >>conftest.$ac_ext
  5740. +cat >>conftest.$ac_ext <<_ACEOF
  5741. +/* end confdefs.h. */
  5742. +
  5743. +int
  5744. +main ()
  5745. +{
  5746. -if test $ac_cv_prog_gcc = yes; then
  5747. - GCC=yes
  5748. + ;
  5749. + return 0;
  5750. +}
  5751. +_ACEOF
  5752. +rm -f conftest.o conftest.obj
  5753. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5754. + (eval $ac_compile) 2>&5
  5755. + ac_status=$?
  5756. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5757. + (exit $ac_status); }; then
  5758. + for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  5759. + case $ac_file in
  5760. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  5761. + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  5762. + break;;
  5763. + esac
  5764. +done
  5765. else
  5766. - GCC=
  5767. + echo "$as_me: failed program was:" >&5
  5768. +sed 's/^/| /' conftest.$ac_ext >&5
  5769. +
  5770. +{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  5771. +See \`config.log' for more details." >&5
  5772. +echo "$as_me: error: cannot compute suffix of object files: cannot compile
  5773. +See \`config.log' for more details." >&2;}
  5774. + { (exit 1); exit 1; }; }
  5775. fi
  5776. -ac_test_CFLAGS="${CFLAGS+set}"
  5777. -ac_save_CFLAGS="$CFLAGS"
  5778. -CFLAGS=
  5779. -echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  5780. -echo "configure:1254: checking whether ${CC-cc} accepts -g" >&5
  5781. -if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  5782. - echo $ac_n "(cached) $ac_c" 1>&6
  5783. -else
  5784. - echo 'void f(){}' > conftest.c
  5785. -if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  5786. +rm -f conftest.$ac_cv_objext conftest.$ac_ext
  5787. +fi
  5788. +echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  5789. +echo "${ECHO_T}$ac_cv_objext" >&6
  5790. +OBJEXT=$ac_cv_objext
  5791. +ac_objext=$OBJEXT
  5792. +echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  5793. +echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  5794. +if test "${ac_cv_c_compiler_gnu+set}" = set; then
  5795. + echo $ECHO_N "(cached) $ECHO_C" >&6
  5796. +else
  5797. + cat >conftest.$ac_ext <<_ACEOF
  5798. +#line $LINENO "configure"
  5799. +/* confdefs.h. */
  5800. +_ACEOF
  5801. +cat confdefs.h >>conftest.$ac_ext
  5802. +cat >>conftest.$ac_ext <<_ACEOF
  5803. +/* end confdefs.h. */
  5804. +
  5805. +int
  5806. +main ()
  5807. +{
  5808. +#ifndef __GNUC__
  5809. + choke me
  5810. +#endif
  5811. +
  5812. + ;
  5813. + return 0;
  5814. +}
  5815. +_ACEOF
  5816. +rm -f conftest.$ac_objext
  5817. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5818. + (eval $ac_compile) 2>&5
  5819. + ac_status=$?
  5820. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5821. + (exit $ac_status); } &&
  5822. + { ac_try='test -s conftest.$ac_objext'
  5823. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5824. + (eval $ac_try) 2>&5
  5825. + ac_status=$?
  5826. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5827. + (exit $ac_status); }; }; then
  5828. + ac_compiler_gnu=yes
  5829. +else
  5830. + echo "$as_me: failed program was:" >&5
  5831. +sed 's/^/| /' conftest.$ac_ext >&5
  5832. +
  5833. +ac_compiler_gnu=no
  5834. +fi
  5835. +rm -f conftest.$ac_objext conftest.$ac_ext
  5836. +ac_cv_c_compiler_gnu=$ac_compiler_gnu
  5837. +
  5838. +fi
  5839. +echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  5840. +echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  5841. +GCC=`test $ac_compiler_gnu = yes && echo yes`
  5842. +ac_test_CFLAGS=${CFLAGS+set}
  5843. +ac_save_CFLAGS=$CFLAGS
  5844. +CFLAGS="-g"
  5845. +echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  5846. +echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  5847. +if test "${ac_cv_prog_cc_g+set}" = set; then
  5848. + echo $ECHO_N "(cached) $ECHO_C" >&6
  5849. +else
  5850. + cat >conftest.$ac_ext <<_ACEOF
  5851. +#line $LINENO "configure"
  5852. +/* confdefs.h. */
  5853. +_ACEOF
  5854. +cat confdefs.h >>conftest.$ac_ext
  5855. +cat >>conftest.$ac_ext <<_ACEOF
  5856. +/* end confdefs.h. */
  5857. +
  5858. +int
  5859. +main ()
  5860. +{
  5861. +
  5862. + ;
  5863. + return 0;
  5864. +}
  5865. +_ACEOF
  5866. +rm -f conftest.$ac_objext
  5867. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5868. + (eval $ac_compile) 2>&5
  5869. + ac_status=$?
  5870. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5871. + (exit $ac_status); } &&
  5872. + { ac_try='test -s conftest.$ac_objext'
  5873. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5874. + (eval $ac_try) 2>&5
  5875. + ac_status=$?
  5876. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5877. + (exit $ac_status); }; }; then
  5878. ac_cv_prog_cc_g=yes
  5879. else
  5880. - ac_cv_prog_cc_g=no
  5881. -fi
  5882. -rm -f conftest*
  5883. + echo "$as_me: failed program was:" >&5
  5884. +sed 's/^/| /' conftest.$ac_ext >&5
  5885. +ac_cv_prog_cc_g=no
  5886. fi
  5887. -
  5888. -echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  5889. +rm -f conftest.$ac_objext conftest.$ac_ext
  5890. +fi
  5891. +echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  5892. +echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  5893. if test "$ac_test_CFLAGS" = set; then
  5894. - CFLAGS="$ac_save_CFLAGS"
  5895. + CFLAGS=$ac_save_CFLAGS
  5896. elif test $ac_cv_prog_cc_g = yes; then
  5897. if test "$GCC" = yes; then
  5898. CFLAGS="-g -O2"
  5899. @@ -1280,295 +2477,548 @@
  5900. CFLAGS=
  5901. fi
  5902. fi
  5903. +echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  5904. +echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  5905. +if test "${ac_cv_prog_cc_stdc+set}" = set; then
  5906. + echo $ECHO_N "(cached) $ECHO_C" >&6
  5907. +else
  5908. + ac_cv_prog_cc_stdc=no
  5909. +ac_save_CC=$CC
  5910. +cat >conftest.$ac_ext <<_ACEOF
  5911. +#line $LINENO "configure"
  5912. +/* confdefs.h. */
  5913. +_ACEOF
  5914. +cat confdefs.h >>conftest.$ac_ext
  5915. +cat >>conftest.$ac_ext <<_ACEOF
  5916. +/* end confdefs.h. */
  5917. +#include <stdarg.h>
  5918. +#include <stdio.h>
  5919. +#include <sys/types.h>
  5920. +#include <sys/stat.h>
  5921. +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  5922. +struct buf { int x; };
  5923. +FILE * (*rcsopen) (struct buf *, struct stat *, int);
  5924. +static char *e (p, i)
  5925. + char **p;
  5926. + int i;
  5927. +{
  5928. + return p[i];
  5929. +}
  5930. +static char *f (char * (*g) (char **, int), char **p, ...)
  5931. +{
  5932. + char *s;
  5933. + va_list v;
  5934. + va_start (v,p);
  5935. + s = g (p, va_arg (v,int));
  5936. + va_end (v);
  5937. + return s;
  5938. +}
  5939. +int test (int i, double x);
  5940. +struct s1 {int (*f) (int a);};
  5941. +struct s2 {int (*f) (double a);};
  5942. +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  5943. +int argc;
  5944. +char **argv;
  5945. +int
  5946. +main ()
  5947. +{
  5948. +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  5949. + ;
  5950. + return 0;
  5951. +}
  5952. +_ACEOF
  5953. +# Don't try gcc -ansi; that turns off useful extensions and
  5954. +# breaks some systems' header files.
  5955. +# AIX -qlanglvl=ansi
  5956. +# Ultrix and OSF/1 -std1
  5957. +# HP-UX 10.20 and later -Ae
  5958. +# HP-UX older versions -Aa -D_HPUX_SOURCE
  5959. +# SVR4 -Xc -D__EXTENSIONS__
  5960. +for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  5961. +do
  5962. + CC="$ac_save_CC $ac_arg"
  5963. + rm -f conftest.$ac_objext
  5964. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5965. + (eval $ac_compile) 2>&5
  5966. + ac_status=$?
  5967. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5968. + (exit $ac_status); } &&
  5969. + { ac_try='test -s conftest.$ac_objext'
  5970. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5971. + (eval $ac_try) 2>&5
  5972. + ac_status=$?
  5973. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5974. + (exit $ac_status); }; }; then
  5975. + ac_cv_prog_cc_stdc=$ac_arg
  5976. +break
  5977. +else
  5978. + echo "$as_me: failed program was:" >&5
  5979. +sed 's/^/| /' conftest.$ac_ext >&5
  5980. +
  5981. +fi
  5982. +rm -f conftest.$ac_objext
  5983. +done
  5984. +rm -f conftest.$ac_ext conftest.$ac_objext
  5985. +CC=$ac_save_CC
  5986. -echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  5987. -echo "configure:1286: checking how to run the C preprocessor" >&5
  5988. -# On Suns, sometimes $CPP names a directory.
  5989. -if test -n "$CPP" && test -d "$CPP"; then
  5990. - CPP=
  5991. fi
  5992. -if test -z "$CPP"; then
  5993. -if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  5994. - echo $ac_n "(cached) $ac_c" 1>&6
  5995. -else
  5996. - # This must be in double quotes, not single quotes, because CPP may get
  5997. - # substituted into the Makefile and "${CC-cc}" will confuse make.
  5998. - CPP="${CC-cc} -E"
  5999. - # On the NeXT, cc -E runs the code through the compiler's parser,
  6000. - # not just through cpp.
  6001. - cat > conftest.$ac_ext <<EOF
  6002. -#line 1301 "configure"
  6003. -#include "confdefs.h"
  6004. -#include <assert.h>
  6005. -Syntax Error
  6006. -EOF
  6007. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  6008. -{ (eval echo configure:1307: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  6009. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  6010. -if test -z "$ac_err"; then
  6011. - :
  6012. -else
  6013. - echo "$ac_err" >&5
  6014. - echo "configure: failed program was:" >&5
  6015. - cat conftest.$ac_ext >&5
  6016. - rm -rf conftest*
  6017. - CPP="${CC-cc} -E -traditional-cpp"
  6018. - cat > conftest.$ac_ext <<EOF
  6019. -#line 1318 "configure"
  6020. -#include "confdefs.h"
  6021. -#include <assert.h>
  6022. -Syntax Error
  6023. -EOF
  6024. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  6025. -{ (eval echo configure:1324: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  6026. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  6027. -if test -z "$ac_err"; then
  6028. - :
  6029. -else
  6030. - echo "$ac_err" >&5
  6031. - echo "configure: failed program was:" >&5
  6032. - cat conftest.$ac_ext >&5
  6033. - rm -rf conftest*
  6034. - CPP="${CC-cc} -nologo -E"
  6035. - cat > conftest.$ac_ext <<EOF
  6036. -#line 1335 "configure"
  6037. -#include "confdefs.h"
  6038. -#include <assert.h>
  6039. -Syntax Error
  6040. -EOF
  6041. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  6042. -{ (eval echo configure:1341: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  6043. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  6044. -if test -z "$ac_err"; then
  6045. +
  6046. +case "x$ac_cv_prog_cc_stdc" in
  6047. + x|xno)
  6048. + echo "$as_me:$LINENO: result: none needed" >&5
  6049. +echo "${ECHO_T}none needed" >&6 ;;
  6050. + *)
  6051. + echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  6052. +echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  6053. + CC="$CC $ac_cv_prog_cc_stdc" ;;
  6054. +esac
  6055. +
  6056. +# Some people use a C++ compiler to compile C. Since we use `exit',
  6057. +# in C++ we need to declare it. In case someone uses the same compiler
  6058. +# for both compiling C and C++ we need to have the C++ compiler decide
  6059. +# the declaration of exit, since it's the most demanding environment.
  6060. +cat >conftest.$ac_ext <<_ACEOF
  6061. +#ifndef __cplusplus
  6062. + choke me
  6063. +#endif
  6064. +_ACEOF
  6065. +rm -f conftest.$ac_objext
  6066. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6067. + (eval $ac_compile) 2>&5
  6068. + ac_status=$?
  6069. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6070. + (exit $ac_status); } &&
  6071. + { ac_try='test -s conftest.$ac_objext'
  6072. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6073. + (eval $ac_try) 2>&5
  6074. + ac_status=$?
  6075. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6076. + (exit $ac_status); }; }; then
  6077. + for ac_declaration in \
  6078. + '' \
  6079. + 'extern "C" void std::exit (int) throw (); using std::exit;' \
  6080. + 'extern "C" void std::exit (int); using std::exit;' \
  6081. + 'extern "C" void exit (int) throw ();' \
  6082. + 'extern "C" void exit (int);' \
  6083. + 'void exit (int);'
  6084. +do
  6085. + cat >conftest.$ac_ext <<_ACEOF
  6086. +#line $LINENO "configure"
  6087. +/* confdefs.h. */
  6088. +_ACEOF
  6089. +cat confdefs.h >>conftest.$ac_ext
  6090. +cat >>conftest.$ac_ext <<_ACEOF
  6091. +/* end confdefs.h. */
  6092. +$ac_declaration
  6093. +#include <stdlib.h>
  6094. +int
  6095. +main ()
  6096. +{
  6097. +exit (42);
  6098. + ;
  6099. + return 0;
  6100. +}
  6101. +_ACEOF
  6102. +rm -f conftest.$ac_objext
  6103. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6104. + (eval $ac_compile) 2>&5
  6105. + ac_status=$?
  6106. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6107. + (exit $ac_status); } &&
  6108. + { ac_try='test -s conftest.$ac_objext'
  6109. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6110. + (eval $ac_try) 2>&5
  6111. + ac_status=$?
  6112. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6113. + (exit $ac_status); }; }; then
  6114. :
  6115. else
  6116. - echo "$ac_err" >&5
  6117. - echo "configure: failed program was:" >&5
  6118. - cat conftest.$ac_ext >&5
  6119. - rm -rf conftest*
  6120. - CPP=/lib/cpp
  6121. -fi
  6122. -rm -f conftest*
  6123. + echo "$as_me: failed program was:" >&5
  6124. +sed 's/^/| /' conftest.$ac_ext >&5
  6125. +
  6126. +continue
  6127. fi
  6128. -rm -f conftest*
  6129. +rm -f conftest.$ac_objext conftest.$ac_ext
  6130. + cat >conftest.$ac_ext <<_ACEOF
  6131. +#line $LINENO "configure"
  6132. +/* confdefs.h. */
  6133. +_ACEOF
  6134. +cat confdefs.h >>conftest.$ac_ext
  6135. +cat >>conftest.$ac_ext <<_ACEOF
  6136. +/* end confdefs.h. */
  6137. +$ac_declaration
  6138. +int
  6139. +main ()
  6140. +{
  6141. +exit (42);
  6142. + ;
  6143. + return 0;
  6144. +}
  6145. +_ACEOF
  6146. +rm -f conftest.$ac_objext
  6147. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6148. + (eval $ac_compile) 2>&5
  6149. + ac_status=$?
  6150. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6151. + (exit $ac_status); } &&
  6152. + { ac_try='test -s conftest.$ac_objext'
  6153. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6154. + (eval $ac_try) 2>&5
  6155. + ac_status=$?
  6156. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6157. + (exit $ac_status); }; }; then
  6158. + break
  6159. +else
  6160. + echo "$as_me: failed program was:" >&5
  6161. +sed 's/^/| /' conftest.$ac_ext >&5
  6162. +
  6163. fi
  6164. +rm -f conftest.$ac_objext conftest.$ac_ext
  6165. +done
  6166. rm -f conftest*
  6167. - ac_cv_prog_CPP="$CPP"
  6168. +if test -n "$ac_declaration"; then
  6169. + echo '#ifdef __cplusplus' >>confdefs.h
  6170. + echo $ac_declaration >>confdefs.h
  6171. + echo '#endif' >>confdefs.h
  6172. fi
  6173. - CPP="$ac_cv_prog_CPP"
  6174. +
  6175. else
  6176. - ac_cv_prog_CPP="$CPP"
  6177. + echo "$as_me: failed program was:" >&5
  6178. +sed 's/^/| /' conftest.$ac_ext >&5
  6179. +
  6180. fi
  6181. -echo "$ac_t""$CPP" 1>&6
  6182. +rm -f conftest.$ac_objext conftest.$ac_ext
  6183. +ac_ext=c
  6184. +ac_cpp='$CPP $CPPFLAGS'
  6185. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6186. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6187. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6188. +
  6189. missing_dir=`cd $ac_aux_dir && pwd`
  6190. for ac_prog in flex lex
  6191. do
  6192. -# Extract the first word of "$ac_prog", so it can be a program name with args.
  6193. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  6194. set dummy $ac_prog; ac_word=$2
  6195. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  6196. -echo "configure:1371: checking for $ac_word" >&5
  6197. -if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
  6198. - echo $ac_n "(cached) $ac_c" 1>&6
  6199. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  6200. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  6201. +if test "${ac_cv_prog_LEX+set}" = set; then
  6202. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6203. else
  6204. if test -n "$LEX"; then
  6205. ac_cv_prog_LEX="$LEX" # Let the user override the test.
  6206. else
  6207. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  6208. - ac_dummy="$PATH"
  6209. - for ac_dir in $ac_dummy; do
  6210. - test -z "$ac_dir" && ac_dir=.
  6211. - if test -f $ac_dir/$ac_word; then
  6212. - ac_cv_prog_LEX="$ac_prog"
  6213. - break
  6214. - fi
  6215. - done
  6216. - IFS="$ac_save_ifs"
  6217. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6218. +for as_dir in $PATH
  6219. +do
  6220. + IFS=$as_save_IFS
  6221. + test -z "$as_dir" && as_dir=.
  6222. + for ac_exec_ext in '' $ac_executable_extensions; do
  6223. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6224. + ac_cv_prog_LEX="$ac_prog"
  6225. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6226. + break 2
  6227. + fi
  6228. +done
  6229. +done
  6230. +
  6231. fi
  6232. fi
  6233. -LEX="$ac_cv_prog_LEX"
  6234. +LEX=$ac_cv_prog_LEX
  6235. if test -n "$LEX"; then
  6236. - echo "$ac_t""$LEX" 1>&6
  6237. + echo "$as_me:$LINENO: result: $LEX" >&5
  6238. +echo "${ECHO_T}$LEX" >&6
  6239. else
  6240. - echo "$ac_t""no" 1>&6
  6241. + echo "$as_me:$LINENO: result: no" >&5
  6242. +echo "${ECHO_T}no" >&6
  6243. fi
  6244. -test -n "$LEX" && break
  6245. + test -n "$LEX" && break
  6246. done
  6247. -test -n "$LEX" || LEX=""$missing_dir/missing flex""
  6248. +test -n "$LEX" || LEX="$missing_dir/missing flex"
  6249. -# Extract the first word of "flex", so it can be a program name with args.
  6250. -set dummy flex; ac_word=$2
  6251. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  6252. -echo "configure:1404: checking for $ac_word" >&5
  6253. -if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
  6254. - echo $ac_n "(cached) $ac_c" 1>&6
  6255. +for ac_prog in flex lex
  6256. +do
  6257. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  6258. +set dummy $ac_prog; ac_word=$2
  6259. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  6260. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  6261. +if test "${ac_cv_prog_LEX+set}" = set; then
  6262. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6263. else
  6264. if test -n "$LEX"; then
  6265. ac_cv_prog_LEX="$LEX" # Let the user override the test.
  6266. else
  6267. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  6268. - ac_dummy="$PATH"
  6269. - for ac_dir in $ac_dummy; do
  6270. - test -z "$ac_dir" && ac_dir=.
  6271. - if test -f $ac_dir/$ac_word; then
  6272. - ac_cv_prog_LEX="flex"
  6273. - break
  6274. - fi
  6275. - done
  6276. - IFS="$ac_save_ifs"
  6277. - test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
  6278. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6279. +for as_dir in $PATH
  6280. +do
  6281. + IFS=$as_save_IFS
  6282. + test -z "$as_dir" && as_dir=.
  6283. + for ac_exec_ext in '' $ac_executable_extensions; do
  6284. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6285. + ac_cv_prog_LEX="$ac_prog"
  6286. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6287. + break 2
  6288. + fi
  6289. +done
  6290. +done
  6291. +
  6292. fi
  6293. fi
  6294. -LEX="$ac_cv_prog_LEX"
  6295. +LEX=$ac_cv_prog_LEX
  6296. if test -n "$LEX"; then
  6297. - echo "$ac_t""$LEX" 1>&6
  6298. + echo "$as_me:$LINENO: result: $LEX" >&5
  6299. +echo "${ECHO_T}$LEX" >&6
  6300. else
  6301. - echo "$ac_t""no" 1>&6
  6302. + echo "$as_me:$LINENO: result: no" >&5
  6303. +echo "${ECHO_T}no" >&6
  6304. fi
  6305. + test -n "$LEX" && break
  6306. +done
  6307. +test -n "$LEX" || LEX=":"
  6308. +
  6309. if test -z "$LEXLIB"
  6310. then
  6311. - case "$LEX" in
  6312. - flex*) ac_lib=fl ;;
  6313. - *) ac_lib=l ;;
  6314. - esac
  6315. - echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
  6316. -echo "configure:1438: checking for yywrap in -l$ac_lib" >&5
  6317. -ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
  6318. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  6319. - echo $ac_n "(cached) $ac_c" 1>&6
  6320. -else
  6321. - ac_save_LIBS="$LIBS"
  6322. -LIBS="-l$ac_lib $LIBS"
  6323. -cat > conftest.$ac_ext <<EOF
  6324. -#line 1446 "configure"
  6325. -#include "confdefs.h"
  6326. + echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
  6327. +echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
  6328. +if test "${ac_cv_lib_fl_yywrap+set}" = set; then
  6329. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6330. +else
  6331. + ac_check_lib_save_LIBS=$LIBS
  6332. +LIBS="-lfl $LIBS"
  6333. +cat >conftest.$ac_ext <<_ACEOF
  6334. +#line $LINENO "configure"
  6335. +/* confdefs.h. */
  6336. +_ACEOF
  6337. +cat confdefs.h >>conftest.$ac_ext
  6338. +cat >>conftest.$ac_ext <<_ACEOF
  6339. +/* end confdefs.h. */
  6340. +
  6341. /* Override any gcc2 internal prototype to avoid an error. */
  6342. +#ifdef __cplusplus
  6343. +extern "C"
  6344. +#endif
  6345. /* We use char because int might match the return type of a gcc2
  6346. - builtin and then its argument prototype would still apply. */
  6347. -char yywrap();
  6348. + builtin and then its argument prototype would still apply. */
  6349. +char yywrap ();
  6350. +int
  6351. +main ()
  6352. +{
  6353. +yywrap ();
  6354. + ;
  6355. + return 0;
  6356. +}
  6357. +_ACEOF
  6358. +rm -f conftest.$ac_objext conftest$ac_exeext
  6359. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6360. + (eval $ac_link) 2>&5
  6361. + ac_status=$?
  6362. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6363. + (exit $ac_status); } &&
  6364. + { ac_try='test -s conftest$ac_exeext'
  6365. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6366. + (eval $ac_try) 2>&5
  6367. + ac_status=$?
  6368. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6369. + (exit $ac_status); }; }; then
  6370. + ac_cv_lib_fl_yywrap=yes
  6371. +else
  6372. + echo "$as_me: failed program was:" >&5
  6373. +sed 's/^/| /' conftest.$ac_ext >&5
  6374. +
  6375. +ac_cv_lib_fl_yywrap=no
  6376. +fi
  6377. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  6378. +LIBS=$ac_check_lib_save_LIBS
  6379. +fi
  6380. +echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
  6381. +echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
  6382. +if test $ac_cv_lib_fl_yywrap = yes; then
  6383. + LEXLIB="-lfl"
  6384. +else
  6385. + echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
  6386. +echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
  6387. +if test "${ac_cv_lib_l_yywrap+set}" = set; then
  6388. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6389. +else
  6390. + ac_check_lib_save_LIBS=$LIBS
  6391. +LIBS="-ll $LIBS"
  6392. +cat >conftest.$ac_ext <<_ACEOF
  6393. +#line $LINENO "configure"
  6394. +/* confdefs.h. */
  6395. +_ACEOF
  6396. +cat confdefs.h >>conftest.$ac_ext
  6397. +cat >>conftest.$ac_ext <<_ACEOF
  6398. +/* end confdefs.h. */
  6399. -int main() {
  6400. -yywrap()
  6401. -; return 0; }
  6402. -EOF
  6403. -if { (eval echo configure:1457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6404. - rm -rf conftest*
  6405. - eval "ac_cv_lib_$ac_lib_var=yes"
  6406. +/* Override any gcc2 internal prototype to avoid an error. */
  6407. +#ifdef __cplusplus
  6408. +extern "C"
  6409. +#endif
  6410. +/* We use char because int might match the return type of a gcc2
  6411. + builtin and then its argument prototype would still apply. */
  6412. +char yywrap ();
  6413. +int
  6414. +main ()
  6415. +{
  6416. +yywrap ();
  6417. + ;
  6418. + return 0;
  6419. +}
  6420. +_ACEOF
  6421. +rm -f conftest.$ac_objext conftest$ac_exeext
  6422. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6423. + (eval $ac_link) 2>&5
  6424. + ac_status=$?
  6425. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6426. + (exit $ac_status); } &&
  6427. + { ac_try='test -s conftest$ac_exeext'
  6428. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6429. + (eval $ac_try) 2>&5
  6430. + ac_status=$?
  6431. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6432. + (exit $ac_status); }; }; then
  6433. + ac_cv_lib_l_yywrap=yes
  6434. else
  6435. - echo "configure: failed program was:" >&5
  6436. - cat conftest.$ac_ext >&5
  6437. - rm -rf conftest*
  6438. - eval "ac_cv_lib_$ac_lib_var=no"
  6439. -fi
  6440. -rm -f conftest*
  6441. -LIBS="$ac_save_LIBS"
  6442. + echo "$as_me: failed program was:" >&5
  6443. +sed 's/^/| /' conftest.$ac_ext >&5
  6444. +ac_cv_lib_l_yywrap=no
  6445. fi
  6446. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  6447. - echo "$ac_t""yes" 1>&6
  6448. - LEXLIB="-l$ac_lib"
  6449. -else
  6450. - echo "$ac_t""no" 1>&6
  6451. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  6452. +LIBS=$ac_check_lib_save_LIBS
  6453. +fi
  6454. +echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
  6455. +echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
  6456. +if test $ac_cv_lib_l_yywrap = yes; then
  6457. + LEXLIB="-ll"
  6458. +fi
  6459. +
  6460. fi
  6461. fi
  6462. -echo $ac_n "checking lex output file root""... $ac_c" 1>&6
  6463. -echo "configure:1480: checking lex output file root" >&5
  6464. -if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
  6465. - echo $ac_n "(cached) $ac_c" 1>&6
  6466. +if test "x$LEX" != "x:"; then
  6467. + echo "$as_me:$LINENO: checking lex output file root" >&5
  6468. +echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
  6469. +if test "${ac_cv_prog_lex_root+set}" = set; then
  6470. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6471. else
  6472. # The minimal lex program is just a single line: %%. But some broken lexes
  6473. # (Solaris, I think it was) want two %% lines, so accommodate them.
  6474. -echo '%%
  6475. -%%' | $LEX
  6476. +cat >conftest.l <<_ACEOF
  6477. +%%
  6478. +%%
  6479. +_ACEOF
  6480. +{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
  6481. + (eval $LEX conftest.l) 2>&5
  6482. + ac_status=$?
  6483. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6484. + (exit $ac_status); }
  6485. if test -f lex.yy.c; then
  6486. ac_cv_prog_lex_root=lex.yy
  6487. elif test -f lexyy.c; then
  6488. ac_cv_prog_lex_root=lexyy
  6489. else
  6490. - { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
  6491. + { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
  6492. +echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
  6493. + { (exit 1); exit 1; }; }
  6494. fi
  6495. fi
  6496. -
  6497. -echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
  6498. +echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
  6499. +echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
  6500. +rm -f conftest.l
  6501. LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
  6502. -echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
  6503. -echo "configure:1501: checking whether yytext is a pointer" >&5
  6504. -if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
  6505. - echo $ac_n "(cached) $ac_c" 1>&6
  6506. +echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
  6507. +echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
  6508. +if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
  6509. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6510. else
  6511. # POSIX says lex can declare yytext either as a pointer or an array; the
  6512. # default is implementation-dependent. Figure out which it is, since
  6513. # not all implementations provide the %pointer and %array declarations.
  6514. ac_cv_prog_lex_yytext_pointer=no
  6515. echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
  6516. -ac_save_LIBS="$LIBS"
  6517. +ac_save_LIBS=$LIBS
  6518. LIBS="$LIBS $LEXLIB"
  6519. -cat > conftest.$ac_ext <<EOF
  6520. -#line 1513 "configure"
  6521. -#include "confdefs.h"
  6522. +cat >conftest.$ac_ext <<_ACEOF
  6523. `cat $LEX_OUTPUT_ROOT.c`
  6524. -int main() {
  6525. -
  6526. -; return 0; }
  6527. -EOF
  6528. -if { (eval echo configure:1520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  6529. - rm -rf conftest*
  6530. +_ACEOF
  6531. +rm -f conftest.$ac_objext conftest$ac_exeext
  6532. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6533. + (eval $ac_link) 2>&5
  6534. + ac_status=$?
  6535. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6536. + (exit $ac_status); } &&
  6537. + { ac_try='test -s conftest$ac_exeext'
  6538. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6539. + (eval $ac_try) 2>&5
  6540. + ac_status=$?
  6541. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6542. + (exit $ac_status); }; }; then
  6543. ac_cv_prog_lex_yytext_pointer=yes
  6544. else
  6545. - echo "configure: failed program was:" >&5
  6546. - cat conftest.$ac_ext >&5
  6547. + echo "$as_me: failed program was:" >&5
  6548. +sed 's/^/| /' conftest.$ac_ext >&5
  6549. +
  6550. fi
  6551. -rm -f conftest*
  6552. -LIBS="$ac_save_LIBS"
  6553. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  6554. +LIBS=$ac_save_LIBS
  6555. rm -f "${LEX_OUTPUT_ROOT}.c"
  6556. fi
  6557. -
  6558. -echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
  6559. +echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
  6560. +echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
  6561. if test $ac_cv_prog_lex_yytext_pointer = yes; then
  6562. - cat >> confdefs.h <<\EOF
  6563. +
  6564. +cat >>confdefs.h <<\_ACEOF
  6565. #define YYTEXT_POINTER 1
  6566. -EOF
  6567. +_ACEOF
  6568. +
  6569. +fi
  6570. fi
  6571. for ac_prog in 'bison -y' byacc
  6572. do
  6573. -# Extract the first word of "$ac_prog", so it can be a program name with args.
  6574. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  6575. set dummy $ac_prog; ac_word=$2
  6576. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  6577. -echo "configure:1546: checking for $ac_word" >&5
  6578. -if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
  6579. - echo $ac_n "(cached) $ac_c" 1>&6
  6580. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  6581. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  6582. +if test "${ac_cv_prog_YACC+set}" = set; then
  6583. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6584. else
  6585. if test -n "$YACC"; then
  6586. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  6587. else
  6588. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  6589. - ac_dummy="$PATH"
  6590. - for ac_dir in $ac_dummy; do
  6591. - test -z "$ac_dir" && ac_dir=.
  6592. - if test -f $ac_dir/$ac_word; then
  6593. - ac_cv_prog_YACC="$ac_prog"
  6594. - break
  6595. - fi
  6596. - done
  6597. - IFS="$ac_save_ifs"
  6598. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6599. +for as_dir in $PATH
  6600. +do
  6601. + IFS=$as_save_IFS
  6602. + test -z "$as_dir" && as_dir=.
  6603. + for ac_exec_ext in '' $ac_executable_extensions; do
  6604. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6605. + ac_cv_prog_YACC="$ac_prog"
  6606. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6607. + break 2
  6608. + fi
  6609. +done
  6610. +done
  6611. +
  6612. fi
  6613. fi
  6614. -YACC="$ac_cv_prog_YACC"
  6615. +YACC=$ac_cv_prog_YACC
  6616. if test -n "$YACC"; then
  6617. - echo "$ac_t""$YACC" 1>&6
  6618. + echo "$as_me:$LINENO: result: $YACC" >&5
  6619. +echo "${ECHO_T}$YACC" >&6
  6620. else
  6621. - echo "$ac_t""no" 1>&6
  6622. + echo "$as_me:$LINENO: result: no" >&5
  6623. +echo "${ECHO_T}no" >&6
  6624. fi
  6625. -test -n "$YACC" && break
  6626. + test -n "$YACC" && break
  6627. done
  6628. test -n "$YACC" || YACC="yacc"
  6629. @@ -1579,126 +3029,77 @@
  6630. # SunOS /usr/etc/install
  6631. # IRIX /sbin/install
  6632. # AIX /bin/install
  6633. +# AmigaOS /C/install, which installs bootblocks on floppy discs
  6634. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  6635. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  6636. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  6637. # ./install, which can be erroneously created by make from ./install.sh.
  6638. -echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  6639. -echo "configure:1588: checking for a BSD compatible install" >&5
  6640. +echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  6641. +echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  6642. if test -z "$INSTALL"; then
  6643. -if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  6644. - echo $ac_n "(cached) $ac_c" 1>&6
  6645. +if test "${ac_cv_path_install+set}" = set; then
  6646. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6647. else
  6648. - IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
  6649. - for ac_dir in $PATH; do
  6650. - # Account for people who put trailing slashes in PATH elements.
  6651. - case "$ac_dir/" in
  6652. - /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  6653. - *)
  6654. - # OSF1 and SCO ODT 3.0 have their own names for install.
  6655. - # Don't use installbsd from OSF since it installs stuff as root
  6656. - # by default.
  6657. - for ac_prog in ginstall scoinst install; do
  6658. - if test -f $ac_dir/$ac_prog; then
  6659. - if test $ac_prog = install &&
  6660. - grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  6661. - # AIX install. It has an incompatible calling convention.
  6662. - :
  6663. - else
  6664. - ac_cv_path_install="$ac_dir/$ac_prog -c"
  6665. - break 2
  6666. - fi
  6667. - fi
  6668. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6669. +for as_dir in $PATH
  6670. +do
  6671. + IFS=$as_save_IFS
  6672. + test -z "$as_dir" && as_dir=.
  6673. + # Account for people who put trailing slashes in PATH elements.
  6674. +case $as_dir/ in
  6675. + ./ | .// | /cC/* | \
  6676. + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  6677. + /usr/ucb/* ) ;;
  6678. + *)
  6679. + # OSF1 and SCO ODT 3.0 have their own names for install.
  6680. + # Don't use installbsd from OSF since it installs stuff as root
  6681. + # by default.
  6682. + for ac_prog in ginstall scoinst install; do
  6683. + for ac_exec_ext in '' $ac_executable_extensions; do
  6684. + if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  6685. + if test $ac_prog = install &&
  6686. + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  6687. + # AIX install. It has an incompatible calling convention.
  6688. + :
  6689. + elif test $ac_prog = install &&
  6690. + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  6691. + # program-specific install script used by HP pwplus--don't use.
  6692. + :
  6693. + else
  6694. + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  6695. + break 3
  6696. + fi
  6697. + fi
  6698. done
  6699. - ;;
  6700. - esac
  6701. - done
  6702. - IFS="$ac_save_IFS"
  6703. + done
  6704. + ;;
  6705. +esac
  6706. +done
  6707. +
  6708. fi
  6709. if test "${ac_cv_path_install+set}" = set; then
  6710. - INSTALL="$ac_cv_path_install"
  6711. + INSTALL=$ac_cv_path_install
  6712. else
  6713. # As a last resort, use the slow shell script. We don't cache a
  6714. # path for INSTALL within a source directory, because that will
  6715. # break other packages using the cache if that directory is
  6716. # removed, or if the path is relative.
  6717. - INSTALL="$ac_install_sh"
  6718. + INSTALL=$ac_install_sh
  6719. fi
  6720. fi
  6721. -echo "$ac_t""$INSTALL" 1>&6
  6722. +echo "$as_me:$LINENO: result: $INSTALL" >&5
  6723. +echo "${ECHO_T}$INSTALL" >&6
  6724. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  6725. # It thinks the first close brace ends the variable substitution.
  6726. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  6727. -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  6728. +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  6729. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  6730. -echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
  6731. -echo "configure:1642: checking for Cygwin environment" >&5
  6732. -if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
  6733. - echo $ac_n "(cached) $ac_c" 1>&6
  6734. -else
  6735. - cat > conftest.$ac_ext <<EOF
  6736. -#line 1647 "configure"
  6737. -#include "confdefs.h"
  6738. -
  6739. -int main() {
  6740. -
  6741. -#ifndef __CYGWIN__
  6742. -#define __CYGWIN__ __CYGWIN32__
  6743. -#endif
  6744. -return __CYGWIN__;
  6745. -; return 0; }
  6746. -EOF
  6747. -if { (eval echo configure:1658: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  6748. - rm -rf conftest*
  6749. - ac_cv_cygwin=yes
  6750. -else
  6751. - echo "configure: failed program was:" >&5
  6752. - cat conftest.$ac_ext >&5
  6753. - rm -rf conftest*
  6754. - ac_cv_cygwin=no
  6755. -fi
  6756. -rm -f conftest*
  6757. -rm -f conftest*
  6758. -fi
  6759. -
  6760. -echo "$ac_t""$ac_cv_cygwin" 1>&6
  6761. -CYGWIN=
  6762. -test "$ac_cv_cygwin" = yes && CYGWIN=yes
  6763. -echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
  6764. -echo "configure:1675: checking for mingw32 environment" >&5
  6765. -if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
  6766. - echo $ac_n "(cached) $ac_c" 1>&6
  6767. -else
  6768. - cat > conftest.$ac_ext <<EOF
  6769. -#line 1680 "configure"
  6770. -#include "confdefs.h"
  6771. -
  6772. -int main() {
  6773. -return __MINGW32__;
  6774. -; return 0; }
  6775. -EOF
  6776. -if { (eval echo configure:1687: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  6777. - rm -rf conftest*
  6778. - ac_cv_mingw32=yes
  6779. -else
  6780. - echo "configure: failed program was:" >&5
  6781. - cat conftest.$ac_ext >&5
  6782. - rm -rf conftest*
  6783. - ac_cv_mingw32=no
  6784. -fi
  6785. -rm -f conftest*
  6786. -rm -f conftest*
  6787. -fi
  6788. -
  6789. -echo "$ac_t""$ac_cv_mingw32" 1>&6
  6790. -MINGW32=
  6791. -test "$ac_cv_mingw32" = yes && MINGW32=yes
  6792. # Check whether --enable-shared or --disable-shared was given.
  6793. if test "${enable_shared+set}" = set; then
  6794. enableval="$enable_shared"
  6795. @@ -1720,8 +3121,7 @@
  6796. esac
  6797. else
  6798. enable_shared=yes
  6799. -fi
  6800. -
  6801. +fi;
  6802. # Check whether --enable-static or --disable-static was given.
  6803. if test "${enable_static+set}" = set; then
  6804. enableval="$enable_static"
  6805. @@ -1743,8 +3143,7 @@
  6806. esac
  6807. else
  6808. enable_static=yes
  6809. -fi
  6810. -
  6811. +fi;
  6812. # Check whether --enable-fast-install or --disable-fast-install was given.
  6813. if test "${enable_fast_install+set}" = set; then
  6814. enableval="$enable_fast_install"
  6815. @@ -1766,21 +3165,31 @@
  6816. esac
  6817. else
  6818. enable_fast_install=yes
  6819. +fi;
  6820. +# Find the correct PATH separator. Usually this is `:', but
  6821. +# DJGPP uses `;' like DOS.
  6822. +if test "X${PATH_SEPARATOR+set}" != Xset; then
  6823. + UNAME=${UNAME-`uname 2>/dev/null`}
  6824. + case X$UNAME in
  6825. + *-DOS) lt_cv_sys_path_separator=';' ;;
  6826. + *) lt_cv_sys_path_separator=':' ;;
  6827. + esac
  6828. + PATH_SEPARATOR=$lt_cv_sys_path_separator
  6829. fi
  6830. +
  6831. # Check whether --with-gnu-ld or --without-gnu-ld was given.
  6832. if test "${with_gnu_ld+set}" = set; then
  6833. withval="$with_gnu_ld"
  6834. test "$withval" = no || with_gnu_ld=yes
  6835. else
  6836. with_gnu_ld=no
  6837. -fi
  6838. -
  6839. +fi;
  6840. ac_prog=ld
  6841. if test "$GCC" = yes; then
  6842. # Check if gcc -print-prog-name=ld gives a path.
  6843. - echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
  6844. -echo "configure:1784: checking for ld used by GCC" >&5
  6845. + echo "$as_me:$LINENO: checking for ld used by GCC" >&5
  6846. +echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
  6847. case $host in
  6848. *-*-mingw*)
  6849. # gcc leaves a trailing carriage return which upsets mingw
  6850. @@ -1809,17 +3218,17 @@
  6851. ;;
  6852. esac
  6853. elif test "$with_gnu_ld" = yes; then
  6854. - echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
  6855. -echo "configure:1814: checking for GNU ld" >&5
  6856. + echo "$as_me:$LINENO: checking for GNU ld" >&5
  6857. +echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  6858. else
  6859. - echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
  6860. -echo "configure:1817: checking for non-GNU ld" >&5
  6861. + echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  6862. +echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  6863. fi
  6864. -if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
  6865. - echo $ac_n "(cached) $ac_c" 1>&6
  6866. +if test "${lt_cv_path_LD+set}" = set; then
  6867. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6868. else
  6869. if test -z "$LD"; then
  6870. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  6871. + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6872. for ac_dir in $PATH; do
  6873. test -z "$ac_dir" && ac_dir=.
  6874. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  6875. @@ -1842,15 +3251,19 @@
  6876. LD="$lt_cv_path_LD"
  6877. if test -n "$LD"; then
  6878. - echo "$ac_t""$LD" 1>&6
  6879. + echo "$as_me:$LINENO: result: $LD" >&5
  6880. +echo "${ECHO_T}$LD" >&6
  6881. else
  6882. - echo "$ac_t""no" 1>&6
  6883. + echo "$as_me:$LINENO: result: no" >&5
  6884. +echo "${ECHO_T}no" >&6
  6885. fi
  6886. -test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
  6887. -echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
  6888. -echo "configure:1852: checking if the linker ($LD) is GNU ld" >&5
  6889. -if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
  6890. - echo $ac_n "(cached) $ac_c" 1>&6
  6891. +test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  6892. +echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  6893. + { (exit 1); exit 1; }; }
  6894. +echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  6895. +echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  6896. +if test "${lt_cv_prog_gnu_ld+set}" = set; then
  6897. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6898. else
  6899. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  6900. if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  6901. @@ -1859,33 +3272,33 @@
  6902. lt_cv_prog_gnu_ld=no
  6903. fi
  6904. fi
  6905. -
  6906. -echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
  6907. +echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  6908. +echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
  6909. with_gnu_ld=$lt_cv_prog_gnu_ld
  6910. -echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
  6911. -echo "configure:1869: checking for $LD option to reload object files" >&5
  6912. -if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
  6913. - echo $ac_n "(cached) $ac_c" 1>&6
  6914. +echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  6915. +echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
  6916. +if test "${lt_cv_ld_reload_flag+set}" = set; then
  6917. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6918. else
  6919. lt_cv_ld_reload_flag='-r'
  6920. fi
  6921. -
  6922. -echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
  6923. +echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  6924. +echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
  6925. reload_flag=$lt_cv_ld_reload_flag
  6926. test -n "$reload_flag" && reload_flag=" $reload_flag"
  6927. -echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
  6928. -echo "configure:1881: checking for BSD-compatible nm" >&5
  6929. -if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
  6930. - echo $ac_n "(cached) $ac_c" 1>&6
  6931. +echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  6932. +echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
  6933. +if test "${lt_cv_path_NM+set}" = set; then
  6934. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6935. else
  6936. if test -n "$NM"; then
  6937. # Let the user override the test.
  6938. lt_cv_path_NM="$NM"
  6939. else
  6940. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  6941. + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6942. for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
  6943. test -z "$ac_dir" && ac_dir=.
  6944. tmp_nm=$ac_dir/${ac_tool_prefix}nm
  6945. @@ -1912,33 +3325,109 @@
  6946. fi
  6947. NM="$lt_cv_path_NM"
  6948. -echo "$ac_t""$NM" 1>&6
  6949. +echo "$as_me:$LINENO: result: $NM" >&5
  6950. +echo "${ECHO_T}$NM" >&6
  6951. +
  6952. +echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  6953. +echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
  6954. +if test "${lt_cv_path_SED+set}" = set; then
  6955. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6956. +else
  6957. + # Loop through the user's path and test for sed and gsed.
  6958. +# Then use that list of sed's as ones to test for truncation.
  6959. +as_executable_p="test -f"
  6960. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6961. +for as_dir in $PATH
  6962. +do
  6963. + IFS=$as_save_IFS
  6964. + test -z "$as_dir" && as_dir=.
  6965. + for ac_prog in sed gsed; do
  6966. + for ac_exec_ext in '' $ac_executable_extensions; do
  6967. + if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  6968. + _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
  6969. + fi
  6970. + done
  6971. + done
  6972. +done
  6973. +
  6974. + # Create a temporary directory, and hook for its removal unless debugging.
  6975. +$debug ||
  6976. +{
  6977. + trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  6978. + trap '{ (exit 1); exit 1; }' 1 2 13 15
  6979. +}
  6980. +
  6981. +# Create a (secure) tmp directory for tmp files.
  6982. +: ${TMPDIR=/tmp}
  6983. +{
  6984. + tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
  6985. + test -n "$tmp" && test -d "$tmp"
  6986. +} ||
  6987. +{
  6988. + tmp=$TMPDIR/sed$$-$RANDOM
  6989. + (umask 077 && mkdir $tmp)
  6990. +} ||
  6991. +{
  6992. + echo "$me: cannot create a temporary directory in $TMPDIR" >&2
  6993. + { (exit 1); exit 1; }
  6994. +}
  6995. + _max=0
  6996. + _count=0
  6997. + # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  6998. + # along with /bin/sed that truncates output.
  6999. + for _sed in $_sed_list /usr/xpg4/bin/sed; do
  7000. + test ! -f ${_sed} && break
  7001. + cat /dev/null > "$tmp/sed.in"
  7002. + _count=0
  7003. + echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
  7004. + # Check for GNU sed and select it if it is found.
  7005. + if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
  7006. + lt_cv_path_SED=${_sed}
  7007. + break
  7008. + fi
  7009. + while true; do
  7010. + cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
  7011. + mv "$tmp/sed.tmp" "$tmp/sed.in"
  7012. + cp "$tmp/sed.in" "$tmp/sed.nl"
  7013. + echo >>"$tmp/sed.nl"
  7014. + ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
  7015. + cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
  7016. + # 40000 chars as input seems more than enough
  7017. + test $_count -gt 10 && break
  7018. + _count=`expr $_count + 1`
  7019. + if test $_count -gt $_max; then
  7020. + _max=$_count
  7021. + lt_cv_path_SED=$_sed
  7022. + fi
  7023. + done
  7024. + done
  7025. + rm -rf "$tmp"
  7026. -echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
  7027. -echo "configure:1919: checking whether ln -s works" >&5
  7028. -if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
  7029. - echo $ac_n "(cached) $ac_c" 1>&6
  7030. -else
  7031. - rm -f conftestdata
  7032. -if ln -s X conftestdata 2>/dev/null
  7033. -then
  7034. - rm -f conftestdata
  7035. - ac_cv_prog_LN_S="ln -s"
  7036. -else
  7037. - ac_cv_prog_LN_S=ln
  7038. fi
  7039. +
  7040. +if test "X$SED" != "X"; then
  7041. + lt_cv_path_SED=$SED
  7042. +else
  7043. + SED=$lt_cv_path_SED
  7044. fi
  7045. -LN_S="$ac_cv_prog_LN_S"
  7046. -if test "$ac_cv_prog_LN_S" = "ln -s"; then
  7047. - echo "$ac_t""yes" 1>&6
  7048. +echo "$as_me:$LINENO: result: $SED" >&5
  7049. +echo "${ECHO_T}$SED" >&6
  7050. +
  7051. +echo "$as_me:$LINENO: checking whether ln -s works" >&5
  7052. +echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
  7053. +LN_S=$as_ln_s
  7054. +if test "$LN_S" = "ln -s"; then
  7055. + echo "$as_me:$LINENO: result: yes" >&5
  7056. +echo "${ECHO_T}yes" >&6
  7057. else
  7058. - echo "$ac_t""no" 1>&6
  7059. + echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  7060. +echo "${ECHO_T}no, using $LN_S" >&6
  7061. fi
  7062. -echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
  7063. -echo "configure:1940: checking how to recognise dependant libraries" >&5
  7064. -if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
  7065. - echo $ac_n "(cached) $ac_c" 1>&6
  7066. +echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
  7067. +echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
  7068. +if test "${lt_cv_deplibs_check_method+set}" = set; then
  7069. + echo $ECHO_N "(cached) $ECHO_C" >&6
  7070. else
  7071. lt_cv_file_magic_cmd='$MAGIC_CMD'
  7072. lt_cv_file_magic_test_file=
  7073. @@ -1949,7 +3438,7 @@
  7074. # `unknown' -- same as none, but documents that we really don't know.
  7075. # 'pass_all' -- all dependencies passed with no checks.
  7076. # 'test_compile' -- check by making test program.
  7077. -# ['file_magic [regex]'] -- check by looking for files in library path
  7078. +# 'file_magic [[regex]]' -- check by looking for files in library path
  7079. # which responds to the $file_magic_cmd with a given egrep regex.
  7080. # If you have `file' or equivalent on your system and you're not sure
  7081. # whether `pass_all' will *always* work, you probably want this one.
  7082. @@ -1978,7 +3467,7 @@
  7083. lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
  7084. lt_cv_file_magic_cmd='/usr/bin/file -L'
  7085. case "$host_os" in
  7086. - rhapsody* | darwin1.012)
  7087. + rhapsody* | darwin1.[012])
  7088. lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
  7089. ;;
  7090. *) # Darwin 1.3 on
  7091. @@ -2013,9 +3502,9 @@
  7092. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  7093. ;;
  7094. -irix5* | irix6*)
  7095. +irix5* | irix6* | nonstopux*)
  7096. case $host_os in
  7097. - irix5*)
  7098. + irix5* | nonstopux*)
  7099. # this will be overridden with pass_all, but let us keep it just in case
  7100. lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
  7101. ;;
  7102. @@ -2037,7 +3526,7 @@
  7103. # This must be Linux ELF.
  7104. linux-gnu*)
  7105. case $host_cpu in
  7106. - alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* | s390* )
  7107. + alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | arm* | m68k)
  7108. lt_cv_deplibs_check_method=pass_all ;;
  7109. *)
  7110. # glibc up to 2.1.1 does not perform some relocations on ARM
  7111. @@ -2060,6 +3549,16 @@
  7112. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  7113. ;;
  7114. +openbsd*)
  7115. + lt_cv_file_magic_cmd=/usr/bin/file
  7116. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  7117. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7118. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
  7119. + else
  7120. + lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
  7121. + fi
  7122. + ;;
  7123. +
  7124. osf3* | osf4* | osf5*)
  7125. # this will be overridden with pass_all, but let us keep it just in case
  7126. lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
  7127. @@ -2098,89 +3597,32 @@
  7128. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  7129. lt_cv_file_magic_test_file=/lib/libc.so
  7130. ;;
  7131. + siemens)
  7132. + lt_cv_deplibs_check_method=pass_all
  7133. + ;;
  7134. esac
  7135. ;;
  7136. esac
  7137. fi
  7138. -
  7139. -echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
  7140. +echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  7141. +echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
  7142. file_magic_cmd=$lt_cv_file_magic_cmd
  7143. deplibs_check_method=$lt_cv_deplibs_check_method
  7144. -echo $ac_n "checking for object suffix""... $ac_c" 1>&6
  7145. -echo "configure:2113: checking for object suffix" >&5
  7146. -if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
  7147. - echo $ac_n "(cached) $ac_c" 1>&6
  7148. -else
  7149. - rm -f conftest*
  7150. -echo 'int i = 1;' > conftest.$ac_ext
  7151. -if { (eval echo configure:2119: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  7152. - for ac_file in conftest.*; do
  7153. - case $ac_file in
  7154. - *.c) ;;
  7155. - *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
  7156. - esac
  7157. - done
  7158. -else
  7159. - { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
  7160. -fi
  7161. -rm -f conftest*
  7162. -fi
  7163. -
  7164. -echo "$ac_t""$ac_cv_objext" 1>&6
  7165. -OBJEXT=$ac_cv_objext
  7166. -ac_objext=$ac_cv_objext
  7167. -
  7168. -
  7169. -
  7170. -echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
  7171. -echo "configure:2139: checking for executable suffix" >&5
  7172. -if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
  7173. - echo $ac_n "(cached) $ac_c" 1>&6
  7174. -else
  7175. - if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
  7176. - ac_cv_exeext=.exe
  7177. -else
  7178. - rm -f conftest*
  7179. - echo 'int main () { return 0; }' > conftest.$ac_ext
  7180. - ac_cv_exeext=
  7181. - if { (eval echo configure:2149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  7182. - for file in conftest.*; do
  7183. - case $file in
  7184. - *.c | *.o | *.obj) ;;
  7185. - *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
  7186. - esac
  7187. - done
  7188. - else
  7189. - { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
  7190. - fi
  7191. - rm -f conftest*
  7192. - test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
  7193. -fi
  7194. -fi
  7195. -EXEEXT=""
  7196. -test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
  7197. -echo "$ac_t""${ac_cv_exeext}" 1>&6
  7198. -ac_exeext=$EXEEXT
  7199. -if test $host != $build; then
  7200. - ac_tool_prefix=${host_alias}-
  7201. -else
  7202. - ac_tool_prefix=
  7203. -fi
  7204. # Check for command to grab the raw symbol name followed by C symbol from nm.
  7205. -echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
  7206. -echo "configure:2180: checking command to parse $NM output" >&5
  7207. -if eval "test \"`echo '$''{'lt_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
  7208. - echo $ac_n "(cached) $ac_c" 1>&6
  7209. +echo "$as_me:$LINENO: checking command to parse $NM output" >&5
  7210. +echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
  7211. +if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  7212. + echo $ECHO_N "(cached) $ECHO_C" >&6
  7213. else
  7214. -
  7215. +
  7216. # These are sane defaults that work on at least a few old systems.
  7217. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  7218. @@ -2196,6 +3638,9 @@
  7219. # Transform an extracted symbol line into a proper C declaration
  7220. lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
  7221. +# Transform an extracted symbol line into symbol name and symbol address
  7222. +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'"
  7223. +
  7224. # Define system-specific variables.
  7225. case $host_os in
  7226. aix*)
  7227. @@ -2206,10 +3651,14 @@
  7228. ;;
  7229. hpux*) # Its linker distinguishes data from code symbols
  7230. lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  7231. + 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'"
  7232. ;;
  7233. -irix*)
  7234. +irix* | nonstopux*)
  7235. symcode='[BCDEGRST]'
  7236. ;;
  7237. +osf*)
  7238. + symcode='[BCDEGQRST]'
  7239. + ;;
  7240. solaris* | sysv5*)
  7241. symcode='[BDT]'
  7242. ;;
  7243. @@ -2252,10 +3701,18 @@
  7244. int main(){nm_test_var='a';nm_test_func();return(0);}
  7245. EOF
  7246. - if { (eval echo configure:2256: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  7247. + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7248. + (eval $ac_compile) 2>&5
  7249. + ac_status=$?
  7250. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7251. + (exit $ac_status); }; then
  7252. # Now try to grab the symbols.
  7253. nlist=conftest.nm
  7254. - 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
  7255. + if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  7256. + (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  7257. + ac_status=$?
  7258. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7259. + (exit $ac_status); } && test -s "$nlist"; then
  7260. # Try sorting and uniquifying the output.
  7261. if sort "$nlist" | uniq > "$nlist"T; then
  7262. mv -f "$nlist"T "$nlist"
  7263. @@ -2277,23 +3734,23 @@
  7264. cat <<EOF >> conftest.$ac_ext
  7265. #if defined (__STDC__) && __STDC__
  7266. -# define lt_ptr_t void *
  7267. +# define lt_ptr void *
  7268. #else
  7269. -# define lt_ptr_t char *
  7270. +# define lt_ptr char *
  7271. # define const
  7272. #endif
  7273. /* The mapping between symbol names and symbols. */
  7274. const struct {
  7275. const char *name;
  7276. - lt_ptr_t address;
  7277. + lt_ptr address;
  7278. }
  7279. lt_preloaded_symbols[] =
  7280. {
  7281. EOF
  7282. - sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" >> conftest.$ac_ext
  7283. + sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
  7284. cat <<\EOF >> conftest.$ac_ext
  7285. - {0, (lt_ptr_t) 0}
  7286. + {0, (lt_ptr) 0}
  7287. };
  7288. #ifdef __cplusplus
  7289. @@ -2306,7 +3763,11 @@
  7290. save_CFLAGS="$CFLAGS"
  7291. LIBS="conftstm.$ac_objext"
  7292. CFLAGS="$CFLAGS$no_builtin_flag"
  7293. - if { (eval echo configure:2310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  7294. + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7295. + (eval $ac_link) 2>&5
  7296. + ac_status=$?
  7297. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7298. + (exit $ac_status); } && test -s conftest$ac_exeext; then
  7299. pipe_works=yes
  7300. fi
  7301. LIBS="$save_LIBS"
  7302. @@ -2339,84 +3800,665 @@
  7303. global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
  7304. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  7305. global_symbol_to_cdecl=
  7306. + global_symbol_to_c_name_address=
  7307. else
  7308. global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
  7309. + global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
  7310. fi
  7311. -if test -z "$global_symbol_pipe$global_symbol_to_cdecl"; then
  7312. - echo "$ac_t""failed" 1>&6
  7313. +if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
  7314. +then
  7315. + echo "$as_me:$LINENO: result: failed" >&5
  7316. +echo "${ECHO_T}failed" >&6
  7317. else
  7318. - echo "$ac_t""ok" 1>&6
  7319. + echo "$as_me:$LINENO: result: ok" >&5
  7320. +echo "${ECHO_T}ok" >&6
  7321. fi
  7322. -for ac_hdr in dlfcn.h
  7323. +ac_ext=c
  7324. +ac_cpp='$CPP $CPPFLAGS'
  7325. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7326. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7327. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7328. +echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  7329. +echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  7330. +# On Suns, sometimes $CPP names a directory.
  7331. +if test -n "$CPP" && test -d "$CPP"; then
  7332. + CPP=
  7333. +fi
  7334. +if test -z "$CPP"; then
  7335. + if test "${ac_cv_prog_CPP+set}" = set; then
  7336. + echo $ECHO_N "(cached) $ECHO_C" >&6
  7337. +else
  7338. + # Double quotes because CPP needs to be expanded
  7339. + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  7340. + do
  7341. + ac_preproc_ok=false
  7342. +for ac_c_preproc_warn_flag in '' yes
  7343. do
  7344. -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  7345. -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  7346. -echo "configure:2356: checking for $ac_hdr" >&5
  7347. -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  7348. - echo $ac_n "(cached) $ac_c" 1>&6
  7349. + # Use a header file that comes with gcc, so configuring glibc
  7350. + # with a fresh cross-compiler works.
  7351. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7352. + # <limits.h> exists even on freestanding compilers.
  7353. + # On the NeXT, cc -E runs the code through the compiler's parser,
  7354. + # not just through cpp. "Syntax error" is here to catch this case.
  7355. + cat >conftest.$ac_ext <<_ACEOF
  7356. +#line $LINENO "configure"
  7357. +/* confdefs.h. */
  7358. +_ACEOF
  7359. +cat confdefs.h >>conftest.$ac_ext
  7360. +cat >>conftest.$ac_ext <<_ACEOF
  7361. +/* end confdefs.h. */
  7362. +#ifdef __STDC__
  7363. +# include <limits.h>
  7364. +#else
  7365. +# include <assert.h>
  7366. +#endif
  7367. + Syntax error
  7368. +_ACEOF
  7369. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  7370. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  7371. + ac_status=$?
  7372. + grep -v '^ *+' conftest.er1 >conftest.err
  7373. + rm -f conftest.er1
  7374. + cat conftest.err >&5
  7375. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7376. + (exit $ac_status); } >/dev/null; then
  7377. + if test -s conftest.err; then
  7378. + ac_cpp_err=$ac_c_preproc_warn_flag
  7379. + else
  7380. + ac_cpp_err=
  7381. + fi
  7382. else
  7383. - cat > conftest.$ac_ext <<EOF
  7384. -#line 2361 "configure"
  7385. -#include "confdefs.h"
  7386. -#include <$ac_hdr>
  7387. -EOF
  7388. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  7389. -{ (eval echo configure:2366: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  7390. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  7391. -if test -z "$ac_err"; then
  7392. - rm -rf conftest*
  7393. - eval "ac_cv_header_$ac_safe=yes"
  7394. + ac_cpp_err=yes
  7395. +fi
  7396. +if test -z "$ac_cpp_err"; then
  7397. + :
  7398. else
  7399. - echo "$ac_err" >&5
  7400. - echo "configure: failed program was:" >&5
  7401. - cat conftest.$ac_ext >&5
  7402. - rm -rf conftest*
  7403. - eval "ac_cv_header_$ac_safe=no"
  7404. + echo "$as_me: failed program was:" >&5
  7405. +sed 's/^/| /' conftest.$ac_ext >&5
  7406. +
  7407. + # Broken: fails on valid input.
  7408. +continue
  7409. fi
  7410. -rm -f conftest*
  7411. +rm -f conftest.err conftest.$ac_ext
  7412. +
  7413. + # OK, works on sane cases. Now check whether non-existent headers
  7414. + # can be detected and how.
  7415. + cat >conftest.$ac_ext <<_ACEOF
  7416. +#line $LINENO "configure"
  7417. +/* confdefs.h. */
  7418. +_ACEOF
  7419. +cat confdefs.h >>conftest.$ac_ext
  7420. +cat >>conftest.$ac_ext <<_ACEOF
  7421. +/* end confdefs.h. */
  7422. +#include <ac_nonexistent.h>
  7423. +_ACEOF
  7424. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  7425. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  7426. + ac_status=$?
  7427. + grep -v '^ *+' conftest.er1 >conftest.err
  7428. + rm -f conftest.er1
  7429. + cat conftest.err >&5
  7430. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7431. + (exit $ac_status); } >/dev/null; then
  7432. + if test -s conftest.err; then
  7433. + ac_cpp_err=$ac_c_preproc_warn_flag
  7434. + else
  7435. + ac_cpp_err=
  7436. + fi
  7437. +else
  7438. + ac_cpp_err=yes
  7439. fi
  7440. -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  7441. - echo "$ac_t""yes" 1>&6
  7442. - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  7443. - cat >> confdefs.h <<EOF
  7444. -#define $ac_tr_hdr 1
  7445. -EOF
  7446. -
  7447. +if test -z "$ac_cpp_err"; then
  7448. + # Broken: success on invalid input.
  7449. +continue
  7450. else
  7451. - echo "$ac_t""no" 1>&6
  7452. + echo "$as_me: failed program was:" >&5
  7453. +sed 's/^/| /' conftest.$ac_ext >&5
  7454. +
  7455. + # Passes both tests.
  7456. +ac_preproc_ok=:
  7457. +break
  7458. fi
  7459. +rm -f conftest.err conftest.$ac_ext
  7460. +
  7461. done
  7462. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7463. +rm -f conftest.err conftest.$ac_ext
  7464. +if $ac_preproc_ok; then
  7465. + break
  7466. +fi
  7467. + done
  7468. + ac_cv_prog_CPP=$CPP
  7469. +
  7470. +fi
  7471. + CPP=$ac_cv_prog_CPP
  7472. +else
  7473. + ac_cv_prog_CPP=$CPP
  7474. +fi
  7475. +echo "$as_me:$LINENO: result: $CPP" >&5
  7476. +echo "${ECHO_T}$CPP" >&6
  7477. +ac_preproc_ok=false
  7478. +for ac_c_preproc_warn_flag in '' yes
  7479. +do
  7480. + # Use a header file that comes with gcc, so configuring glibc
  7481. + # with a fresh cross-compiler works.
  7482. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7483. + # <limits.h> exists even on freestanding compilers.
  7484. + # On the NeXT, cc -E runs the code through the compiler's parser,
  7485. + # not just through cpp. "Syntax error" is here to catch this case.
  7486. + cat >conftest.$ac_ext <<_ACEOF
  7487. +#line $LINENO "configure"
  7488. +/* confdefs.h. */
  7489. +_ACEOF
  7490. +cat confdefs.h >>conftest.$ac_ext
  7491. +cat >>conftest.$ac_ext <<_ACEOF
  7492. +/* end confdefs.h. */
  7493. +#ifdef __STDC__
  7494. +# include <limits.h>
  7495. +#else
  7496. +# include <assert.h>
  7497. +#endif
  7498. + Syntax error
  7499. +_ACEOF
  7500. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  7501. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  7502. + ac_status=$?
  7503. + grep -v '^ *+' conftest.er1 >conftest.err
  7504. + rm -f conftest.er1
  7505. + cat conftest.err >&5
  7506. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7507. + (exit $ac_status); } >/dev/null; then
  7508. + if test -s conftest.err; then
  7509. + ac_cpp_err=$ac_c_preproc_warn_flag
  7510. + else
  7511. + ac_cpp_err=
  7512. + fi
  7513. +else
  7514. + ac_cpp_err=yes
  7515. +fi
  7516. +if test -z "$ac_cpp_err"; then
  7517. + :
  7518. +else
  7519. + echo "$as_me: failed program was:" >&5
  7520. +sed 's/^/| /' conftest.$ac_ext >&5
  7521. + # Broken: fails on valid input.
  7522. +continue
  7523. +fi
  7524. +rm -f conftest.err conftest.$ac_ext
  7525. + # OK, works on sane cases. Now check whether non-existent headers
  7526. + # can be detected and how.
  7527. + cat >conftest.$ac_ext <<_ACEOF
  7528. +#line $LINENO "configure"
  7529. +/* confdefs.h. */
  7530. +_ACEOF
  7531. +cat confdefs.h >>conftest.$ac_ext
  7532. +cat >>conftest.$ac_ext <<_ACEOF
  7533. +/* end confdefs.h. */
  7534. +#include <ac_nonexistent.h>
  7535. +_ACEOF
  7536. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  7537. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  7538. + ac_status=$?
  7539. + grep -v '^ *+' conftest.er1 >conftest.err
  7540. + rm -f conftest.er1
  7541. + cat conftest.err >&5
  7542. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7543. + (exit $ac_status); } >/dev/null; then
  7544. + if test -s conftest.err; then
  7545. + ac_cpp_err=$ac_c_preproc_warn_flag
  7546. + else
  7547. + ac_cpp_err=
  7548. + fi
  7549. +else
  7550. + ac_cpp_err=yes
  7551. +fi
  7552. +if test -z "$ac_cpp_err"; then
  7553. + # Broken: success on invalid input.
  7554. +continue
  7555. +else
  7556. + echo "$as_me: failed program was:" >&5
  7557. +sed 's/^/| /' conftest.$ac_ext >&5
  7558. + # Passes both tests.
  7559. +ac_preproc_ok=:
  7560. +break
  7561. +fi
  7562. +rm -f conftest.err conftest.$ac_ext
  7563. -# Only perform the check for file, if the check method requires it
  7564. -case $deplibs_check_method in
  7565. -file_magic*)
  7566. - if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7567. - echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
  7568. -echo "configure:2401: checking for ${ac_tool_prefix}file" >&5
  7569. -if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
  7570. - echo $ac_n "(cached) $ac_c" 1>&6
  7571. +done
  7572. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7573. +rm -f conftest.err conftest.$ac_ext
  7574. +if $ac_preproc_ok; then
  7575. + :
  7576. else
  7577. - case $MAGIC_CMD in
  7578. - /*)
  7579. - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7580. - ;;
  7581. - ?:/*)
  7582. - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
  7583. - ;;
  7584. - *)
  7585. - ac_save_MAGIC_CMD="$MAGIC_CMD"
  7586. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  7587. - ac_dummy="/usr/bin:$PATH"
  7588. - for ac_dir in $ac_dummy; do
  7589. - test -z "$ac_dir" && ac_dir=.
  7590. - if test -f $ac_dir/${ac_tool_prefix}file; then
  7591. - lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7592. - if test -n "$file_magic_test_file"; then
  7593. + { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  7594. +See \`config.log' for more details." >&5
  7595. +echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  7596. +See \`config.log' for more details." >&2;}
  7597. + { (exit 1); exit 1; }; }
  7598. +fi
  7599. +
  7600. +ac_ext=c
  7601. +ac_cpp='$CPP $CPPFLAGS'
  7602. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7603. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7604. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7605. +
  7606. +
  7607. +echo "$as_me:$LINENO: checking for egrep" >&5
  7608. +echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  7609. +if test "${ac_cv_prog_egrep+set}" = set; then
  7610. + echo $ECHO_N "(cached) $ECHO_C" >&6
  7611. +else
  7612. + if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  7613. + then ac_cv_prog_egrep='grep -E'
  7614. + else ac_cv_prog_egrep='egrep'
  7615. + fi
  7616. +fi
  7617. +echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  7618. +echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  7619. + EGREP=$ac_cv_prog_egrep
  7620. +
  7621. +
  7622. +echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  7623. +echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  7624. +if test "${ac_cv_header_stdc+set}" = set; then
  7625. + echo $ECHO_N "(cached) $ECHO_C" >&6
  7626. +else
  7627. + cat >conftest.$ac_ext <<_ACEOF
  7628. +#line $LINENO "configure"
  7629. +/* confdefs.h. */
  7630. +_ACEOF
  7631. +cat confdefs.h >>conftest.$ac_ext
  7632. +cat >>conftest.$ac_ext <<_ACEOF
  7633. +/* end confdefs.h. */
  7634. +#include <stdlib.h>
  7635. +#include <stdarg.h>
  7636. +#include <string.h>
  7637. +#include <float.h>
  7638. +
  7639. +int
  7640. +main ()
  7641. +{
  7642. +
  7643. + ;
  7644. + return 0;
  7645. +}
  7646. +_ACEOF
  7647. +rm -f conftest.$ac_objext
  7648. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7649. + (eval $ac_compile) 2>&5
  7650. + ac_status=$?
  7651. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7652. + (exit $ac_status); } &&
  7653. + { ac_try='test -s conftest.$ac_objext'
  7654. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7655. + (eval $ac_try) 2>&5
  7656. + ac_status=$?
  7657. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7658. + (exit $ac_status); }; }; then
  7659. + ac_cv_header_stdc=yes
  7660. +else
  7661. + echo "$as_me: failed program was:" >&5
  7662. +sed 's/^/| /' conftest.$ac_ext >&5
  7663. +
  7664. +ac_cv_header_stdc=no
  7665. +fi
  7666. +rm -f conftest.$ac_objext conftest.$ac_ext
  7667. +
  7668. +if test $ac_cv_header_stdc = yes; then
  7669. + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  7670. + cat >conftest.$ac_ext <<_ACEOF
  7671. +#line $LINENO "configure"
  7672. +/* confdefs.h. */
  7673. +_ACEOF
  7674. +cat confdefs.h >>conftest.$ac_ext
  7675. +cat >>conftest.$ac_ext <<_ACEOF
  7676. +/* end confdefs.h. */
  7677. +#include <string.h>
  7678. +
  7679. +_ACEOF
  7680. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7681. + $EGREP "memchr" >/dev/null 2>&1; then
  7682. + :
  7683. +else
  7684. + ac_cv_header_stdc=no
  7685. +fi
  7686. +rm -f conftest*
  7687. +
  7688. +fi
  7689. +
  7690. +if test $ac_cv_header_stdc = yes; then
  7691. + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  7692. + cat >conftest.$ac_ext <<_ACEOF
  7693. +#line $LINENO "configure"
  7694. +/* confdefs.h. */
  7695. +_ACEOF
  7696. +cat confdefs.h >>conftest.$ac_ext
  7697. +cat >>conftest.$ac_ext <<_ACEOF
  7698. +/* end confdefs.h. */
  7699. +#include <stdlib.h>
  7700. +
  7701. +_ACEOF
  7702. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7703. + $EGREP "free" >/dev/null 2>&1; then
  7704. + :
  7705. +else
  7706. + ac_cv_header_stdc=no
  7707. +fi
  7708. +rm -f conftest*
  7709. +
  7710. +fi
  7711. +
  7712. +if test $ac_cv_header_stdc = yes; then
  7713. + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  7714. + if test "$cross_compiling" = yes; then
  7715. + :
  7716. +else
  7717. + cat >conftest.$ac_ext <<_ACEOF
  7718. +#line $LINENO "configure"
  7719. +/* confdefs.h. */
  7720. +_ACEOF
  7721. +cat confdefs.h >>conftest.$ac_ext
  7722. +cat >>conftest.$ac_ext <<_ACEOF
  7723. +/* end confdefs.h. */
  7724. +#include <ctype.h>
  7725. +#if ((' ' & 0x0FF) == 0x020)
  7726. +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  7727. +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  7728. +#else
  7729. +# define ISLOWER(c) \
  7730. + (('a' <= (c) && (c) <= 'i') \
  7731. + || ('j' <= (c) && (c) <= 'r') \
  7732. + || ('s' <= (c) && (c) <= 'z'))
  7733. +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  7734. +#endif
  7735. +
  7736. +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  7737. +int
  7738. +main ()
  7739. +{
  7740. + int i;
  7741. + for (i = 0; i < 256; i++)
  7742. + if (XOR (islower (i), ISLOWER (i))
  7743. + || toupper (i) != TOUPPER (i))
  7744. + exit(2);
  7745. + exit (0);
  7746. +}
  7747. +_ACEOF
  7748. +rm -f conftest$ac_exeext
  7749. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7750. + (eval $ac_link) 2>&5
  7751. + ac_status=$?
  7752. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7753. + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7754. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7755. + (eval $ac_try) 2>&5
  7756. + ac_status=$?
  7757. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7758. + (exit $ac_status); }; }; then
  7759. + :
  7760. +else
  7761. + echo "$as_me: program exited with status $ac_status" >&5
  7762. +echo "$as_me: failed program was:" >&5
  7763. +sed 's/^/| /' conftest.$ac_ext >&5
  7764. +
  7765. +( exit $ac_status )
  7766. +ac_cv_header_stdc=no
  7767. +fi
  7768. +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7769. +fi
  7770. +fi
  7771. +fi
  7772. +echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  7773. +echo "${ECHO_T}$ac_cv_header_stdc" >&6
  7774. +if test $ac_cv_header_stdc = yes; then
  7775. +
  7776. +cat >>confdefs.h <<\_ACEOF
  7777. +#define STDC_HEADERS 1
  7778. +_ACEOF
  7779. +
  7780. +fi
  7781. +
  7782. +# On IRIX 5.3, sys/types and inttypes.h are conflicting.
  7783. +
  7784. +
  7785. +
  7786. +
  7787. +
  7788. +
  7789. +
  7790. +
  7791. +
  7792. +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  7793. + inttypes.h stdint.h unistd.h
  7794. +do
  7795. +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7796. +echo "$as_me:$LINENO: checking for $ac_header" >&5
  7797. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7798. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7799. + echo $ECHO_N "(cached) $ECHO_C" >&6
  7800. +else
  7801. + cat >conftest.$ac_ext <<_ACEOF
  7802. +#line $LINENO "configure"
  7803. +/* confdefs.h. */
  7804. +_ACEOF
  7805. +cat confdefs.h >>conftest.$ac_ext
  7806. +cat >>conftest.$ac_ext <<_ACEOF
  7807. +/* end confdefs.h. */
  7808. +$ac_includes_default
  7809. +
  7810. +#include <$ac_header>
  7811. +_ACEOF
  7812. +rm -f conftest.$ac_objext
  7813. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7814. + (eval $ac_compile) 2>&5
  7815. + ac_status=$?
  7816. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7817. + (exit $ac_status); } &&
  7818. + { ac_try='test -s conftest.$ac_objext'
  7819. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7820. + (eval $ac_try) 2>&5
  7821. + ac_status=$?
  7822. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7823. + (exit $ac_status); }; }; then
  7824. + eval "$as_ac_Header=yes"
  7825. +else
  7826. + echo "$as_me: failed program was:" >&5
  7827. +sed 's/^/| /' conftest.$ac_ext >&5
  7828. +
  7829. +eval "$as_ac_Header=no"
  7830. +fi
  7831. +rm -f conftest.$ac_objext conftest.$ac_ext
  7832. +fi
  7833. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7834. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7835. +if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7836. + cat >>confdefs.h <<_ACEOF
  7837. +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7838. +_ACEOF
  7839. +
  7840. +fi
  7841. +
  7842. +done
  7843. +
  7844. +
  7845. +
  7846. +for ac_header in dlfcn.h
  7847. +do
  7848. +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7849. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7850. + echo "$as_me:$LINENO: checking for $ac_header" >&5
  7851. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7852. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7853. + echo $ECHO_N "(cached) $ECHO_C" >&6
  7854. +fi
  7855. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7856. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7857. +else
  7858. + # Is the header compilable?
  7859. +echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7860. +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  7861. +cat >conftest.$ac_ext <<_ACEOF
  7862. +#line $LINENO "configure"
  7863. +/* confdefs.h. */
  7864. +_ACEOF
  7865. +cat confdefs.h >>conftest.$ac_ext
  7866. +cat >>conftest.$ac_ext <<_ACEOF
  7867. +/* end confdefs.h. */
  7868. +$ac_includes_default
  7869. +#include <$ac_header>
  7870. +_ACEOF
  7871. +rm -f conftest.$ac_objext
  7872. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7873. + (eval $ac_compile) 2>&5
  7874. + ac_status=$?
  7875. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7876. + (exit $ac_status); } &&
  7877. + { ac_try='test -s conftest.$ac_objext'
  7878. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7879. + (eval $ac_try) 2>&5
  7880. + ac_status=$?
  7881. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7882. + (exit $ac_status); }; }; then
  7883. + ac_header_compiler=yes
  7884. +else
  7885. + echo "$as_me: failed program was:" >&5
  7886. +sed 's/^/| /' conftest.$ac_ext >&5
  7887. +
  7888. +ac_header_compiler=no
  7889. +fi
  7890. +rm -f conftest.$ac_objext conftest.$ac_ext
  7891. +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7892. +echo "${ECHO_T}$ac_header_compiler" >&6
  7893. +
  7894. +# Is the header present?
  7895. +echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7896. +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  7897. +cat >conftest.$ac_ext <<_ACEOF
  7898. +#line $LINENO "configure"
  7899. +/* confdefs.h. */
  7900. +_ACEOF
  7901. +cat confdefs.h >>conftest.$ac_ext
  7902. +cat >>conftest.$ac_ext <<_ACEOF
  7903. +/* end confdefs.h. */
  7904. +#include <$ac_header>
  7905. +_ACEOF
  7906. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  7907. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  7908. + ac_status=$?
  7909. + grep -v '^ *+' conftest.er1 >conftest.err
  7910. + rm -f conftest.er1
  7911. + cat conftest.err >&5
  7912. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7913. + (exit $ac_status); } >/dev/null; then
  7914. + if test -s conftest.err; then
  7915. + ac_cpp_err=$ac_c_preproc_warn_flag
  7916. + else
  7917. + ac_cpp_err=
  7918. + fi
  7919. +else
  7920. + ac_cpp_err=yes
  7921. +fi
  7922. +if test -z "$ac_cpp_err"; then
  7923. + ac_header_preproc=yes
  7924. +else
  7925. + echo "$as_me: failed program was:" >&5
  7926. +sed 's/^/| /' conftest.$ac_ext >&5
  7927. +
  7928. + ac_header_preproc=no
  7929. +fi
  7930. +rm -f conftest.err conftest.$ac_ext
  7931. +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7932. +echo "${ECHO_T}$ac_header_preproc" >&6
  7933. +
  7934. +# So? What about this header?
  7935. +case $ac_header_compiler:$ac_header_preproc in
  7936. + yes:no )
  7937. + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7938. +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7939. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7940. +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7941. + (
  7942. + cat <<\_ASBOX
  7943. +## ------------------------------------ ##
  7944. +## Report this to bug-autoconf@gnu.org. ##
  7945. +## ------------------------------------ ##
  7946. +_ASBOX
  7947. + ) |
  7948. + sed "s/^/$as_me: WARNING: /" >&2
  7949. + ;;
  7950. + no:yes )
  7951. + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7952. +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7953. + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7954. +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7955. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7956. +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7957. + (
  7958. + cat <<\_ASBOX
  7959. +## ------------------------------------ ##
  7960. +## Report this to bug-autoconf@gnu.org. ##
  7961. +## ------------------------------------ ##
  7962. +_ASBOX
  7963. + ) |
  7964. + sed "s/^/$as_me: WARNING: /" >&2
  7965. + ;;
  7966. +esac
  7967. +echo "$as_me:$LINENO: checking for $ac_header" >&5
  7968. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7969. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7970. + echo $ECHO_N "(cached) $ECHO_C" >&6
  7971. +else
  7972. + eval "$as_ac_Header=$ac_header_preproc"
  7973. +fi
  7974. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7975. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7976. +
  7977. +fi
  7978. +if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7979. + cat >>confdefs.h <<_ACEOF
  7980. +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7981. +_ACEOF
  7982. +
  7983. +fi
  7984. +
  7985. +done
  7986. +
  7987. +
  7988. +
  7989. +
  7990. +
  7991. +
  7992. +# Only perform the check for file, if the check method requires it
  7993. +case $deplibs_check_method in
  7994. +file_magic*)
  7995. + if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7996. + echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  7997. +echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
  7998. +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  7999. + echo $ECHO_N "(cached) $ECHO_C" >&6
  8000. +else
  8001. + case $MAGIC_CMD in
  8002. + /*)
  8003. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  8004. + ;;
  8005. + ?:/*)
  8006. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
  8007. + ;;
  8008. + *)
  8009. + ac_save_MAGIC_CMD="$MAGIC_CMD"
  8010. + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  8011. + ac_dummy="/usr/bin:$PATH"
  8012. + for ac_dir in $ac_dummy; do
  8013. + test -z "$ac_dir" && ac_dir=.
  8014. + if test -f $ac_dir/${ac_tool_prefix}file; then
  8015. + lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  8016. + if test -n "$file_magic_test_file"; then
  8017. case $deplibs_check_method in
  8018. "file_magic "*)
  8019. file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  8020. @@ -2451,17 +4493,19 @@
  8021. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8022. if test -n "$MAGIC_CMD"; then
  8023. - echo "$ac_t""$MAGIC_CMD" 1>&6
  8024. + echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  8025. +echo "${ECHO_T}$MAGIC_CMD" >&6
  8026. else
  8027. - echo "$ac_t""no" 1>&6
  8028. + echo "$as_me:$LINENO: result: no" >&5
  8029. +echo "${ECHO_T}no" >&6
  8030. fi
  8031. if test -z "$lt_cv_path_MAGIC_CMD"; then
  8032. if test -n "$ac_tool_prefix"; then
  8033. - echo $ac_n "checking for file""... $ac_c" 1>&6
  8034. -echo "configure:2463: checking for file" >&5
  8035. -if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
  8036. - echo $ac_n "(cached) $ac_c" 1>&6
  8037. + echo "$as_me:$LINENO: checking for file" >&5
  8038. +echo $ECHO_N "checking for file... $ECHO_C" >&6
  8039. +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  8040. + echo $ECHO_N "(cached) $ECHO_C" >&6
  8041. else
  8042. case $MAGIC_CMD in
  8043. /*)
  8044. @@ -2513,9 +4557,11 @@
  8045. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  8046. if test -n "$MAGIC_CMD"; then
  8047. - echo "$ac_t""$MAGIC_CMD" 1>&6
  8048. + echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  8049. +echo "${ECHO_T}$MAGIC_CMD" >&6
  8050. else
  8051. - echo "$ac_t""no" 1>&6
  8052. + echo "$as_me:$LINENO: result: no" >&5
  8053. +echo "${ECHO_T}no" >&6
  8054. fi
  8055. else
  8056. @@ -2527,138 +4573,164 @@
  8057. ;;
  8058. esac
  8059. -# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  8060. +if test -n "$ac_tool_prefix"; then
  8061. + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  8062. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  8063. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  8064. -echo "configure:2534: checking for $ac_word" >&5
  8065. -if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  8066. - echo $ac_n "(cached) $ac_c" 1>&6
  8067. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  8068. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  8069. +if test "${ac_cv_prog_RANLIB+set}" = set; then
  8070. + echo $ECHO_N "(cached) $ECHO_C" >&6
  8071. else
  8072. if test -n "$RANLIB"; then
  8073. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  8074. else
  8075. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  8076. - ac_dummy="$PATH"
  8077. - for ac_dir in $ac_dummy; do
  8078. - test -z "$ac_dir" && ac_dir=.
  8079. - if test -f $ac_dir/$ac_word; then
  8080. - ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  8081. - break
  8082. - fi
  8083. - done
  8084. - IFS="$ac_save_ifs"
  8085. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8086. +for as_dir in $PATH
  8087. +do
  8088. + IFS=$as_save_IFS
  8089. + test -z "$as_dir" && as_dir=.
  8090. + for ac_exec_ext in '' $ac_executable_extensions; do
  8091. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8092. + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  8093. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8094. + break 2
  8095. + fi
  8096. +done
  8097. +done
  8098. +
  8099. fi
  8100. fi
  8101. -RANLIB="$ac_cv_prog_RANLIB"
  8102. +RANLIB=$ac_cv_prog_RANLIB
  8103. if test -n "$RANLIB"; then
  8104. - echo "$ac_t""$RANLIB" 1>&6
  8105. + echo "$as_me:$LINENO: result: $RANLIB" >&5
  8106. +echo "${ECHO_T}$RANLIB" >&6
  8107. else
  8108. - echo "$ac_t""no" 1>&6
  8109. + echo "$as_me:$LINENO: result: no" >&5
  8110. +echo "${ECHO_T}no" >&6
  8111. fi
  8112. -
  8113. +fi
  8114. if test -z "$ac_cv_prog_RANLIB"; then
  8115. -if test -n "$ac_tool_prefix"; then
  8116. + ac_ct_RANLIB=$RANLIB
  8117. # Extract the first word of "ranlib", so it can be a program name with args.
  8118. set dummy ranlib; ac_word=$2
  8119. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  8120. -echo "configure:2566: checking for $ac_word" >&5
  8121. -if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  8122. - echo $ac_n "(cached) $ac_c" 1>&6
  8123. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  8124. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  8125. +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  8126. + echo $ECHO_N "(cached) $ECHO_C" >&6
  8127. else
  8128. - if test -n "$RANLIB"; then
  8129. - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  8130. + if test -n "$ac_ct_RANLIB"; then
  8131. + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  8132. else
  8133. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  8134. - ac_dummy="$PATH"
  8135. - for ac_dir in $ac_dummy; do
  8136. - test -z "$ac_dir" && ac_dir=.
  8137. - if test -f $ac_dir/$ac_word; then
  8138. - ac_cv_prog_RANLIB="ranlib"
  8139. - break
  8140. - fi
  8141. - done
  8142. - IFS="$ac_save_ifs"
  8143. - test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  8144. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8145. +for as_dir in $PATH
  8146. +do
  8147. + IFS=$as_save_IFS
  8148. + test -z "$as_dir" && as_dir=.
  8149. + for ac_exec_ext in '' $ac_executable_extensions; do
  8150. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8151. + ac_cv_prog_ac_ct_RANLIB="ranlib"
  8152. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8153. + break 2
  8154. + fi
  8155. +done
  8156. +done
  8157. +
  8158. + test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  8159. fi
  8160. fi
  8161. -RANLIB="$ac_cv_prog_RANLIB"
  8162. -if test -n "$RANLIB"; then
  8163. - echo "$ac_t""$RANLIB" 1>&6
  8164. +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  8165. +if test -n "$ac_ct_RANLIB"; then
  8166. + echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  8167. +echo "${ECHO_T}$ac_ct_RANLIB" >&6
  8168. else
  8169. - echo "$ac_t""no" 1>&6
  8170. + echo "$as_me:$LINENO: result: no" >&5
  8171. +echo "${ECHO_T}no" >&6
  8172. fi
  8173. + RANLIB=$ac_ct_RANLIB
  8174. else
  8175. - RANLIB=":"
  8176. -fi
  8177. + RANLIB="$ac_cv_prog_RANLIB"
  8178. fi
  8179. -# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  8180. +if test -n "$ac_tool_prefix"; then
  8181. + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  8182. set dummy ${ac_tool_prefix}strip; ac_word=$2
  8183. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  8184. -echo "configure:2601: checking for $ac_word" >&5
  8185. -if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
  8186. - echo $ac_n "(cached) $ac_c" 1>&6
  8187. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  8188. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  8189. +if test "${ac_cv_prog_STRIP+set}" = set; then
  8190. + echo $ECHO_N "(cached) $ECHO_C" >&6
  8191. else
  8192. if test -n "$STRIP"; then
  8193. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  8194. else
  8195. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  8196. - ac_dummy="$PATH"
  8197. - for ac_dir in $ac_dummy; do
  8198. - test -z "$ac_dir" && ac_dir=.
  8199. - if test -f $ac_dir/$ac_word; then
  8200. - ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  8201. - break
  8202. - fi
  8203. - done
  8204. - IFS="$ac_save_ifs"
  8205. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8206. +for as_dir in $PATH
  8207. +do
  8208. + IFS=$as_save_IFS
  8209. + test -z "$as_dir" && as_dir=.
  8210. + for ac_exec_ext in '' $ac_executable_extensions; do
  8211. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8212. + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  8213. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8214. + break 2
  8215. + fi
  8216. +done
  8217. +done
  8218. +
  8219. fi
  8220. fi
  8221. -STRIP="$ac_cv_prog_STRIP"
  8222. +STRIP=$ac_cv_prog_STRIP
  8223. if test -n "$STRIP"; then
  8224. - echo "$ac_t""$STRIP" 1>&6
  8225. + echo "$as_me:$LINENO: result: $STRIP" >&5
  8226. +echo "${ECHO_T}$STRIP" >&6
  8227. else
  8228. - echo "$ac_t""no" 1>&6
  8229. + echo "$as_me:$LINENO: result: no" >&5
  8230. +echo "${ECHO_T}no" >&6
  8231. fi
  8232. -
  8233. +fi
  8234. if test -z "$ac_cv_prog_STRIP"; then
  8235. -if test -n "$ac_tool_prefix"; then
  8236. + ac_ct_STRIP=$STRIP
  8237. # Extract the first word of "strip", so it can be a program name with args.
  8238. set dummy strip; ac_word=$2
  8239. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  8240. -echo "configure:2633: checking for $ac_word" >&5
  8241. -if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
  8242. - echo $ac_n "(cached) $ac_c" 1>&6
  8243. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  8244. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  8245. +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  8246. + echo $ECHO_N "(cached) $ECHO_C" >&6
  8247. else
  8248. - if test -n "$STRIP"; then
  8249. - ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  8250. + if test -n "$ac_ct_STRIP"; then
  8251. + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  8252. else
  8253. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  8254. - ac_dummy="$PATH"
  8255. - for ac_dir in $ac_dummy; do
  8256. - test -z "$ac_dir" && ac_dir=.
  8257. - if test -f $ac_dir/$ac_word; then
  8258. - ac_cv_prog_STRIP="strip"
  8259. - break
  8260. - fi
  8261. - done
  8262. - IFS="$ac_save_ifs"
  8263. - test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
  8264. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8265. +for as_dir in $PATH
  8266. +do
  8267. + IFS=$as_save_IFS
  8268. + test -z "$as_dir" && as_dir=.
  8269. + for ac_exec_ext in '' $ac_executable_extensions; do
  8270. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  8271. + ac_cv_prog_ac_ct_STRIP="strip"
  8272. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8273. + break 2
  8274. + fi
  8275. +done
  8276. +done
  8277. +
  8278. + test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  8279. fi
  8280. fi
  8281. -STRIP="$ac_cv_prog_STRIP"
  8282. -if test -n "$STRIP"; then
  8283. - echo "$ac_t""$STRIP" 1>&6
  8284. +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  8285. +if test -n "$ac_ct_STRIP"; then
  8286. + echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  8287. +echo "${ECHO_T}$ac_ct_STRIP" >&6
  8288. else
  8289. - echo "$ac_t""no" 1>&6
  8290. + echo "$as_me:$LINENO: result: no" >&5
  8291. +echo "${ECHO_T}no" >&6
  8292. fi
  8293. + STRIP=$ac_ct_STRIP
  8294. else
  8295. - STRIP=":"
  8296. -fi
  8297. + STRIP="$ac_cv_prog_STRIP"
  8298. fi
  8299. @@ -2668,9 +4740,8 @@
  8300. # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  8301. if test "${enable_libtool_lock+set}" = set; then
  8302. enableval="$enable_libtool_lock"
  8303. - :
  8304. -fi
  8305. +fi;
  8306. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  8307. # Some flags need to be propagated to the compiler or linker for good
  8308. @@ -2678,8 +4749,12 @@
  8309. case $host in
  8310. *-*-irix6*)
  8311. # Find out which ABI we are using.
  8312. - echo '#line 2682 "configure"' > conftest.$ac_ext
  8313. - if { (eval echo configure:2683: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  8314. + echo '#line 4752 "configure"' > conftest.$ac_ext
  8315. + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8316. + (eval $ac_compile) 2>&5
  8317. + ac_status=$?
  8318. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8319. + (exit $ac_status); }; then
  8320. case `/usr/bin/file conftest.$ac_objext` in
  8321. *32-bit*)
  8322. LD="${LD-ld} -32"
  8323. @@ -2699,47 +4774,64 @@
  8324. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  8325. SAVE_CFLAGS="$CFLAGS"
  8326. CFLAGS="$CFLAGS -belf"
  8327. - echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
  8328. -echo "configure:2704: checking whether the C compiler needs -belf" >&5
  8329. -if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
  8330. - echo $ac_n "(cached) $ac_c" 1>&6
  8331. + echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  8332. +echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
  8333. +if test "${lt_cv_cc_needs_belf+set}" = set; then
  8334. + echo $ECHO_N "(cached) $ECHO_C" >&6
  8335. else
  8336. -
  8337. +
  8338. +
  8339. ac_ext=c
  8340. -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  8341. ac_cpp='$CPP $CPPFLAGS'
  8342. -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  8343. -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  8344. -cross_compiling=$ac_cv_prog_cc_cross
  8345. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8346. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8347. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8348. +
  8349. + cat >conftest.$ac_ext <<_ACEOF
  8350. +#line $LINENO "configure"
  8351. +/* confdefs.h. */
  8352. +_ACEOF
  8353. +cat confdefs.h >>conftest.$ac_ext
  8354. +cat >>conftest.$ac_ext <<_ACEOF
  8355. +/* end confdefs.h. */
  8356. - cat > conftest.$ac_ext <<EOF
  8357. -#line 2717 "configure"
  8358. -#include "confdefs.h"
  8359. -
  8360. -int main() {
  8361. +int
  8362. +main ()
  8363. +{
  8364. -; return 0; }
  8365. -EOF
  8366. -if { (eval echo configure:2724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8367. - rm -rf conftest*
  8368. + ;
  8369. + return 0;
  8370. +}
  8371. +_ACEOF
  8372. +rm -f conftest.$ac_objext conftest$ac_exeext
  8373. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8374. + (eval $ac_link) 2>&5
  8375. + ac_status=$?
  8376. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8377. + (exit $ac_status); } &&
  8378. + { ac_try='test -s conftest$ac_exeext'
  8379. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8380. + (eval $ac_try) 2>&5
  8381. + ac_status=$?
  8382. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8383. + (exit $ac_status); }; }; then
  8384. lt_cv_cc_needs_belf=yes
  8385. else
  8386. - echo "configure: failed program was:" >&5
  8387. - cat conftest.$ac_ext >&5
  8388. - rm -rf conftest*
  8389. - lt_cv_cc_needs_belf=no
  8390. + echo "$as_me: failed program was:" >&5
  8391. +sed 's/^/| /' conftest.$ac_ext >&5
  8392. +
  8393. +lt_cv_cc_needs_belf=no
  8394. fi
  8395. -rm -f conftest*
  8396. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  8397. ac_ext=c
  8398. -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  8399. ac_cpp='$CPP $CPPFLAGS'
  8400. -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  8401. -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  8402. -cross_compiling=$ac_cv_prog_cc_cross
  8403. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8404. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8405. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8406. fi
  8407. -
  8408. -echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
  8409. +echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  8410. +echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
  8411. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  8412. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  8413. CFLAGS="$SAVE_CFLAGS"
  8414. @@ -2824,16 +4916,23 @@
  8415. old_postuninstall_cmds=
  8416. if test -n "$RANLIB"; then
  8417. + case $host_os in
  8418. + openbsd*)
  8419. + old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
  8420. + ;;
  8421. + *)
  8422. + old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
  8423. + ;;
  8424. + esac
  8425. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  8426. - old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
  8427. fi
  8428. # Allow CC to be a program name with arguments.
  8429. set dummy $CC
  8430. compiler="$2"
  8431. -echo $ac_n "checking for objdir""... $ac_c" 1>&6
  8432. -echo "configure:2837: checking for objdir" >&5
  8433. +echo "$as_me:$LINENO: checking for objdir" >&5
  8434. +echo $ECHO_N "checking for objdir... $ECHO_C" >&6
  8435. rm -f .libs 2>/dev/null
  8436. mkdir .libs 2>/dev/null
  8437. if test -d .libs; then
  8438. @@ -2843,7 +4942,9 @@
  8439. objdir=_libs
  8440. fi
  8441. rmdir .libs 2>/dev/null
  8442. -echo "$ac_t""$objdir" 1>&6
  8443. +echo "$as_me:$LINENO: result: $objdir" >&5
  8444. +echo "${ECHO_T}$objdir" >&6
  8445. +
  8446. # Check whether --with-pic or --without-pic was given.
  8447. @@ -2852,17 +4953,16 @@
  8448. pic_mode="$withval"
  8449. else
  8450. pic_mode=default
  8451. -fi
  8452. -
  8453. +fi;
  8454. test -z "$pic_mode" && pic_mode=default
  8455. # We assume here that the value for lt_cv_prog_cc_pic will not be cached
  8456. # in isolation, and that seeing it set (from the cache) indicates that
  8457. # the associated values are set (in the cache) correctly too.
  8458. -echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
  8459. -echo "configure:2864: checking for $compiler option to produce PIC" >&5
  8460. -if eval "test \"`echo '$''{'lt_cv_prog_cc_pic'+set}'`\" = set"; then
  8461. - echo $ac_n "(cached) $ac_c" 1>&6
  8462. +echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  8463. +echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  8464. +if test "${lt_cv_prog_cc_pic+set}" = set; then
  8465. + echo $ECHO_N "(cached) $ECHO_C" >&6
  8466. else
  8467. lt_cv_prog_cc_pic=
  8468. lt_cv_prog_cc_shlib=
  8469. @@ -2882,7 +4982,7 @@
  8470. # libC (AIX C++ library), which obviously doesn't included in libraries
  8471. # list by gcc. This cause undefined symbols with -static flags.
  8472. # This hack allows C programs to be linked with "-static -ldl", but
  8473. - # we not sure about C++ programs.
  8474. + # not sure about C++ programs.
  8475. lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
  8476. ;;
  8477. amigaos*)
  8478. @@ -2891,7 +4991,7 @@
  8479. # like `-m68040'.
  8480. lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
  8481. ;;
  8482. - beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
  8483. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8484. # PIC is the default for these OSes.
  8485. ;;
  8486. darwin* | rhapsody*)
  8487. @@ -2917,13 +5017,13 @@
  8488. # PORTME Check for PIC flags for the system compiler.
  8489. case $host_os in
  8490. aix3* | aix4* | aix5*)
  8491. + lt_cv_prog_cc_wl='-Wl,'
  8492. # All AIX code is PIC.
  8493. if test "$host_cpu" = ia64; then
  8494. - # AIX 5 now supports IA64 processor
  8495. - lt_cv_prog_cc_static='-Bstatic'
  8496. - lt_cv_prog_cc_wl='-Wl,'
  8497. + # AIX 5 now supports IA64 processor
  8498. + lt_cv_prog_cc_static='-Bstatic'
  8499. else
  8500. - lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
  8501. + lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
  8502. fi
  8503. ;;
  8504. @@ -2934,7 +5034,7 @@
  8505. lt_cv_prog_cc_pic='+Z'
  8506. ;;
  8507. - irix5* | irix6*)
  8508. + irix5* | irix6* | nonstopux*)
  8509. lt_cv_prog_cc_wl='-Wl,'
  8510. lt_cv_prog_cc_static='-non_shared'
  8511. # PIC (with -KPIC) is the default.
  8512. @@ -2978,11 +5078,7 @@
  8513. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8514. lt_cv_prog_cc_pic='-KPIC'
  8515. lt_cv_prog_cc_static='-Bstatic'
  8516. - if test "x$host_vendor" = xsni; then
  8517. - lt_cv_prog_cc_wl='-LD'
  8518. - else
  8519. - lt_cv_prog_cc_wl='-Wl,'
  8520. - fi
  8521. + lt_cv_prog_cc_wl='-Wl,'
  8522. ;;
  8523. uts4*)
  8524. @@ -3006,28 +5102,48 @@
  8525. fi
  8526. if test -z "$lt_cv_prog_cc_pic"; then
  8527. - echo "$ac_t""none" 1>&6
  8528. + echo "$as_me:$LINENO: result: none" >&5
  8529. +echo "${ECHO_T}none" >&6
  8530. else
  8531. - echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
  8532. + echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
  8533. +echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
  8534. # Check to make sure the pic_flag actually works.
  8535. - echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
  8536. -echo "configure:3016: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
  8537. - if eval "test \"`echo '$''{'lt_cv_prog_cc_pic_works'+set}'`\" = set"; then
  8538. - echo $ac_n "(cached) $ac_c" 1>&6
  8539. + echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
  8540. +echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
  8541. + if test "${lt_cv_prog_cc_pic_works+set}" = set; then
  8542. + echo $ECHO_N "(cached) $ECHO_C" >&6
  8543. else
  8544. save_CFLAGS="$CFLAGS"
  8545. CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
  8546. - cat > conftest.$ac_ext <<EOF
  8547. -#line 3023 "configure"
  8548. -#include "confdefs.h"
  8549. + cat >conftest.$ac_ext <<_ACEOF
  8550. +#line $LINENO "configure"
  8551. +/* confdefs.h. */
  8552. +_ACEOF
  8553. +cat confdefs.h >>conftest.$ac_ext
  8554. +cat >>conftest.$ac_ext <<_ACEOF
  8555. +/* end confdefs.h. */
  8556. -int main() {
  8557. +int
  8558. +main ()
  8559. +{
  8560. -; return 0; }
  8561. -EOF
  8562. -if { (eval echo configure:3030: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  8563. - rm -rf conftest*
  8564. + ;
  8565. + return 0;
  8566. +}
  8567. +_ACEOF
  8568. +rm -f conftest.$ac_objext
  8569. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8570. + (eval $ac_compile) 2>&5
  8571. + ac_status=$?
  8572. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8573. + (exit $ac_status); } &&
  8574. + { ac_try='test -s conftest.$ac_objext'
  8575. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8576. + (eval $ac_try) 2>&5
  8577. + ac_status=$?
  8578. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8579. + (exit $ac_status); }; }; then
  8580. case $host_os in
  8581. hpux9* | hpux10* | hpux11*)
  8582. # On HP-UX, both CC and GCC only warn that PIC is supported... then
  8583. @@ -3043,17 +5159,17 @@
  8584. lt_cv_prog_cc_pic_works=yes
  8585. ;;
  8586. esac
  8587. -
  8588. +
  8589. else
  8590. - echo "configure: failed program was:" >&5
  8591. - cat conftest.$ac_ext >&5
  8592. - rm -rf conftest*
  8593. - lt_cv_prog_cc_pic_works=no
  8594. -
  8595. + echo "$as_me: failed program was:" >&5
  8596. +sed 's/^/| /' conftest.$ac_ext >&5
  8597. +
  8598. + lt_cv_prog_cc_pic_works=no
  8599. +
  8600. fi
  8601. -rm -f conftest*
  8602. +rm -f conftest.$ac_objext conftest.$ac_ext
  8603. CFLAGS="$save_CFLAGS"
  8604. -
  8605. +
  8606. fi
  8607. @@ -3064,43 +5180,65 @@
  8608. lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
  8609. fi
  8610. - echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
  8611. + echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
  8612. +echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
  8613. fi
  8614. # Check for any special shared library compilation flags.
  8615. if test -n "$lt_cv_prog_cc_shlib"; then
  8616. - echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
  8617. + { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
  8618. +echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
  8619. if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
  8620. else
  8621. - echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
  8622. + { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
  8623. +echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
  8624. lt_cv_prog_cc_can_build_shared=no
  8625. fi
  8626. fi
  8627. -echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
  8628. -echo "configure:3082: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
  8629. -if eval "test \"`echo '$''{'lt_cv_prog_cc_static_works'+set}'`\" = set"; then
  8630. - echo $ac_n "(cached) $ac_c" 1>&6
  8631. +echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
  8632. +echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
  8633. +if test "${lt_cv_prog_cc_static_works+set}" = set; then
  8634. + echo $ECHO_N "(cached) $ECHO_C" >&6
  8635. else
  8636. lt_cv_prog_cc_static_works=no
  8637. save_LDFLAGS="$LDFLAGS"
  8638. LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
  8639. - cat > conftest.$ac_ext <<EOF
  8640. -#line 3090 "configure"
  8641. -#include "confdefs.h"
  8642. + cat >conftest.$ac_ext <<_ACEOF
  8643. +#line $LINENO "configure"
  8644. +/* confdefs.h. */
  8645. +_ACEOF
  8646. +cat confdefs.h >>conftest.$ac_ext
  8647. +cat >>conftest.$ac_ext <<_ACEOF
  8648. +/* end confdefs.h. */
  8649. -int main() {
  8650. +int
  8651. +main ()
  8652. +{
  8653. -; return 0; }
  8654. -EOF
  8655. -if { (eval echo configure:3097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8656. - rm -rf conftest*
  8657. + ;
  8658. + return 0;
  8659. +}
  8660. +_ACEOF
  8661. +rm -f conftest.$ac_objext conftest$ac_exeext
  8662. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8663. + (eval $ac_link) 2>&5
  8664. + ac_status=$?
  8665. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8666. + (exit $ac_status); } &&
  8667. + { ac_try='test -s conftest$ac_exeext'
  8668. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8669. + (eval $ac_try) 2>&5
  8670. + ac_status=$?
  8671. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8672. + (exit $ac_status); }; }; then
  8673. lt_cv_prog_cc_static_works=yes
  8674. else
  8675. - echo "configure: failed program was:" >&5
  8676. - cat conftest.$ac_ext >&5
  8677. + echo "$as_me: failed program was:" >&5
  8678. +sed 's/^/| /' conftest.$ac_ext >&5
  8679. +
  8680. fi
  8681. -rm -f conftest*
  8682. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  8683. LDFLAGS="$save_LDFLAGS"
  8684. fi
  8685. @@ -3108,7 +5246,8 @@
  8686. # Belt *and* braces to stop my trousers falling down:
  8687. test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
  8688. -echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
  8689. +echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
  8690. +echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
  8691. pic_flag="$lt_cv_prog_cc_pic"
  8692. special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
  8693. @@ -3119,12 +5258,12 @@
  8694. # Check to see if options -o and -c are simultaneously supported by compiler
  8695. -echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
  8696. -echo "configure:3124: checking if $compiler supports -c -o file.$ac_objext" >&5
  8697. -if eval "test \"`echo '$''{'lt_cv_compiler_c_o'+set}'`\" = set"; then
  8698. - echo $ac_n "(cached) $ac_c" 1>&6
  8699. +echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  8700. +echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  8701. +if test "${lt_cv_compiler_c_o+set}" = set; then
  8702. + echo $ECHO_N "(cached) $ECHO_C" >&6
  8703. else
  8704. -
  8705. +
  8706. $rm -r conftest 2>/dev/null
  8707. mkdir conftest
  8708. cd conftest
  8709. @@ -3139,7 +5278,7 @@
  8710. save_CFLAGS="$CFLAGS"
  8711. CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
  8712. compiler_c_o=no
  8713. -if { (eval echo configure:3143: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
  8714. +if { (eval echo configure:5281: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
  8715. # The compiler can only warn and ignore the option if not recognized
  8716. # So say no if there are warnings
  8717. if test -s out/conftest.err; then
  8718. @@ -3163,29 +5302,50 @@
  8719. fi
  8720. compiler_c_o=$lt_cv_compiler_c_o
  8721. -echo "$ac_t""$compiler_c_o" 1>&6
  8722. +echo "$as_me:$LINENO: result: $compiler_c_o" >&5
  8723. +echo "${ECHO_T}$compiler_c_o" >&6
  8724. if test x"$compiler_c_o" = x"yes"; then
  8725. # Check to see if we can write to a .lo
  8726. - echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
  8727. -echo "configure:3172: checking if $compiler supports -c -o file.lo" >&5
  8728. - if eval "test \"`echo '$''{'lt_cv_compiler_o_lo'+set}'`\" = set"; then
  8729. - echo $ac_n "(cached) $ac_c" 1>&6
  8730. + echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
  8731. +echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
  8732. + if test "${lt_cv_compiler_o_lo+set}" = set; then
  8733. + echo $ECHO_N "(cached) $ECHO_C" >&6
  8734. else
  8735. -
  8736. +
  8737. lt_cv_compiler_o_lo=no
  8738. save_CFLAGS="$CFLAGS"
  8739. CFLAGS="$CFLAGS -c -o conftest.lo"
  8740. - cat > conftest.$ac_ext <<EOF
  8741. -#line 3181 "configure"
  8742. -#include "confdefs.h"
  8743. + save_objext="$ac_objext"
  8744. + ac_objext=lo
  8745. + cat >conftest.$ac_ext <<_ACEOF
  8746. +#line $LINENO "configure"
  8747. +/* confdefs.h. */
  8748. +_ACEOF
  8749. +cat confdefs.h >>conftest.$ac_ext
  8750. +cat >>conftest.$ac_ext <<_ACEOF
  8751. +/* end confdefs.h. */
  8752. -int main() {
  8753. +int
  8754. +main ()
  8755. +{
  8756. int some_variable = 0;
  8757. -; return 0; }
  8758. -EOF
  8759. -if { (eval echo configure:3188: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  8760. - rm -rf conftest*
  8761. + ;
  8762. + return 0;
  8763. +}
  8764. +_ACEOF
  8765. +rm -f conftest.$ac_objext
  8766. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8767. + (eval $ac_compile) 2>&5
  8768. + ac_status=$?
  8769. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8770. + (exit $ac_status); } &&
  8771. + { ac_try='test -s conftest.$ac_objext'
  8772. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8773. + (eval $ac_try) 2>&5
  8774. + ac_status=$?
  8775. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8776. + (exit $ac_status); }; }; then
  8777. # The compiler can only warn and ignore the option if not recognized
  8778. # So say no if there are warnings
  8779. if test -s conftest.err; then
  8780. @@ -3193,18 +5353,21 @@
  8781. else
  8782. lt_cv_compiler_o_lo=yes
  8783. fi
  8784. -
  8785. +
  8786. else
  8787. - echo "configure: failed program was:" >&5
  8788. - cat conftest.$ac_ext >&5
  8789. + echo "$as_me: failed program was:" >&5
  8790. +sed 's/^/| /' conftest.$ac_ext >&5
  8791. +
  8792. fi
  8793. -rm -f conftest*
  8794. +rm -f conftest.$ac_objext conftest.$ac_ext
  8795. + ac_objext="$save_objext"
  8796. CFLAGS="$save_CFLAGS"
  8797. -
  8798. +
  8799. fi
  8800. compiler_o_lo=$lt_cv_compiler_o_lo
  8801. - echo "$ac_t""$compiler_o_lo" 1>&6
  8802. + echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
  8803. +echo "${ECHO_T}$compiler_o_lo" >&6
  8804. else
  8805. compiler_o_lo=no
  8806. fi
  8807. @@ -3213,17 +5376,19 @@
  8808. hard_links="nottested"
  8809. if test "$compiler_c_o" = no && test "$need_locks" != no; then
  8810. # do not overwrite the value of need_locks provided by the user
  8811. - echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
  8812. -echo "configure:3218: checking if we can lock with hard links" >&5
  8813. + echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  8814. +echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  8815. hard_links=yes
  8816. $rm conftest*
  8817. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8818. touch conftest.a
  8819. ln conftest.a conftest.b 2>&5 || hard_links=no
  8820. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8821. - echo "$ac_t""$hard_links" 1>&6
  8822. + echo "$as_me:$LINENO: result: $hard_links" >&5
  8823. +echo "${ECHO_T}$hard_links" >&6
  8824. if test "$hard_links" = no; then
  8825. - echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
  8826. + { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8827. +echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8828. need_locks=warn
  8829. fi
  8830. else
  8831. @@ -3232,22 +5397,40 @@
  8832. if test "$GCC" = yes; then
  8833. # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
  8834. - echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
  8835. -echo "configure:3237: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  8836. + echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  8837. +echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
  8838. echo "int some_variable = 0;" > conftest.$ac_ext
  8839. save_CFLAGS="$CFLAGS"
  8840. CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
  8841. compiler_rtti_exceptions=no
  8842. - cat > conftest.$ac_ext <<EOF
  8843. -#line 3243 "configure"
  8844. -#include "confdefs.h"
  8845. + cat >conftest.$ac_ext <<_ACEOF
  8846. +#line $LINENO "configure"
  8847. +/* confdefs.h. */
  8848. +_ACEOF
  8849. +cat confdefs.h >>conftest.$ac_ext
  8850. +cat >>conftest.$ac_ext <<_ACEOF
  8851. +/* end confdefs.h. */
  8852. -int main() {
  8853. +int
  8854. +main ()
  8855. +{
  8856. int some_variable = 0;
  8857. -; return 0; }
  8858. -EOF
  8859. -if { (eval echo configure:3250: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  8860. - rm -rf conftest*
  8861. + ;
  8862. + return 0;
  8863. +}
  8864. +_ACEOF
  8865. +rm -f conftest.$ac_objext
  8866. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8867. + (eval $ac_compile) 2>&5
  8868. + ac_status=$?
  8869. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8870. + (exit $ac_status); } &&
  8871. + { ac_try='test -s conftest.$ac_objext'
  8872. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8873. + (eval $ac_try) 2>&5
  8874. + ac_status=$?
  8875. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8876. + (exit $ac_status); }; }; then
  8877. # The compiler can only warn and ignore the option if not recognized
  8878. # So say no if there are warnings
  8879. if test -s conftest.err; then
  8880. @@ -3255,14 +5438,16 @@
  8881. else
  8882. compiler_rtti_exceptions=yes
  8883. fi
  8884. -
  8885. +
  8886. else
  8887. - echo "configure: failed program was:" >&5
  8888. - cat conftest.$ac_ext >&5
  8889. + echo "$as_me: failed program was:" >&5
  8890. +sed 's/^/| /' conftest.$ac_ext >&5
  8891. +
  8892. fi
  8893. -rm -f conftest*
  8894. +rm -f conftest.$ac_objext conftest.$ac_ext
  8895. CFLAGS="$save_CFLAGS"
  8896. - echo "$ac_t""$compiler_rtti_exceptions" 1>&6
  8897. + echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
  8898. +echo "${ECHO_T}$compiler_rtti_exceptions" >&6
  8899. if test "$compiler_rtti_exceptions" = "yes"; then
  8900. no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
  8901. @@ -3272,8 +5457,8 @@
  8902. fi
  8903. # See if the linker supports building shared libraries.
  8904. -echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
  8905. -echo "configure:3277: checking whether the linker ($LD) supports shared libraries" >&5
  8906. +echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
  8907. +echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
  8908. allow_undefined_flag=
  8909. no_undefined_flag=
  8910. @@ -3314,7 +5499,7 @@
  8911. extract_expsyms_cmds=
  8912. case $host_os in
  8913. -cygwin* | mingw* | pw32* )
  8914. +cygwin* | mingw* | pw32*)
  8915. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8916. # When not using gcc, we currently assume that we are using
  8917. # Microsoft Visual C++.
  8918. @@ -3322,7 +5507,9 @@
  8919. with_gnu_ld=no
  8920. fi
  8921. ;;
  8922. -
  8923. +openbsd*)
  8924. + with_gnu_ld=no
  8925. + ;;
  8926. esac
  8927. ld_shlibs=yes
  8928. @@ -3409,7 +5596,7 @@
  8929. # can override, but on older systems we have to supply one (in ltdll.c)
  8930. if test "x$lt_cv_need_dllmain" = "xyes"; then
  8931. ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
  8932. - 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~
  8933. + 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~
  8934. test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
  8935. else
  8936. ltdll_obj=
  8937. @@ -3427,19 +5614,20 @@
  8938. # If the export-symbols file already is a .def file (1st line
  8939. # is EXPORTS), use it as is.
  8940. # If DATA tags from a recent dlltool are present, honour them!
  8941. - archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
  8942. - cp $export_symbols $output_objdir/$soname-def;
  8943. + archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
  8944. + cp $export_symbols $output_objdir/$soname-def;
  8945. else
  8946. - echo EXPORTS > $output_objdir/$soname-def;
  8947. - _lt_hint=1;
  8948. - cat $export_symbols | while read symbol; do
  8949. - set dummy \$symbol;
  8950. - case \$# in
  8951. - 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
  8952. - *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
  8953. - esac;
  8954. - _lt_hint=`expr 1 + \$_lt_hint`;
  8955. - done;
  8956. + echo EXPORTS > $output_objdir/$soname-def;
  8957. + _lt_hint=1;
  8958. + cat $export_symbols | while read symbol; do
  8959. + set dummy \$symbol;
  8960. + case \$# in
  8961. + 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
  8962. + 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
  8963. + *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
  8964. + esac;
  8965. + _lt_hint=`expr 1 + \$_lt_hint`;
  8966. + done;
  8967. fi~
  8968. '"$ltdll_cmds"'
  8969. $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~
  8970. @@ -3534,80 +5722,98 @@
  8971. ;;
  8972. aix4* | aix5*)
  8973. + if test "$host_cpu" = ia64; then
  8974. + # On IA64, the linker does run time linking by default, so we don't
  8975. + # have to do anything special.
  8976. + aix_use_runtimelinking=no
  8977. + exp_sym_flag='-Bexport'
  8978. + no_entry_flag=""
  8979. + else
  8980. + aix_use_runtimelinking=no
  8981. +
  8982. + # Test if we are trying to use run time linking or normal
  8983. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8984. + # need to do runtime linking.
  8985. + case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  8986. + for ld_flag in $LDFLAGS; do
  8987. + case $ld_flag in
  8988. + *-brtl*)
  8989. + aix_use_runtimelinking=yes
  8990. + break
  8991. + ;;
  8992. + esac
  8993. + done
  8994. + esac
  8995. +
  8996. + exp_sym_flag='-bexport'
  8997. + no_entry_flag='-bnoentry'
  8998. + fi
  8999. +
  9000. # When large executables or shared objects are built, AIX ld can
  9001. # have problems creating the table of contents. If linking a library
  9002. # or program results in "error TOC overflow" add -mminimal-toc to
  9003. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9004. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9005. + hardcode_direct=yes
  9006. archive_cmds=''
  9007. hardcode_libdir_separator=':'
  9008. if test "$GCC" = yes; then
  9009. - collect2name=`${CC} -print-prog-name=collect2`
  9010. - if test -f "$collect2name" && \
  9011. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  9012. - then
  9013. - # We have reworked collect2
  9014. - hardcode_direct=yes
  9015. - else
  9016. - # We have old collect2
  9017. - hardcode_direct=unsupported
  9018. - # It fails to find uninstalled libraries when the uninstalled
  9019. - # path is not listed in the libpath. Setting hardcode_minus_L
  9020. - # to unsupported forces relinking
  9021. - hardcode_minus_L=yes
  9022. - hardcode_libdir_flag_spec='-L$libdir'
  9023. - hardcode_libdir_separator=
  9024. - fi
  9025. - shared_flag='-shared'
  9026. - else
  9027. + case $host_os in aix4.[012]|aix4.[012].*)
  9028. + collect2name=`${CC} -print-prog-name=collect2`
  9029. + if test -f "$collect2name" && \
  9030. + strings "$collect2name" | grep resolve_lib_name >/dev/null
  9031. + then
  9032. + # We have reworked collect2
  9033. + hardcode_direct=yes
  9034. + else
  9035. + # We have old collect2
  9036. + hardcode_direct=unsupported
  9037. + # It fails to find uninstalled libraries when the uninstalled
  9038. + # path is not listed in the libpath. Setting hardcode_minus_L
  9039. + # to unsupported forces relinking
  9040. + hardcode_minus_L=yes
  9041. + hardcode_libdir_flag_spec='-L$libdir'
  9042. + hardcode_libdir_separator=
  9043. + fi
  9044. + esac
  9045. +
  9046. + shared_flag='-shared'
  9047. + else
  9048. + # not using gcc
  9049. if test "$host_cpu" = ia64; then
  9050. - shared_flag='-G'
  9051. + shared_flag='${wl}-G'
  9052. else
  9053. - shared_flag='${wl}-bM:SRE'
  9054. + if test "$aix_use_runtimelinking" = yes; then
  9055. + shared_flag='${wl}-G'
  9056. + else
  9057. + shared_flag='${wl}-bM:SRE'
  9058. + fi
  9059. fi
  9060. - hardcode_direct=yes
  9061. fi
  9062. - if test "$host_cpu" = ia64; then
  9063. - # On IA64, the linker does run time linking by default, so we don't
  9064. - # have to do anything special.
  9065. - aix_use_runtimelinking=no
  9066. - exp_sym_flag='-Bexport'
  9067. - no_entry_flag=""
  9068. - else
  9069. - # Test if we are trying to use run time linking, or normal AIX style linking.
  9070. - # If -brtl is somewhere in LDFLAGS, we need to do run time linking.
  9071. - aix_use_runtimelinking=no
  9072. - for ld_flag in $LDFLAGS; do
  9073. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl" ); then
  9074. - aix_use_runtimelinking=yes
  9075. - break
  9076. - fi
  9077. - done
  9078. - exp_sym_flag='-bexport'
  9079. - no_entry_flag='-bnoentry'
  9080. - fi
  9081. # It seems that -bexpall can do strange things, so it is better to
  9082. # generate a list of symbols to export.
  9083. always_export_symbols=yes
  9084. if test "$aix_use_runtimelinking" = yes; then
  9085. + # Warning - without using the other runtime loading flags (-brtl),
  9086. + # -berok will link without error, but may produce a broken library.
  9087. + allow_undefined_flag='-berok'
  9088. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
  9089. - allow_undefined_flag=' -Wl,-G'
  9090. - 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"
  9091. + 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"
  9092. else
  9093. if test "$host_cpu" = ia64; then
  9094. - hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  9095. - allow_undefined_flag="-znodefs"
  9096. - 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"
  9097. + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  9098. + allow_undefined_flag="-z nodefs"
  9099. + 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"
  9100. else
  9101. - hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
  9102. - # Warning - without using the other run time loading flags, -berok will
  9103. - # link without error, but may produce a broken library.
  9104. - allow_undefined_flag='${wl}-berok'
  9105. - # This is a bit strange, but is similar to how AIX traditionally builds
  9106. - # it's shared libraries.
  9107. - 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'
  9108. + hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
  9109. + # Warning - without using the other run time loading flags,
  9110. + # -berok will link without error, but may produce a broken library.
  9111. + allow_undefined_flag='${wl}-berok'
  9112. + # This is a bit strange, but is similar to how AIX traditionally builds
  9113. + # it's shared libraries.
  9114. + 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'
  9115. fi
  9116. fi
  9117. ;;
  9118. @@ -3639,11 +5845,19 @@
  9119. ;;
  9120. darwin* | rhapsody*)
  9121. - allow_undefined_flag='-undefined suppress'
  9122. + case "$host_os" in
  9123. + rhapsody* | darwin1.[012])
  9124. + allow_undefined_flag='-undefined suppress'
  9125. + ;;
  9126. + *) # Darwin 1.3 on
  9127. + allow_undefined_flag='-flat_namespace -undefined suppress'
  9128. + ;;
  9129. + esac
  9130. # FIXME: Relying on posixy $() will cause problems for
  9131. # cross-compilation, but unfortunately the echo tests do not
  9132. - # yet detect zsh echo's removal of \ escapes.
  9133. - 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)'
  9134. + # yet detect zsh echo's removal of \ escapes. Also zsh mangles
  9135. + # `"' quotes if we put them in here... so don't!
  9136. + 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)'
  9137. # We need to add '_' to the symbols in $export_symbols first
  9138. #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
  9139. hardcode_direct=yes
  9140. @@ -3695,13 +5909,14 @@
  9141. export_dynamic_flag_spec='${wl}-E'
  9142. ;;
  9143. - irix5* | irix6*)
  9144. + irix5* | irix6* | nonstopux*)
  9145. if test "$GCC" = yes; then
  9146. 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'
  9147. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9148. else
  9149. 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'
  9150. + hardcode_libdir_flag_spec='-rpath $libdir'
  9151. fi
  9152. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9153. hardcode_libdir_separator=:
  9154. link_all_deplibs=yes
  9155. ;;
  9156. @@ -3718,7 +5933,7 @@
  9157. ;;
  9158. newsos6)
  9159. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
  9160. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9161. hardcode_direct=yes
  9162. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9163. hardcode_libdir_separator=:
  9164. @@ -3726,10 +5941,24 @@
  9165. ;;
  9166. openbsd*)
  9167. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9168. - hardcode_libdir_flag_spec='-R$libdir'
  9169. hardcode_direct=yes
  9170. hardcode_shlibpath_var=no
  9171. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9172. + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9173. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9174. + export_dynamic_flag_spec='${wl}-E'
  9175. + else
  9176. + case "$host_os" in
  9177. + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  9178. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9179. + hardcode_libdir_flag_spec='-R$libdir'
  9180. + ;;
  9181. + *)
  9182. + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9183. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9184. + ;;
  9185. + esac
  9186. + fi
  9187. ;;
  9188. os2*)
  9189. @@ -3774,10 +6003,39 @@
  9190. hardcode_shlibpath_var=no
  9191. runpath_var=LD_RUN_PATH
  9192. hardcode_runpath_var=yes
  9193. + export_dynamic_flag_spec='${wl}-Bexport'
  9194. ;;
  9195. solaris*)
  9196. + # gcc --version < 3.0 without binutils cannot create self contained
  9197. + # shared libraries reliably, requiring libgcc.a to resolve some of
  9198. + # the object symbols generated in some cases. Libraries that use
  9199. + # assert need libgcc.a to resolve __eprintf, for example. Linking
  9200. + # a copy of libgcc.a into every shared library to guarantee resolving
  9201. + # such symbols causes other problems: According to Tim Van Holder
  9202. + # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
  9203. + # (to the application) exception stack for one thing.
  9204. no_undefined_flag=' -z defs'
  9205. + if test "$GCC" = yes; then
  9206. + case `$CC --version 2>/dev/null` in
  9207. + [12].*)
  9208. + cat <<EOF 1>&2
  9209. +
  9210. +*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
  9211. +*** create self contained shared libraries on Solaris systems, without
  9212. +*** introducing a dependency on libgcc.a. Therefore, libtool is disabling
  9213. +*** -no-undefined support, which will at least allow you to build shared
  9214. +*** libraries. However, you may find that when you link such libraries
  9215. +*** into an application without using GCC, you have to manually add
  9216. +*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
  9217. +*** upgrade to a newer version of GCC. Another option is to rebuild your
  9218. +*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
  9219. +
  9220. +EOF
  9221. + no_undefined_flag=
  9222. + ;;
  9223. + esac
  9224. + fi
  9225. # $CC -shared without GNU ld will not create a library from C++
  9226. # object files and a static libstdc++, better avoid it by now
  9227. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9228. @@ -3808,13 +6066,23 @@
  9229. ;;
  9230. sysv4)
  9231. - if test "x$host_vendor" = xsno; then
  9232. - archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linkopts'
  9233. - hardcode_direct=yes # is this really true???
  9234. - else
  9235. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9236. - hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9237. - fi
  9238. + case $host_vendor in
  9239. + sni)
  9240. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9241. + hardcode_direct=yes # is this really true???
  9242. + ;;
  9243. + siemens)
  9244. + ## LD is ld it makes a PLAMLIB
  9245. + ## CC just makes a GrossModule.
  9246. + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9247. + reload_cmds='$CC -r -o $output$reload_objs'
  9248. + hardcode_direct=no
  9249. + ;;
  9250. + motorola)
  9251. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9252. + hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9253. + ;;
  9254. + esac
  9255. runpath_var='LD_RUN_PATH'
  9256. hardcode_shlibpath_var=no
  9257. ;;
  9258. @@ -3884,12 +6152,13 @@
  9259. ;;
  9260. esac
  9261. fi
  9262. -echo "$ac_t""$ld_shlibs" 1>&6
  9263. +echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  9264. +echo "${ECHO_T}$ld_shlibs" >&6
  9265. test "$ld_shlibs" = no && can_build_shared=no
  9266. # Check hardcoding attributes.
  9267. -echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
  9268. -echo "configure:3893: checking how to hardcode library paths into programs" >&5
  9269. +echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  9270. +echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  9271. hardcode_action=
  9272. if test -n "$hardcode_libdir_flag_spec" || \
  9273. test -n "$runpath_var"; then
  9274. @@ -3912,26 +6181,29 @@
  9275. # directories.
  9276. hardcode_action=unsupported
  9277. fi
  9278. -echo "$ac_t""$hardcode_action" 1>&6
  9279. +echo "$as_me:$LINENO: result: $hardcode_action" >&5
  9280. +echo "${ECHO_T}$hardcode_action" >&6
  9281. striplib=
  9282. old_striplib=
  9283. -echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
  9284. -echo "configure:3921: checking whether stripping libraries is possible" >&5
  9285. +echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  9286. +echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  9287. if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  9288. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9289. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9290. - echo "$ac_t""yes" 1>&6
  9291. + echo "$as_me:$LINENO: result: yes" >&5
  9292. +echo "${ECHO_T}yes" >&6
  9293. else
  9294. - echo "$ac_t""no" 1>&6
  9295. + echo "$as_me:$LINENO: result: no" >&5
  9296. +echo "${ECHO_T}no" >&6
  9297. fi
  9298. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  9299. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  9300. # PORTME Fill in your ld.so characteristics
  9301. -echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
  9302. -echo "configure:3935: checking dynamic linker characteristics" >&5
  9303. +echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  9304. +echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  9305. library_names_spec=
  9306. libname_spec='lib$name'
  9307. soname_spec=
  9308. @@ -3958,6 +6230,9 @@
  9309. aix4* | aix5*)
  9310. version_type=linux
  9311. + need_lib_prefix=no
  9312. + need_version=no
  9313. + hardcode_into_libs=yes
  9314. if test "$host_cpu" = ia64; then
  9315. # AIX 5 supports IA64
  9316. library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
  9317. @@ -3969,22 +6244,24 @@
  9318. # depend on `.', always an invalid library. This was fixed in
  9319. # development snapshots of GCC prior to 3.0.
  9320. case $host_os in
  9321. - aix4 | aix4.[01] | aix4.[01].*)
  9322. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9323. - echo ' yes '
  9324. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  9325. - :
  9326. - else
  9327. - can_build_shared=no
  9328. - fi
  9329. - ;;
  9330. + aix4 | aix4.[01] | aix4.[01].*)
  9331. + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9332. + echo ' yes '
  9333. + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  9334. + :
  9335. + else
  9336. + can_build_shared=no
  9337. + fi
  9338. + ;;
  9339. esac
  9340. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9341. - # soname into executable. Probably we can add versioning support to
  9342. - # collect2, so additional links can be useful in future.
  9343. + # AIX (on Power*) has no versioning support, so currently we can
  9344. + # not hardcode correct soname into executable. Probably we can
  9345. + # add versioning support to collect2, so additional links can
  9346. + # be useful in future.
  9347. if test "$aix_use_runtimelinking" = yes; then
  9348. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so instead of
  9349. - # lib<name>.a to let people know that these are not typical AIX shared libraries.
  9350. + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9351. + # instead of lib<name>.a to let people know that these are not
  9352. + # typical AIX shared libraries.
  9353. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  9354. else
  9355. # We preserve .a as extension for shared libraries through AIX4.2
  9356. @@ -3993,8 +6270,8 @@
  9357. soname_spec='${libname}${release}.so$major'
  9358. fi
  9359. shlibpath_var=LIBPATH
  9360. - deplibs_check_method=pass_all
  9361. fi
  9362. + hardcode_into_libs=yes
  9363. ;;
  9364. amigaos*)
  9365. @@ -4042,7 +6319,7 @@
  9366. ;;
  9367. yes,mingw*)
  9368. library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
  9369. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
  9370. + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
  9371. ;;
  9372. yes,pw32*)
  9373. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
  9374. @@ -4074,6 +6351,18 @@
  9375. dynamic_linker=no
  9376. ;;
  9377. +freebsd*-gnu*)
  9378. + version_type=linux
  9379. + need_lib_prefix=no
  9380. + need_version=no
  9381. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  9382. + soname_spec='${libname}${release}.so$major'
  9383. + shlibpath_var=LD_LIBRARY_PATH
  9384. + shlibpath_overrides_runpath=no
  9385. + hardcode_into_libs=yes
  9386. + dynamic_linker='GNU/FreeBSD ld.so'
  9387. + ;;
  9388. +
  9389. freebsd*)
  9390. objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  9391. version_type=freebsd-$objformat
  9392. @@ -4125,14 +6414,17 @@
  9393. postinstall_cmds='chmod 555 $lib'
  9394. ;;
  9395. -irix5* | irix6*)
  9396. - version_type=irix
  9397. +irix5* | irix6* | nonstopux*)
  9398. + case $host_os in
  9399. + nonstopux*) version_type=nonstopux ;;
  9400. + *) version_type=irix ;;
  9401. + esac
  9402. need_lib_prefix=no
  9403. need_version=no
  9404. soname_spec='${libname}${release}.so$major'
  9405. library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
  9406. case $host_os in
  9407. - irix5*)
  9408. + irix5* | nonstopux*)
  9409. libsuff= shlibsuff=
  9410. ;;
  9411. *)
  9412. @@ -4206,9 +6498,19 @@
  9413. openbsd*)
  9414. version_type=sunos
  9415. - if test "$with_gnu_ld" = yes; then
  9416. - need_lib_prefix=no
  9417. - need_version=no
  9418. + need_lib_prefix=no
  9419. + need_version=no
  9420. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9421. + case "$host_os" in
  9422. + openbsd2.[89] | openbsd2.[89].*)
  9423. + shlibpath_overrides_runpath=no
  9424. + ;;
  9425. + *)
  9426. + shlibpath_overrides_runpath=yes
  9427. + ;;
  9428. + esac
  9429. + else
  9430. + shlibpath_overrides_runpath=yes
  9431. fi
  9432. library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
  9433. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9434. @@ -4226,11 +6528,13 @@
  9435. osf3* | osf4* | osf5*)
  9436. version_type=osf
  9437. need_version=no
  9438. - soname_spec='${libname}${release}.so'
  9439. - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
  9440. + need_lib_prefix=no
  9441. + soname_spec='${libname}${release}.so$major'
  9442. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  9443. shlibpath_var=LD_LIBRARY_PATH
  9444. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9445. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9446. + hardcode_into_libs=yes
  9447. ;;
  9448. sco3.2v5*)
  9449. @@ -4273,6 +6577,12 @@
  9450. case $host_vendor in
  9451. sni)
  9452. shlibpath_overrides_runpath=no
  9453. + need_lib_prefix=no
  9454. + export_dynamic_flag_spec='${wl}-Blargedynsym'
  9455. + runpath_var=LD_RUN_PATH
  9456. + ;;
  9457. + siemens)
  9458. + need_lib_prefix=no
  9459. ;;
  9460. motorola)
  9461. need_lib_prefix=no
  9462. @@ -4312,13 +6622,46 @@
  9463. dynamic_linker=no
  9464. ;;
  9465. esac
  9466. -echo "$ac_t""$dynamic_linker" 1>&6
  9467. +echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  9468. +echo "${ECHO_T}$dynamic_linker" >&6
  9469. test "$dynamic_linker" = no && can_build_shared=no
  9470. # Report the final consequences.
  9471. -echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
  9472. -echo "configure:4321: checking if libtool supports shared libraries" >&5
  9473. -echo "$ac_t""$can_build_shared" 1>&6
  9474. +echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  9475. +echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
  9476. +echo "$as_me:$LINENO: result: $can_build_shared" >&5
  9477. +echo "${ECHO_T}$can_build_shared" >&6
  9478. +
  9479. +echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  9480. +echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
  9481. +test "$can_build_shared" = "no" && enable_shared=no
  9482. +
  9483. +# On AIX, shared libraries and static libraries use the same namespace, and
  9484. +# are all built from PIC.
  9485. +case "$host_os" in
  9486. +aix3*)
  9487. + test "$enable_shared" = yes && enable_static=no
  9488. + if test -n "$RANLIB"; then
  9489. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9490. + postinstall_cmds='$RANLIB $lib'
  9491. + fi
  9492. + ;;
  9493. +
  9494. +aix4*)
  9495. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9496. + test "$enable_shared" = yes && enable_static=no
  9497. + fi
  9498. + ;;
  9499. +esac
  9500. +echo "$as_me:$LINENO: result: $enable_shared" >&5
  9501. +echo "${ECHO_T}$enable_shared" >&6
  9502. +
  9503. +echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  9504. +echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
  9505. +# Make sure either enable_shared or enable_static is yes.
  9506. +test "$enable_shared" = yes || enable_static=yes
  9507. +echo "$as_me:$LINENO: result: $enable_static" >&5
  9508. +echo "${ECHO_T}$enable_static" >&6
  9509. if test "$hardcode_action" = relink; then
  9510. # Fast installation is not supported
  9511. @@ -4355,224 +6698,398 @@
  9512. ;;
  9513. *)
  9514. - echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
  9515. -echo "configure:4360: checking for dlopen in -ldl" >&5
  9516. -ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
  9517. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  9518. - echo $ac_n "(cached) $ac_c" 1>&6
  9519. -else
  9520. - ac_save_LIBS="$LIBS"
  9521. -LIBS="-ldl $LIBS"
  9522. -cat > conftest.$ac_ext <<EOF
  9523. -#line 4368 "configure"
  9524. -#include "confdefs.h"
  9525. -/* Override any gcc2 internal prototype to avoid an error. */
  9526. -/* We use char because int might match the return type of a gcc2
  9527. - builtin and then its argument prototype would still apply. */
  9528. -char dlopen();
  9529. -
  9530. -int main() {
  9531. -dlopen()
  9532. -; return 0; }
  9533. -EOF
  9534. -if { (eval echo configure:4379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9535. - rm -rf conftest*
  9536. - eval "ac_cv_lib_$ac_lib_var=yes"
  9537. -else
  9538. - echo "configure: failed program was:" >&5
  9539. - cat conftest.$ac_ext >&5
  9540. - rm -rf conftest*
  9541. - eval "ac_cv_lib_$ac_lib_var=no"
  9542. -fi
  9543. -rm -f conftest*
  9544. -LIBS="$ac_save_LIBS"
  9545. -
  9546. -fi
  9547. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9548. - echo "$ac_t""yes" 1>&6
  9549. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9550. -else
  9551. - echo "$ac_t""no" 1>&6
  9552. -echo $ac_n "checking for dlopen""... $ac_c" 1>&6
  9553. -echo "configure:4398: checking for dlopen" >&5
  9554. -if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
  9555. - echo $ac_n "(cached) $ac_c" 1>&6
  9556. -else
  9557. - cat > conftest.$ac_ext <<EOF
  9558. -#line 4403 "configure"
  9559. -#include "confdefs.h"
  9560. + echo "$as_me:$LINENO: checking for shl_load" >&5
  9561. +echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
  9562. +if test "${ac_cv_func_shl_load+set}" = set; then
  9563. + echo $ECHO_N "(cached) $ECHO_C" >&6
  9564. +else
  9565. + cat >conftest.$ac_ext <<_ACEOF
  9566. +#line $LINENO "configure"
  9567. +/* confdefs.h. */
  9568. +_ACEOF
  9569. +cat confdefs.h >>conftest.$ac_ext
  9570. +cat >>conftest.$ac_ext <<_ACEOF
  9571. +/* end confdefs.h. */
  9572. /* System header to define __stub macros and hopefully few prototypes,
  9573. - which can conflict with char dlopen(); below. */
  9574. -#include <assert.h>
  9575. + which can conflict with char shl_load (); below.
  9576. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9577. + <limits.h> exists even on freestanding compilers. */
  9578. +#ifdef __STDC__
  9579. +# include <limits.h>
  9580. +#else
  9581. +# include <assert.h>
  9582. +#endif
  9583. /* Override any gcc2 internal prototype to avoid an error. */
  9584. +#ifdef __cplusplus
  9585. +extern "C"
  9586. +{
  9587. +#endif
  9588. /* We use char because int might match the return type of a gcc2
  9589. - builtin and then its argument prototype would still apply. */
  9590. -char dlopen();
  9591. -
  9592. -int main() {
  9593. -
  9594. + builtin and then its argument prototype would still apply. */
  9595. +char shl_load ();
  9596. /* The GNU C library defines this for functions which it implements
  9597. to always fail with ENOSYS. Some functions are actually named
  9598. something starting with __ and the normal name is an alias. */
  9599. -#if defined (__stub_dlopen) || defined (__stub___dlopen)
  9600. +#if defined (__stub_shl_load) || defined (__stub___shl_load)
  9601. choke me
  9602. #else
  9603. -dlopen();
  9604. +char (*f) () = shl_load;
  9605. +#endif
  9606. +#ifdef __cplusplus
  9607. +}
  9608. #endif
  9609. -; return 0; }
  9610. -EOF
  9611. -if { (eval echo configure:4426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9612. - rm -rf conftest*
  9613. - eval "ac_cv_func_dlopen=yes"
  9614. -else
  9615. - echo "configure: failed program was:" >&5
  9616. - cat conftest.$ac_ext >&5
  9617. - rm -rf conftest*
  9618. - eval "ac_cv_func_dlopen=no"
  9619. -fi
  9620. -rm -f conftest*
  9621. -fi
  9622. -
  9623. -if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
  9624. - echo "$ac_t""yes" 1>&6
  9625. - lt_cv_dlopen="dlopen"
  9626. +int
  9627. +main ()
  9628. +{
  9629. +return f != shl_load;
  9630. + ;
  9631. + return 0;
  9632. +}
  9633. +_ACEOF
  9634. +rm -f conftest.$ac_objext conftest$ac_exeext
  9635. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9636. + (eval $ac_link) 2>&5
  9637. + ac_status=$?
  9638. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9639. + (exit $ac_status); } &&
  9640. + { ac_try='test -s conftest$ac_exeext'
  9641. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9642. + (eval $ac_try) 2>&5
  9643. + ac_status=$?
  9644. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9645. + (exit $ac_status); }; }; then
  9646. + ac_cv_func_shl_load=yes
  9647. +else
  9648. + echo "$as_me: failed program was:" >&5
  9649. +sed 's/^/| /' conftest.$ac_ext >&5
  9650. +
  9651. +ac_cv_func_shl_load=no
  9652. +fi
  9653. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  9654. +fi
  9655. +echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  9656. +echo "${ECHO_T}$ac_cv_func_shl_load" >&6
  9657. +if test $ac_cv_func_shl_load = yes; then
  9658. + lt_cv_dlopen="shl_load"
  9659. else
  9660. - echo "$ac_t""no" 1>&6
  9661. -echo $ac_n "checking for shl_load""... $ac_c" 1>&6
  9662. -echo "configure:4444: checking for shl_load" >&5
  9663. -if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then
  9664. - echo $ac_n "(cached) $ac_c" 1>&6
  9665. + echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  9666. +echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  9667. +if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  9668. + echo $ECHO_N "(cached) $ECHO_C" >&6
  9669. else
  9670. - cat > conftest.$ac_ext <<EOF
  9671. -#line 4449 "configure"
  9672. -#include "confdefs.h"
  9673. + ac_check_lib_save_LIBS=$LIBS
  9674. +LIBS="-ldld $LIBS"
  9675. +cat >conftest.$ac_ext <<_ACEOF
  9676. +#line $LINENO "configure"
  9677. +/* confdefs.h. */
  9678. +_ACEOF
  9679. +cat confdefs.h >>conftest.$ac_ext
  9680. +cat >>conftest.$ac_ext <<_ACEOF
  9681. +/* end confdefs.h. */
  9682. +
  9683. +/* Override any gcc2 internal prototype to avoid an error. */
  9684. +#ifdef __cplusplus
  9685. +extern "C"
  9686. +#endif
  9687. +/* We use char because int might match the return type of a gcc2
  9688. + builtin and then its argument prototype would still apply. */
  9689. +char shl_load ();
  9690. +int
  9691. +main ()
  9692. +{
  9693. +shl_load ();
  9694. + ;
  9695. + return 0;
  9696. +}
  9697. +_ACEOF
  9698. +rm -f conftest.$ac_objext conftest$ac_exeext
  9699. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9700. + (eval $ac_link) 2>&5
  9701. + ac_status=$?
  9702. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9703. + (exit $ac_status); } &&
  9704. + { ac_try='test -s conftest$ac_exeext'
  9705. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9706. + (eval $ac_try) 2>&5
  9707. + ac_status=$?
  9708. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9709. + (exit $ac_status); }; }; then
  9710. + ac_cv_lib_dld_shl_load=yes
  9711. +else
  9712. + echo "$as_me: failed program was:" >&5
  9713. +sed 's/^/| /' conftest.$ac_ext >&5
  9714. +
  9715. +ac_cv_lib_dld_shl_load=no
  9716. +fi
  9717. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  9718. +LIBS=$ac_check_lib_save_LIBS
  9719. +fi
  9720. +echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  9721. +echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  9722. +if test $ac_cv_lib_dld_shl_load = yes; then
  9723. + lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  9724. +else
  9725. + echo "$as_me:$LINENO: checking for dlopen" >&5
  9726. +echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
  9727. +if test "${ac_cv_func_dlopen+set}" = set; then
  9728. + echo $ECHO_N "(cached) $ECHO_C" >&6
  9729. +else
  9730. + cat >conftest.$ac_ext <<_ACEOF
  9731. +#line $LINENO "configure"
  9732. +/* confdefs.h. */
  9733. +_ACEOF
  9734. +cat confdefs.h >>conftest.$ac_ext
  9735. +cat >>conftest.$ac_ext <<_ACEOF
  9736. +/* end confdefs.h. */
  9737. /* System header to define __stub macros and hopefully few prototypes,
  9738. - which can conflict with char shl_load(); below. */
  9739. -#include <assert.h>
  9740. + which can conflict with char dlopen (); below.
  9741. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9742. + <limits.h> exists even on freestanding compilers. */
  9743. +#ifdef __STDC__
  9744. +# include <limits.h>
  9745. +#else
  9746. +# include <assert.h>
  9747. +#endif
  9748. /* Override any gcc2 internal prototype to avoid an error. */
  9749. +#ifdef __cplusplus
  9750. +extern "C"
  9751. +{
  9752. +#endif
  9753. /* We use char because int might match the return type of a gcc2
  9754. - builtin and then its argument prototype would still apply. */
  9755. -char shl_load();
  9756. -
  9757. -int main() {
  9758. -
  9759. + builtin and then its argument prototype would still apply. */
  9760. +char dlopen ();
  9761. /* The GNU C library defines this for functions which it implements
  9762. to always fail with ENOSYS. Some functions are actually named
  9763. something starting with __ and the normal name is an alias. */
  9764. -#if defined (__stub_shl_load) || defined (__stub___shl_load)
  9765. +#if defined (__stub_dlopen) || defined (__stub___dlopen)
  9766. choke me
  9767. #else
  9768. -shl_load();
  9769. +char (*f) () = dlopen;
  9770. +#endif
  9771. +#ifdef __cplusplus
  9772. +}
  9773. #endif
  9774. -; return 0; }
  9775. -EOF
  9776. -if { (eval echo configure:4472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9777. - rm -rf conftest*
  9778. - eval "ac_cv_func_shl_load=yes"
  9779. +int
  9780. +main ()
  9781. +{
  9782. +return f != dlopen;
  9783. + ;
  9784. + return 0;
  9785. +}
  9786. +_ACEOF
  9787. +rm -f conftest.$ac_objext conftest$ac_exeext
  9788. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9789. + (eval $ac_link) 2>&5
  9790. + ac_status=$?
  9791. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9792. + (exit $ac_status); } &&
  9793. + { ac_try='test -s conftest$ac_exeext'
  9794. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9795. + (eval $ac_try) 2>&5
  9796. + ac_status=$?
  9797. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9798. + (exit $ac_status); }; }; then
  9799. + ac_cv_func_dlopen=yes
  9800. +else
  9801. + echo "$as_me: failed program was:" >&5
  9802. +sed 's/^/| /' conftest.$ac_ext >&5
  9803. +
  9804. +ac_cv_func_dlopen=no
  9805. +fi
  9806. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  9807. +fi
  9808. +echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  9809. +echo "${ECHO_T}$ac_cv_func_dlopen" >&6
  9810. +if test $ac_cv_func_dlopen = yes; then
  9811. + lt_cv_dlopen="dlopen"
  9812. else
  9813. - echo "configure: failed program was:" >&5
  9814. - cat conftest.$ac_ext >&5
  9815. - rm -rf conftest*
  9816. - eval "ac_cv_func_shl_load=no"
  9817. -fi
  9818. -rm -f conftest*
  9819. -fi
  9820. + echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  9821. +echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  9822. +if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  9823. + echo $ECHO_N "(cached) $ECHO_C" >&6
  9824. +else
  9825. + ac_check_lib_save_LIBS=$LIBS
  9826. +LIBS="-ldl $LIBS"
  9827. +cat >conftest.$ac_ext <<_ACEOF
  9828. +#line $LINENO "configure"
  9829. +/* confdefs.h. */
  9830. +_ACEOF
  9831. +cat confdefs.h >>conftest.$ac_ext
  9832. +cat >>conftest.$ac_ext <<_ACEOF
  9833. +/* end confdefs.h. */
  9834. -if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
  9835. - echo "$ac_t""yes" 1>&6
  9836. - lt_cv_dlopen="shl_load"
  9837. +/* Override any gcc2 internal prototype to avoid an error. */
  9838. +#ifdef __cplusplus
  9839. +extern "C"
  9840. +#endif
  9841. +/* We use char because int might match the return type of a gcc2
  9842. + builtin and then its argument prototype would still apply. */
  9843. +char dlopen ();
  9844. +int
  9845. +main ()
  9846. +{
  9847. +dlopen ();
  9848. + ;
  9849. + return 0;
  9850. +}
  9851. +_ACEOF
  9852. +rm -f conftest.$ac_objext conftest$ac_exeext
  9853. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9854. + (eval $ac_link) 2>&5
  9855. + ac_status=$?
  9856. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9857. + (exit $ac_status); } &&
  9858. + { ac_try='test -s conftest$ac_exeext'
  9859. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9860. + (eval $ac_try) 2>&5
  9861. + ac_status=$?
  9862. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9863. + (exit $ac_status); }; }; then
  9864. + ac_cv_lib_dl_dlopen=yes
  9865. +else
  9866. + echo "$as_me: failed program was:" >&5
  9867. +sed 's/^/| /' conftest.$ac_ext >&5
  9868. +
  9869. +ac_cv_lib_dl_dlopen=no
  9870. +fi
  9871. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  9872. +LIBS=$ac_check_lib_save_LIBS
  9873. +fi
  9874. +echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  9875. +echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  9876. +if test $ac_cv_lib_dl_dlopen = yes; then
  9877. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9878. else
  9879. - echo "$ac_t""no" 1>&6
  9880. -echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
  9881. -echo "configure:4490: checking for dlopen in -lsvld" >&5
  9882. -ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-%__p_%'`
  9883. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  9884. - echo $ac_n "(cached) $ac_c" 1>&6
  9885. + echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  9886. +echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
  9887. +if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  9888. + echo $ECHO_N "(cached) $ECHO_C" >&6
  9889. else
  9890. - ac_save_LIBS="$LIBS"
  9891. + ac_check_lib_save_LIBS=$LIBS
  9892. LIBS="-lsvld $LIBS"
  9893. -cat > conftest.$ac_ext <<EOF
  9894. -#line 4498 "configure"
  9895. -#include "confdefs.h"
  9896. +cat >conftest.$ac_ext <<_ACEOF
  9897. +#line $LINENO "configure"
  9898. +/* confdefs.h. */
  9899. +_ACEOF
  9900. +cat confdefs.h >>conftest.$ac_ext
  9901. +cat >>conftest.$ac_ext <<_ACEOF
  9902. +/* end confdefs.h. */
  9903. +
  9904. /* Override any gcc2 internal prototype to avoid an error. */
  9905. +#ifdef __cplusplus
  9906. +extern "C"
  9907. +#endif
  9908. /* We use char because int might match the return type of a gcc2
  9909. - builtin and then its argument prototype would still apply. */
  9910. -char dlopen();
  9911. -
  9912. -int main() {
  9913. -dlopen()
  9914. -; return 0; }
  9915. -EOF
  9916. -if { (eval echo configure:4509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9917. - rm -rf conftest*
  9918. - eval "ac_cv_lib_$ac_lib_var=yes"
  9919. -else
  9920. - echo "configure: failed program was:" >&5
  9921. - cat conftest.$ac_ext >&5
  9922. - rm -rf conftest*
  9923. - eval "ac_cv_lib_$ac_lib_var=no"
  9924. -fi
  9925. -rm -f conftest*
  9926. -LIBS="$ac_save_LIBS"
  9927. -
  9928. -fi
  9929. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9930. - echo "$ac_t""yes" 1>&6
  9931. + builtin and then its argument prototype would still apply. */
  9932. +char dlopen ();
  9933. +int
  9934. +main ()
  9935. +{
  9936. +dlopen ();
  9937. + ;
  9938. + return 0;
  9939. +}
  9940. +_ACEOF
  9941. +rm -f conftest.$ac_objext conftest$ac_exeext
  9942. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9943. + (eval $ac_link) 2>&5
  9944. + ac_status=$?
  9945. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9946. + (exit $ac_status); } &&
  9947. + { ac_try='test -s conftest$ac_exeext'
  9948. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9949. + (eval $ac_try) 2>&5
  9950. + ac_status=$?
  9951. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9952. + (exit $ac_status); }; }; then
  9953. + ac_cv_lib_svld_dlopen=yes
  9954. +else
  9955. + echo "$as_me: failed program was:" >&5
  9956. +sed 's/^/| /' conftest.$ac_ext >&5
  9957. +
  9958. +ac_cv_lib_svld_dlopen=no
  9959. +fi
  9960. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  9961. +LIBS=$ac_check_lib_save_LIBS
  9962. +fi
  9963. +echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  9964. +echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
  9965. +if test $ac_cv_lib_svld_dlopen = yes; then
  9966. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9967. else
  9968. - echo "$ac_t""no" 1>&6
  9969. -echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
  9970. -echo "configure:4528: checking for shl_load in -ldld" >&5
  9971. -ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
  9972. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  9973. - echo $ac_n "(cached) $ac_c" 1>&6
  9974. + echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  9975. +echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
  9976. +if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  9977. + echo $ECHO_N "(cached) $ECHO_C" >&6
  9978. else
  9979. - ac_save_LIBS="$LIBS"
  9980. + ac_check_lib_save_LIBS=$LIBS
  9981. LIBS="-ldld $LIBS"
  9982. -cat > conftest.$ac_ext <<EOF
  9983. -#line 4536 "configure"
  9984. -#include "confdefs.h"
  9985. +cat >conftest.$ac_ext <<_ACEOF
  9986. +#line $LINENO "configure"
  9987. +/* confdefs.h. */
  9988. +_ACEOF
  9989. +cat confdefs.h >>conftest.$ac_ext
  9990. +cat >>conftest.$ac_ext <<_ACEOF
  9991. +/* end confdefs.h. */
  9992. +
  9993. /* Override any gcc2 internal prototype to avoid an error. */
  9994. +#ifdef __cplusplus
  9995. +extern "C"
  9996. +#endif
  9997. /* We use char because int might match the return type of a gcc2
  9998. - builtin and then its argument prototype would still apply. */
  9999. -char shl_load();
  10000. -
  10001. -int main() {
  10002. -shl_load()
  10003. -; return 0; }
  10004. -EOF
  10005. -if { (eval echo configure:4547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10006. - rm -rf conftest*
  10007. - eval "ac_cv_lib_$ac_lib_var=yes"
  10008. -else
  10009. - echo "configure: failed program was:" >&5
  10010. - cat conftest.$ac_ext >&5
  10011. - rm -rf conftest*
  10012. - eval "ac_cv_lib_$ac_lib_var=no"
  10013. + builtin and then its argument prototype would still apply. */
  10014. +char dld_link ();
  10015. +int
  10016. +main ()
  10017. +{
  10018. +dld_link ();
  10019. + ;
  10020. + return 0;
  10021. +}
  10022. +_ACEOF
  10023. +rm -f conftest.$ac_objext conftest$ac_exeext
  10024. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10025. + (eval $ac_link) 2>&5
  10026. + ac_status=$?
  10027. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10028. + (exit $ac_status); } &&
  10029. + { ac_try='test -s conftest$ac_exeext'
  10030. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10031. + (eval $ac_try) 2>&5
  10032. + ac_status=$?
  10033. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10034. + (exit $ac_status); }; }; then
  10035. + ac_cv_lib_dld_dld_link=yes
  10036. +else
  10037. + echo "$as_me: failed program was:" >&5
  10038. +sed 's/^/| /' conftest.$ac_ext >&5
  10039. +
  10040. +ac_cv_lib_dld_dld_link=no
  10041. +fi
  10042. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  10043. +LIBS=$ac_check_lib_save_LIBS
  10044. +fi
  10045. +echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  10046. +echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
  10047. +if test $ac_cv_lib_dld_dld_link = yes; then
  10048. + lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  10049. fi
  10050. -rm -f conftest*
  10051. -LIBS="$ac_save_LIBS"
  10052. -fi
  10053. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  10054. - echo "$ac_t""yes" 1>&6
  10055. - lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  10056. -else
  10057. - echo "$ac_t""no" 1>&6
  10058. +
  10059. fi
  10060. -
  10061. +
  10062. fi
  10063. -
  10064. +
  10065. fi
  10066. -
  10067. +
  10068. fi
  10069. -
  10070. +
  10071. fi
  10072. ;;
  10073. @@ -4595,10 +7112,10 @@
  10074. save_LIBS="$LIBS"
  10075. LIBS="$lt_cv_dlopen_libs $LIBS"
  10076. - echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
  10077. -echo "configure:4600: checking whether a program can dlopen itself" >&5
  10078. -if eval "test \"`echo '$''{'lt_cv_dlopen_self'+set}'`\" = set"; then
  10079. - echo $ac_n "(cached) $ac_c" 1>&6
  10080. + echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  10081. +echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
  10082. +if test "${lt_cv_dlopen_self+set}" = set; then
  10083. + echo $ECHO_N "(cached) $ECHO_C" >&6
  10084. else
  10085. if test "$cross_compiling" = yes; then :
  10086. lt_cv_dlopen_self=cross
  10087. @@ -4606,7 +7123,7 @@
  10088. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10089. lt_status=$lt_dlunknown
  10090. cat > conftest.$ac_ext <<EOF
  10091. -#line 4610 "configure"
  10092. +#line 7126 "configure"
  10093. #include "confdefs.h"
  10094. #if HAVE_DLFCN_H
  10095. @@ -4667,7 +7184,11 @@
  10096. exit (status);
  10097. }
  10098. EOF
  10099. - if { (eval echo configure:4671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10100. + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10101. + (eval $ac_link) 2>&5
  10102. + ac_status=$?
  10103. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10104. + (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  10105. (./conftest; exit; ) 2>/dev/null
  10106. lt_status=$?
  10107. case x$lt_status in
  10108. @@ -4682,17 +7203,17 @@
  10109. fi
  10110. rm -fr conftest*
  10111. -
  10112. -fi
  10113. -echo "$ac_t""$lt_cv_dlopen_self" 1>&6
  10114. +fi
  10115. +echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  10116. +echo "${ECHO_T}$lt_cv_dlopen_self" >&6
  10117. if test "x$lt_cv_dlopen_self" = xyes; then
  10118. LDFLAGS="$LDFLAGS $link_static_flag"
  10119. - echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
  10120. -echo "configure:4694: checking whether a statically linked program can dlopen itself" >&5
  10121. -if eval "test \"`echo '$''{'lt_cv_dlopen_self_static'+set}'`\" = set"; then
  10122. - echo $ac_n "(cached) $ac_c" 1>&6
  10123. + echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  10124. +echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
  10125. +if test "${lt_cv_dlopen_self_static+set}" = set; then
  10126. + echo $ECHO_N "(cached) $ECHO_C" >&6
  10127. else
  10128. if test "$cross_compiling" = yes; then :
  10129. lt_cv_dlopen_self_static=cross
  10130. @@ -4700,7 +7221,7 @@
  10131. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10132. lt_status=$lt_dlunknown
  10133. cat > conftest.$ac_ext <<EOF
  10134. -#line 4704 "configure"
  10135. +#line 7224 "configure"
  10136. #include "confdefs.h"
  10137. #if HAVE_DLFCN_H
  10138. @@ -4761,7 +7282,11 @@
  10139. exit (status);
  10140. }
  10141. EOF
  10142. - if { (eval echo configure:4765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10143. + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10144. + (eval $ac_link) 2>&5
  10145. + ac_status=$?
  10146. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10147. + (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  10148. (./conftest; exit; ) 2>/dev/null
  10149. lt_status=$?
  10150. case x$lt_status in
  10151. @@ -4776,10 +7301,10 @@
  10152. fi
  10153. rm -fr conftest*
  10154. -
  10155. -fi
  10156. -echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
  10157. +fi
  10158. +echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  10159. +echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
  10160. fi
  10161. CPPFLAGS="$save_CPPFLAGS"
  10162. @@ -4809,15 +7334,19 @@
  10163. # Test whether the compiler implicitly links with -lc since on some
  10164. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  10165. # to ld, don't add -lc before -lgcc.
  10166. - echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
  10167. -echo "configure:4814: checking whether -lc should be explicitly linked in" >&5
  10168. - if eval "test \"`echo '$''{'lt_cv_archive_cmds_need_lc'+set}'`\" = set"; then
  10169. - echo $ac_n "(cached) $ac_c" 1>&6
  10170. + echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  10171. +echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  10172. + if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
  10173. + echo $ECHO_N "(cached) $ECHO_C" >&6
  10174. else
  10175. $rm conftest*
  10176. echo 'static int dummy;' > conftest.$ac_ext
  10177. - if { (eval echo configure:4821: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10178. + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10179. + (eval $ac_compile) 2>&5
  10180. + ac_status=$?
  10181. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10182. + (exit $ac_status); }; then
  10183. soname=conftest
  10184. lib=conftest
  10185. libobjs=conftest.$ac_objext
  10186. @@ -4830,7 +7359,11 @@
  10187. libname=conftest
  10188. save_allow_undefined_flag=$allow_undefined_flag
  10189. allow_undefined_flag=
  10190. - 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; }
  10191. + if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  10192. + (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  10193. + ac_status=$?
  10194. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10195. + (exit $ac_status); }
  10196. then
  10197. lt_cv_archive_cmds_need_lc=no
  10198. else
  10199. @@ -4842,7 +7375,8 @@
  10200. fi
  10201. fi
  10202. - echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
  10203. + echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
  10204. +echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
  10205. ;;
  10206. esac
  10207. fi
  10208. @@ -4870,7 +7404,7 @@
  10209. # Now quote all the things that may contain metacharacters while being
  10210. # careful not to overquote the AC_SUBSTed values. We take copies of the
  10211. # variables and quote the copies for generation of the libtool script.
  10212. - for var in echo old_CC old_CFLAGS \
  10213. + for var in echo old_CC old_CFLAGS SED \
  10214. AR AR_FLAGS CC LD LN_S NM SHELL \
  10215. reload_flag reload_cmds wl \
  10216. pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
  10217. @@ -4882,6 +7416,7 @@
  10218. old_striplib striplib file_magic_cmd export_symbols_cmds \
  10219. deplibs_check_method allow_undefined_flag no_undefined_flag \
  10220. finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
  10221. + global_symbol_to_c_name_address \
  10222. hardcode_libdir_flag_spec hardcode_libdir_separator \
  10223. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  10224. compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
  10225. @@ -4931,8 +7466,11 @@
  10226. # configuration script generated by Autoconf, you may include it under
  10227. # the same distribution terms that you use for the rest of that program.
  10228. +# A sed that does not truncate output.
  10229. +SED=$lt_SED
  10230. +
  10231. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  10232. -Xsed="sed -e s/^X//"
  10233. +Xsed="${SED} -e s/^X//"
  10234. # The HP-UX ksh and POSIX shell print the target directory to stdout
  10235. # if CDPATH is set.
  10236. @@ -4948,12 +7486,12 @@
  10237. # Whether or not to build shared libraries.
  10238. build_libtool_libs=$enable_shared
  10239. -# Whether or not to add -lc for building shared libraries.
  10240. -build_libtool_need_lc=$need_lc
  10241. -
  10242. # Whether or not to build static libraries.
  10243. build_old_libs=$enable_static
  10244. +# Whether or not to add -lc for building shared libraries.
  10245. +build_libtool_need_lc=$need_lc
  10246. +
  10247. # Whether or not to optimize for fast installation.
  10248. fast_install=$enable_fast_install
  10249. @@ -5119,6 +7657,9 @@
  10250. # Transform the output of nm in a proper C declaration
  10251. global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
  10252. +# Transform the output of nm in a C name address pair
  10253. +global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
  10254. +
  10255. # This is the shared library runtime path variable.
  10256. runpath_var=$runpath_var
  10257. @@ -5241,9 +7782,9 @@
  10258. # return TRUE;
  10259. # }
  10260. # /* ltdll.c ends here */
  10261. - # This is a source program that is used to create import libraries
  10262. - # on Windows for dlls which lack them. Don't remove nor modify the
  10263. - # starting and closing comments
  10264. + # This is a source program that is used to create import libraries
  10265. + # on Windows for dlls which lack them. Don't remove nor modify the
  10266. + # starting and closing comments
  10267. # /* impgen.c starts here */
  10268. # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
  10269. #
  10270. @@ -5411,156 +7952,386 @@
  10271. # Extract the first word of "perl", so it can be a program name with args.
  10272. set dummy perl; ac_word=$2
  10273. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  10274. -echo "configure:5416: checking for $ac_word" >&5
  10275. -if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
  10276. - echo $ac_n "(cached) $ac_c" 1>&6
  10277. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  10278. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  10279. +if test "${ac_cv_path_PERL+set}" = set; then
  10280. + echo $ECHO_N "(cached) $ECHO_C" >&6
  10281. else
  10282. - case "$PERL" in
  10283. - /*)
  10284. + case $PERL in
  10285. + [\\/]* | ?:[\\/]*)
  10286. ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
  10287. ;;
  10288. - ?:/*)
  10289. - ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
  10290. - ;;
  10291. *)
  10292. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  10293. - ac_dummy="$PATH"
  10294. - for ac_dir in $ac_dummy; do
  10295. - test -z "$ac_dir" && ac_dir=.
  10296. - if test -f $ac_dir/$ac_word; then
  10297. - ac_cv_path_PERL="$ac_dir/$ac_word"
  10298. - break
  10299. - fi
  10300. - done
  10301. - IFS="$ac_save_ifs"
  10302. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10303. +for as_dir in $PATH
  10304. +do
  10305. + IFS=$as_save_IFS
  10306. + test -z "$as_dir" && as_dir=.
  10307. + for ac_exec_ext in '' $ac_executable_extensions; do
  10308. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10309. + ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
  10310. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  10311. + break 2
  10312. + fi
  10313. +done
  10314. +done
  10315. +
  10316. ;;
  10317. esac
  10318. fi
  10319. -PERL="$ac_cv_path_PERL"
  10320. +PERL=$ac_cv_path_PERL
  10321. +
  10322. if test -n "$PERL"; then
  10323. - echo "$ac_t""$PERL" 1>&6
  10324. + echo "$as_me:$LINENO: result: $PERL" >&5
  10325. +echo "${ECHO_T}$PERL" >&6
  10326. else
  10327. - echo "$ac_t""no" 1>&6
  10328. + echo "$as_me:$LINENO: result: no" >&5
  10329. +echo "${ECHO_T}no" >&6
  10330. fi
  10331. -ac_safe=`echo "asm/errno.h" | sed 'y%./+-%__p_%'`
  10332. -echo $ac_n "checking for asm/errno.h""... $ac_c" 1>&6
  10333. -echo "configure:5453: checking for asm/errno.h" >&5
  10334. -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  10335. - echo $ac_n "(cached) $ac_c" 1>&6
  10336. +if test "${ac_cv_header_asm_errno_h+set}" = set; then
  10337. + echo "$as_me:$LINENO: checking for asm/errno.h" >&5
  10338. +echo $ECHO_N "checking for asm/errno.h... $ECHO_C" >&6
  10339. +if test "${ac_cv_header_asm_errno_h+set}" = set; then
  10340. + echo $ECHO_N "(cached) $ECHO_C" >&6
  10341. +fi
  10342. +echo "$as_me:$LINENO: result: $ac_cv_header_asm_errno_h" >&5
  10343. +echo "${ECHO_T}$ac_cv_header_asm_errno_h" >&6
  10344. else
  10345. - cat > conftest.$ac_ext <<EOF
  10346. -#line 5458 "configure"
  10347. -#include "confdefs.h"
  10348. + # Is the header compilable?
  10349. +echo "$as_me:$LINENO: checking asm/errno.h usability" >&5
  10350. +echo $ECHO_N "checking asm/errno.h usability... $ECHO_C" >&6
  10351. +cat >conftest.$ac_ext <<_ACEOF
  10352. +#line $LINENO "configure"
  10353. +/* confdefs.h. */
  10354. +_ACEOF
  10355. +cat confdefs.h >>conftest.$ac_ext
  10356. +cat >>conftest.$ac_ext <<_ACEOF
  10357. +/* end confdefs.h. */
  10358. +$ac_includes_default
  10359. #include <asm/errno.h>
  10360. -EOF
  10361. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  10362. -{ (eval echo configure:5463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  10363. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  10364. -if test -z "$ac_err"; then
  10365. - rm -rf conftest*
  10366. - eval "ac_cv_header_$ac_safe=yes"
  10367. +_ACEOF
  10368. +rm -f conftest.$ac_objext
  10369. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10370. + (eval $ac_compile) 2>&5
  10371. + ac_status=$?
  10372. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10373. + (exit $ac_status); } &&
  10374. + { ac_try='test -s conftest.$ac_objext'
  10375. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10376. + (eval $ac_try) 2>&5
  10377. + ac_status=$?
  10378. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10379. + (exit $ac_status); }; }; then
  10380. + ac_header_compiler=yes
  10381. +else
  10382. + echo "$as_me: failed program was:" >&5
  10383. +sed 's/^/| /' conftest.$ac_ext >&5
  10384. +
  10385. +ac_header_compiler=no
  10386. +fi
  10387. +rm -f conftest.$ac_objext conftest.$ac_ext
  10388. +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10389. +echo "${ECHO_T}$ac_header_compiler" >&6
  10390. +
  10391. +# Is the header present?
  10392. +echo "$as_me:$LINENO: checking asm/errno.h presence" >&5
  10393. +echo $ECHO_N "checking asm/errno.h presence... $ECHO_C" >&6
  10394. +cat >conftest.$ac_ext <<_ACEOF
  10395. +#line $LINENO "configure"
  10396. +/* confdefs.h. */
  10397. +_ACEOF
  10398. +cat confdefs.h >>conftest.$ac_ext
  10399. +cat >>conftest.$ac_ext <<_ACEOF
  10400. +/* end confdefs.h. */
  10401. +#include <asm/errno.h>
  10402. +_ACEOF
  10403. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  10404. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  10405. + ac_status=$?
  10406. + grep -v '^ *+' conftest.er1 >conftest.err
  10407. + rm -f conftest.er1
  10408. + cat conftest.err >&5
  10409. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10410. + (exit $ac_status); } >/dev/null; then
  10411. + if test -s conftest.err; then
  10412. + ac_cpp_err=$ac_c_preproc_warn_flag
  10413. + else
  10414. + ac_cpp_err=
  10415. + fi
  10416. else
  10417. - echo "$ac_err" >&5
  10418. - echo "configure: failed program was:" >&5
  10419. - cat conftest.$ac_ext >&5
  10420. - rm -rf conftest*
  10421. - eval "ac_cv_header_$ac_safe=no"
  10422. + ac_cpp_err=yes
  10423. fi
  10424. -rm -f conftest*
  10425. +if test -z "$ac_cpp_err"; then
  10426. + ac_header_preproc=yes
  10427. +else
  10428. + echo "$as_me: failed program was:" >&5
  10429. +sed 's/^/| /' conftest.$ac_ext >&5
  10430. +
  10431. + ac_header_preproc=no
  10432. +fi
  10433. +rm -f conftest.err conftest.$ac_ext
  10434. +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10435. +echo "${ECHO_T}$ac_header_preproc" >&6
  10436. +
  10437. +# So? What about this header?
  10438. +case $ac_header_compiler:$ac_header_preproc in
  10439. + yes:no )
  10440. + { echo "$as_me:$LINENO: WARNING: asm/errno.h: accepted by the compiler, rejected by the preprocessor!" >&5
  10441. +echo "$as_me: WARNING: asm/errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10442. + { echo "$as_me:$LINENO: WARNING: asm/errno.h: proceeding with the preprocessor's result" >&5
  10443. +echo "$as_me: WARNING: asm/errno.h: proceeding with the preprocessor's result" >&2;}
  10444. + (
  10445. + cat <<\_ASBOX
  10446. +## ------------------------------------ ##
  10447. +## Report this to bug-autoconf@gnu.org. ##
  10448. +## ------------------------------------ ##
  10449. +_ASBOX
  10450. + ) |
  10451. + sed "s/^/$as_me: WARNING: /" >&2
  10452. + ;;
  10453. + no:yes )
  10454. + { echo "$as_me:$LINENO: WARNING: asm/errno.h: present but cannot be compiled" >&5
  10455. +echo "$as_me: WARNING: asm/errno.h: present but cannot be compiled" >&2;}
  10456. + { echo "$as_me:$LINENO: WARNING: asm/errno.h: check for missing prerequisite headers?" >&5
  10457. +echo "$as_me: WARNING: asm/errno.h: check for missing prerequisite headers?" >&2;}
  10458. + { echo "$as_me:$LINENO: WARNING: asm/errno.h: proceeding with the preprocessor's result" >&5
  10459. +echo "$as_me: WARNING: asm/errno.h: proceeding with the preprocessor's result" >&2;}
  10460. + (
  10461. + cat <<\_ASBOX
  10462. +## ------------------------------------ ##
  10463. +## Report this to bug-autoconf@gnu.org. ##
  10464. +## ------------------------------------ ##
  10465. +_ASBOX
  10466. + ) |
  10467. + sed "s/^/$as_me: WARNING: /" >&2
  10468. + ;;
  10469. +esac
  10470. +echo "$as_me:$LINENO: checking for asm/errno.h" >&5
  10471. +echo $ECHO_N "checking for asm/errno.h... $ECHO_C" >&6
  10472. +if test "${ac_cv_header_asm_errno_h+set}" = set; then
  10473. + echo $ECHO_N "(cached) $ECHO_C" >&6
  10474. +else
  10475. + ac_cv_header_asm_errno_h=$ac_header_preproc
  10476. +fi
  10477. +echo "$as_me:$LINENO: result: $ac_cv_header_asm_errno_h" >&5
  10478. +echo "${ECHO_T}$ac_cv_header_asm_errno_h" >&6
  10479. +
  10480. fi
  10481. -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  10482. - echo "$ac_t""yes" 1>&6
  10483. +if test $ac_cv_header_asm_errno_h = yes; then
  10484. :
  10485. else
  10486. - echo "$ac_t""no" 1>&6
  10487. -{ echo "configure: error: *** Unable to find asm/errno.h!!!" 1>&2; exit 1; }
  10488. + { { echo "$as_me:$LINENO: error: *** Unable to find asm/errno.h!!!" >&5
  10489. +echo "$as_me: error: *** Unable to find asm/errno.h!!!" >&2;}
  10490. + { (exit 1); exit 1; }; }
  10491. fi
  10492. -ac_safe=`echo "linux/atmsap.h" | sed 'y%./+-%__p_%'`
  10493. -echo $ac_n "checking for linux/atmsap.h""... $ac_c" 1>&6
  10494. -echo "configure:5489: checking for linux/atmsap.h" >&5
  10495. -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  10496. - echo $ac_n "(cached) $ac_c" 1>&6
  10497. -else
  10498. - cat > conftest.$ac_ext <<EOF
  10499. -#line 5494 "configure"
  10500. -#include "confdefs.h"
  10501. +
  10502. +if test "${ac_cv_header_linux_atmsap_h+set}" = set; then
  10503. + echo "$as_me:$LINENO: checking for linux/atmsap.h" >&5
  10504. +echo $ECHO_N "checking for linux/atmsap.h... $ECHO_C" >&6
  10505. +if test "${ac_cv_header_linux_atmsap_h+set}" = set; then
  10506. + echo $ECHO_N "(cached) $ECHO_C" >&6
  10507. +fi
  10508. +echo "$as_me:$LINENO: result: $ac_cv_header_linux_atmsap_h" >&5
  10509. +echo "${ECHO_T}$ac_cv_header_linux_atmsap_h" >&6
  10510. +else
  10511. + # Is the header compilable?
  10512. +echo "$as_me:$LINENO: checking linux/atmsap.h usability" >&5
  10513. +echo $ECHO_N "checking linux/atmsap.h usability... $ECHO_C" >&6
  10514. +cat >conftest.$ac_ext <<_ACEOF
  10515. +#line $LINENO "configure"
  10516. +/* confdefs.h. */
  10517. +_ACEOF
  10518. +cat confdefs.h >>conftest.$ac_ext
  10519. +cat >>conftest.$ac_ext <<_ACEOF
  10520. +/* end confdefs.h. */
  10521. +$ac_includes_default
  10522. #include <linux/atmsap.h>
  10523. -EOF
  10524. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  10525. -{ (eval echo configure:5499: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  10526. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  10527. -if test -z "$ac_err"; then
  10528. - rm -rf conftest*
  10529. - eval "ac_cv_header_$ac_safe=yes"
  10530. +_ACEOF
  10531. +rm -f conftest.$ac_objext
  10532. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10533. + (eval $ac_compile) 2>&5
  10534. + ac_status=$?
  10535. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10536. + (exit $ac_status); } &&
  10537. + { ac_try='test -s conftest.$ac_objext'
  10538. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10539. + (eval $ac_try) 2>&5
  10540. + ac_status=$?
  10541. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10542. + (exit $ac_status); }; }; then
  10543. + ac_header_compiler=yes
  10544. +else
  10545. + echo "$as_me: failed program was:" >&5
  10546. +sed 's/^/| /' conftest.$ac_ext >&5
  10547. +
  10548. +ac_header_compiler=no
  10549. +fi
  10550. +rm -f conftest.$ac_objext conftest.$ac_ext
  10551. +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10552. +echo "${ECHO_T}$ac_header_compiler" >&6
  10553. +
  10554. +# Is the header present?
  10555. +echo "$as_me:$LINENO: checking linux/atmsap.h presence" >&5
  10556. +echo $ECHO_N "checking linux/atmsap.h presence... $ECHO_C" >&6
  10557. +cat >conftest.$ac_ext <<_ACEOF
  10558. +#line $LINENO "configure"
  10559. +/* confdefs.h. */
  10560. +_ACEOF
  10561. +cat confdefs.h >>conftest.$ac_ext
  10562. +cat >>conftest.$ac_ext <<_ACEOF
  10563. +/* end confdefs.h. */
  10564. +#include <linux/atmsap.h>
  10565. +_ACEOF
  10566. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  10567. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  10568. + ac_status=$?
  10569. + grep -v '^ *+' conftest.er1 >conftest.err
  10570. + rm -f conftest.er1
  10571. + cat conftest.err >&5
  10572. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10573. + (exit $ac_status); } >/dev/null; then
  10574. + if test -s conftest.err; then
  10575. + ac_cpp_err=$ac_c_preproc_warn_flag
  10576. + else
  10577. + ac_cpp_err=
  10578. + fi
  10579. else
  10580. - echo "$ac_err" >&5
  10581. - echo "configure: failed program was:" >&5
  10582. - cat conftest.$ac_ext >&5
  10583. - rm -rf conftest*
  10584. - eval "ac_cv_header_$ac_safe=no"
  10585. + ac_cpp_err=yes
  10586. fi
  10587. -rm -f conftest*
  10588. +if test -z "$ac_cpp_err"; then
  10589. + ac_header_preproc=yes
  10590. +else
  10591. + echo "$as_me: failed program was:" >&5
  10592. +sed 's/^/| /' conftest.$ac_ext >&5
  10593. +
  10594. + ac_header_preproc=no
  10595. +fi
  10596. +rm -f conftest.err conftest.$ac_ext
  10597. +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10598. +echo "${ECHO_T}$ac_header_preproc" >&6
  10599. +
  10600. +# So? What about this header?
  10601. +case $ac_header_compiler:$ac_header_preproc in
  10602. + yes:no )
  10603. + { echo "$as_me:$LINENO: WARNING: linux/atmsap.h: accepted by the compiler, rejected by the preprocessor!" >&5
  10604. +echo "$as_me: WARNING: linux/atmsap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10605. + { echo "$as_me:$LINENO: WARNING: linux/atmsap.h: proceeding with the preprocessor's result" >&5
  10606. +echo "$as_me: WARNING: linux/atmsap.h: proceeding with the preprocessor's result" >&2;}
  10607. + (
  10608. + cat <<\_ASBOX
  10609. +## ------------------------------------ ##
  10610. +## Report this to bug-autoconf@gnu.org. ##
  10611. +## ------------------------------------ ##
  10612. +_ASBOX
  10613. + ) |
  10614. + sed "s/^/$as_me: WARNING: /" >&2
  10615. + ;;
  10616. + no:yes )
  10617. + { echo "$as_me:$LINENO: WARNING: linux/atmsap.h: present but cannot be compiled" >&5
  10618. +echo "$as_me: WARNING: linux/atmsap.h: present but cannot be compiled" >&2;}
  10619. + { echo "$as_me:$LINENO: WARNING: linux/atmsap.h: check for missing prerequisite headers?" >&5
  10620. +echo "$as_me: WARNING: linux/atmsap.h: check for missing prerequisite headers?" >&2;}
  10621. + { echo "$as_me:$LINENO: WARNING: linux/atmsap.h: proceeding with the preprocessor's result" >&5
  10622. +echo "$as_me: WARNING: linux/atmsap.h: proceeding with the preprocessor's result" >&2;}
  10623. + (
  10624. + cat <<\_ASBOX
  10625. +## ------------------------------------ ##
  10626. +## Report this to bug-autoconf@gnu.org. ##
  10627. +## ------------------------------------ ##
  10628. +_ASBOX
  10629. + ) |
  10630. + sed "s/^/$as_me: WARNING: /" >&2
  10631. + ;;
  10632. +esac
  10633. +echo "$as_me:$LINENO: checking for linux/atmsap.h" >&5
  10634. +echo $ECHO_N "checking for linux/atmsap.h... $ECHO_C" >&6
  10635. +if test "${ac_cv_header_linux_atmsap_h+set}" = set; then
  10636. + echo $ECHO_N "(cached) $ECHO_C" >&6
  10637. +else
  10638. + ac_cv_header_linux_atmsap_h=$ac_header_preproc
  10639. fi
  10640. -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  10641. - echo "$ac_t""yes" 1>&6
  10642. +echo "$as_me:$LINENO: result: $ac_cv_header_linux_atmsap_h" >&5
  10643. +echo "${ECHO_T}$ac_cv_header_linux_atmsap_h" >&6
  10644. +
  10645. +fi
  10646. +if test $ac_cv_header_linux_atmsap_h = yes; then
  10647. :
  10648. else
  10649. - echo "$ac_t""no" 1>&6
  10650. -{ echo "configure: error: *** Unable to find linux/atmsap.h!!!" 1>&2; exit 1; }
  10651. + { { echo "$as_me:$LINENO: error: *** Unable to find linux/atmsap.h!!!" >&5
  10652. +echo "$as_me: error: *** Unable to find linux/atmsap.h!!!" >&2;}
  10653. + { (exit 1); exit 1; }; }
  10654. fi
  10655. -echo $ac_n "checking for main in -lresolv""... $ac_c" 1>&6
  10656. -echo "configure:5524: checking for main in -lresolv" >&5
  10657. -ac_lib_var=`echo resolv'_'main | sed 'y%./+-%__p_%'`
  10658. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  10659. - echo $ac_n "(cached) $ac_c" 1>&6
  10660. +
  10661. +
  10662. +echo "$as_me:$LINENO: checking for main in -lresolv" >&5
  10663. +echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
  10664. +if test "${ac_cv_lib_resolv_main+set}" = set; then
  10665. + echo $ECHO_N "(cached) $ECHO_C" >&6
  10666. else
  10667. - ac_save_LIBS="$LIBS"
  10668. + ac_check_lib_save_LIBS=$LIBS
  10669. LIBS="-lresolv $LIBS"
  10670. -cat > conftest.$ac_ext <<EOF
  10671. -#line 5532 "configure"
  10672. -#include "confdefs.h"
  10673. +cat >conftest.$ac_ext <<_ACEOF
  10674. +#line $LINENO "configure"
  10675. +/* confdefs.h. */
  10676. +_ACEOF
  10677. +cat confdefs.h >>conftest.$ac_ext
  10678. +cat >>conftest.$ac_ext <<_ACEOF
  10679. +/* end confdefs.h. */
  10680. -int main() {
  10681. -main()
  10682. -; return 0; }
  10683. -EOF
  10684. -if { (eval echo configure:5539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10685. - rm -rf conftest*
  10686. - eval "ac_cv_lib_$ac_lib_var=yes"
  10687. -else
  10688. - echo "configure: failed program was:" >&5
  10689. - cat conftest.$ac_ext >&5
  10690. - rm -rf conftest*
  10691. - eval "ac_cv_lib_$ac_lib_var=no"
  10692. -fi
  10693. -rm -f conftest*
  10694. -LIBS="$ac_save_LIBS"
  10695. -fi
  10696. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  10697. - echo "$ac_t""yes" 1>&6
  10698. - ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  10699. - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  10700. - cat >> confdefs.h <<EOF
  10701. -#define $ac_tr_lib 1
  10702. -EOF
  10703. +int
  10704. +main ()
  10705. +{
  10706. +main ();
  10707. + ;
  10708. + return 0;
  10709. +}
  10710. +_ACEOF
  10711. +rm -f conftest.$ac_objext conftest$ac_exeext
  10712. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10713. + (eval $ac_link) 2>&5
  10714. + ac_status=$?
  10715. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10716. + (exit $ac_status); } &&
  10717. + { ac_try='test -s conftest$ac_exeext'
  10718. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10719. + (eval $ac_try) 2>&5
  10720. + ac_status=$?
  10721. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10722. + (exit $ac_status); }; }; then
  10723. + ac_cv_lib_resolv_main=yes
  10724. +else
  10725. + echo "$as_me: failed program was:" >&5
  10726. +sed 's/^/| /' conftest.$ac_ext >&5
  10727. +
  10728. +ac_cv_lib_resolv_main=no
  10729. +fi
  10730. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  10731. +LIBS=$ac_check_lib_save_LIBS
  10732. +fi
  10733. +echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
  10734. +echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
  10735. +if test $ac_cv_lib_resolv_main = yes; then
  10736. + cat >>confdefs.h <<_ACEOF
  10737. +#define HAVE_LIBRESOLV 1
  10738. +_ACEOF
  10739. LIBS="-lresolv $LIBS"
  10740. else
  10741. - echo "$ac_t""no" 1>&6
  10742. -{ echo "configure: error: *** Unable to find libresolv!!!" 1>&2; exit 1; }
  10743. + { { echo "$as_me:$LINENO: error: *** Unable to find libresolv!!!" >&5
  10744. +echo "$as_me: error: *** Unable to find libresolv!!!" >&2;}
  10745. + { (exit 1); exit 1; }; }
  10746. fi
  10747. @@ -5571,639 +8342,1417 @@
  10748. CFLAGS="$INCLUDES $CFLAGS -Wall -Wshadow -Wpointer-arith -Wwrite-strings -Wstrict-prototypes"
  10749. YACC="$YACC -d"
  10750. -cat >> confdefs.h <<\EOF
  10751. +cat >>confdefs.h <<\_ACEOF
  10752. #define YY_USE_CONST 1
  10753. -EOF
  10754. +_ACEOF
  10755. atmsigd_conf_dir=` test "x$exec_prefix" = xNONE && exec_prefix=$ac_default_prefix
  10756. test "x$prefix" = xNONE && prefix=${exec_prefix}
  10757. eval echo "$sysconfdir"`
  10758. -cat >> confdefs.h <<EOF
  10759. +cat >>confdefs.h <<_ACEOF
  10760. #define ATMSIGD_CONF "$atmsigd_conf_dir/atmsigd.conf"
  10761. -EOF
  10762. +_ACEOF
  10763. +
  10764. # Check whether --with-uni or --without-uni was given.
  10765. if test "${with_uni+set}" = set; then
  10766. withval="$with_uni"
  10767. -
  10768. +
  10769. case "$with_uni" in
  10770. - "3.0" ) cat >> confdefs.h <<\EOF
  10771. + "3.0" ) cat >>confdefs.h <<\_ACEOF
  10772. #define UNI30 1
  10773. -EOF
  10774. +_ACEOF
  10775. ;;
  10776. - "3.1" ) cat >> confdefs.h <<\EOF
  10777. + "3.1" ) cat >>confdefs.h <<\_ACEOF
  10778. #define UNI31 1
  10779. -EOF
  10780. +_ACEOF
  10781. ;;
  10782. - "4.0" ) cat >> confdefs.h <<\EOF
  10783. + "4.0" ) cat >>confdefs.h <<\_ACEOF
  10784. #define UNI40 1
  10785. -EOF
  10786. +_ACEOF
  10787. ;;
  10788. *)
  10789. - cat >> confdefs.h <<\EOF
  10790. + cat >>confdefs.h <<\_ACEOF
  10791. #define DYNAMIC_UNI 1
  10792. -EOF
  10793. +_ACEOF
  10794. - echo "configure: warning: *** UNI version not specified correctly. Defaulting to dynamic UNI." 1>&2
  10795. + { echo "$as_me:$LINENO: WARNING: *** UNI version not specified correctly. Defaulting to dynamic UNI." >&5
  10796. +echo "$as_me: WARNING: *** UNI version not specified correctly. Defaulting to dynamic UNI." >&2;}
  10797. esac
  10798. -
  10799. +
  10800. else
  10801. - cat >> confdefs.h <<\EOF
  10802. + cat >>confdefs.h <<\_ACEOF
  10803. #define DYNAMIC_UNI 1
  10804. -EOF
  10805. +_ACEOF
  10806. -fi
  10807. -
  10808. +fi;
  10809. # Check whether --enable-allow_uni30 or --disable-allow_uni30 was given.
  10810. if test "${enable_allow_uni30+set}" = set; then
  10811. enableval="$enable_allow_uni30"
  10812. -
  10813. +
  10814. if test "$with_uni" = "3.1" ; then
  10815. - cat >> confdefs.h <<\EOF
  10816. + cat >>confdefs.h <<\_ACEOF
  10817. #define ALLOW_UNI30 1
  10818. -EOF
  10819. +_ACEOF
  10820. else
  10821. - 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
  10822. + { 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
  10823. +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;}
  10824. fi
  10825. -
  10826. -fi
  10827. +fi;
  10828. # Check whether --enable-q2963_1 or --disable-q2963_1 was given.
  10829. if test "${enable_q2963_1+set}" = set; then
  10830. enableval="$enable_q2963_1"
  10831. -
  10832. +
  10833. if test "$with_uni" = "4.0" ; then
  10834. - cat >> confdefs.h <<\EOF
  10835. + cat >>confdefs.h <<\_ACEOF
  10836. #define Q2963_1 1
  10837. -EOF
  10838. +_ACEOF
  10839. else
  10840. - 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
  10841. + { 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
  10842. +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;}
  10843. fi
  10844. -
  10845. -fi
  10846. +fi;
  10847. # Check whether --enable-cisco or --disable-cisco was given.
  10848. if test "${enable_cisco+set}" = set; then
  10849. enableval="$enable_cisco"
  10850. - cat >> confdefs.h <<\EOF
  10851. + cat >>confdefs.h <<\_ACEOF
  10852. #define CISCO 1
  10853. -EOF
  10854. +_ACEOF
  10855. -fi
  10856. -
  10857. +fi;
  10858. # Check whether --enable-thomflex or --disable-thomflex was given.
  10859. if test "${enable_thomflex+set}" = set; then
  10860. enableval="$enable_thomflex"
  10861. - cat >> confdefs.h <<\EOF
  10862. + cat >>confdefs.h <<\_ACEOF
  10863. #define THOMFLEX 1
  10864. -EOF
  10865. -
  10866. +_ACEOF
  10867. -fi
  10868. +fi;
  10869. -cat >> confdefs.h <<\EOF
  10870. +cat >>confdefs.h <<\_ACEOF
  10871. #define BROKEN_POLL 1
  10872. -EOF
  10873. +_ACEOF
  10874. # Check whether --enable-mpoa_1_1 or --disable-mpoa_1_1 was given.
  10875. if test "${enable_mpoa_1_1+set}" = set; then
  10876. enableval="$enable_mpoa_1_1"
  10877. - cat >> confdefs.h <<\EOF
  10878. + cat >>confdefs.h <<\_ACEOF
  10879. #define MPOA_1_1 1
  10880. -EOF
  10881. -
  10882. +_ACEOF
  10883. -fi
  10884. +fi;
  10885. # Check whether --enable-mpr or --disable-mpr was given.
  10886. if test "${enable_mpr+set}" = set; then
  10887. enableval="$enable_mpr"
  10888. -
  10889. +
  10890. case "$enable_mpr" in
  10891. "" | y | ye | yes | Y | YE | YES )
  10892. - echo $ac_n "checking for main in -lmpr""... $ac_c" 1>&6
  10893. -echo "configure:5704: checking for main in -lmpr" >&5
  10894. -ac_lib_var=`echo mpr'_'main | sed 'y%./+-%__p_%'`
  10895. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  10896. - echo $ac_n "(cached) $ac_c" 1>&6
  10897. +
  10898. +echo "$as_me:$LINENO: checking for main in -lmpr" >&5
  10899. +echo $ECHO_N "checking for main in -lmpr... $ECHO_C" >&6
  10900. +if test "${ac_cv_lib_mpr_main+set}" = set; then
  10901. + echo $ECHO_N "(cached) $ECHO_C" >&6
  10902. else
  10903. - ac_save_LIBS="$LIBS"
  10904. + ac_check_lib_save_LIBS=$LIBS
  10905. LIBS="-lmpr $LIBS"
  10906. -cat > conftest.$ac_ext <<EOF
  10907. -#line 5712 "configure"
  10908. -#include "confdefs.h"
  10909. +cat >conftest.$ac_ext <<_ACEOF
  10910. +#line $LINENO "configure"
  10911. +/* confdefs.h. */
  10912. +_ACEOF
  10913. +cat confdefs.h >>conftest.$ac_ext
  10914. +cat >>conftest.$ac_ext <<_ACEOF
  10915. +/* end confdefs.h. */
  10916. -int main() {
  10917. -main()
  10918. -; return 0; }
  10919. -EOF
  10920. -if { (eval echo configure:5719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10921. - rm -rf conftest*
  10922. - eval "ac_cv_lib_$ac_lib_var=yes"
  10923. -else
  10924. - echo "configure: failed program was:" >&5
  10925. - cat conftest.$ac_ext >&5
  10926. - rm -rf conftest*
  10927. - eval "ac_cv_lib_$ac_lib_var=no"
  10928. -fi
  10929. -rm -f conftest*
  10930. -LIBS="$ac_save_LIBS"
  10931. -fi
  10932. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  10933. - echo "$ac_t""yes" 1>&6
  10934. - ac_tr_lib=HAVE_LIB`echo mpr | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  10935. - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  10936. - cat >> confdefs.h <<EOF
  10937. -#define $ac_tr_lib 1
  10938. -EOF
  10939. +int
  10940. +main ()
  10941. +{
  10942. +main ();
  10943. + ;
  10944. + return 0;
  10945. +}
  10946. +_ACEOF
  10947. +rm -f conftest.$ac_objext conftest$ac_exeext
  10948. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10949. + (eval $ac_link) 2>&5
  10950. + ac_status=$?
  10951. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10952. + (exit $ac_status); } &&
  10953. + { ac_try='test -s conftest$ac_exeext'
  10954. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10955. + (eval $ac_try) 2>&5
  10956. + ac_status=$?
  10957. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10958. + (exit $ac_status); }; }; then
  10959. + ac_cv_lib_mpr_main=yes
  10960. +else
  10961. + echo "$as_me: failed program was:" >&5
  10962. +sed 's/^/| /' conftest.$ac_ext >&5
  10963. +
  10964. +ac_cv_lib_mpr_main=no
  10965. +fi
  10966. +rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  10967. +LIBS=$ac_check_lib_save_LIBS
  10968. +fi
  10969. +echo "$as_me:$LINENO: result: $ac_cv_lib_mpr_main" >&5
  10970. +echo "${ECHO_T}$ac_cv_lib_mpr_main" >&6
  10971. +if test $ac_cv_lib_mpr_main = yes; then
  10972. + cat >>confdefs.h <<_ACEOF
  10973. +#define HAVE_LIBMPR 1
  10974. +_ACEOF
  10975. LIBS="-lmpr $LIBS"
  10976. else
  10977. - echo "$ac_t""no" 1>&6
  10978. - echo "configure: warning: *** Could not find libmpr! Is MPR installed?" 1>&2
  10979. -
  10980. -
  10981. + { echo "$as_me:$LINENO: WARNING: *** Could not find libmpr! Is MPR installed?" >&5
  10982. +echo "$as_me: WARNING: *** Could not find libmpr! Is MPR installed?" >&2;}
  10983. +
  10984. +
  10985. fi
  10986. ;;
  10987. esac
  10988. -
  10989. -fi
  10990. +fi;
  10991. -trap '' 1 2 15
  10992. -cat > confcache <<\EOF
  10993. + 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"
  10994. +cat >confcache <<\_ACEOF
  10995. # This file is a shell script that caches the results of configure
  10996. # tests run on this system so they can be shared between configure
  10997. -# scripts and configure runs. It is not useful on other systems.
  10998. -# If it contains results you don't want to keep, you may remove or edit it.
  10999. +# scripts and configure runs, see configure's option --config-cache.
  11000. +# It is not useful on other systems. If it contains results you don't
  11001. +# want to keep, you may remove or edit it.
  11002. #
  11003. -# By default, configure uses ./config.cache as the cache file,
  11004. -# creating it if it does not exist already. You can give configure
  11005. -# the --cache-file=FILE option to use a different cache file; that is
  11006. -# what configure does when it calls configure scripts in
  11007. -# subdirectories, so they share the cache.
  11008. -# Giving --cache-file=/dev/null disables caching, for debugging configure.
  11009. -# config.status only pays attention to the cache file if you give it the
  11010. -# --recheck option to rerun configure.
  11011. +# config.status only pays attention to the cache file if you give it
  11012. +# the --recheck option to rerun configure.
  11013. #
  11014. -EOF
  11015. +# `ac_cv_env_foo' variables (set or unset) will be overridden when
  11016. +# loading this file, other *unset* `ac_cv_foo' will be assigned the
  11017. +# following values.
  11018. +
  11019. +_ACEOF
  11020. +
  11021. # The following way of writing the cache mishandles newlines in values,
  11022. # but we know of no workaround that is simple, portable, and efficient.
  11023. # So, don't put newlines in cache variables' values.
  11024. # Ultrix sh set writes to stderr and can't be redirected directly,
  11025. # and sets the high bit in the cache file unless we assign to the vars.
  11026. -(set) 2>&1 |
  11027. - case `(ac_space=' '; set | grep ac_space) 2>&1` in
  11028. - *ac_space=\ *)
  11029. - # `set' does not quote correctly, so add quotes (double-quote substitution
  11030. - # turns \\\\ into \\, and sed turns \\ into \).
  11031. - sed -n \
  11032. - -e "s/'/'\\\\''/g" \
  11033. - -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  11034. - ;;
  11035. - *)
  11036. - # `set' quotes correctly as required by POSIX, so do not add quotes.
  11037. - sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  11038. - ;;
  11039. - esac >> confcache
  11040. -if cmp -s $cache_file confcache; then
  11041. - :
  11042. -else
  11043. +{
  11044. + (set) 2>&1 |
  11045. + case `(ac_space=' '; set | grep ac_space) 2>&1` in
  11046. + *ac_space=\ *)
  11047. + # `set' does not quote correctly, so add quotes (double-quote
  11048. + # substitution turns \\\\ into \\, and sed turns \\ into \).
  11049. + sed -n \
  11050. + "s/'/'\\\\''/g;
  11051. + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11052. + ;;
  11053. + *)
  11054. + # `set' quotes correctly as required by POSIX, so do not add quotes.
  11055. + sed -n \
  11056. + "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  11057. + ;;
  11058. + esac;
  11059. +} |
  11060. + sed '
  11061. + t clear
  11062. + : clear
  11063. + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11064. + t end
  11065. + /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11066. + : end' >>confcache
  11067. +if diff $cache_file confcache >/dev/null 2>&1; then :; else
  11068. if test -w $cache_file; then
  11069. - echo "updating cache $cache_file"
  11070. - cat confcache > $cache_file
  11071. + test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  11072. + cat confcache >$cache_file
  11073. else
  11074. echo "not updating unwritable cache $cache_file"
  11075. fi
  11076. fi
  11077. rm -f confcache
  11078. -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  11079. -
  11080. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  11081. # Let make expand exec_prefix.
  11082. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  11083. -# Any assignment to VPATH causes Sun make to only execute
  11084. -# the first set of double-colon rules, so remove it if not needed.
  11085. -# If there is a colon in the path, we need to keep it.
  11086. +# VPATH may cause trouble with some makes, so we remove $(srcdir),
  11087. +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  11088. +# trailing colons and then remove the whole line if VPATH becomes empty
  11089. +# (actually we leave an empty line to preserve line numbers).
  11090. if test "x$srcdir" = x.; then
  11091. - ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
  11092. + ac_vpsub='/^[ ]*VPATH[ ]*=/{
  11093. +s/:*\$(srcdir):*/:/;
  11094. +s/:*\${srcdir}:*/:/;
  11095. +s/:*@srcdir@:*/:/;
  11096. +s/^\([^=]*=[ ]*\):*/\1/;
  11097. +s/:*$//;
  11098. +s/^[^=]*=[ ]*$//;
  11099. +}'
  11100. fi
  11101. -trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  11102. -
  11103. DEFS=-DHAVE_CONFIG_H
  11104. -# Without the "./", some shells look in PATH for config.status.
  11105. -: ${CONFIG_STATUS=./config.status}
  11106. +ac_libobjs=
  11107. +ac_ltlibobjs=
  11108. +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  11109. + # 1. Remove the extension, and $U if already installed.
  11110. + ac_i=`echo "$ac_i" |
  11111. + sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  11112. + # 2. Add them.
  11113. + ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  11114. + ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  11115. +done
  11116. +LIBOBJS=$ac_libobjs
  11117. -echo creating $CONFIG_STATUS
  11118. -rm -f $CONFIG_STATUS
  11119. -cat > $CONFIG_STATUS <<EOF
  11120. -#! /bin/sh
  11121. -# Generated automatically by configure.
  11122. +LTLIBOBJS=$ac_ltlibobjs
  11123. +
  11124. +
  11125. +
  11126. +: ${CONFIG_STATUS=./config.status}
  11127. +ac_clean_files_save=$ac_clean_files
  11128. +ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  11129. +{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  11130. +echo "$as_me: creating $CONFIG_STATUS" >&6;}
  11131. +cat >$CONFIG_STATUS <<_ACEOF
  11132. +#! $SHELL
  11133. +# Generated by $as_me.
  11134. # Run this file to recreate the current configuration.
  11135. -# This directory was configured as follows,
  11136. -# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  11137. -#
  11138. -# $0 $ac_configure_args
  11139. -#
  11140. # Compiler output produced by configure, useful for debugging
  11141. -# configure, is in ./config.log if it exists.
  11142. +# configure, is in config.log if it exists.
  11143. -ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  11144. -for ac_option
  11145. +debug=false
  11146. +ac_cs_recheck=false
  11147. +ac_cs_silent=false
  11148. +SHELL=\${CONFIG_SHELL-$SHELL}
  11149. +_ACEOF
  11150. +
  11151. +cat >>$CONFIG_STATUS <<\_ACEOF
  11152. +## --------------------- ##
  11153. +## M4sh Initialization. ##
  11154. +## --------------------- ##
  11155. +
  11156. +# Be Bourne compatible
  11157. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  11158. + emulate sh
  11159. + NULLCMD=:
  11160. + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  11161. + # is contrary to our usage. Disable this feature.
  11162. + alias -g '${1+"$@"}'='"$@"'
  11163. +elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  11164. + set -o posix
  11165. +fi
  11166. +
  11167. +# Support unset when possible.
  11168. +if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
  11169. + as_unset=unset
  11170. +else
  11171. + as_unset=false
  11172. +fi
  11173. +
  11174. +
  11175. +# Work around bugs in pre-3.0 UWIN ksh.
  11176. +$as_unset ENV MAIL MAILPATH
  11177. +PS1='$ '
  11178. +PS2='> '
  11179. +PS4='+ '
  11180. +
  11181. +# NLS nuisances.
  11182. +for as_var in \
  11183. + LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  11184. + LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  11185. + LC_TELEPHONE LC_TIME
  11186. do
  11187. - case "\$ac_option" in
  11188. - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11189. - echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  11190. - exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  11191. - -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  11192. - echo "$CONFIG_STATUS generated by autoconf version 2.13"
  11193. - exit 0 ;;
  11194. - -help | --help | --hel | --he | --h)
  11195. - echo "\$ac_cs_usage"; exit 0 ;;
  11196. - *) echo "\$ac_cs_usage"; exit 1 ;;
  11197. + if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
  11198. + eval $as_var=C; export $as_var
  11199. + else
  11200. + $as_unset $as_var
  11201. + fi
  11202. +done
  11203. +
  11204. +# Required to use basename.
  11205. +if expr a : '\(a\)' >/dev/null 2>&1; then
  11206. + as_expr=expr
  11207. +else
  11208. + as_expr=false
  11209. +fi
  11210. +
  11211. +if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  11212. + as_basename=basename
  11213. +else
  11214. + as_basename=false
  11215. +fi
  11216. +
  11217. +
  11218. +# Name of the executable.
  11219. +as_me=`$as_basename "$0" ||
  11220. +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  11221. + X"$0" : 'X\(//\)$' \| \
  11222. + X"$0" : 'X\(/\)$' \| \
  11223. + . : '\(.\)' 2>/dev/null ||
  11224. +echo X/"$0" |
  11225. + sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  11226. + /^X\/\(\/\/\)$/{ s//\1/; q; }
  11227. + /^X\/\(\/\).*/{ s//\1/; q; }
  11228. + s/.*/./; q'`
  11229. +
  11230. +
  11231. +# PATH needs CR, and LINENO needs CR and PATH.
  11232. +# Avoid depending upon Character Ranges.
  11233. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  11234. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  11235. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  11236. +as_cr_digits='0123456789'
  11237. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  11238. +
  11239. +# The user is always right.
  11240. +if test "${PATH_SEPARATOR+set}" != set; then
  11241. + echo "#! /bin/sh" >conf$$.sh
  11242. + echo "exit 0" >>conf$$.sh
  11243. + chmod +x conf$$.sh
  11244. + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  11245. + PATH_SEPARATOR=';'
  11246. + else
  11247. + PATH_SEPARATOR=:
  11248. + fi
  11249. + rm -f conf$$.sh
  11250. +fi
  11251. +
  11252. +
  11253. + as_lineno_1=$LINENO
  11254. + as_lineno_2=$LINENO
  11255. + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  11256. + test "x$as_lineno_1" != "x$as_lineno_2" &&
  11257. + test "x$as_lineno_3" = "x$as_lineno_2" || {
  11258. + # Find who we are. Look in the path if we contain no path at all
  11259. + # relative or not.
  11260. + case $0 in
  11261. + *[\\/]* ) as_myself=$0 ;;
  11262. + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11263. +for as_dir in $PATH
  11264. +do
  11265. + IFS=$as_save_IFS
  11266. + test -z "$as_dir" && as_dir=.
  11267. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  11268. +done
  11269. +
  11270. + ;;
  11271. esac
  11272. + # We did not find ourselves, most probably we were run as `sh COMMAND'
  11273. + # in which case we are not to be found in the path.
  11274. + if test "x$as_myself" = x; then
  11275. + as_myself=$0
  11276. + fi
  11277. + if test ! -f "$as_myself"; then
  11278. + { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  11279. +echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  11280. + { (exit 1); exit 1; }; }
  11281. + fi
  11282. + case $CONFIG_SHELL in
  11283. + '')
  11284. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11285. +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  11286. +do
  11287. + IFS=$as_save_IFS
  11288. + test -z "$as_dir" && as_dir=.
  11289. + for as_base in sh bash ksh sh5; do
  11290. + case $as_dir in
  11291. + /*)
  11292. + if ("$as_dir/$as_base" -c '
  11293. + as_lineno_1=$LINENO
  11294. + as_lineno_2=$LINENO
  11295. + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  11296. + test "x$as_lineno_1" != "x$as_lineno_2" &&
  11297. + test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  11298. + $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  11299. + $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  11300. + CONFIG_SHELL=$as_dir/$as_base
  11301. + export CONFIG_SHELL
  11302. + exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  11303. + fi;;
  11304. + esac
  11305. + done
  11306. done
  11307. +;;
  11308. + esac
  11309. -ac_given_srcdir=$srcdir
  11310. -ac_given_INSTALL="$INSTALL"
  11311. -
  11312. -trap 'rm -fr `echo "Makefile \
  11313. - doc/Makefile \
  11314. - m4/Makefile \
  11315. - src/Makefile \
  11316. - src/include/Makefile \
  11317. - src/lib/Makefile \
  11318. - src/test/Makefile \
  11319. - src/debug/Makefile \
  11320. - src/qgen/Makefile \
  11321. - src/saal/Makefile \
  11322. - src/sigd/Makefile \
  11323. - src/maint/Makefile \
  11324. - src/arpd/Makefile \
  11325. - src/ilmid/Makefile \
  11326. - src/ilmid/asn1/Makefile \
  11327. - src/man/Makefile \
  11328. - src/led/Makefile \
  11329. - src/lane/Makefile \
  11330. - src/mpoad/Makefile \
  11331. - src/switch/Makefile \
  11332. - src/switch/debug/Makefile \
  11333. - src/switch/tcp/Makefile \
  11334. - src/config/Makefile \
  11335. - src/config/init-redhat/Makefile \
  11336. - src/extra/Makefile \
  11337. - src/extra/linux-atm.spec \
  11338. - src/extra/ANS/Makefile
  11339. - config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  11340. -EOF
  11341. -cat >> $CONFIG_STATUS <<EOF
  11342. + # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  11343. + # uniformly replaced by the line number. The first 'sed' inserts a
  11344. + # line-number line before each line; the second 'sed' does the real
  11345. + # work. The second script uses 'N' to pair each line-number line
  11346. + # with the numbered line, and appends trailing '-' during
  11347. + # substitution so that $LINENO is not a special case at line end.
  11348. + # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  11349. + # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  11350. + sed '=' <$as_myself |
  11351. + sed '
  11352. + N
  11353. + s,$,-,
  11354. + : loop
  11355. + s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  11356. + t loop
  11357. + s,-$,,
  11358. + s,^['$as_cr_digits']*\n,,
  11359. + ' >$as_me.lineno &&
  11360. + chmod +x $as_me.lineno ||
  11361. + { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  11362. +echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  11363. + { (exit 1); exit 1; }; }
  11364. +
  11365. + # Don't try to exec as it changes $[0], causing all sort of problems
  11366. + # (the dirname of $[0] is not the place where we might find the
  11367. + # original and so on. Autoconf is especially sensible to this).
  11368. + . ./$as_me.lineno
  11369. + # Exit status is that of the last command.
  11370. + exit
  11371. +}
  11372. -# Protect against being on the right side of a sed subst in config.status.
  11373. -sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  11374. - s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  11375. -$ac_vpsub
  11376. -$extrasub
  11377. -s%@SHELL@%$SHELL%g
  11378. -s%@CFLAGS@%$CFLAGS%g
  11379. -s%@CPPFLAGS@%$CPPFLAGS%g
  11380. -s%@CXXFLAGS@%$CXXFLAGS%g
  11381. -s%@FFLAGS@%$FFLAGS%g
  11382. -s%@DEFS@%$DEFS%g
  11383. -s%@LDFLAGS@%$LDFLAGS%g
  11384. -s%@LIBS@%$LIBS%g
  11385. -s%@exec_prefix@%$exec_prefix%g
  11386. -s%@prefix@%$prefix%g
  11387. -s%@program_transform_name@%$program_transform_name%g
  11388. -s%@bindir@%$bindir%g
  11389. -s%@sbindir@%$sbindir%g
  11390. -s%@libexecdir@%$libexecdir%g
  11391. -s%@datadir@%$datadir%g
  11392. -s%@sysconfdir@%$sysconfdir%g
  11393. -s%@sharedstatedir@%$sharedstatedir%g
  11394. -s%@localstatedir@%$localstatedir%g
  11395. -s%@libdir@%$libdir%g
  11396. -s%@includedir@%$includedir%g
  11397. -s%@oldincludedir@%$oldincludedir%g
  11398. -s%@infodir@%$infodir%g
  11399. -s%@mandir@%$mandir%g
  11400. -s%@host@%$host%g
  11401. -s%@host_alias@%$host_alias%g
  11402. -s%@host_cpu@%$host_cpu%g
  11403. -s%@host_vendor@%$host_vendor%g
  11404. -s%@host_os@%$host_os%g
  11405. -s%@target@%$target%g
  11406. -s%@target_alias@%$target_alias%g
  11407. -s%@target_cpu@%$target_cpu%g
  11408. -s%@target_vendor@%$target_vendor%g
  11409. -s%@target_os@%$target_os%g
  11410. -s%@build@%$build%g
  11411. -s%@build_alias@%$build_alias%g
  11412. -s%@build_cpu@%$build_cpu%g
  11413. -s%@build_vendor@%$build_vendor%g
  11414. -s%@build_os@%$build_os%g
  11415. -s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  11416. -s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
  11417. -s%@INSTALL_DATA@%$INSTALL_DATA%g
  11418. -s%@PACKAGE@%$PACKAGE%g
  11419. -s%@VERSION@%$VERSION%g
  11420. -s%@ACLOCAL@%$ACLOCAL%g
  11421. -s%@AUTOCONF@%$AUTOCONF%g
  11422. -s%@AUTOMAKE@%$AUTOMAKE%g
  11423. -s%@AUTOHEADER@%$AUTOHEADER%g
  11424. -s%@MAKEINFO@%$MAKEINFO%g
  11425. -s%@SET_MAKE@%$SET_MAKE%g
  11426. -s%@LIBVER_CURRENT@%$LIBVER_CURRENT%g
  11427. -s%@LIBVER_REVISION@%$LIBVER_REVISION%g
  11428. -s%@LIBVER_AGE@%$LIBVER_AGE%g
  11429. -s%@CC@%$CC%g
  11430. -s%@LEX@%$LEX%g
  11431. -s%@LEXLIB@%$LEXLIB%g
  11432. -s%@CPP@%$CPP%g
  11433. -s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
  11434. -s%@YACC@%$YACC%g
  11435. -s%@LN_S@%$LN_S%g
  11436. -s%@OBJEXT@%$OBJEXT%g
  11437. -s%@EXEEXT@%$EXEEXT%g
  11438. -s%@ECHO@%$ECHO%g
  11439. -s%@RANLIB@%$RANLIB%g
  11440. -s%@STRIP@%$STRIP%g
  11441. -s%@LIBTOOL@%$LIBTOOL%g
  11442. -s%@LIBTOOL_DEPS@%$LIBTOOL_DEPS%g
  11443. -s%@PERL@%$PERL%g
  11444. -CEOF
  11445. -EOF
  11446. +case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  11447. + *c*,-n*) ECHO_N= ECHO_C='
  11448. +' ECHO_T=' ' ;;
  11449. + *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  11450. + *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  11451. +esac
  11452. -cat >> $CONFIG_STATUS <<\EOF
  11453. +if expr a : '\(a\)' >/dev/null 2>&1; then
  11454. + as_expr=expr
  11455. +else
  11456. + as_expr=false
  11457. +fi
  11458. -# Split the substitutions into bite-sized pieces for seds with
  11459. -# small command number limits, like on Digital OSF/1 and HP-UX.
  11460. -ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  11461. -ac_file=1 # Number of current file.
  11462. -ac_beg=1 # First line for current file.
  11463. -ac_end=$ac_max_sed_cmds # Line after last line for current file.
  11464. -ac_more_lines=:
  11465. -ac_sed_cmds=""
  11466. -while $ac_more_lines; do
  11467. - if test $ac_beg -gt 1; then
  11468. - sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  11469. - else
  11470. - sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  11471. - fi
  11472. - if test ! -s conftest.s$ac_file; then
  11473. - ac_more_lines=false
  11474. - rm -f conftest.s$ac_file
  11475. +rm -f conf$$ conf$$.exe conf$$.file
  11476. +echo >conf$$.file
  11477. +if ln -s conf$$.file conf$$ 2>/dev/null; then
  11478. + # We could just check for DJGPP; but this test a) works b) is more generic
  11479. + # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  11480. + if test -f conf$$.exe; then
  11481. + # Don't use ln at all; we don't have any links
  11482. + as_ln_s='cp -p'
  11483. else
  11484. - if test -z "$ac_sed_cmds"; then
  11485. - ac_sed_cmds="sed -f conftest.s$ac_file"
  11486. - else
  11487. - ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  11488. - fi
  11489. - ac_file=`expr $ac_file + 1`
  11490. - ac_beg=$ac_end
  11491. - ac_end=`expr $ac_end + $ac_max_sed_cmds`
  11492. + as_ln_s='ln -s'
  11493. fi
  11494. +elif ln conf$$.file conf$$ 2>/dev/null; then
  11495. + as_ln_s=ln
  11496. +else
  11497. + as_ln_s='cp -p'
  11498. +fi
  11499. +rm -f conf$$ conf$$.exe conf$$.file
  11500. +
  11501. +if mkdir -p . 2>/dev/null; then
  11502. + as_mkdir_p=:
  11503. +else
  11504. + as_mkdir_p=false
  11505. +fi
  11506. +
  11507. +as_executable_p="test -f"
  11508. +
  11509. +# Sed expression to map a string onto a valid CPP name.
  11510. +as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
  11511. +
  11512. +# Sed expression to map a string onto a valid variable name.
  11513. +as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
  11514. +
  11515. +
  11516. +# IFS
  11517. +# We need space, tab and new line, in precisely that order.
  11518. +as_nl='
  11519. +'
  11520. +IFS=" $as_nl"
  11521. +
  11522. +# CDPATH.
  11523. +$as_unset CDPATH
  11524. +
  11525. +exec 6>&1
  11526. +
  11527. +# Open the log real soon, to keep \$[0] and so on meaningful, and to
  11528. +# report actual input values of CONFIG_FILES etc. instead of their
  11529. +# values after options handling. Logging --version etc. is OK.
  11530. +exec 5>>config.log
  11531. +{
  11532. + echo
  11533. + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  11534. +## Running $as_me. ##
  11535. +_ASBOX
  11536. +} >&5
  11537. +cat >&5 <<_CSEOF
  11538. +
  11539. +This file was extended by $as_me, which was
  11540. +generated by GNU Autoconf 2.57. Invocation command line was
  11541. +
  11542. + CONFIG_FILES = $CONFIG_FILES
  11543. + CONFIG_HEADERS = $CONFIG_HEADERS
  11544. + CONFIG_LINKS = $CONFIG_LINKS
  11545. + CONFIG_COMMANDS = $CONFIG_COMMANDS
  11546. + $ $0 $@
  11547. +
  11548. +_CSEOF
  11549. +echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  11550. +echo >&5
  11551. +_ACEOF
  11552. +
  11553. +# Files that config.status was made for.
  11554. +if test -n "$ac_config_files"; then
  11555. + echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  11556. +fi
  11557. +
  11558. +if test -n "$ac_config_headers"; then
  11559. + echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  11560. +fi
  11561. +
  11562. +if test -n "$ac_config_links"; then
  11563. + echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  11564. +fi
  11565. +
  11566. +if test -n "$ac_config_commands"; then
  11567. + echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  11568. +fi
  11569. +
  11570. +cat >>$CONFIG_STATUS <<\_ACEOF
  11571. +
  11572. +ac_cs_usage="\
  11573. +\`$as_me' instantiates files from templates according to the
  11574. +current configuration.
  11575. +
  11576. +Usage: $0 [OPTIONS] [FILE]...
  11577. +
  11578. + -h, --help print this help, then exit
  11579. + -V, --version print version number, then exit
  11580. + -q, --quiet do not print progress messages
  11581. + -d, --debug don't remove temporary files
  11582. + --recheck update $as_me by reconfiguring in the same conditions
  11583. + --file=FILE[:TEMPLATE]
  11584. + instantiate the configuration file FILE
  11585. + --header=FILE[:TEMPLATE]
  11586. + instantiate the configuration header FILE
  11587. +
  11588. +Configuration files:
  11589. +$config_files
  11590. +
  11591. +Configuration headers:
  11592. +$config_headers
  11593. +
  11594. +Configuration commands:
  11595. +$config_commands
  11596. +
  11597. +Report bugs to <bug-autoconf@gnu.org>."
  11598. +_ACEOF
  11599. +
  11600. +cat >>$CONFIG_STATUS <<_ACEOF
  11601. +ac_cs_version="\\
  11602. +config.status
  11603. +configured by $0, generated by GNU Autoconf 2.57,
  11604. + with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  11605. +
  11606. +Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
  11607. +Free Software Foundation, Inc.
  11608. +This config.status script is free software; the Free Software Foundation
  11609. +gives unlimited permission to copy, distribute and modify it."
  11610. +srcdir=$srcdir
  11611. +INSTALL="$INSTALL"
  11612. +_ACEOF
  11613. +
  11614. +cat >>$CONFIG_STATUS <<\_ACEOF
  11615. +# If no file are specified by the user, then we need to provide default
  11616. +# value. By we need to know if files were specified by the user.
  11617. +ac_need_defaults=:
  11618. +while test $# != 0
  11619. +do
  11620. + case $1 in
  11621. + --*=*)
  11622. + ac_option=`expr "x$1" : 'x\([^=]*\)='`
  11623. + ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  11624. + ac_shift=:
  11625. + ;;
  11626. + -*)
  11627. + ac_option=$1
  11628. + ac_optarg=$2
  11629. + ac_shift=shift
  11630. + ;;
  11631. + *) # This is not an option, so the user has probably given explicit
  11632. + # arguments.
  11633. + ac_option=$1
  11634. + ac_need_defaults=false;;
  11635. + esac
  11636. +
  11637. + case $ac_option in
  11638. + # Handling of the options.
  11639. +_ACEOF
  11640. +cat >>$CONFIG_STATUS <<\_ACEOF
  11641. + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11642. + ac_cs_recheck=: ;;
  11643. + --version | --vers* | -V )
  11644. + echo "$ac_cs_version"; exit 0 ;;
  11645. + --he | --h)
  11646. + # Conflict between --help and --header
  11647. + { { echo "$as_me:$LINENO: error: ambiguous option: $1
  11648. +Try \`$0 --help' for more information." >&5
  11649. +echo "$as_me: error: ambiguous option: $1
  11650. +Try \`$0 --help' for more information." >&2;}
  11651. + { (exit 1); exit 1; }; };;
  11652. + --help | --hel | -h )
  11653. + echo "$ac_cs_usage"; exit 0 ;;
  11654. + --debug | --d* | -d )
  11655. + debug=: ;;
  11656. + --file | --fil | --fi | --f )
  11657. + $ac_shift
  11658. + CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  11659. + ac_need_defaults=false;;
  11660. + --header | --heade | --head | --hea )
  11661. + $ac_shift
  11662. + CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  11663. + ac_need_defaults=false;;
  11664. + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  11665. + | -silent | --silent | --silen | --sile | --sil | --si | --s)
  11666. + ac_cs_silent=: ;;
  11667. +
  11668. + # This is an error.
  11669. + -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  11670. +Try \`$0 --help' for more information." >&5
  11671. +echo "$as_me: error: unrecognized option: $1
  11672. +Try \`$0 --help' for more information." >&2;}
  11673. + { (exit 1); exit 1; }; } ;;
  11674. +
  11675. + *) ac_config_targets="$ac_config_targets $1" ;;
  11676. +
  11677. + esac
  11678. + shift
  11679. +done
  11680. +
  11681. +ac_configure_extra_args=
  11682. +
  11683. +if $ac_cs_silent; then
  11684. + exec 6>/dev/null
  11685. + ac_configure_extra_args="$ac_configure_extra_args --silent"
  11686. +fi
  11687. +
  11688. +_ACEOF
  11689. +cat >>$CONFIG_STATUS <<_ACEOF
  11690. +if \$ac_cs_recheck; then
  11691. + echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  11692. + exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  11693. +fi
  11694. +
  11695. +_ACEOF
  11696. +
  11697. +cat >>$CONFIG_STATUS <<_ACEOF
  11698. +#
  11699. +# INIT-COMMANDS section.
  11700. +#
  11701. +
  11702. +
  11703. +
  11704. +_ACEOF
  11705. +
  11706. +
  11707. +
  11708. +cat >>$CONFIG_STATUS <<\_ACEOF
  11709. +for ac_config_target in $ac_config_targets
  11710. +do
  11711. + case "$ac_config_target" in
  11712. + # Handling of arguments.
  11713. + "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  11714. + "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  11715. + "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
  11716. + "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  11717. + "src/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
  11718. + "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
  11719. + "src/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/test/Makefile" ;;
  11720. + "src/debug/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/debug/Makefile" ;;
  11721. + "src/qgen/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/qgen/Makefile" ;;
  11722. + "src/saal/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/saal/Makefile" ;;
  11723. + "src/sigd/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/sigd/Makefile" ;;
  11724. + "src/maint/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/maint/Makefile" ;;
  11725. + "src/arpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/arpd/Makefile" ;;
  11726. + "src/ilmid/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/ilmid/Makefile" ;;
  11727. + "src/ilmid/asn1/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/ilmid/asn1/Makefile" ;;
  11728. + "src/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/man/Makefile" ;;
  11729. + "src/led/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/led/Makefile" ;;
  11730. + "src/lane/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lane/Makefile" ;;
  11731. + "src/mpoad/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/mpoad/Makefile" ;;
  11732. + "src/switch/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/switch/Makefile" ;;
  11733. + "src/switch/debug/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/switch/debug/Makefile" ;;
  11734. + "src/switch/tcp/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/switch/tcp/Makefile" ;;
  11735. + "src/config/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/config/Makefile" ;;
  11736. + "src/config/init-redhat/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/config/init-redhat/Makefile" ;;
  11737. + "src/extra/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/extra/Makefile" ;;
  11738. + "src/extra/linux-atm.spec" ) CONFIG_FILES="$CONFIG_FILES src/extra/linux-atm.spec" ;;
  11739. + "src/extra/ANS/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/extra/ANS/Makefile" ;;
  11740. + "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  11741. + "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  11742. + *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  11743. +echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  11744. + { (exit 1); exit 1; }; };;
  11745. + esac
  11746. done
  11747. -if test -z "$ac_sed_cmds"; then
  11748. - ac_sed_cmds=cat
  11749. +
  11750. +# If the user did not use the arguments to specify the items to instantiate,
  11751. +# then the envvar interface is used. Set only those that are not.
  11752. +# We use the long form for the default assignment because of an extremely
  11753. +# bizarre bug on SunOS 4.1.3.
  11754. +if $ac_need_defaults; then
  11755. + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  11756. + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  11757. + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  11758. fi
  11759. -EOF
  11760. -cat >> $CONFIG_STATUS <<EOF
  11761. +# Have a temporary directory for convenience. Make it in the build tree
  11762. +# simply because there is no reason to put it here, and in addition,
  11763. +# creating and moving files from /tmp can sometimes cause problems.
  11764. +# Create a temporary directory, and hook for its removal unless debugging.
  11765. +$debug ||
  11766. +{
  11767. + trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  11768. + trap '{ (exit 1); exit 1; }' 1 2 13 15
  11769. +}
  11770. -CONFIG_FILES=\${CONFIG_FILES-"Makefile \
  11771. - doc/Makefile \
  11772. - m4/Makefile \
  11773. - src/Makefile \
  11774. - src/include/Makefile \
  11775. - src/lib/Makefile \
  11776. - src/test/Makefile \
  11777. - src/debug/Makefile \
  11778. - src/qgen/Makefile \
  11779. - src/saal/Makefile \
  11780. - src/sigd/Makefile \
  11781. - src/maint/Makefile \
  11782. - src/arpd/Makefile \
  11783. - src/ilmid/Makefile \
  11784. - src/ilmid/asn1/Makefile \
  11785. - src/man/Makefile \
  11786. - src/led/Makefile \
  11787. - src/lane/Makefile \
  11788. - src/mpoad/Makefile \
  11789. - src/switch/Makefile \
  11790. - src/switch/debug/Makefile \
  11791. - src/switch/tcp/Makefile \
  11792. - src/config/Makefile \
  11793. - src/config/init-redhat/Makefile \
  11794. - src/extra/Makefile \
  11795. - src/extra/linux-atm.spec \
  11796. - src/extra/ANS/Makefile
  11797. - "}
  11798. -EOF
  11799. -cat >> $CONFIG_STATUS <<\EOF
  11800. -for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  11801. +# Create a (secure) tmp directory for tmp files.
  11802. +
  11803. +{
  11804. + tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  11805. + test -n "$tmp" && test -d "$tmp"
  11806. +} ||
  11807. +{
  11808. + tmp=./confstat$$-$RANDOM
  11809. + (umask 077 && mkdir $tmp)
  11810. +} ||
  11811. +{
  11812. + echo "$me: cannot create a temporary directory in ." >&2
  11813. + { (exit 1); exit 1; }
  11814. +}
  11815. +
  11816. +_ACEOF
  11817. +
  11818. +cat >>$CONFIG_STATUS <<_ACEOF
  11819. +
  11820. +#
  11821. +# CONFIG_FILES section.
  11822. +#
  11823. +
  11824. +# No need to generate the scripts if there are no CONFIG_FILES.
  11825. +# This happens for instance when ./config.status config.h
  11826. +if test -n "\$CONFIG_FILES"; then
  11827. + # Protect against being on the right side of a sed subst in config.status.
  11828. + sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  11829. + s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  11830. +s,@SHELL@,$SHELL,;t t
  11831. +s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  11832. +s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  11833. +s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  11834. +s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  11835. +s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  11836. +s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  11837. +s,@exec_prefix@,$exec_prefix,;t t
  11838. +s,@prefix@,$prefix,;t t
  11839. +s,@program_transform_name@,$program_transform_name,;t t
  11840. +s,@bindir@,$bindir,;t t
  11841. +s,@sbindir@,$sbindir,;t t
  11842. +s,@libexecdir@,$libexecdir,;t t
  11843. +s,@datadir@,$datadir,;t t
  11844. +s,@sysconfdir@,$sysconfdir,;t t
  11845. +s,@sharedstatedir@,$sharedstatedir,;t t
  11846. +s,@localstatedir@,$localstatedir,;t t
  11847. +s,@libdir@,$libdir,;t t
  11848. +s,@includedir@,$includedir,;t t
  11849. +s,@oldincludedir@,$oldincludedir,;t t
  11850. +s,@infodir@,$infodir,;t t
  11851. +s,@mandir@,$mandir,;t t
  11852. +s,@build_alias@,$build_alias,;t t
  11853. +s,@host_alias@,$host_alias,;t t
  11854. +s,@target_alias@,$target_alias,;t t
  11855. +s,@DEFS@,$DEFS,;t t
  11856. +s,@ECHO_C@,$ECHO_C,;t t
  11857. +s,@ECHO_N@,$ECHO_N,;t t
  11858. +s,@ECHO_T@,$ECHO_T,;t t
  11859. +s,@LIBS@,$LIBS,;t t
  11860. +s,@build@,$build,;t t
  11861. +s,@build_cpu@,$build_cpu,;t t
  11862. +s,@build_vendor@,$build_vendor,;t t
  11863. +s,@build_os@,$build_os,;t t
  11864. +s,@host@,$host,;t t
  11865. +s,@host_cpu@,$host_cpu,;t t
  11866. +s,@host_vendor@,$host_vendor,;t t
  11867. +s,@host_os@,$host_os,;t t
  11868. +s,@target@,$target,;t t
  11869. +s,@target_cpu@,$target_cpu,;t t
  11870. +s,@target_vendor@,$target_vendor,;t t
  11871. +s,@target_os@,$target_os,;t t
  11872. +s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  11873. +s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  11874. +s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  11875. +s,@PACKAGE@,$PACKAGE,;t t
  11876. +s,@VERSION@,$VERSION,;t t
  11877. +s,@ACLOCAL@,$ACLOCAL,;t t
  11878. +s,@AUTOCONF@,$AUTOCONF,;t t
  11879. +s,@AUTOMAKE@,$AUTOMAKE,;t t
  11880. +s,@AUTOHEADER@,$AUTOHEADER,;t t
  11881. +s,@MAKEINFO@,$MAKEINFO,;t t
  11882. +s,@SET_MAKE@,$SET_MAKE,;t t
  11883. +s,@LIBVER_CURRENT@,$LIBVER_CURRENT,;t t
  11884. +s,@LIBVER_REVISION@,$LIBVER_REVISION,;t t
  11885. +s,@LIBVER_AGE@,$LIBVER_AGE,;t t
  11886. +s,@CC@,$CC,;t t
  11887. +s,@CFLAGS@,$CFLAGS,;t t
  11888. +s,@LDFLAGS@,$LDFLAGS,;t t
  11889. +s,@CPPFLAGS@,$CPPFLAGS,;t t
  11890. +s,@ac_ct_CC@,$ac_ct_CC,;t t
  11891. +s,@EXEEXT@,$EXEEXT,;t t
  11892. +s,@OBJEXT@,$OBJEXT,;t t
  11893. +s,@LEX@,$LEX,;t t
  11894. +s,@LEXLIB@,$LEXLIB,;t t
  11895. +s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
  11896. +s,@YACC@,$YACC,;t t
  11897. +s,@LN_S@,$LN_S,;t t
  11898. +s,@ECHO@,$ECHO,;t t
  11899. +s,@RANLIB@,$RANLIB,;t t
  11900. +s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
  11901. +s,@STRIP@,$STRIP,;t t
  11902. +s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
  11903. +s,@CPP@,$CPP,;t t
  11904. +s,@EGREP@,$EGREP,;t t
  11905. +s,@LIBTOOL@,$LIBTOOL,;t t
  11906. +s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
  11907. +s,@PERL@,$PERL,;t t
  11908. +s,@LIBOBJS@,$LIBOBJS,;t t
  11909. +s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  11910. +CEOF
  11911. +
  11912. +_ACEOF
  11913. +
  11914. + cat >>$CONFIG_STATUS <<\_ACEOF
  11915. + # Split the substitutions into bite-sized pieces for seds with
  11916. + # small command number limits, like on Digital OSF/1 and HP-UX.
  11917. + ac_max_sed_lines=48
  11918. + ac_sed_frag=1 # Number of current file.
  11919. + ac_beg=1 # First line for current file.
  11920. + ac_end=$ac_max_sed_lines # Line after last line for current file.
  11921. + ac_more_lines=:
  11922. + ac_sed_cmds=
  11923. + while $ac_more_lines; do
  11924. + if test $ac_beg -gt 1; then
  11925. + sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  11926. + else
  11927. + sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  11928. + fi
  11929. + if test ! -s $tmp/subs.frag; then
  11930. + ac_more_lines=false
  11931. + else
  11932. + # The purpose of the label and of the branching condition is to
  11933. + # speed up the sed processing (if there are no `@' at all, there
  11934. + # is no need to browse any of the substitutions).
  11935. + # These are the two extra sed commands mentioned above.
  11936. + (echo ':t
  11937. + /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  11938. + if test -z "$ac_sed_cmds"; then
  11939. + ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  11940. + else
  11941. + ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  11942. + fi
  11943. + ac_sed_frag=`expr $ac_sed_frag + 1`
  11944. + ac_beg=$ac_end
  11945. + ac_end=`expr $ac_end + $ac_max_sed_lines`
  11946. + fi
  11947. + done
  11948. + if test -z "$ac_sed_cmds"; then
  11949. + ac_sed_cmds=cat
  11950. + fi
  11951. +fi # test -n "$CONFIG_FILES"
  11952. +
  11953. +_ACEOF
  11954. +cat >>$CONFIG_STATUS <<\_ACEOF
  11955. +for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  11956. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11957. - case "$ac_file" in
  11958. - *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  11959. - ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  11960. - *) ac_file_in="${ac_file}.in" ;;
  11961. - esac
  11962. -
  11963. - # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  11964. -
  11965. - # Remove last slash and all that follows it. Not all systems have dirname.
  11966. - ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  11967. - if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  11968. - # The file is in a subdirectory.
  11969. - test ! -d "$ac_dir" && mkdir "$ac_dir"
  11970. - ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  11971. - # A "../" for each directory in $ac_dir_suffix.
  11972. - ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  11973. - else
  11974. - ac_dir_suffix= ac_dots=
  11975. - fi
  11976. -
  11977. - case "$ac_given_srcdir" in
  11978. - .) srcdir=.
  11979. - if test -z "$ac_dots"; then top_srcdir=.
  11980. - else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  11981. - /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  11982. + case $ac_file in
  11983. + - | *:- | *:-:* ) # input from stdin
  11984. + cat >$tmp/stdin
  11985. + ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11986. + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11987. + *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11988. + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11989. + * ) ac_file_in=$ac_file.in ;;
  11990. + esac
  11991. +
  11992. + # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  11993. + ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  11994. +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11995. + X"$ac_file" : 'X\(//\)[^/]' \| \
  11996. + X"$ac_file" : 'X\(//\)$' \| \
  11997. + X"$ac_file" : 'X\(/\)' \| \
  11998. + . : '\(.\)' 2>/dev/null ||
  11999. +echo X"$ac_file" |
  12000. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  12001. + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  12002. + /^X\(\/\/\)$/{ s//\1/; q; }
  12003. + /^X\(\/\).*/{ s//\1/; q; }
  12004. + s/.*/./; q'`
  12005. + { if $as_mkdir_p; then
  12006. + mkdir -p "$ac_dir"
  12007. + else
  12008. + as_dir="$ac_dir"
  12009. + as_dirs=
  12010. + while test ! -d "$as_dir"; do
  12011. + as_dirs="$as_dir $as_dirs"
  12012. + as_dir=`(dirname "$as_dir") 2>/dev/null ||
  12013. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12014. + X"$as_dir" : 'X\(//\)[^/]' \| \
  12015. + X"$as_dir" : 'X\(//\)$' \| \
  12016. + X"$as_dir" : 'X\(/\)' \| \
  12017. + . : '\(.\)' 2>/dev/null ||
  12018. +echo X"$as_dir" |
  12019. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  12020. + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  12021. + /^X\(\/\/\)$/{ s//\1/; q; }
  12022. + /^X\(\/\).*/{ s//\1/; q; }
  12023. + s/.*/./; q'`
  12024. + done
  12025. + test ! -n "$as_dirs" || mkdir $as_dirs
  12026. + fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  12027. +echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  12028. + { (exit 1); exit 1; }; }; }
  12029. +
  12030. + ac_builddir=.
  12031. +
  12032. +if test "$ac_dir" != .; then
  12033. + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  12034. + # A "../" for each directory in $ac_dir_suffix.
  12035. + ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  12036. +else
  12037. + ac_dir_suffix= ac_top_builddir=
  12038. +fi
  12039. +
  12040. +case $srcdir in
  12041. + .) # No --srcdir option. We are building in place.
  12042. + ac_srcdir=.
  12043. + if test -z "$ac_top_builddir"; then
  12044. + ac_top_srcdir=.
  12045. + else
  12046. + ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  12047. + fi ;;
  12048. + [\\/]* | ?:[\\/]* ) # Absolute path.
  12049. + ac_srcdir=$srcdir$ac_dir_suffix;
  12050. + ac_top_srcdir=$srcdir ;;
  12051. *) # Relative path.
  12052. - srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  12053. - top_srcdir="$ac_dots$ac_given_srcdir" ;;
  12054. + ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  12055. + ac_top_srcdir=$ac_top_builddir$srcdir ;;
  12056. +esac
  12057. +# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
  12058. +# absolute.
  12059. +ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
  12060. +ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
  12061. +ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
  12062. +ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
  12063. +
  12064. +
  12065. + case $INSTALL in
  12066. + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  12067. + *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  12068. esac
  12069. - case "$ac_given_INSTALL" in
  12070. - [/$]*) INSTALL="$ac_given_INSTALL" ;;
  12071. - *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  12072. - esac
  12073. -
  12074. - echo creating "$ac_file"
  12075. - rm -f "$ac_file"
  12076. - configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  12077. - case "$ac_file" in
  12078. - *Makefile*) ac_comsub="1i\\
  12079. -# $configure_input" ;;
  12080. - *) ac_comsub= ;;
  12081. - esac
  12082. -
  12083. - ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  12084. - sed -e "$ac_comsub
  12085. -s%@configure_input@%$configure_input%g
  12086. -s%@srcdir@%$srcdir%g
  12087. -s%@top_srcdir@%$top_srcdir%g
  12088. -s%@INSTALL@%$INSTALL%g
  12089. -" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  12090. -fi; done
  12091. -rm -f conftest.s*
  12092. + if test x"$ac_file" != x-; then
  12093. + { echo "$as_me:$LINENO: creating $ac_file" >&5
  12094. +echo "$as_me: creating $ac_file" >&6;}
  12095. + rm -f "$ac_file"
  12096. + fi
  12097. + # Let's still pretend it is `configure' which instantiates (i.e., don't
  12098. + # use $as_me), people would be surprised to read:
  12099. + # /* config.h. Generated by config.status. */
  12100. + if test x"$ac_file" = x-; then
  12101. + configure_input=
  12102. + else
  12103. + configure_input="$ac_file. "
  12104. + fi
  12105. + configure_input=$configure_input"Generated from `echo $ac_file_in |
  12106. + sed 's,.*/,,'` by configure."
  12107. +
  12108. + # First look for the input files in the build tree, otherwise in the
  12109. + # src tree.
  12110. + ac_file_inputs=`IFS=:
  12111. + for f in $ac_file_in; do
  12112. + case $f in
  12113. + -) echo $tmp/stdin ;;
  12114. + [\\/$]*)
  12115. + # Absolute (can't be DOS-style, as IFS=:)
  12116. + test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  12117. +echo "$as_me: error: cannot find input file: $f" >&2;}
  12118. + { (exit 1); exit 1; }; }
  12119. + echo $f;;
  12120. + *) # Relative
  12121. + if test -f "$f"; then
  12122. + # Build tree
  12123. + echo $f
  12124. + elif test -f "$srcdir/$f"; then
  12125. + # Source tree
  12126. + echo $srcdir/$f
  12127. + else
  12128. + # /dev/null tree
  12129. + { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  12130. +echo "$as_me: error: cannot find input file: $f" >&2;}
  12131. + { (exit 1); exit 1; }; }
  12132. + fi;;
  12133. + esac
  12134. + done` || { (exit 1); exit 1; }
  12135. +_ACEOF
  12136. +cat >>$CONFIG_STATUS <<_ACEOF
  12137. + sed "$ac_vpsub
  12138. +$extrasub
  12139. +_ACEOF
  12140. +cat >>$CONFIG_STATUS <<\_ACEOF
  12141. +:t
  12142. +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  12143. +s,@configure_input@,$configure_input,;t t
  12144. +s,@srcdir@,$ac_srcdir,;t t
  12145. +s,@abs_srcdir@,$ac_abs_srcdir,;t t
  12146. +s,@top_srcdir@,$ac_top_srcdir,;t t
  12147. +s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  12148. +s,@builddir@,$ac_builddir,;t t
  12149. +s,@abs_builddir@,$ac_abs_builddir,;t t
  12150. +s,@top_builddir@,$ac_top_builddir,;t t
  12151. +s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  12152. +s,@INSTALL@,$ac_INSTALL,;t t
  12153. +" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  12154. + rm -f $tmp/stdin
  12155. + if test x"$ac_file" != x-; then
  12156. + mv $tmp/out $ac_file
  12157. + else
  12158. + cat $tmp/out
  12159. + rm -f $tmp/out
  12160. + fi
  12161. +
  12162. +done
  12163. +_ACEOF
  12164. +cat >>$CONFIG_STATUS <<\_ACEOF
  12165. +
  12166. +#
  12167. +# CONFIG_HEADER section.
  12168. +#
  12169. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  12170. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  12171. #
  12172. # ac_d sets the value in "#define NAME VALUE" lines.
  12173. -ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  12174. -ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
  12175. -ac_dC='\3'
  12176. -ac_dD='%g'
  12177. -# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  12178. -ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  12179. -ac_uB='\([ ]\)%\1#\2define\3'
  12180. +ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  12181. +ac_dB='[ ].*$,\1#\2'
  12182. +ac_dC=' '
  12183. +ac_dD=',;t'
  12184. +# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  12185. +ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  12186. +ac_uB='$,\1#\2define\3'
  12187. ac_uC=' '
  12188. -ac_uD='\4%g'
  12189. -# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  12190. -ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  12191. -ac_eB='$%\1#\2define\3'
  12192. -ac_eC=' '
  12193. -ac_eD='%g'
  12194. +ac_uD=',;t'
  12195. -if test "${CONFIG_HEADERS+set}" != set; then
  12196. -EOF
  12197. -cat >> $CONFIG_STATUS <<EOF
  12198. - CONFIG_HEADERS="config.h"
  12199. -EOF
  12200. -cat >> $CONFIG_STATUS <<\EOF
  12201. -fi
  12202. -for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  12203. +for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  12204. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  12205. - case "$ac_file" in
  12206. - *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  12207. - ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  12208. - *) ac_file_in="${ac_file}.in" ;;
  12209. + case $ac_file in
  12210. + - | *:- | *:-:* ) # input from stdin
  12211. + cat >$tmp/stdin
  12212. + ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  12213. + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  12214. + *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  12215. + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  12216. + * ) ac_file_in=$ac_file.in ;;
  12217. esac
  12218. - echo creating $ac_file
  12219. -
  12220. - rm -f conftest.frag conftest.in conftest.out
  12221. - ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  12222. - cat $ac_file_inputs > conftest.in
  12223. -
  12224. -EOF
  12225. + test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  12226. +echo "$as_me: creating $ac_file" >&6;}
  12227. -# Transform confdefs.h into a sed script conftest.vals that substitutes
  12228. -# the proper values into config.h.in to produce config.h. And first:
  12229. -# Protect against being on the right side of a sed subst in config.status.
  12230. -# Protect against being in an unquoted here document in config.status.
  12231. -rm -f conftest.vals
  12232. -cat > conftest.hdr <<\EOF
  12233. -s/[\\&%]/\\&/g
  12234. -s%[\\$`]%\\&%g
  12235. -s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  12236. -s%ac_d%ac_u%gp
  12237. -s%ac_u%ac_e%gp
  12238. -EOF
  12239. -sed -n -f conftest.hdr confdefs.h > conftest.vals
  12240. -rm -f conftest.hdr
  12241. + # First look for the input files in the build tree, otherwise in the
  12242. + # src tree.
  12243. + ac_file_inputs=`IFS=:
  12244. + for f in $ac_file_in; do
  12245. + case $f in
  12246. + -) echo $tmp/stdin ;;
  12247. + [\\/$]*)
  12248. + # Absolute (can't be DOS-style, as IFS=:)
  12249. + test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  12250. +echo "$as_me: error: cannot find input file: $f" >&2;}
  12251. + { (exit 1); exit 1; }; }
  12252. + echo $f;;
  12253. + *) # Relative
  12254. + if test -f "$f"; then
  12255. + # Build tree
  12256. + echo $f
  12257. + elif test -f "$srcdir/$f"; then
  12258. + # Source tree
  12259. + echo $srcdir/$f
  12260. + else
  12261. + # /dev/null tree
  12262. + { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  12263. +echo "$as_me: error: cannot find input file: $f" >&2;}
  12264. + { (exit 1); exit 1; }; }
  12265. + fi;;
  12266. + esac
  12267. + done` || { (exit 1); exit 1; }
  12268. + # Remove the trailing spaces.
  12269. + sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  12270. +
  12271. +_ACEOF
  12272. +
  12273. +# Transform confdefs.h into two sed scripts, `conftest.defines' and
  12274. +# `conftest.undefs', that substitutes the proper values into
  12275. +# config.h.in to produce config.h. The first handles `#define'
  12276. +# templates, and the second `#undef' templates.
  12277. +# And first: Protect against being on the right side of a sed subst in
  12278. +# config.status. Protect against being in an unquoted here document
  12279. +# in config.status.
  12280. +rm -f conftest.defines conftest.undefs
  12281. +# Using a here document instead of a string reduces the quoting nightmare.
  12282. +# Putting comments in sed scripts is not portable.
  12283. +#
  12284. +# `end' is used to avoid that the second main sed command (meant for
  12285. +# 0-ary CPP macros) applies to n-ary macro definitions.
  12286. +# See the Autoconf documentation for `clear'.
  12287. +cat >confdef2sed.sed <<\_ACEOF
  12288. +s/[\\&,]/\\&/g
  12289. +s,[\\$`],\\&,g
  12290. +t clear
  12291. +: clear
  12292. +s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  12293. +t end
  12294. +s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  12295. +: end
  12296. +_ACEOF
  12297. +# If some macros were called several times there might be several times
  12298. +# the same #defines, which is useless. Nevertheless, we may not want to
  12299. +# sort them, since we want the *last* AC-DEFINE to be honored.
  12300. +uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  12301. +sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  12302. +rm -f confdef2sed.sed
  12303. # This sed command replaces #undef with comments. This is necessary, for
  12304. # example, in the case of _POSIX_SOURCE, which is predefined and required
  12305. # on some systems where configure will not decide to define it.
  12306. -cat >> conftest.vals <<\EOF
  12307. -s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  12308. -EOF
  12309. -
  12310. -# Break up conftest.vals because some shells have a limit on
  12311. -# the size of here documents, and old seds have small limits too.
  12312. -
  12313. +cat >>conftest.undefs <<\_ACEOF
  12314. +s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  12315. +_ACEOF
  12316. +
  12317. +# Break up conftest.defines because some shells have a limit on the size
  12318. +# of here documents, and old seds have small limits too (100 cmds).
  12319. +echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  12320. +echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  12321. +echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  12322. +echo ' :' >>$CONFIG_STATUS
  12323. +rm -f conftest.tail
  12324. +while grep . conftest.defines >/dev/null
  12325. +do
  12326. + # Write a limited-size here document to $tmp/defines.sed.
  12327. + echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  12328. + # Speed up: don't consider the non `#define' lines.
  12329. + echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  12330. + # Work around the forget-to-reset-the-flag bug.
  12331. + echo 't clr' >>$CONFIG_STATUS
  12332. + echo ': clr' >>$CONFIG_STATUS
  12333. + sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  12334. + echo 'CEOF
  12335. + sed -f $tmp/defines.sed $tmp/in >$tmp/out
  12336. + rm -f $tmp/in
  12337. + mv $tmp/out $tmp/in
  12338. +' >>$CONFIG_STATUS
  12339. + sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  12340. + rm -f conftest.defines
  12341. + mv conftest.tail conftest.defines
  12342. +done
  12343. +rm -f conftest.defines
  12344. +echo ' fi # grep' >>$CONFIG_STATUS
  12345. +echo >>$CONFIG_STATUS
  12346. +
  12347. +# Break up conftest.undefs because some shells have a limit on the size
  12348. +# of here documents, and old seds have small limits too (100 cmds).
  12349. +echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  12350. rm -f conftest.tail
  12351. -while :
  12352. +while grep . conftest.undefs >/dev/null
  12353. do
  12354. - ac_lines=`grep -c . conftest.vals`
  12355. - # grep -c gives empty output for an empty file on some AIX systems.
  12356. - if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  12357. - # Write a limited-size here document to conftest.frag.
  12358. - echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  12359. - sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  12360. + # Write a limited-size here document to $tmp/undefs.sed.
  12361. + echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  12362. + # Speed up: don't consider the non `#undef'
  12363. + echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  12364. + # Work around the forget-to-reset-the-flag bug.
  12365. + echo 't clr' >>$CONFIG_STATUS
  12366. + echo ': clr' >>$CONFIG_STATUS
  12367. + sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  12368. echo 'CEOF
  12369. - sed -f conftest.frag conftest.in > conftest.out
  12370. - rm -f conftest.in
  12371. - mv conftest.out conftest.in
  12372. -' >> $CONFIG_STATUS
  12373. - sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  12374. - rm -f conftest.vals
  12375. - mv conftest.tail conftest.vals
  12376. -done
  12377. -rm -f conftest.vals
  12378. -
  12379. -cat >> $CONFIG_STATUS <<\EOF
  12380. - rm -f conftest.frag conftest.h
  12381. - echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
  12382. - cat conftest.in >> conftest.h
  12383. - rm -f conftest.in
  12384. - if cmp -s $ac_file conftest.h 2>/dev/null; then
  12385. - echo "$ac_file is unchanged"
  12386. - rm -f conftest.h
  12387. - else
  12388. - # Remove last slash and all that follows it. Not all systems have dirname.
  12389. - ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  12390. - if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  12391. - # The file is in a subdirectory.
  12392. - test ! -d "$ac_dir" && mkdir "$ac_dir"
  12393. + sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  12394. + rm -f $tmp/in
  12395. + mv $tmp/out $tmp/in
  12396. +' >>$CONFIG_STATUS
  12397. + sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  12398. + rm -f conftest.undefs
  12399. + mv conftest.tail conftest.undefs
  12400. +done
  12401. +rm -f conftest.undefs
  12402. +
  12403. +cat >>$CONFIG_STATUS <<\_ACEOF
  12404. + # Let's still pretend it is `configure' which instantiates (i.e., don't
  12405. + # use $as_me), people would be surprised to read:
  12406. + # /* config.h. Generated by config.status. */
  12407. + if test x"$ac_file" = x-; then
  12408. + echo "/* Generated by configure. */" >$tmp/config.h
  12409. + else
  12410. + echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  12411. + fi
  12412. + cat $tmp/in >>$tmp/config.h
  12413. + rm -f $tmp/in
  12414. + if test x"$ac_file" != x-; then
  12415. + if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  12416. + { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  12417. +echo "$as_me: $ac_file is unchanged" >&6;}
  12418. + else
  12419. + ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  12420. +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12421. + X"$ac_file" : 'X\(//\)[^/]' \| \
  12422. + X"$ac_file" : 'X\(//\)$' \| \
  12423. + X"$ac_file" : 'X\(/\)' \| \
  12424. + . : '\(.\)' 2>/dev/null ||
  12425. +echo X"$ac_file" |
  12426. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  12427. + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  12428. + /^X\(\/\/\)$/{ s//\1/; q; }
  12429. + /^X\(\/\).*/{ s//\1/; q; }
  12430. + s/.*/./; q'`
  12431. + { if $as_mkdir_p; then
  12432. + mkdir -p "$ac_dir"
  12433. + else
  12434. + as_dir="$ac_dir"
  12435. + as_dirs=
  12436. + while test ! -d "$as_dir"; do
  12437. + as_dirs="$as_dir $as_dirs"
  12438. + as_dir=`(dirname "$as_dir") 2>/dev/null ||
  12439. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12440. + X"$as_dir" : 'X\(//\)[^/]' \| \
  12441. + X"$as_dir" : 'X\(//\)$' \| \
  12442. + X"$as_dir" : 'X\(/\)' \| \
  12443. + . : '\(.\)' 2>/dev/null ||
  12444. +echo X"$as_dir" |
  12445. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  12446. + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  12447. + /^X\(\/\/\)$/{ s//\1/; q; }
  12448. + /^X\(\/\).*/{ s//\1/; q; }
  12449. + s/.*/./; q'`
  12450. + done
  12451. + test ! -n "$as_dirs" || mkdir $as_dirs
  12452. + fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  12453. +echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  12454. + { (exit 1); exit 1; }; }; }
  12455. +
  12456. + rm -f $ac_file
  12457. + mv $tmp/config.h $ac_file
  12458. fi
  12459. - rm -f $ac_file
  12460. - mv conftest.h $ac_file
  12461. + else
  12462. + cat $tmp/config.h
  12463. + rm -f $tmp/config.h
  12464. fi
  12465. -fi; done
  12466. +done
  12467. +_ACEOF
  12468. +cat >>$CONFIG_STATUS <<\_ACEOF
  12469. -EOF
  12470. -cat >> $CONFIG_STATUS <<EOF
  12471. +#
  12472. +# CONFIG_COMMANDS section.
  12473. +#
  12474. +for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  12475. + ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  12476. + ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  12477. + ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
  12478. +$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12479. + X"$ac_dest" : 'X\(//\)[^/]' \| \
  12480. + X"$ac_dest" : 'X\(//\)$' \| \
  12481. + X"$ac_dest" : 'X\(/\)' \| \
  12482. + . : '\(.\)' 2>/dev/null ||
  12483. +echo X"$ac_dest" |
  12484. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  12485. + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  12486. + /^X\(\/\/\)$/{ s//\1/; q; }
  12487. + /^X\(\/\).*/{ s//\1/; q; }
  12488. + s/.*/./; q'`
  12489. + ac_builddir=.
  12490. +
  12491. +if test "$ac_dir" != .; then
  12492. + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  12493. + # A "../" for each directory in $ac_dir_suffix.
  12494. + ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  12495. +else
  12496. + ac_dir_suffix= ac_top_builddir=
  12497. +fi
  12498. +
  12499. +case $srcdir in
  12500. + .) # No --srcdir option. We are building in place.
  12501. + ac_srcdir=.
  12502. + if test -z "$ac_top_builddir"; then
  12503. + ac_top_srcdir=.
  12504. + else
  12505. + ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  12506. + fi ;;
  12507. + [\\/]* | ?:[\\/]* ) # Absolute path.
  12508. + ac_srcdir=$srcdir$ac_dir_suffix;
  12509. + ac_top_srcdir=$srcdir ;;
  12510. + *) # Relative path.
  12511. + ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  12512. + ac_top_srcdir=$ac_top_builddir$srcdir ;;
  12513. +esac
  12514. +# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
  12515. +# absolute.
  12516. +ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
  12517. +ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
  12518. +ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
  12519. +ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
  12520. -EOF
  12521. -cat >> $CONFIG_STATUS <<\EOF
  12522. -test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
  12523. + { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
  12524. +echo "$as_me: executing $ac_dest commands" >&6;}
  12525. + case $ac_dest in
  12526. + default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
  12527. + esac
  12528. +done
  12529. +_ACEOF
  12530. -exit 0
  12531. -EOF
  12532. +cat >>$CONFIG_STATUS <<\_ACEOF
  12533. +
  12534. +{ (exit 0); exit 0; }
  12535. +_ACEOF
  12536. chmod +x $CONFIG_STATUS
  12537. -rm -fr confdefs* $ac_clean_files
  12538. -test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  12539. +ac_clean_files=$ac_clean_files_save
  12540. +
  12541. +
  12542. +# configure is writing to config.log, and then calls config.status.
  12543. +# config.status does its own redirection, appending to config.log.
  12544. +# Unfortunately, on DOS this fails, as config.log is still kept open
  12545. +# by configure, so config.status won't be able to write to it; its
  12546. +# output is simply discarded. So we exec the FD to /dev/null,
  12547. +# effectively closing config.log, so it can be properly (re)opened and
  12548. +# appended to by config.status. When coming back to configure, we
  12549. +# need to make the FD available again.
  12550. +if test "$no_create" != yes; then
  12551. + ac_cs_success=:
  12552. + ac_config_status_args=
  12553. + test "$silent" = yes &&
  12554. + ac_config_status_args="$ac_config_status_args --quiet"
  12555. + exec 5>/dev/null
  12556. + $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  12557. + exec 5>>config.log
  12558. + # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  12559. + # would make configure fail if this is the last instruction.
  12560. + $ac_cs_success || { (exit 1); exit 1; }
  12561. +fi
  12562. --- linux-atm-2.4.1.orig/ltmain.sh
  12563. +++ linux-atm-2.4.1/ltmain.sh
  12564. @@ -49,14 +49,14 @@
  12565. fi
  12566. # The name of this program.
  12567. -progname=`$echo "$0" | sed 's%^.*/%%'`
  12568. +progname=`$echo "$0" | ${SED} 's%^.*/%%'`
  12569. modename="$progname"
  12570. # Constants.
  12571. PROGRAM=ltmain.sh
  12572. PACKAGE=libtool
  12573. -VERSION=1.4
  12574. -TIMESTAMP=" (1.920 2001/04/24 23:26:18)"
  12575. +VERSION=1.4.3
  12576. +TIMESTAMP=" (1.922.2.111 2002/10/23 02:54:36)"
  12577. default_mode=
  12578. help="Try \`$progname --help' for more information."
  12579. @@ -67,10 +67,19 @@
  12580. # Sed substitution that helps us do robust quoting. It backslashifies
  12581. # metacharacters that are still active within double-quoted strings.
  12582. -Xsed='sed -e 1s/^X//'
  12583. +Xsed="${SED}"' -e 1s/^X//'
  12584. sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
  12585. -SP2NL='tr \040 \012'
  12586. -NL2SP='tr \015\012 \040\040'
  12587. +# test EBCDIC or ASCII
  12588. +case `echo A|od -x` in
  12589. + *[Cc]1*) # EBCDIC based system
  12590. + SP2NL="tr '\100' '\n'"
  12591. + NL2SP="tr '\r\n' '\100\100'"
  12592. + ;;
  12593. + *) # Assume ASCII based system
  12594. + SP2NL="tr '\040' '\012'"
  12595. + NL2SP="tr '\015\012' '\040\040'"
  12596. + ;;
  12597. +esac
  12598. # NLS nuisances.
  12599. # Only set LANG and LC_ALL to C if already set.
  12600. @@ -84,6 +93,9 @@
  12601. save_LANG="$LANG"; LANG=C; export LANG
  12602. fi
  12603. +# Make sure IFS has a sensible default
  12604. +: ${IFS=" "}
  12605. +
  12606. if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
  12607. echo "$modename: not configured to build any kind of library" 1>&2
  12608. echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
  12609. @@ -141,7 +153,7 @@
  12610. ;;
  12611. --config)
  12612. - sed -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $0
  12613. + ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $0
  12614. exit 0
  12615. ;;
  12616. @@ -174,6 +186,8 @@
  12617. --mode) prevopt="--mode" prev=mode ;;
  12618. --mode=*) mode="$optarg" ;;
  12619. + --preserve-dup-deps) duplicate_deps="yes" ;;
  12620. +
  12621. --quiet | --silent)
  12622. show=:
  12623. ;;
  12624. @@ -202,12 +216,17 @@
  12625. exit 1
  12626. fi
  12627. +# If this variable is set in any of the actions, the command in it
  12628. +# will be execed at the end. This prevents here-documents from being
  12629. +# left over by shells.
  12630. +exec_cmd=
  12631. +
  12632. if test -z "$show_help"; then
  12633. # Infer the operation mode.
  12634. if test -z "$mode"; then
  12635. case $nonopt in
  12636. - *cc | *++ | gcc* | *-gcc*)
  12637. + *cc | *++ | gcc* | *-gcc* | g++* | xlc*)
  12638. mode=link
  12639. for arg
  12640. do
  12641. @@ -329,7 +348,7 @@
  12642. -Wc,*)
  12643. args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"`
  12644. lastarg=
  12645. - IFS="${IFS= }"; save_ifs="$IFS"; IFS=','
  12646. + save_ifs="$IFS"; IFS=','
  12647. for arg in $args; do
  12648. IFS="$save_ifs"
  12649. @@ -615,6 +634,10 @@
  12650. # Now arrange that obj and lo_libobj become the same file
  12651. $show "(cd $xdir && $LN_S $baseobj $libobj)"
  12652. if $run eval '(cd $xdir && $LN_S $baseobj $libobj)'; then
  12653. + # Unlock the critical section if it was locked
  12654. + if test "$need_locks" != no; then
  12655. + $run $rm "$lockfile"
  12656. + fi
  12657. exit 0
  12658. else
  12659. error=$?
  12660. @@ -745,6 +768,7 @@
  12661. linker_flags=
  12662. dllsearchpath=
  12663. lib_search_path=`pwd`
  12664. + inst_prefix_dir=
  12665. avoid_version=no
  12666. dlfiles=
  12667. @@ -875,6 +899,11 @@
  12668. prev=
  12669. continue
  12670. ;;
  12671. + inst_prefix)
  12672. + inst_prefix_dir="$arg"
  12673. + prev=
  12674. + continue
  12675. + ;;
  12676. release)
  12677. release="-$arg"
  12678. prev=
  12679. @@ -976,11 +1005,16 @@
  12680. continue
  12681. ;;
  12682. + -inst-prefix-dir)
  12683. + prev=inst_prefix
  12684. + continue
  12685. + ;;
  12686. +
  12687. # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
  12688. # so, if we see these flags be careful not to treat them like -L
  12689. -L[A-Z][A-Z]*:*)
  12690. case $with_gcc/$host in
  12691. - no/*-*-irix*)
  12692. + no/*-*-irix* | no/*-*-nonstopux*)
  12693. compile_command="$compile_command $arg"
  12694. finalize_command="$finalize_command $arg"
  12695. ;;
  12696. @@ -1031,6 +1065,17 @@
  12697. # These systems don't actually have a C library (as such)
  12698. test "X$arg" = "X-lc" && continue
  12699. ;;
  12700. + *-*-openbsd* | *-*-freebsd*)
  12701. + # Do not include libc due to us having libc/libc_r.
  12702. + test "X$arg" = "X-lc" && continue
  12703. + ;;
  12704. + esac
  12705. + elif test "X$arg" = "X-lc_r"; then
  12706. + case $host in
  12707. + *-*-openbsd* | *-*-freebsd*)
  12708. + # Do not include libc_r directly, use -pthread flag.
  12709. + continue
  12710. + ;;
  12711. esac
  12712. fi
  12713. deplibs="$deplibs $arg"
  12714. @@ -1122,7 +1167,7 @@
  12715. -Wc,*)
  12716. args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'`
  12717. arg=
  12718. - IFS="${IFS= }"; save_ifs="$IFS"; IFS=','
  12719. + save_ifs="$IFS"; IFS=','
  12720. for flag in $args; do
  12721. IFS="$save_ifs"
  12722. case $flag in
  12723. @@ -1140,7 +1185,7 @@
  12724. -Wl,*)
  12725. args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'`
  12726. arg=
  12727. - IFS="${IFS= }"; save_ifs="$IFS"; IFS=','
  12728. + save_ifs="$IFS"; IFS=','
  12729. for flag in $args; do
  12730. IFS="$save_ifs"
  12731. case $flag in
  12732. @@ -1307,9 +1352,11 @@
  12733. # Find all interdependent deplibs by searching for libraries
  12734. # that are linked more than once (e.g. -la -lb -la)
  12735. for deplib in $deplibs; do
  12736. - case "$libs " in
  12737. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  12738. - esac
  12739. + if test "X$duplicate_deps" = "Xyes" ; then
  12740. + case "$libs " in
  12741. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  12742. + esac
  12743. + fi
  12744. libs="$libs $deplib"
  12745. done
  12746. deplibs=
  12747. @@ -1343,7 +1390,7 @@
  12748. ;;
  12749. esac
  12750. for pass in $passes; do
  12751. - if test "$linkmode" = prog; then
  12752. + if test $linkmode = prog; then
  12753. # Determine which files to process
  12754. case $pass in
  12755. dlopen)
  12756. @@ -1360,11 +1407,11 @@
  12757. found=no
  12758. case $deplib in
  12759. -l*)
  12760. - if test "$linkmode" = oldlib && test "$linkmode" = obj; then
  12761. + if test $linkmode = oldlib && test $linkmode = obj; then
  12762. $echo "$modename: warning: \`-l' is ignored for archives/objects: $deplib" 1>&2
  12763. continue
  12764. fi
  12765. - if test "$pass" = conv; then
  12766. + if test $pass = conv; then
  12767. deplibs="$deplib $deplibs"
  12768. continue
  12769. fi
  12770. @@ -1384,7 +1431,7 @@
  12771. finalize_deplibs="$deplib $finalize_deplibs"
  12772. else
  12773. deplibs="$deplib $deplibs"
  12774. - test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  12775. + test $linkmode = lib && newdependency_libs="$deplib $newdependency_libs"
  12776. fi
  12777. continue
  12778. fi
  12779. @@ -1393,16 +1440,16 @@
  12780. case $linkmode in
  12781. lib)
  12782. deplibs="$deplib $deplibs"
  12783. - test "$pass" = conv && continue
  12784. + test $pass = conv && continue
  12785. newdependency_libs="$deplib $newdependency_libs"
  12786. newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
  12787. ;;
  12788. prog)
  12789. - if test "$pass" = conv; then
  12790. + if test $pass = conv; then
  12791. deplibs="$deplib $deplibs"
  12792. continue
  12793. fi
  12794. - if test "$pass" = scan; then
  12795. + if test $pass = scan; then
  12796. deplibs="$deplib $deplibs"
  12797. newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
  12798. else
  12799. @@ -1417,7 +1464,7 @@
  12800. continue
  12801. ;; # -L
  12802. -R*)
  12803. - if test "$pass" = link; then
  12804. + if test $pass = link; then
  12805. dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'`
  12806. # Make sure the xrpath contains only unique directories.
  12807. case "$xrpath " in
  12808. @@ -1430,7 +1477,7 @@
  12809. ;;
  12810. *.la) lib="$deplib" ;;
  12811. *.$libext)
  12812. - if test "$pass" = conv; then
  12813. + if test $pass = conv; then
  12814. deplibs="$deplib $deplibs"
  12815. continue
  12816. fi
  12817. @@ -1438,10 +1485,12 @@
  12818. lib)
  12819. if test "$deplibs_check_method" != pass_all; then
  12820. echo
  12821. - echo "*** Warning: This library needs some functionality provided by $deplib."
  12822. + echo "*** Warning: Trying to link with static lib archive $deplib."
  12823. echo "*** I have the capability to make that library automatically link in when"
  12824. echo "*** you link to this library. But I can only do this if you have a"
  12825. - echo "*** shared version of the library, which you do not appear to have."
  12826. + echo "*** shared version of the library, which you do not appear to have"
  12827. + echo "*** because the file extensions .$libext of this argument makes me believe"
  12828. + echo "*** that it is just a static archive that I should not used here."
  12829. else
  12830. echo
  12831. echo "*** Warning: Linking the shared library $output against the"
  12832. @@ -1451,7 +1500,7 @@
  12833. continue
  12834. ;;
  12835. prog)
  12836. - if test "$pass" != link; then
  12837. + if test $pass != link; then
  12838. deplibs="$deplib $deplibs"
  12839. else
  12840. compile_deplibs="$deplib $compile_deplibs"
  12841. @@ -1462,7 +1511,7 @@
  12842. esac # linkmode
  12843. ;; # *.$libext
  12844. *.lo | *.$objext)
  12845. - if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
  12846. + if test $pass = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
  12847. # If there is no dlopen support or we're linking statically,
  12848. # we need to preload.
  12849. newdlprefiles="$newdlprefiles $deplib"
  12850. @@ -1485,7 +1534,7 @@
  12851. fi
  12852. # Check to see that this really is a libtool archive.
  12853. - if (sed -e '2q' $lib | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  12854. + if (${SED} -e '2q' $lib | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  12855. else
  12856. $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  12857. exit 1
  12858. @@ -1512,13 +1561,13 @@
  12859. if test "$linkmode,$pass" = "lib,link" ||
  12860. test "$linkmode,$pass" = "prog,scan" ||
  12861. - { test "$linkmode" = oldlib && test "$linkmode" = obj; }; then
  12862. + { test $linkmode = oldlib && test $linkmode = obj; }; then
  12863. # Add dl[pre]opened files of deplib
  12864. test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
  12865. test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
  12866. fi
  12867. - if test "$pass" = conv; then
  12868. + if test $pass = conv; then
  12869. # Only check for convenience libraries
  12870. deplibs="$lib $deplibs"
  12871. if test -z "$libdir"; then
  12872. @@ -1532,12 +1581,14 @@
  12873. tmp_libs=
  12874. for deplib in $dependency_libs; do
  12875. deplibs="$deplib $deplibs"
  12876. - case "$tmp_libs " in
  12877. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  12878. - esac
  12879. + if test "X$duplicate_deps" = "Xyes" ; then
  12880. + case "$tmp_libs " in
  12881. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  12882. + esac
  12883. + fi
  12884. tmp_libs="$tmp_libs $deplib"
  12885. done
  12886. - elif test "$linkmode" != prog && test "$linkmode" != lib; then
  12887. + elif test $linkmode != prog && test $linkmode != lib; then
  12888. $echo "$modename: \`$lib' is not a convenience library" 1>&2
  12889. exit 1
  12890. fi
  12891. @@ -1555,7 +1606,7 @@
  12892. fi
  12893. # This library was specified with -dlopen.
  12894. - if test "$pass" = dlopen; then
  12895. + if test $pass = dlopen; then
  12896. if test -z "$libdir"; then
  12897. $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2
  12898. exit 1
  12899. @@ -1604,7 +1655,7 @@
  12900. name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
  12901. # This library was specified with -dlpreopen.
  12902. - if test "$pass" = dlpreopen; then
  12903. + if test $pass = dlpreopen; then
  12904. if test -z "$libdir"; then
  12905. $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2
  12906. exit 1
  12907. @@ -1623,7 +1674,7 @@
  12908. if test -z "$libdir"; then
  12909. # Link the convenience library
  12910. - if test "$linkmode" = lib; then
  12911. + if test $linkmode = lib; then
  12912. deplibs="$dir/$old_library $deplibs"
  12913. elif test "$linkmode,$pass" = "prog,link"; then
  12914. compile_deplibs="$dir/$old_library $compile_deplibs"
  12915. @@ -1634,7 +1685,7 @@
  12916. continue
  12917. fi
  12918. - if test "$linkmode" = prog && test "$pass" != link; then
  12919. + if test $linkmode = prog && test $pass != link; then
  12920. newlib_search_path="$newlib_search_path $ladir"
  12921. deplibs="$lib $deplibs"
  12922. @@ -1657,9 +1708,11 @@
  12923. # or/and link against static libraries
  12924. newdependency_libs="$deplib $newdependency_libs"
  12925. fi
  12926. - case "$tmp_libs " in
  12927. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  12928. - esac
  12929. + if test "X$duplicate_deps" = "Xyes" ; then
  12930. + case "$tmp_libs " in
  12931. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  12932. + esac
  12933. + fi
  12934. tmp_libs="$tmp_libs $deplib"
  12935. done # for deplib
  12936. continue
  12937. @@ -1671,7 +1724,7 @@
  12938. # Link against this shared library
  12939. if test "$linkmode,$pass" = "prog,link" ||
  12940. - { test "$linkmode" = lib && test "$hardcode_into_libs" = yes; }; then
  12941. + { test $linkmode = lib && test $hardcode_into_libs = yes; }; then
  12942. # Hardcode the library path.
  12943. # Skip directories that are in the system default run-time
  12944. # search path.
  12945. @@ -1693,7 +1746,7 @@
  12946. esac
  12947. ;;
  12948. esac
  12949. - if test "$linkmode" = prog; then
  12950. + if test $linkmode = prog; then
  12951. # We need to hardcode the library path
  12952. if test -n "$shlibpath_var"; then
  12953. # Make sure the rpath contains only unique directories.
  12954. @@ -1743,14 +1796,14 @@
  12955. # Make a new name for the extract_expsyms_cmds to use
  12956. soroot="$soname"
  12957. - soname=`echo $soroot | sed -e 's/^.*\///'`
  12958. - newlib="libimp-`echo $soname | sed 's/^lib//;s/\.dll$//'`.a"
  12959. + soname=`echo $soroot | ${SED} -e 's/^.*\///'`
  12960. + newlib="libimp-`echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a"
  12961. # If the library has no export list, then create one now
  12962. if test -f "$output_objdir/$soname-def"; then :
  12963. else
  12964. $show "extracting exported symbol list from \`$soname'"
  12965. - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
  12966. + save_ifs="$IFS"; IFS='~'
  12967. eval cmds=\"$extract_expsyms_cmds\"
  12968. for cmd in $cmds; do
  12969. IFS="$save_ifs"
  12970. @@ -1763,7 +1816,7 @@
  12971. # Create $newlib
  12972. if test -f "$output_objdir/$newlib"; then :; else
  12973. $show "generating import library for \`$soname'"
  12974. - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
  12975. + save_ifs="$IFS"; IFS='~'
  12976. eval cmds=\"$old_archive_from_expsyms_cmds\"
  12977. for cmd in $cmds; do
  12978. IFS="$save_ifs"
  12979. @@ -1777,7 +1830,7 @@
  12980. linklib=$newlib
  12981. fi # test -n $old_archive_from_expsyms_cmds
  12982. - if test "$linkmode" = prog || test "$mode" != relink; then
  12983. + if test $linkmode = prog || test "$mode" != relink; then
  12984. add_shlibpath=
  12985. add_dir=
  12986. add=
  12987. @@ -1804,6 +1857,14 @@
  12988. add="$dir/$linklib"
  12989. elif test "$hardcode_minus_L" = yes; then
  12990. add_dir="-L$dir"
  12991. + # Try looking first in the location we're being installed to.
  12992. + if test -n "$inst_prefix_dir"; then
  12993. + case "$libdir" in
  12994. + [\/]*)
  12995. + add_dir="-L$inst_prefix_dir$libdir $add_dir"
  12996. + ;;
  12997. + esac
  12998. + fi
  12999. add="-l$name"
  13000. elif test "$hardcode_shlibpath_var" = yes; then
  13001. add_shlibpath="$dir"
  13002. @@ -1826,7 +1887,7 @@
  13003. *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
  13004. esac
  13005. fi
  13006. - if test "$linkmode" = prog; then
  13007. + if test $linkmode = prog; then
  13008. test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
  13009. test -n "$add" && compile_deplibs="$add $compile_deplibs"
  13010. else
  13011. @@ -1843,7 +1904,7 @@
  13012. fi
  13013. fi
  13014. - if test "$linkmode" = prog || test "$mode" = relink; then
  13015. + if test $linkmode = prog || test "$mode" = relink; then
  13016. add_shlibpath=
  13017. add_dir=
  13018. add=
  13019. @@ -1862,10 +1923,18 @@
  13020. else
  13021. # We cannot seem to hardcode it, guess we'll fake it.
  13022. add_dir="-L$libdir"
  13023. + # Try looking first in the location we're being installed to.
  13024. + if test -n "$inst_prefix_dir"; then
  13025. + case "$libdir" in
  13026. + [\/]*)
  13027. + add_dir="-L$inst_prefix_dir$libdir $add_dir"
  13028. + ;;
  13029. + esac
  13030. + fi
  13031. add="-l$name"
  13032. fi
  13033. - if test "$linkmode" = prog; then
  13034. + if test $linkmode = prog; then
  13035. test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
  13036. test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
  13037. else
  13038. @@ -1873,7 +1942,7 @@
  13039. test -n "$add" && deplibs="$add $deplibs"
  13040. fi
  13041. fi
  13042. - elif test "$linkmode" = prog; then
  13043. + elif test $linkmode = prog; then
  13044. if test "$alldeplibs" = yes &&
  13045. { test "$deplibs_check_method" = pass_all ||
  13046. { test "$build_libtool_libs" = yes &&
  13047. @@ -1903,25 +1972,26 @@
  13048. # Just print a warning and add the library to dependency_libs so
  13049. # that the program can be linked against the static library.
  13050. echo
  13051. - echo "*** Warning: This library needs some functionality provided by $lib."
  13052. + echo "*** Warning: This system can not link to static lib archive $lib."
  13053. echo "*** I have the capability to make that library automatically link in when"
  13054. echo "*** you link to this library. But I can only do this if you have a"
  13055. echo "*** shared version of the library, which you do not appear to have."
  13056. if test "$module" = yes; then
  13057. - echo "*** Therefore, libtool will create a static module, that should work "
  13058. - echo "*** as long as the dlopening application is linked with the -dlopen flag."
  13059. + echo "*** But as you try to build a module library, libtool will still create "
  13060. + echo "*** a static module, that should work as long as the dlopening application"
  13061. + echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
  13062. if test -z "$global_symbol_pipe"; then
  13063. - echo
  13064. - echo "*** However, this would only work if libtool was able to extract symbol"
  13065. - echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
  13066. - echo "*** not find such a program. So, this module is probably useless."
  13067. - echo "*** \`nm' from GNU binutils and a full rebuild may help."
  13068. + echo
  13069. + echo "*** However, this would only work if libtool was able to extract symbol"
  13070. + echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
  13071. + echo "*** not find such a program. So, this module is probably useless."
  13072. + echo "*** \`nm' from GNU binutils and a full rebuild may help."
  13073. fi
  13074. if test "$build_old_libs" = no; then
  13075. - build_libtool_libs=module
  13076. - build_old_libs=yes
  13077. + build_libtool_libs=module
  13078. + build_old_libs=yes
  13079. else
  13080. - build_libtool_libs=no
  13081. + build_libtool_libs=no
  13082. fi
  13083. fi
  13084. else
  13085. @@ -1932,9 +2002,9 @@
  13086. fi
  13087. fi # link shared/static library?
  13088. - if test "$linkmode" = lib; then
  13089. + if test $linkmode = lib; then
  13090. if test -n "$dependency_libs" &&
  13091. - { test "$hardcode_into_libs" != yes || test $build_old_libs = yes ||
  13092. + { test $hardcode_into_libs != yes || test $build_old_libs = yes ||
  13093. test $link_static = yes; }; then
  13094. # Extract -R from dependency_libs
  13095. temp_deplibs=
  13096. @@ -1958,13 +2028,15 @@
  13097. tmp_libs=
  13098. for deplib in $dependency_libs; do
  13099. newdependency_libs="$deplib $newdependency_libs"
  13100. - case "$tmp_libs " in
  13101. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  13102. - esac
  13103. + if test "X$duplicate_deps" = "Xyes" ; then
  13104. + case "$tmp_libs " in
  13105. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  13106. + esac
  13107. + fi
  13108. tmp_libs="$tmp_libs $deplib"
  13109. done
  13110. - if test "$link_all_deplibs" != no; then
  13111. + if test $link_all_deplibs != no; then
  13112. # Add the search paths of all dependency libraries
  13113. for deplib in $dependency_libs; do
  13114. case $deplib in
  13115. @@ -1986,7 +2058,7 @@
  13116. if grep "^installed=no" $deplib > /dev/null; then
  13117. path="-L$absdir/$objdir"
  13118. else
  13119. - eval libdir=`sed -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  13120. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  13121. if test -z "$libdir"; then
  13122. $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
  13123. exit 1
  13124. @@ -2007,15 +2079,15 @@
  13125. fi # link_all_deplibs != no
  13126. fi # linkmode = lib
  13127. done # for deplib in $libs
  13128. - if test "$pass" = dlpreopen; then
  13129. + if test $pass = dlpreopen; then
  13130. # Link the dlpreopened libraries before other libraries
  13131. for deplib in $save_deplibs; do
  13132. deplibs="$deplib $deplibs"
  13133. done
  13134. fi
  13135. - if test "$pass" != dlopen; then
  13136. - test "$pass" != scan && dependency_libs="$newdependency_libs"
  13137. - if test "$pass" != conv; then
  13138. + if test $pass != dlopen; then
  13139. + test $pass != scan && dependency_libs="$newdependency_libs"
  13140. + if test $pass != conv; then
  13141. # Make sure lib_search_path contains only unique directories.
  13142. lib_search_path=
  13143. for dir in $newlib_search_path; do
  13144. @@ -2073,7 +2145,7 @@
  13145. deplibs=
  13146. fi
  13147. done # for pass
  13148. - if test "$linkmode" = prog; then
  13149. + if test $linkmode = prog; then
  13150. dlfiles="$newdlfiles"
  13151. dlprefiles="$newdlprefiles"
  13152. fi
  13153. @@ -2175,7 +2247,7 @@
  13154. else
  13155. # Parse the version information argument.
  13156. - IFS="${IFS= }"; save_ifs="$IFS"; IFS=':'
  13157. + save_ifs="$IFS"; IFS=':'
  13158. set dummy $vinfo 0 0 0
  13159. IFS="$save_ifs"
  13160. @@ -2250,16 +2322,21 @@
  13161. versuffix=".$current";
  13162. ;;
  13163. - irix)
  13164. + irix | nonstopux)
  13165. major=`expr $current - $age + 1`
  13166. - verstring="sgi$major.$revision"
  13167. +
  13168. + case $version_type in
  13169. + nonstopux) verstring_prefix=nonstopux ;;
  13170. + *) verstring_prefix=sgi ;;
  13171. + esac
  13172. + verstring="$verstring_prefix$major.$revision"
  13173. # Add in all the interfaces that we are compatible with.
  13174. loop=$revision
  13175. while test $loop != 0; do
  13176. iface=`expr $revision - $loop`
  13177. loop=`expr $loop - 1`
  13178. - verstring="sgi$major.$iface:$verstring"
  13179. + verstring="$verstring_prefix$major.$iface:$verstring"
  13180. done
  13181. # Before this point, $major must not contain `.'.
  13182. @@ -2273,7 +2350,7 @@
  13183. ;;
  13184. osf)
  13185. - major=`expr $current - $age`
  13186. + major=.`expr $current - $age`
  13187. versuffix=".$current.$age.$revision"
  13188. verstring="$current.$age.$revision"
  13189. @@ -2312,6 +2389,16 @@
  13190. if test -z "$vinfo" && test -n "$release"; then
  13191. major=
  13192. verstring="0.0"
  13193. + case $version_type in
  13194. + darwin)
  13195. + # we can't check for "0.0" in archive_cmds due to quoting
  13196. + # problems, so we reset it completely
  13197. + verstring=""
  13198. + ;;
  13199. + *)
  13200. + verstring="0.0"
  13201. + ;;
  13202. + esac
  13203. if test "$need_version" = no; then
  13204. versuffix=
  13205. else
  13206. @@ -2355,9 +2442,9 @@
  13207. # Eliminate all temporary directories.
  13208. for path in $notinst_path; do
  13209. - lib_search_path=`echo "$lib_search_path " | sed -e 's% $path % %g'`
  13210. - deplibs=`echo "$deplibs " | sed -e 's% -L$path % %g'`
  13211. - dependency_libs=`echo "$dependency_libs " | sed -e 's% -L$path % %g'`
  13212. + lib_search_path=`echo "$lib_search_path " | ${SED} -e 's% $path % %g'`
  13213. + deplibs=`echo "$deplibs " | ${SED} -e 's% -L$path % %g'`
  13214. + dependency_libs=`echo "$dependency_libs " | ${SED} -e 's% -L$path % %g'`
  13215. done
  13216. if test -n "$xrpath"; then
  13217. @@ -2408,9 +2495,12 @@
  13218. *-*-netbsd*)
  13219. # Don't link with libc until the a.out ld.so is fixed.
  13220. ;;
  13221. + *-*-openbsd* | *-*-freebsd*)
  13222. + # Do not include libc due to us having libc/libc_r.
  13223. + ;;
  13224. *)
  13225. # Add libc to deplibs on all other systems if necessary.
  13226. - if test "$build_libtool_need_lc" = "yes"; then
  13227. + if test $build_libtool_need_lc = "yes"; then
  13228. deplibs="$deplibs -lc"
  13229. fi
  13230. ;;
  13231. @@ -2466,18 +2556,20 @@
  13232. else
  13233. droppeddeps=yes
  13234. echo
  13235. - echo "*** Warning: This library needs some functionality provided by $i."
  13236. + echo "*** Warning: dynamic linker does not accept needed library $i."
  13237. echo "*** I have the capability to make that library automatically link in when"
  13238. echo "*** you link to this library. But I can only do this if you have a"
  13239. - echo "*** shared version of the library, which you do not appear to have."
  13240. + echo "*** shared version of the library, which I believe you do not have"
  13241. + echo "*** because a test_compile did reveal that the linker did not use it for"
  13242. + echo "*** its dynamic dependency list that programs get resolved with at runtime."
  13243. fi
  13244. else
  13245. newdeplibs="$newdeplibs $i"
  13246. fi
  13247. done
  13248. else
  13249. - # Error occured in the first compile. Let's try to salvage the situation:
  13250. - # Compile a seperate program for each library.
  13251. + # Error occured in the first compile. Let's try to salvage
  13252. + # the situation: Compile a separate program for each library.
  13253. for i in $deplibs; do
  13254. name="`expr $i : '-l\(.*\)'`"
  13255. # If $name is empty we are operating on a -L argument.
  13256. @@ -2496,10 +2588,12 @@
  13257. else
  13258. droppeddeps=yes
  13259. echo
  13260. - echo "*** Warning: This library needs some functionality provided by $i."
  13261. + echo "*** Warning: dynamic linker does not accept needed library $i."
  13262. echo "*** I have the capability to make that library automatically link in when"
  13263. echo "*** you link to this library. But I can only do this if you have a"
  13264. - echo "*** shared version of the library, which you do not appear to have."
  13265. + echo "*** shared version of the library, which you do not appear to have"
  13266. + echo "*** because a test_compile did reveal that the linker did not use this one"
  13267. + echo "*** as a dynamic dependency that programs can get resolved with at runtime."
  13268. fi
  13269. else
  13270. droppeddeps=yes
  13271. @@ -2538,14 +2632,14 @@
  13272. # but so what?
  13273. potlib="$potent_lib"
  13274. while test -h "$potlib" 2>/dev/null; do
  13275. - potliblink=`ls -ld $potlib | sed 's/.* -> //'`
  13276. + potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
  13277. case $potliblink in
  13278. [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
  13279. *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
  13280. esac
  13281. done
  13282. if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \
  13283. - | sed 10q \
  13284. + | ${SED} 10q \
  13285. | egrep "$file_magic_regex" > /dev/null; then
  13286. newdeplibs="$newdeplibs $a_deplib"
  13287. a_deplib=""
  13288. @@ -2556,10 +2650,17 @@
  13289. if test -n "$a_deplib" ; then
  13290. droppeddeps=yes
  13291. echo
  13292. - echo "*** Warning: This library needs some functionality provided by $a_deplib."
  13293. + echo "*** Warning: linker path does not have real file for library $a_deplib."
  13294. echo "*** I have the capability to make that library automatically link in when"
  13295. echo "*** you link to this library. But I can only do this if you have a"
  13296. - echo "*** shared version of the library, which you do not appear to have."
  13297. + echo "*** shared version of the library, which you do not appear to have"
  13298. + echo "*** because I did check the linker path looking for a file starting"
  13299. + if test -z "$potlib" ; then
  13300. + echo "*** with $libname but no candidates were found. (...for file magic test)"
  13301. + else
  13302. + echo "*** with $libname and none of the candidates passed a file format test"
  13303. + echo "*** using a file magic. Last file checked: $potlib"
  13304. + fi
  13305. fi
  13306. else
  13307. # Add a -L argument.
  13308. @@ -2578,8 +2679,9 @@
  13309. for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  13310. potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  13311. for potent_lib in $potential_libs; do
  13312. + potlib="$potent_lib" # see symlink-check below in file_magic test
  13313. if eval echo \"$potent_lib\" 2>/dev/null \
  13314. - | sed 10q \
  13315. + | ${SED} 10q \
  13316. | egrep "$match_pattern_regex" > /dev/null; then
  13317. newdeplibs="$newdeplibs $a_deplib"
  13318. a_deplib=""
  13319. @@ -2590,10 +2692,17 @@
  13320. if test -n "$a_deplib" ; then
  13321. droppeddeps=yes
  13322. echo
  13323. - echo "*** Warning: This library needs some functionality provided by $a_deplib."
  13324. + echo "*** Warning: linker path does not have real file for library $a_deplib."
  13325. echo "*** I have the capability to make that library automatically link in when"
  13326. echo "*** you link to this library. But I can only do this if you have a"
  13327. - echo "*** shared version of the library, which you do not appear to have."
  13328. + echo "*** shared version of the library, which you do not appear to have"
  13329. + echo "*** because I did check the linker path looking for a file starting"
  13330. + if test -z "$potlib" ; then
  13331. + echo "*** with $libname but no candidates were found. (...for regex pattern test)"
  13332. + else
  13333. + echo "*** with $libname and none of the candidates passed a file format test"
  13334. + echo "*** using a regex pattern. Last file checked: $potlib"
  13335. + fi
  13336. fi
  13337. else
  13338. # Add a -L argument.
  13339. @@ -2683,7 +2792,7 @@
  13340. # Test again, we may have decided not to build it any more
  13341. if test "$build_libtool_libs" = yes; then
  13342. - if test "$hardcode_into_libs" = yes; then
  13343. + if test $hardcode_into_libs = yes; then
  13344. # Hardcode the library paths
  13345. hardcode_libdirs=
  13346. dep_rpath=
  13347. @@ -2784,7 +2893,7 @@
  13348. export_symbols="$output_objdir/$libname.exp"
  13349. $run $rm $export_symbols
  13350. eval cmds=\"$export_symbols_cmds\"
  13351. - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
  13352. + save_ifs="$IFS"; IFS='~'
  13353. for cmd in $cmds; do
  13354. IFS="$save_ifs"
  13355. $show "$cmd"
  13356. @@ -2858,9 +2967,20 @@
  13357. if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  13358. eval cmds=\"$archive_expsym_cmds\"
  13359. else
  13360. + save_deplibs="$deplibs"
  13361. + for conv in $convenience; do
  13362. + tmp_deplibs=
  13363. + for test_deplib in $deplibs; do
  13364. + if test "$test_deplib" != "$conv"; then
  13365. + tmp_deplibs="$tmp_deplibs $test_deplib"
  13366. + fi
  13367. + done
  13368. + deplibs="$tmp_deplibs"
  13369. + done
  13370. eval cmds=\"$archive_cmds\"
  13371. + deplibs="$save_deplibs"
  13372. fi
  13373. - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
  13374. + save_ifs="$IFS"; IFS='~'
  13375. for cmd in $cmds; do
  13376. IFS="$save_ifs"
  13377. $show "$cmd"
  13378. @@ -2988,7 +3108,7 @@
  13379. output="$obj"
  13380. eval cmds=\"$reload_cmds\"
  13381. - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
  13382. + save_ifs="$IFS"; IFS='~'
  13383. for cmd in $cmds; do
  13384. IFS="$save_ifs"
  13385. $show "$cmd"
  13386. @@ -3024,7 +3144,7 @@
  13387. reload_objs="$libobjs $reload_conv_objs"
  13388. output="$libobj"
  13389. eval cmds=\"$reload_cmds\"
  13390. - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
  13391. + save_ifs="$IFS"; IFS='~'
  13392. for cmd in $cmds; do
  13393. IFS="$save_ifs"
  13394. $show "$cmd"
  13395. @@ -3057,7 +3177,7 @@
  13396. prog)
  13397. case $host in
  13398. - *cygwin*) output=`echo $output | sed -e 's,.exe$,,;s,$,.exe,'` ;;
  13399. + *cygwin*) output=`echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;;
  13400. esac
  13401. if test -n "$vinfo"; then
  13402. $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2
  13403. @@ -3079,6 +3199,13 @@
  13404. # On Rhapsody replace the C library is the System framework
  13405. compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
  13406. finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
  13407. + case $host in
  13408. + *darwin*)
  13409. + # Don't allow lazy linking, it breaks C++ global constructors
  13410. + compile_command="$compile_command ${wl}-bind_at_load"
  13411. + finalize_command="$finalize_command ${wl}-bind_at_load"
  13412. + ;;
  13413. + esac
  13414. ;;
  13415. esac
  13416. @@ -3245,9 +3372,9 @@
  13417. if test -z "$export_symbols"; then
  13418. export_symbols="$output_objdir/$output.exp"
  13419. $run $rm $export_symbols
  13420. - $run eval "sed -n -e '/^: @PROGRAM@$/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
  13421. + $run eval "${SED} -n -e '/^: @PROGRAM@$/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
  13422. else
  13423. - $run eval "sed -e 's/\([][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$output.exp"'
  13424. + $run eval "${SED} -e 's/\([][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$output.exp"'
  13425. $run eval 'grep -f "$output_objdir/$output.exp" < "$nlist" > "$nlist"T'
  13426. $run eval 'mv "$nlist"T "$nlist"'
  13427. fi
  13428. @@ -3255,7 +3382,7 @@
  13429. for arg in $dlprefiles; do
  13430. $show "extracting global C symbols from \`$arg'"
  13431. - name=`echo "$arg" | sed -e 's%^.*/%%'`
  13432. + name=`echo "$arg" | ${SED} -e 's%^.*/%%'`
  13433. $run eval 'echo ": $name " >> "$nlist"'
  13434. $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
  13435. done
  13436. @@ -3270,7 +3397,13 @@
  13437. fi
  13438. # Try sorting and uniquifying the output.
  13439. - if grep -v "^: " < "$nlist" | sort +2 | uniq > "$nlist"S; then
  13440. + if grep -v "^: " < "$nlist" |
  13441. + if sort -k 3 </dev/null >/dev/null 2>&1; then
  13442. + sort -k 3
  13443. + else
  13444. + sort +2
  13445. + fi |
  13446. + uniq > "$nlist"S; then
  13447. :
  13448. else
  13449. grep -v "^: " < "$nlist" > "$nlist"S
  13450. @@ -3287,27 +3420,25 @@
  13451. #undef lt_preloaded_symbols
  13452. #if defined (__STDC__) && __STDC__
  13453. -# define lt_ptr_t void *
  13454. +# define lt_ptr void *
  13455. #else
  13456. -# define lt_ptr_t char *
  13457. +# define lt_ptr char *
  13458. # define const
  13459. #endif
  13460. /* The mapping between symbol names and symbols. */
  13461. const struct {
  13462. const char *name;
  13463. - lt_ptr_t address;
  13464. + lt_ptr address;
  13465. }
  13466. lt_preloaded_symbols[] =
  13467. {\
  13468. "
  13469. - sed -n -e 's/^: \([^ ]*\) $/ {\"\1\", (lt_ptr_t) 0},/p' \
  13470. - -e 's/^. \([^ ]*\) \([^ ]*\)$/ {"\2", (lt_ptr_t) \&\2},/p' \
  13471. - < "$nlist" >> "$output_objdir/$dlsyms"
  13472. + eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$dlsyms"
  13473. $echo >> "$output_objdir/$dlsyms" "\
  13474. - {0, (lt_ptr_t) 0}
  13475. + {0, (lt_ptr) 0}
  13476. };
  13477. /* This works around a problem in FreeBSD linker */
  13478. @@ -3494,7 +3625,7 @@
  13479. relink_command="$var=\"$var_value\"; export $var; $relink_command"
  13480. fi
  13481. done
  13482. - relink_command="cd `pwd`; $relink_command"
  13483. + relink_command="(cd `pwd`; $relink_command)"
  13484. relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  13485. fi
  13486. @@ -3514,7 +3645,7 @@
  13487. # win32 will think the script is a binary if it has
  13488. # a .exe suffix, so we strip it off here.
  13489. case $output in
  13490. - *.exe) output=`echo $output|sed 's,.exe$,,'` ;;
  13491. + *.exe) output=`echo $output|${SED} 's,.exe$,,'` ;;
  13492. esac
  13493. # test for cygwin because mv fails w/o .exe extensions
  13494. case $host in
  13495. @@ -3538,7 +3669,7 @@
  13496. # Sed substitution that helps us do robust quoting. It backslashifies
  13497. # metacharacters that are still active within double-quoted strings.
  13498. -Xsed='sed -e 1s/^X//'
  13499. +Xsed="${SED}"' -e 1s/^X//'
  13500. sed_quote_subst='$sed_quote_subst'
  13501. # The HP-UX ksh and POSIX shell print the target directory to stdout
  13502. @@ -3576,7 +3707,7 @@
  13503. test \"x\$thisdir\" = \"x\$file\" && thisdir=.
  13504. # Follow symbolic links until we get to the real thisdir.
  13505. - file=\`ls -ld \"\$file\" | sed -n 's/.*-> //p'\`
  13506. + file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
  13507. while test -n \"\$file\"; do
  13508. destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
  13509. @@ -3589,7 +3720,7 @@
  13510. fi
  13511. file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
  13512. - file=\`ls -ld \"\$thisdir/\$file\" | sed -n 's/.*-> //p'\`
  13513. + file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
  13514. done
  13515. # Try to get the absolute directory name.
  13516. @@ -3603,7 +3734,7 @@
  13517. progdir=\"\$thisdir/$objdir\"
  13518. if test ! -f \"\$progdir/\$program\" || \\
  13519. - { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | sed 1q\`; \\
  13520. + { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
  13521. test \"X\$file\" != \"X\$progdir/\$program\"; }; then
  13522. file=\"\$\$-\$program\"
  13523. @@ -3618,8 +3749,9 @@
  13524. # relink executable if necessary
  13525. if test -n \"\$relink_command\"; then
  13526. - if (eval \$relink_command); then :
  13527. + if relink_command_output=\`eval \$relink_command 2>&1\`; then :
  13528. else
  13529. + $echo \"\$relink_command_output\" >&2
  13530. $rm \"\$progdir/\$file\"
  13531. exit 1
  13532. fi
  13533. @@ -3648,7 +3780,7 @@
  13534. $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
  13535. # Some systems cannot cope with colon-terminated $shlibpath_var
  13536. - # The second colon is a workaround for a bug in BeOS R4 sed
  13537. + # The second colon is a workaround for a bug in BeOS R4 ${SED}
  13538. $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
  13539. export $shlibpath_var
  13540. @@ -3790,7 +3922,7 @@
  13541. eval cmds=\"$old_archive_cmds\"
  13542. fi
  13543. - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
  13544. + save_ifs="$IFS"; IFS='~'
  13545. for cmd in $cmds; do
  13546. IFS="$save_ifs"
  13547. $show "$cmd"
  13548. @@ -3823,7 +3955,7 @@
  13549. fi
  13550. done
  13551. # Quote the link command for shipping.
  13552. - relink_command="cd `pwd`; $SHELL $0 --mode=relink $libtool_args"
  13553. + relink_command="(cd `pwd`; $SHELL $0 --mode=relink $libtool_args @inst_prefix_dir@)"
  13554. relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  13555. # Only create the output if not a dry run.
  13556. @@ -3840,7 +3972,7 @@
  13557. case $deplib in
  13558. *.la)
  13559. name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
  13560. - eval libdir=`sed -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  13561. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  13562. if test -z "$libdir"; then
  13563. $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
  13564. exit 1
  13565. @@ -3854,7 +3986,7 @@
  13566. newdlfiles=
  13567. for lib in $dlfiles; do
  13568. name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  13569. - eval libdir=`sed -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  13570. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  13571. if test -z "$libdir"; then
  13572. $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  13573. exit 1
  13574. @@ -3865,7 +3997,7 @@
  13575. newdlprefiles=
  13576. for lib in $dlprefiles; do
  13577. name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  13578. - eval libdir=`sed -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  13579. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  13580. if test -z "$libdir"; then
  13581. $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  13582. exit 1
  13583. @@ -4089,7 +4221,7 @@
  13584. *.la)
  13585. # Check to see that this really is a libtool archive.
  13586. - if (sed -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  13587. + if (${SED} -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  13588. else
  13589. $echo "$modename: \`$file' is not a valid libtool archive" 1>&2
  13590. $echo "$help" 1>&2
  13591. @@ -4124,12 +4256,30 @@
  13592. dir="$dir$objdir"
  13593. if test -n "$relink_command"; then
  13594. + # Determine the prefix the user has applied to our future dir.
  13595. + inst_prefix_dir=`$echo "$destdir" | sed "s%$libdir\$%%"`
  13596. +
  13597. + # Don't allow the user to place us outside of our expected
  13598. + # location b/c this prevents finding dependent libraries that
  13599. + # are installed to the same prefix.
  13600. + if test "$inst_prefix_dir" = "$destdir"; then
  13601. + $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
  13602. + exit 1
  13603. + fi
  13604. +
  13605. + if test -n "$inst_prefix_dir"; then
  13606. + # Stick the inst_prefix_dir data into the link command.
  13607. + relink_command=`$echo "$relink_command" | sed "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
  13608. + else
  13609. + relink_command=`$echo "$relink_command" | sed "s%@inst_prefix_dir@%%"`
  13610. + fi
  13611. +
  13612. $echo "$modename: warning: relinking \`$file'" 1>&2
  13613. $show "$relink_command"
  13614. if $run eval "$relink_command"; then :
  13615. else
  13616. $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
  13617. - continue
  13618. + exit 1
  13619. fi
  13620. fi
  13621. @@ -4165,7 +4315,7 @@
  13622. # Do each command in the postinstall commands.
  13623. lib="$destdir/$realname"
  13624. eval cmds=\"$postinstall_cmds\"
  13625. - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
  13626. + save_ifs="$IFS"; IFS='~'
  13627. for cmd in $cmds; do
  13628. IFS="$save_ifs"
  13629. $show "$cmd"
  13630. @@ -4238,19 +4388,27 @@
  13631. fi
  13632. # Do a test to see if this is really a libtool program.
  13633. - if (sed -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  13634. + case $host in
  13635. + *cygwin*|*mingw*)
  13636. + wrapper=`echo $file | ${SED} -e 's,.exe$,,'`
  13637. + ;;
  13638. + *)
  13639. + wrapper=$file
  13640. + ;;
  13641. + esac
  13642. + if (${SED} -e '4q' $wrapper | egrep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then
  13643. notinst_deplibs=
  13644. relink_command=
  13645. # If there is no directory component, then add one.
  13646. case $file in
  13647. - */* | *\\*) . $file ;;
  13648. - *) . ./$file ;;
  13649. + */* | *\\*) . $wrapper ;;
  13650. + *) . ./$wrapper ;;
  13651. esac
  13652. # Check the variables that should have been set.
  13653. if test -z "$notinst_deplibs"; then
  13654. - $echo "$modename: invalid libtool wrapper script \`$file'" 1>&2
  13655. + $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2
  13656. exit 1
  13657. fi
  13658. @@ -4275,8 +4433,8 @@
  13659. relink_command=
  13660. # If there is no directory component, then add one.
  13661. case $file in
  13662. - */* | *\\*) . $file ;;
  13663. - *) . ./$file ;;
  13664. + */* | *\\*) . $wrapper ;;
  13665. + *) . ./$wrapper ;;
  13666. esac
  13667. outputname=
  13668. @@ -4324,7 +4482,7 @@
  13669. destfile=$destfile.exe
  13670. ;;
  13671. *:*.exe)
  13672. - destfile=`echo $destfile | sed -e 's,.exe$,,'`
  13673. + destfile=`echo $destfile | ${SED} -e 's,.exe$,,'`
  13674. ;;
  13675. esac
  13676. ;;
  13677. @@ -4352,7 +4510,7 @@
  13678. # Do each command in the postinstall commands.
  13679. eval cmds=\"$old_postinstall_cmds\"
  13680. - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
  13681. + save_ifs="$IFS"; IFS='~'
  13682. for cmd in $cmds; do
  13683. IFS="$save_ifs"
  13684. $show "$cmd"
  13685. @@ -4368,11 +4526,10 @@
  13686. if test -n "$current_libdirs"; then
  13687. # Maybe just do a dry run.
  13688. test -n "$run" && current_libdirs=" -n$current_libdirs"
  13689. - exec $SHELL $0 --finish$current_libdirs
  13690. - exit 1
  13691. + exec_cmd='$SHELL $0 --finish$current_libdirs'
  13692. + else
  13693. + exit 0
  13694. fi
  13695. -
  13696. - exit 0
  13697. ;;
  13698. # libtool finish mode
  13699. @@ -4391,7 +4548,7 @@
  13700. if test -n "$finish_cmds"; then
  13701. # Do each command in the finish commands.
  13702. eval cmds=\"$finish_cmds\"
  13703. - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
  13704. + save_ifs="$IFS"; IFS='~'
  13705. for cmd in $cmds; do
  13706. IFS="$save_ifs"
  13707. $show "$cmd"
  13708. @@ -4473,7 +4630,7 @@
  13709. case $file in
  13710. *.la)
  13711. # Check to see that this really is a libtool archive.
  13712. - if (sed -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  13713. + if (${SED} -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  13714. else
  13715. $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  13716. $echo "$help" 1>&2
  13717. @@ -4544,7 +4701,7 @@
  13718. -*) ;;
  13719. *)
  13720. # Do a test to see if this is really a libtool program.
  13721. - if (sed -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  13722. + if (${SED} -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  13723. # If there is no directory component, then add one.
  13724. case $file in
  13725. */* | *\\*) . $file ;;
  13726. @@ -4575,11 +4732,8 @@
  13727. LANG="$save_LANG"; export LANG
  13728. fi
  13729. - # Now actually exec the command.
  13730. - eval "exec \$cmd$args"
  13731. -
  13732. - $echo "$modename: cannot exec \$cmd$args"
  13733. - exit 1
  13734. + # Now prepare to actually exec the command.
  13735. + exec_cmd="\$cmd$args"
  13736. else
  13737. # Display what would be done.
  13738. if test -n "$shlibpath_var"; then
  13739. @@ -4641,14 +4795,14 @@
  13740. # Don't error if the file doesn't exist and rm -f was used.
  13741. if (test -L "$file") >/dev/null 2>&1 \
  13742. - || (test -h "$file") >/dev/null 2>&1 \
  13743. + || (test -h "$file") >/dev/null 2>&1 \
  13744. || test -f "$file"; then
  13745. - :
  13746. + :
  13747. elif test -d "$file"; then
  13748. - exit_status=1
  13749. + exit_status=1
  13750. continue
  13751. elif test "$rmforce" = yes; then
  13752. - continue
  13753. + continue
  13754. fi
  13755. rmfiles="$file"
  13756. @@ -4656,7 +4810,7 @@
  13757. case $name in
  13758. *.la)
  13759. # Possibly a libtool archive, so verify it.
  13760. - if (sed -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  13761. + if (${SED} -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  13762. . $dir/$name
  13763. # Delete the libtool libraries and symlinks.
  13764. @@ -4670,7 +4824,7 @@
  13765. if test -n "$library_names"; then
  13766. # Do each command in the postuninstall commands.
  13767. eval cmds=\"$postuninstall_cmds\"
  13768. - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
  13769. + save_ifs="$IFS"; IFS='~'
  13770. for cmd in $cmds; do
  13771. IFS="$save_ifs"
  13772. $show "$cmd"
  13773. @@ -4685,7 +4839,7 @@
  13774. if test -n "$old_library"; then
  13775. # Do each command in the old_postuninstall commands.
  13776. eval cmds=\"$old_postuninstall_cmds\"
  13777. - IFS="${IFS= }"; save_ifs="$IFS"; IFS='~'
  13778. + save_ifs="$IFS"; IFS='~'
  13779. for cmd in $cmds; do
  13780. IFS="$save_ifs"
  13781. $show "$cmd"
  13782. @@ -4711,7 +4865,7 @@
  13783. *)
  13784. # Do a test to see if this is a libtool program.
  13785. if test $mode = clean &&
  13786. - (sed -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  13787. + (${SED} -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  13788. relink_command=
  13789. . $dir/$file
  13790. @@ -4744,11 +4898,18 @@
  13791. ;;
  13792. esac
  13793. - $echo "$modename: invalid operation mode \`$mode'" 1>&2
  13794. - $echo "$generic_help" 1>&2
  13795. - exit 1
  13796. + if test -z "$exec_cmd"; then
  13797. + $echo "$modename: invalid operation mode \`$mode'" 1>&2
  13798. + $echo "$generic_help" 1>&2
  13799. + exit 1
  13800. + fi
  13801. fi # test -z "$show_help"
  13802. +if test -n "$exec_cmd"; then
  13803. + eval exec $exec_cmd
  13804. + exit 1
  13805. +fi
  13806. +
  13807. # We need to display help for each of the modes.
  13808. case $mode in
  13809. "") $echo \
  13810. --- linux-atm-2.4.1.orig/m4/Makefile.in
  13811. +++ linux-atm-2.4.1/m4/Makefile.in
  13812. @@ -1,4 +1,4 @@
  13813. -# Makefile.in generated automatically by automake 1.4-p5 from Makefile.am
  13814. +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
  13815. # Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
  13816. # This Makefile.in is free software; the Free Software Foundation
  13817. @@ -92,14 +92,14 @@
  13818. DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
  13819. -TAR = gtar
  13820. +TAR = tar
  13821. GZIP_ENV = --best
  13822. all: all-redirect
  13823. .SUFFIXES:
  13824. $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
  13825. - cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps m4/Makefile
  13826. + cd $(top_srcdir) && $(AUTOMAKE) --gnu m4/Makefile
  13827. -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  13828. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
  13829. cd $(top_builddir) \
  13830. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
  13831. @@ -112,6 +112,11 @@
  13832. subdir = m4
  13833. distdir: $(DISTFILES)
  13834. + here=`cd $(top_builddir) && pwd`; \
  13835. + top_distdir=`cd $(top_distdir) && pwd`; \
  13836. + distdir=`cd $(distdir) && pwd`; \
  13837. + cd $(top_srcdir) \
  13838. + && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu m4/Makefile
  13839. @for file in $(DISTFILES); do \
  13840. d=$(srcdir); \
  13841. if test -d $$d/$$file; then \
  13842. --- linux-atm-2.4.1.orig/src/Makefile.in
  13843. +++ linux-atm-2.4.1/src/Makefile.in
  13844. @@ -1,4 +1,4 @@
  13845. -# Makefile.in generated automatically by automake 1.4-p5 from Makefile.am
  13846. +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
  13847. # Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
  13848. # This Makefile.in is free software; the Free Software Foundation
  13849. @@ -85,8 +85,7 @@
  13850. VERSION = @VERSION@
  13851. YACC = @YACC@
  13852. -SUBDIRS = include lib test debug qgen saal sigd maint arpd ilmid man led lane \
  13853. - mpoad switch config extra
  13854. +SUBDIRS = include lib
  13855. mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  13856. CONFIG_HEADER = ../config.h
  13857. @@ -96,14 +95,14 @@
  13858. DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
  13859. -TAR = gtar
  13860. +TAR = tar
  13861. GZIP_ENV = --best
  13862. all: all-redirect
  13863. .SUFFIXES:
  13864. $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
  13865. - cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps src/Makefile
  13866. + cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile
  13867. -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  13868. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
  13869. cd $(top_builddir) \
  13870. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
  13871. @@ -186,7 +185,7 @@
  13872. awk ' { files[$$0] = 1; } \
  13873. END { for (i in files) print i; }'`; \
  13874. test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
  13875. - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
  13876. + || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags $$unique $(LISP))
  13877. mostlyclean-tags:
  13878. @@ -202,6 +201,11 @@
  13879. subdir = src
  13880. distdir: $(DISTFILES)
  13881. + here=`cd $(top_builddir) && pwd`; \
  13882. + top_distdir=`cd $(top_distdir) && pwd`; \
  13883. + distdir=`cd $(distdir) && pwd`; \
  13884. + cd $(top_srcdir) \
  13885. + && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu src/Makefile
  13886. @for file in $(DISTFILES); do \
  13887. d=$(srcdir); \
  13888. if test -d $$d/$$file; then \
  13889. --- linux-atm-2.4.1.orig/src/include/Makefile.in
  13890. +++ linux-atm-2.4.1/src/include/Makefile.in
  13891. @@ -1,4 +1,4 @@
  13892. -# Makefile.in generated automatically by automake 1.4-p5 from Makefile.am
  13893. +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
  13894. # Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
  13895. # This Makefile.in is free software; the Free Software Foundation
  13896. @@ -97,14 +97,14 @@
  13897. DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
  13898. -TAR = gtar
  13899. +TAR = tar
  13900. GZIP_ENV = --best
  13901. all: all-redirect
  13902. .SUFFIXES:
  13903. $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
  13904. - cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps src/include/Makefile
  13905. + cd $(top_srcdir) && $(AUTOMAKE) --gnu src/include/Makefile
  13906. -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  13907. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
  13908. cd $(top_builddir) \
  13909. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
  13910. @@ -142,7 +142,7 @@
  13911. awk ' { files[$$0] = 1; } \
  13912. END { for (i in files) print i; }'`; \
  13913. test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
  13914. - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
  13915. + || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags $$unique $(LISP))
  13916. mostlyclean-tags:
  13917. @@ -158,6 +158,11 @@
  13918. subdir = src/include
  13919. distdir: $(DISTFILES)
  13920. + here=`cd $(top_builddir) && pwd`; \
  13921. + top_distdir=`cd $(top_distdir) && pwd`; \
  13922. + distdir=`cd $(distdir) && pwd`; \
  13923. + cd $(top_srcdir) \
  13924. + && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu src/include/Makefile
  13925. @for file in $(DISTFILES); do \
  13926. d=$(srcdir); \
  13927. if test -d $$d/$$file; then \
  13928. --- linux-atm-2.4.1.orig/src/include/atmd.h
  13929. +++ linux-atm-2.4.1/src/include/atmd.h
  13930. @@ -24,6 +24,10 @@
  13931. (i)->prev = (b)->prev; if ((b)->prev) (b)->prev->next = i; else r = i; \
  13932. (b)->prev = i; } else { (i)->next = r; (i)->prev = NULL; \
  13933. if (r) (r)->prev = i; r = i; } })
  13934. +#define Q_INSERT_BEFORE_TYPED(r,t,i,b) ({ if (b) { (i)->next = b; \
  13935. + (i)->prev = (b)->prev; if ((b)->prev) (b)->prev->next = i; else r = i; \
  13936. + (b)->prev = i; } else { (i)->next = t r; (i)->prev = NULL; \
  13937. + if (t r) (t r)->prev = i; r = i; } })
  13938. #define Q_REMOVE(r,i) ({ if ((i)->next) (i)->next->prev = (i)->prev; \
  13939. if ((i)->prev) (i)->prev->next = (i)->next; else r = (i)->next; })
  13940. --- linux-atm-2.4.1.orig/src/lib/Makefile.in
  13941. +++ linux-atm-2.4.1/src/lib/Makefile.in
  13942. @@ -1,4 +1,4 @@
  13943. -# Makefile.in generated automatically by automake 1.4-p5 from Makefile.am
  13944. +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
  13945. # Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
  13946. # This Makefile.in is free software; the Free Software Foundation
  13947. @@ -92,16 +92,10 @@
  13948. # ATMLIBS_VERSION comes from configure.in in the toplevel directory
  13949. LDFLAGS = -version-info @LIBVER_CURRENT@:@LIBVER_REVISION@:@LIBVER_AGE@
  13950. -libatm_la_SOURCES = text2atm.c atm2text.c atmequal.c sdu2cell.c text2qos.c \
  13951. - qos2text.c qosequal.c sap2text.c text2sap.c sapequal.c \
  13952. - misc.c atmres.h ans.c \
  13953. - common.c diag.c kptr.c text2ip.c timer.c unix.c
  13954. +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
  13955. libatm_la_LIBADD = -lresolv
  13956. -libatm_la_DEPENDENCIES = $(top_builddir)/src/include/atm.h \
  13957. - $(top_builddir)/src/include/atmsap.h \
  13958. - $(top_builddir)/src/include/stdint.h \
  13959. - $(top_builddir)/src/include/atmd.h
  13960. +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
  13961. mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  13962. CONFIG_HEADER = ../../config.h
  13963. @@ -126,8 +120,13 @@
  13964. DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
  13965. -TAR = gtar
  13966. +TAR = tar
  13967. GZIP_ENV = --best
  13968. +DEP_FILES = .deps/ans.P .deps/atm2text.P .deps/atmequal.P \
  13969. +.deps/common.P .deps/diag.P .deps/kptr.P .deps/misc.P .deps/qos2text.P \
  13970. +.deps/qosequal.P .deps/sap2text.P .deps/sapequal.P .deps/sdu2cell.P \
  13971. +.deps/text2atm.P .deps/text2ip.P .deps/text2qos.P .deps/text2sap.P \
  13972. +.deps/timer.P .deps/unix.P
  13973. SOURCES = $(libatm_la_SOURCES)
  13974. OBJECTS = $(libatm_la_OBJECTS)
  13975. @@ -135,9 +134,9 @@
  13976. .SUFFIXES:
  13977. .SUFFIXES: .S .c .lo .o .obj .s
  13978. $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
  13979. - cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps src/lib/Makefile
  13980. + cd $(top_srcdir) && $(AUTOMAKE) --gnu src/lib/Makefile
  13981. -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  13982. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
  13983. cd $(top_builddir) \
  13984. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
  13985. @@ -167,9 +166,6 @@
  13986. $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$$p; \
  13987. done
  13988. -.c.o:
  13989. - $(COMPILE) -c $<
  13990. -
  13991. # FIXME: We should only use cygpath when building on Windows,
  13992. # and only if it is available.
  13993. .c.obj:
  13994. @@ -192,9 +188,6 @@
  13995. maintainer-clean-compile:
  13996. -.c.lo:
  13997. - $(LIBTOOL) --mode=compile $(COMPILE) -c $<
  13998. -
  13999. .s.lo:
  14000. $(LIBTOOL) --mode=compile $(COMPILE) -c $<
  14001. @@ -232,7 +225,7 @@
  14002. awk ' { files[$$0] = 1; } \
  14003. END { for (i in files) print i; }'`; \
  14004. test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
  14005. - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
  14006. + || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags $$unique $(LISP))
  14007. mostlyclean-tags:
  14008. @@ -248,6 +241,11 @@
  14009. subdir = src/lib
  14010. distdir: $(DISTFILES)
  14011. + here=`cd $(top_builddir) && pwd`; \
  14012. + top_distdir=`cd $(top_distdir) && pwd`; \
  14013. + distdir=`cd $(distdir) && pwd`; \
  14014. + cd $(top_srcdir) \
  14015. + && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu src/lib/Makefile
  14016. @for file in $(DISTFILES); do \
  14017. d=$(srcdir); \
  14018. if test -d $$d/$$file; then \
  14019. @@ -258,48 +256,38 @@
  14020. || cp -p $$d/$$file $(distdir)/$$file || :; \
  14021. fi; \
  14022. done
  14023. -ans.lo ans.o : ans.c ../../config.h ../../src/include/stdint.h \
  14024. - ../../src/include/atm.h atmres.h
  14025. -atm2text.lo atm2text.o : atm2text.c ../../config.h \
  14026. - ../../src/include/atm.h ../../src/include/stdint.h atmres.h
  14027. -atmequal.lo atmequal.o : atmequal.c ../../config.h \
  14028. - ../../src/include/atm.h ../../src/include/stdint.h
  14029. -common.lo common.o : common.c ../../config.h ../../src/include/stdint.h \
  14030. - ../../src/include/atmd.h ../../src/include/atm.h
  14031. -diag.lo diag.o : diag.c ../../config.h ../../src/include/atmd.h \
  14032. - ../../src/include/stdint.h ../../src/include/atm.h
  14033. -kptr.lo kptr.o : kptr.c ../../config.h ../../src/include/atm.h \
  14034. - ../../src/include/stdint.h ../../src/include/atmd.h
  14035. -misc.lo misc.o : misc.c ../../config.h ../../src/include/stdint.h \
  14036. - ../../src/include/atm.h ../../src/include/atmsap.h
  14037. -qos2text.lo qos2text.o : qos2text.c ../../config.h \
  14038. - ../../src/include/atm.h ../../src/include/stdint.h
  14039. -qosequal.lo qosequal.o : qosequal.c ../../config.h \
  14040. - ../../src/include/atm.h ../../src/include/stdint.h
  14041. -sap2text.lo sap2text.o : sap2text.c ../../config.h \
  14042. - ../../src/include/atmsap.h ../../src/include/stdint.h \
  14043. - ../../src/include/atm.h
  14044. -sapequal.lo sapequal.o : sapequal.c ../../config.h \
  14045. - ../../src/include/atm.h ../../src/include/stdint.h \
  14046. - ../../src/include/atmsap.h
  14047. -sdu2cell.lo sdu2cell.o : sdu2cell.c ../../config.h \
  14048. - ../../src/include/atm.h ../../src/include/stdint.h
  14049. -text2atm.lo text2atm.o : text2atm.c ../../config.h \
  14050. - ../../src/include/atm.h ../../src/include/stdint.h \
  14051. - ../../src/include/atmsap.h atmres.h
  14052. -text2ip.lo text2ip.o : text2ip.c ../../config.h \
  14053. - ../../src/include/stdint.h ../../src/include/atm.h \
  14054. - ../../src/include/atmd.h
  14055. -text2qos.lo text2qos.o : text2qos.c ../../config.h \
  14056. - ../../src/include/atm.h ../../src/include/stdint.h
  14057. -text2sap.lo text2sap.o : text2sap.c ../../config.h \
  14058. - ../../src/include/atmsap.h ../../src/include/stdint.h \
  14059. - ../../src/include/atm.h
  14060. -timer.lo timer.o : timer.c ../../config.h ../../src/include/atmd.h \
  14061. - ../../src/include/stdint.h ../../src/include/atm.h
  14062. -unix.lo unix.o : unix.c ../../config.h ../../src/include/atmd.h \
  14063. - ../../src/include/stdint.h ../../src/include/atm.h
  14064. +DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
  14065. +
  14066. +-include $(DEP_FILES)
  14067. +
  14068. +mostlyclean-depend:
  14069. +
  14070. +clean-depend:
  14071. +
  14072. +distclean-depend:
  14073. + -rm -rf .deps
  14074. +
  14075. +maintainer-clean-depend:
  14076. +
  14077. +%.o: %.c
  14078. + @echo '$(COMPILE) -c $<'; \
  14079. + $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
  14080. + @-cp .deps/$(*F).pp .deps/$(*F).P; \
  14081. + tr ' ' '\012' < .deps/$(*F).pp \
  14082. + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
  14083. + >> .deps/$(*F).P; \
  14084. + rm .deps/$(*F).pp
  14085. +
  14086. +%.lo: %.c
  14087. + @echo '$(LTCOMPILE) -c $<'; \
  14088. + $(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
  14089. + @-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \
  14090. + < .deps/$(*F).pp > .deps/$(*F).P; \
  14091. + tr ' ' '\012' < .deps/$(*F).pp \
  14092. + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
  14093. + >> .deps/$(*F).P; \
  14094. + rm -f .deps/$(*F).pp
  14095. info-am:
  14096. info: info-am
  14097. dvi-am:
  14098. @@ -337,27 +325,27 @@
  14099. maintainer-clean-generic:
  14100. mostlyclean-am: mostlyclean-libLTLIBRARIES mostlyclean-compile \
  14101. - mostlyclean-libtool mostlyclean-tags \
  14102. + mostlyclean-libtool mostlyclean-tags mostlyclean-depend \
  14103. mostlyclean-generic
  14104. mostlyclean: mostlyclean-am
  14105. clean-am: clean-libLTLIBRARIES clean-compile clean-libtool clean-tags \
  14106. - clean-generic mostlyclean-am
  14107. + clean-depend clean-generic mostlyclean-am
  14108. clean: clean-am
  14109. distclean-am: distclean-libLTLIBRARIES distclean-compile \
  14110. - distclean-libtool distclean-tags distclean-generic \
  14111. - clean-am
  14112. + distclean-libtool distclean-tags distclean-depend \
  14113. + distclean-generic clean-am
  14114. -rm -f libtool
  14115. distclean: distclean-am
  14116. maintainer-clean-am: maintainer-clean-libLTLIBRARIES \
  14117. maintainer-clean-compile maintainer-clean-libtool \
  14118. - maintainer-clean-tags maintainer-clean-generic \
  14119. - distclean-am
  14120. + maintainer-clean-tags maintainer-clean-depend \
  14121. + maintainer-clean-generic distclean-am
  14122. @echo "This command is intended for maintainers to use;"
  14123. @echo "it deletes files that may require special tools to rebuild."
  14124. @@ -369,12 +357,13 @@
  14125. distclean-compile clean-compile maintainer-clean-compile \
  14126. mostlyclean-libtool distclean-libtool clean-libtool \
  14127. maintainer-clean-libtool tags mostlyclean-tags distclean-tags \
  14128. -clean-tags maintainer-clean-tags distdir info-am info dvi-am dvi check \
  14129. -check-am installcheck-am installcheck install-exec-am install-exec \
  14130. -install-data-am install-data install-am install uninstall-am uninstall \
  14131. -all-redirect all-am all installdirs mostlyclean-generic \
  14132. -distclean-generic clean-generic maintainer-clean-generic clean \
  14133. -mostlyclean distclean maintainer-clean
  14134. +clean-tags maintainer-clean-tags distdir mostlyclean-depend \
  14135. +distclean-depend clean-depend maintainer-clean-depend info-am info \
  14136. +dvi-am dvi check check-am installcheck-am installcheck install-exec-am \
  14137. +install-exec install-data-am install-data install-am install \
  14138. +uninstall-am uninstall all-redirect all-am all installdirs \
  14139. +mostlyclean-generic distclean-generic clean-generic \
  14140. +maintainer-clean-generic clean mostlyclean distclean maintainer-clean
  14141. #libatm_la_SOURCES = text2atm.c atm2text.c atmequal.c sdu2cell.c text2qos.c \
  14142. --- linux-atm-2.4.1.orig/src/lib/sapequal.c
  14143. +++ linux-atm-2.4.1/src/lib/sapequal.c
  14144. @@ -65,6 +65,7 @@
  14145. CHECK(l2.itu.window,a.l2.itu.window > b.l2.itu.window);
  14146. break;
  14147. default:
  14148. + break;
  14149. }
  14150. switch (a.l3_proto) {
  14151. case ATM_L3_X25:
  14152. @@ -83,6 +84,7 @@
  14153. if (a.l3.user != b.l3.user) return 0;
  14154. break;
  14155. default:
  14156. + break;
  14157. }
  14158. return 1;
  14159. }
  14160. --- linux-atm-2.4.1.orig/src/test/Makefile.in
  14161. +++ linux-atm-2.4.1/src/test/Makefile.in
  14162. @@ -1,4 +1,4 @@
  14163. -# Makefile.in generated automatically by automake 1.4-p5 from Makefile.am
  14164. +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
  14165. # Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
  14166. # This Makefile.in is free software; the Free Software Foundation
  14167. @@ -168,8 +168,11 @@
  14168. DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
  14169. -TAR = gtar
  14170. +TAR = tar
  14171. GZIP_ENV = --best
  14172. +DEP_FILES = .deps/align.P .deps/aping.P .deps/aread.P .deps/awrite.P \
  14173. +.deps/br.P .deps/bw.P .deps/isp.P .deps/ispl_l.P .deps/ispl_y.P \
  14174. +.deps/ttcp.P .deps/window.P
  14175. SOURCES = $(aread_SOURCES) $(awrite_SOURCES) $(ttcp_atm_SOURCES) $(align_SOURCES) $(aping_SOURCES) $(br_SOURCES) $(bw_SOURCES) $(isp_SOURCES) $(window_SOURCES)
  14176. OBJECTS = $(aread_OBJECTS) $(awrite_OBJECTS) $(ttcp_atm_OBJECTS) $(align_OBJECTS) $(aping_OBJECTS) $(br_OBJECTS) $(bw_OBJECTS) $(isp_OBJECTS) $(window_OBJECTS)
  14177. @@ -177,9 +180,9 @@
  14178. .SUFFIXES:
  14179. .SUFFIXES: .S .c .l .lo .o .obj .s .y
  14180. $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
  14181. - cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps src/test/Makefile
  14182. + cd $(top_srcdir) && $(AUTOMAKE) --gnu src/test/Makefile
  14183. -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  14184. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
  14185. cd $(top_builddir) \
  14186. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
  14187. @@ -218,9 +221,6 @@
  14188. maintainer-clean-noinstPROGRAMS:
  14189. -.c.o:
  14190. - $(COMPILE) -c $<
  14191. -
  14192. # FIXME: We should only use cygpath when building on Windows,
  14193. # and only if it is available.
  14194. .c.obj:
  14195. @@ -243,9 +243,6 @@
  14196. maintainer-clean-compile:
  14197. -.c.lo:
  14198. - $(LIBTOOL) --mode=compile $(COMPILE) -c $<
  14199. -
  14200. .s.lo:
  14201. $(LIBTOOL) --mode=compile $(COMPILE) -c $<
  14202. @@ -325,7 +322,7 @@
  14203. awk ' { files[$$0] = 1; } \
  14204. END { for (i in files) print i; }'`; \
  14205. test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
  14206. - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
  14207. + || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags $$unique $(LISP))
  14208. mostlyclean-tags:
  14209. @@ -341,6 +338,11 @@
  14210. subdir = src/test
  14211. distdir: $(DISTFILES)
  14212. + here=`cd $(top_builddir) && pwd`; \
  14213. + top_distdir=`cd $(top_distdir) && pwd`; \
  14214. + distdir=`cd $(distdir) && pwd`; \
  14215. + cd $(top_srcdir) \
  14216. + && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu src/test/Makefile
  14217. @for file in $(DISTFILES); do \
  14218. d=$(srcdir); \
  14219. if test -d $$d/$$file; then \
  14220. @@ -351,30 +353,38 @@
  14221. || cp -p $$d/$$file $(distdir)/$$file || :; \
  14222. fi; \
  14223. done
  14224. -align.o: align.c ../../config.h ../../src/include/atm.h \
  14225. - ../../src/include/stdint.h
  14226. -aping.o: aping.c ../../config.h ../../src/include/atm.h \
  14227. - ../../src/include/stdint.h
  14228. -aread.o: aread.c ../../config.h ../../src/include/atm.h \
  14229. - ../../src/include/stdint.h
  14230. -awrite.o: awrite.c ../../config.h ../../src/include/atm.h \
  14231. - ../../src/include/stdint.h
  14232. -br.o: br.c ../../config.h ../../src/include/atm.h \
  14233. - ../../src/include/stdint.h
  14234. -bw.o: bw.c ../../config.h ../../src/include/atm.h \
  14235. - ../../src/include/stdint.h
  14236. -isp.o: isp.c ../../config.h ../../src/include/atm.h \
  14237. - ../../src/include/stdint.h ../../src/include/atmd.h isp.h \
  14238. - errnos.inc
  14239. -ispl_l.o: ispl_l.c ../../config.h ../../src/include/stdint.h isp.h \
  14240. - ../../src/include/atm.h ispl_y.h
  14241. -ispl_y.o: ispl_y.c ../../config.h ../../src/include/atm.h \
  14242. - ../../src/include/stdint.h isp.h
  14243. -ttcp.o: ttcp.c ../../config.h ../../src/include/stdint.h \
  14244. - ../../src/include/atm.h ../../src/include/atmsap.h
  14245. -window.o: window.c ../../config.h ../../src/include/atm.h \
  14246. - ../../src/include/stdint.h
  14247. +DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
  14248. +
  14249. +-include $(DEP_FILES)
  14250. +
  14251. +mostlyclean-depend:
  14252. +
  14253. +clean-depend:
  14254. +
  14255. +distclean-depend:
  14256. + -rm -rf .deps
  14257. +
  14258. +maintainer-clean-depend:
  14259. +
  14260. +%.o: %.c
  14261. + @echo '$(COMPILE) -c $<'; \
  14262. + $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
  14263. + @-cp .deps/$(*F).pp .deps/$(*F).P; \
  14264. + tr ' ' '\012' < .deps/$(*F).pp \
  14265. + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
  14266. + >> .deps/$(*F).P; \
  14267. + rm .deps/$(*F).pp
  14268. +
  14269. +%.lo: %.c
  14270. + @echo '$(LTCOMPILE) -c $<'; \
  14271. + $(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
  14272. + @-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \
  14273. + < .deps/$(*F).pp > .deps/$(*F).P; \
  14274. + tr ' ' '\012' < .deps/$(*F).pp \
  14275. + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
  14276. + >> .deps/$(*F).P; \
  14277. + rm -f .deps/$(*F).pp
  14278. info-am:
  14279. info: info-am
  14280. dvi-am:
  14281. @@ -412,21 +422,22 @@
  14282. -rm -f config.cache config.log stamp-h stamp-h[0-9]*
  14283. maintainer-clean-generic:
  14284. - -test -z "ispl_llispl_yhispl_yc" || rm -f ispl_ll ispl_yh ispl_yc
  14285. + -test -z "ispl_lcispl_yhispl_yc" || rm -f ispl_lc ispl_yh ispl_yc
  14286. mostlyclean-am: mostlyclean-binPROGRAMS mostlyclean-noinstPROGRAMS \
  14287. mostlyclean-compile mostlyclean-libtool \
  14288. - mostlyclean-tags mostlyclean-generic
  14289. + mostlyclean-tags mostlyclean-depend mostlyclean-generic
  14290. mostlyclean: mostlyclean-am
  14291. clean-am: clean-binPROGRAMS clean-noinstPROGRAMS clean-compile \
  14292. - clean-libtool clean-tags clean-generic mostlyclean-am
  14293. + clean-libtool clean-tags clean-depend clean-generic \
  14294. + mostlyclean-am
  14295. clean: clean-am
  14296. distclean-am: distclean-binPROGRAMS distclean-noinstPROGRAMS \
  14297. distclean-compile distclean-libtool distclean-tags \
  14298. - distclean-generic clean-am
  14299. + distclean-depend distclean-generic clean-am
  14300. -rm -f libtool
  14301. distclean: distclean-am
  14302. @@ -434,8 +445,8 @@
  14303. maintainer-clean-am: maintainer-clean-binPROGRAMS \
  14304. maintainer-clean-noinstPROGRAMS \
  14305. maintainer-clean-compile maintainer-clean-libtool \
  14306. - maintainer-clean-tags maintainer-clean-generic \
  14307. - distclean-am
  14308. + maintainer-clean-tags maintainer-clean-depend \
  14309. + maintainer-clean-generic distclean-am
  14310. @echo "This command is intended for maintainers to use;"
  14311. @echo "it deletes files that may require special tools to rebuild."
  14312. @@ -448,19 +459,22 @@
  14313. mostlyclean-compile distclean-compile clean-compile \
  14314. maintainer-clean-compile mostlyclean-libtool distclean-libtool \
  14315. clean-libtool maintainer-clean-libtool tags mostlyclean-tags \
  14316. -distclean-tags clean-tags maintainer-clean-tags distdir info-am info \
  14317. -dvi-am dvi check check-am installcheck-am installcheck install-exec-am \
  14318. -install-exec install-data-am install-data install-am install \
  14319. -uninstall-am uninstall all-redirect all-am all installdirs \
  14320. -mostlyclean-generic distclean-generic clean-generic \
  14321. -maintainer-clean-generic clean mostlyclean distclean maintainer-clean
  14322. +distclean-tags clean-tags maintainer-clean-tags distdir \
  14323. +mostlyclean-depend distclean-depend clean-depend \
  14324. +maintainer-clean-depend info-am info dvi-am dvi check check-am \
  14325. +installcheck-am installcheck install-exec-am install-exec \
  14326. +install-data-am install-data install-am install uninstall-am uninstall \
  14327. +all-redirect all-am all installdirs mostlyclean-generic \
  14328. +distclean-generic clean-generic maintainer-clean-generic clean \
  14329. +mostlyclean distclean maintainer-clean
  14330. isp.o: errnos.inc
  14331. errnos.inc: mkerrnos.pl
  14332. - @PERL@ ./mkerrnos.pl </usr/include/asm/errno.h \
  14333. - >errnos.inc || { rm -f errnos.inc; exit 1; }
  14334. + cpp -I/usr/include/ -dM /usr/include/asm/errno.h | grep "^#define E" \
  14335. + | @PERL@ ./mkerrnos.pl | grep -v EMAXERRNO >errnos.inc \
  14336. + || { rm -f errnos.inc; exit 1; }
  14337. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  14338. # Otherwise a system limit (for SysV at least) may be exceeded.
  14339. --- linux-atm-2.4.1.orig/src/test/Makefile.am
  14340. +++ linux-atm-2.4.1/src/test/Makefile.am
  14341. @@ -26,6 +26,7 @@
  14342. isp.o: errnos.inc
  14343. errnos.inc: mkerrnos.pl
  14344. - @PERL@ ./mkerrnos.pl </usr/include/asm/errno.h \
  14345. - >errnos.inc || { rm -f errnos.inc; exit 1; }
  14346. -
  14347. + cpp -I/usr/include/ -dM /usr/include/asm/errno.h | grep "^#define E" \
  14348. + | @PERL@ ./mkerrnos.pl | grep -v EMAXERRNO >errnos.inc \
  14349. + || { rm -f errnos.inc; exit 1; }
  14350. +
  14351. --- linux-atm-2.4.1.orig/src/test/ttcp.c
  14352. +++ linux-atm-2.4.1/src/test/ttcp.c
  14353. @@ -55,6 +55,8 @@
  14354. /* #define SYSV */ /* required on SGI IRIX releases before 3.3 */
  14355. #include <stdio.h>
  14356. +#include <stdlib.h>
  14357. +#include <string.h>
  14358. #include <signal.h>
  14359. #include <ctype.h>
  14360. #include <errno.h>
  14361. @@ -67,6 +69,7 @@
  14362. #include <sys/time.h> /* struct timeval */
  14363. #include <atm.h>
  14364. #include <atmsap.h>
  14365. +#include <unistd.h>
  14366. #if defined(SYSV)
  14367. #include <sys/times.h>
  14368. @@ -85,7 +88,8 @@
  14369. struct sockaddr_atmsvc satm;
  14370. struct atm_qos qos;
  14371. -int domain, fromlen;
  14372. +int domain;
  14373. +socklen_t fromlen;
  14374. int fd; /* fd of network socket */
  14375. int buflen = 8 * 1024; /* length of buffer */
  14376. @@ -120,7 +124,6 @@
  14377. static struct rusage ru0; /* Resource utilization at the start */
  14378. struct hostent *addr;
  14379. -extern int errno;
  14380. extern int optind;
  14381. extern char *optarg;
  14382. @@ -158,23 +161,21 @@
  14383. unsigned long numCalls; /* # of I/O system calls */
  14384. double cput, realt; /* user, real time (seconds) */
  14385. -void err();
  14386. -void mes();
  14387. -int pattern();
  14388. -void prep_timer();
  14389. -double read_timer();
  14390. -int Nread();
  14391. -int Nwrite();
  14392. -void delay();
  14393. -int mread();
  14394. -char *outfmt();
  14395. -static void prusage();
  14396. -static void tvadd();
  14397. -static void tvsub();
  14398. -static void psecs();
  14399. +void err(const char *s);
  14400. +void mes(const char *s);
  14401. +void prep_timer(void);
  14402. +void pattern(char *cp, int cnt);
  14403. +int Nread(int nfd, char *Nbuf, int count);
  14404. +int Nwrite(int nfd, char *Nbuf, int count);
  14405. +void delay(int us);
  14406. +int mread(int mfd, char *bufp, unsigned n);
  14407. +char *outfmt(double b);
  14408. +static void prusage(struct rusage *r0, struct rusage *r1, struct timeval *e, struct timeval *b, char *outp);
  14409. +static void tvadd(struct timeval *tsum, struct timeval *t0, struct timeval *t1);
  14410. +static void tvsub(struct timeval *tdiff, struct timeval *t1, struct timeval *t0);
  14411. +static void psecs(long l, char *cp);
  14412. -void
  14413. -sigpipe()
  14414. +void sigpipe(int unused)
  14415. {
  14416. }
  14417. @@ -183,16 +184,14 @@
  14418. * main -
  14419. *-------------------------------------------------------------------------
  14420. */
  14421. -main(argc,argv)
  14422. -int argc;
  14423. -char **argv;
  14424. +int main(int argc,char **argv)
  14425. {
  14426. struct timeval td;
  14427. unsigned long addr_tmp;
  14428. const char *port_name = NULL,*tos = NULL;
  14429. int c;
  14430. double mbps;
  14431. -int no_check = 0;
  14432. + int no_check = 0;
  14433. if (argc < 2) goto usage;
  14434. @@ -275,7 +274,7 @@
  14435. }
  14436. }
  14437. - if (port_name)
  14438. + if (port_name) {
  14439. if (atm) goto usage;
  14440. else {
  14441. struct servent *se;
  14442. @@ -283,13 +282,13 @@
  14443. se = getservbyname(port_name,udp ? "udp" : "tcp");
  14444. if (se) port = ntohs(se->s_port);
  14445. else {
  14446. - const char *end;
  14447. + char *end;
  14448. port = strtoul(port_name,&end,0);
  14449. if (*end) goto usage;
  14450. }
  14451. }
  14452. -
  14453. + }
  14454. host = argv[optind];
  14455. if (atm) {
  14456. @@ -435,9 +434,9 @@
  14457. #endif
  14458. if (!atm || satm.sas_family == AF_ATMPVC || !trans)
  14459. - if (bind(fd, atm ? &satm : &sinme, atm ? satm.sas_family == AF_ATMPVC ?
  14460. - sizeof(struct sockaddr_atmpvc) : sizeof(struct sockaddr_atmsvc) :
  14461. - sizeof(sinme)) < 0)
  14462. + if (bind(fd, atm ?
  14463. + (struct sockaddr *)&satm : (struct sockaddr *)&sinme,
  14464. + atm ? satm.sas_family == AF_ATMPVC ? sizeof(struct sockaddr_atmpvc) : sizeof(struct sockaddr_atmsvc) : sizeof(sinme)) < 0)
  14465. err("bind");
  14466. if (!udp || (atm && satm.sas_family == AF_ATMSVC)) {
  14467. @@ -453,8 +452,8 @@
  14468. err("setsockopt");
  14469. }
  14470. - if (connect(fd, atm ? &satm : &sinhim, atm ? sizeof(satm) :
  14471. - sizeof(sinhim)) < 0)
  14472. + if (connect(fd,
  14473. + atm ? (struct sockaddr *)&satm : (struct sockaddr *)&sinhim, atm ? sizeof(satm) : sizeof(sinhim)) < 0)
  14474. err("connect");
  14475. mes("connect");
  14476. @@ -482,13 +481,13 @@
  14477. fromlen = sizeof(frominet);
  14478. domain = AF_INET;
  14479. - if ((fd=accept(fd, &frominet, &fromlen) ) < 0)
  14480. + if ((fd=accept(fd, (struct sockaddr *)&frominet, &fromlen) ) < 0)
  14481. err("accept");
  14482. {
  14483. struct sockaddr_atmsvc peer;
  14484. int peerlen = sizeof(peer);
  14485. - if (getpeername(fd, (struct sockaddr_in *) &peer,
  14486. + if (getpeername(fd, (struct sockaddr *) &peer,
  14487. &peerlen) < 0) {
  14488. err("getpeername");
  14489. }
  14490. @@ -638,13 +637,13 @@
  14491. nbytes, cput, outfmt((double)nbytes/cput));
  14492. fprintf(stdout,
  14493. - "ttcp%s: %d I/O calls, msec/call = %.2f, calls/sec = %.2f\n",
  14494. + "ttcp%s: %lu I/O calls, msec/call = %.2f, calls/sec = %.2f\n",
  14495. trans?"-t":"-r",
  14496. numCalls,
  14497. 1000.0 * realt/((double)numCalls),
  14498. ((double)numCalls)/realt);
  14499. fprintf(stdout,
  14500. - "ttcp%s: buffer address %#x\n",
  14501. + "ttcp%s: buffer address %p\n",
  14502. trans?"-t":"-r",
  14503. buf);
  14504. }
  14505. @@ -656,8 +655,7 @@
  14506. }
  14507. void
  14508. -err(s)
  14509. -char *s;
  14510. +err(const char *s)
  14511. {
  14512. int en = errno;
  14513. @@ -670,8 +668,7 @@
  14514. }
  14515. void
  14516. -mes(s)
  14517. -char *s;
  14518. +mes(const char *s)
  14519. {
  14520. fprintf(stderr,"ttcp%s: %s\n", trans?"-t":"-r", s);
  14521. }
  14522. @@ -681,9 +678,7 @@
  14523. * pattern -
  14524. *-------------------------------------------------------------------------
  14525. */
  14526. -pattern(cp, cnt)
  14527. -register char *cp;
  14528. -register int cnt;
  14529. +void pattern(char *cp, int cnt)
  14530. {
  14531. register char c;
  14532. c = 0;
  14533. @@ -694,9 +689,7 @@
  14534. }
  14535. -char *
  14536. -outfmt(b)
  14537. -double b;
  14538. +char *outfmt(double b)
  14539. {
  14540. static char obuf[50];
  14541. switch (fmt) {
  14542. @@ -758,7 +751,7 @@
  14543. * P R E P _ T I M E R
  14544. */
  14545. void
  14546. -prep_timer()
  14547. +prep_timer(void)
  14548. {
  14549. gettimeofday(&start_time, (struct timezone *)0);
  14550. getrusage(RUSAGE_SELF, &ru0);
  14551. @@ -768,8 +761,7 @@
  14552. * read_timer -
  14553. *-------------------------------------------------------------------------
  14554. */
  14555. -double read_timer(str,len)
  14556. -char *str;
  14557. +double read_timer(char *str,int len)
  14558. {
  14559. struct rusage ru1;
  14560. struct timeval tend, tstart, td;
  14561. @@ -788,15 +780,11 @@
  14562. return( cput );
  14563. }
  14564. -static void
  14565. -prusage(r0, r1, e, b, outp)
  14566. - register struct rusage *r0, *r1;
  14567. - struct timeval *e, *b;
  14568. - char *outp;
  14569. +static void prusage(struct rusage *r0, struct rusage *r1, struct timeval *e, struct timeval *b, char *outp)
  14570. {
  14571. struct timeval tdiff;
  14572. register time_t t;
  14573. - register char *cp;
  14574. + register const char *cp;
  14575. register int i;
  14576. int ms;
  14577. @@ -823,13 +811,13 @@
  14578. case 'U':
  14579. tvsub(&tdiff, &r1->ru_utime, &r0->ru_utime);
  14580. - sprintf(outp,"%d.%01d", tdiff.tv_sec, tdiff.tv_usec/100000);
  14581. + sprintf(outp,"%ld.%01ld", tdiff.tv_sec, tdiff.tv_usec/100000);
  14582. END(outp);
  14583. break;
  14584. case 'S':
  14585. tvsub(&tdiff, &r1->ru_stime, &r0->ru_stime);
  14586. - sprintf(outp,"%d.%01d", tdiff.tv_sec, tdiff.tv_usec/100000);
  14587. + sprintf(outp,"%ld.%01ld", tdiff.tv_sec, tdiff.tv_usec/100000);
  14588. END(outp);
  14589. break;
  14590. @@ -851,49 +839,49 @@
  14591. break;
  14592. case 'X':
  14593. - sprintf(outp,"%d", t == 0 ? 0 : (r1->ru_ixrss-r0->ru_ixrss)/t);
  14594. + sprintf(outp,"%ld", t == 0 ? 0 : (r1->ru_ixrss-r0->ru_ixrss)/t);
  14595. END(outp);
  14596. break;
  14597. case 'D':
  14598. - sprintf(outp,"%d", t == 0 ? 0 :
  14599. + sprintf(outp,"%ld", t == 0 ? 0 :
  14600. (r1->ru_idrss+r1->ru_isrss-(r0->ru_idrss+r0->ru_isrss))/t);
  14601. END(outp);
  14602. break;
  14603. case 'K':
  14604. - sprintf(outp,"%d", t == 0 ? 0 :
  14605. + sprintf(outp,"%ld", t == 0 ? 0 :
  14606. ((r1->ru_ixrss+r1->ru_isrss+r1->ru_idrss) -
  14607. (r0->ru_ixrss+r0->ru_idrss+r0->ru_isrss))/t);
  14608. END(outp);
  14609. break;
  14610. case 'M':
  14611. - sprintf(outp,"%d", r1->ru_maxrss/2);
  14612. + sprintf(outp,"%ld", r1->ru_maxrss/2);
  14613. END(outp);
  14614. break;
  14615. case 'F':
  14616. - sprintf(outp,"%d", r1->ru_majflt-r0->ru_majflt);
  14617. + sprintf(outp,"%ld", r1->ru_majflt-r0->ru_majflt);
  14618. END(outp);
  14619. break;
  14620. case 'R':
  14621. - sprintf(outp,"%d", r1->ru_minflt-r0->ru_minflt);
  14622. + sprintf(outp,"%ld", r1->ru_minflt-r0->ru_minflt);
  14623. END(outp);
  14624. break;
  14625. case 'I':
  14626. - sprintf(outp,"%d", r1->ru_inblock-r0->ru_inblock);
  14627. + sprintf(outp,"%ld", r1->ru_inblock-r0->ru_inblock);
  14628. END(outp);
  14629. break;
  14630. case 'O':
  14631. - sprintf(outp,"%d", r1->ru_oublock-r0->ru_oublock);
  14632. + sprintf(outp,"%ld", r1->ru_oublock-r0->ru_oublock);
  14633. END(outp);
  14634. break;
  14635. case 'C':
  14636. - sprintf(outp,"%d+%d", r1->ru_nvcsw-r0->ru_nvcsw,
  14637. + sprintf(outp,"%ld+%ld", r1->ru_nvcsw-r0->ru_nvcsw,
  14638. r1->ru_nivcsw-r0->ru_nivcsw );
  14639. END(outp);
  14640. break;
  14641. @@ -903,9 +891,7 @@
  14642. *outp = '\0';
  14643. }
  14644. -static void
  14645. -tvadd(tsum, t0, t1)
  14646. - struct timeval *tsum, *t0, *t1;
  14647. +static void tvadd(struct timeval *tsum, struct timeval *t0, struct timeval *t1)
  14648. {
  14649. tsum->tv_sec = t0->tv_sec + t1->tv_sec;
  14650. @@ -919,8 +905,7 @@
  14651. * tvsub - tdiff = t1 - t0
  14652. *-------------------------------------------------------------------------
  14653. */
  14654. -static void tvsub(tdiff, t1, t0)
  14655. - struct timeval *tdiff, *t1, *t0;
  14656. +static void tvsub(struct timeval *tdiff, struct timeval *t1, struct timeval *t0)
  14657. {
  14658. tdiff->tv_sec = t1->tv_sec - t0->tv_sec;
  14659. @@ -931,10 +916,7 @@
  14660. }
  14661. }
  14662. -static void
  14663. -psecs(l,cp)
  14664. -long l;
  14665. -register char *cp;
  14666. +static void psecs(long l, char *cp)
  14667. {
  14668. register int i;
  14669. @@ -958,26 +940,23 @@
  14670. /*
  14671. * N R E A D
  14672. */
  14673. -Nread( fd, buf, count )
  14674. -int fd;
  14675. -char *buf;
  14676. -int count;
  14677. +int Nread( int nfd, char *Nbuf, int count )
  14678. {
  14679. struct sockaddr_in from;
  14680. int len = sizeof(from);
  14681. register int cnt;
  14682. if( udp ) {
  14683. #if 0
  14684. - cnt = recvfrom( fd, buf, count, 0, &from, &len );
  14685. + cnt = recvfrom( nfd, Nbuf, count, 0, &from, &len );
  14686. #else
  14687. - cnt = recv( fd, buf, count, 0);
  14688. + cnt = recv( nfd, Nbuf, count, 0);
  14689. #endif
  14690. numCalls++;
  14691. } else {
  14692. if( b_flag )
  14693. - cnt = mread( fd, buf, count ); /* fill buf */
  14694. + cnt = mread( nfd, Nbuf, count ); /* fill buf */
  14695. else {
  14696. - cnt = read( fd, buf, count );
  14697. + cnt = read( nfd, Nbuf, count );
  14698. numCalls++;
  14699. }
  14700. if (touchdata && cnt > 0) {
  14701. @@ -994,17 +973,15 @@
  14702. * Nwrite -
  14703. *-------------------------------------------------------------------------
  14704. */
  14705. -Nwrite(fd, buf, count)
  14706. -int fd;
  14707. -char *buf;
  14708. -int count;
  14709. +int Nwrite(int nfd, char *Nbuf, int count)
  14710. {
  14711. register int cnt;
  14712. if (udp) {
  14713. again:
  14714. - if (atm) cnt = write(fd, buf, count);
  14715. - else cnt = sendto(fd, buf, count, 0, &sinhim, sizeof(sinhim));
  14716. + if (atm) cnt = write(nfd, Nbuf, count);
  14717. + else cnt = sendto(nfd, Nbuf, count, 0, (struct sockaddr *)&sinhim,
  14718. + sizeof(sinhim));
  14719. numCalls++;
  14720. if ( cnt<0 && errno == ENOBUFS ) {
  14721. delay(18000);
  14722. @@ -1012,7 +989,7 @@
  14723. goto again;
  14724. }
  14725. } else {
  14726. - cnt = write(fd, buf, count);
  14727. + cnt = write(nfd, Nbuf, count);
  14728. numCalls++;
  14729. }
  14730. if (cnt < 0) perror("WA:write");
  14731. @@ -1020,13 +997,13 @@
  14732. }
  14733. void
  14734. -delay(us)
  14735. +delay(int us)
  14736. {
  14737. struct timeval tv;
  14738. tv.tv_sec = 0;
  14739. tv.tv_usec = us;
  14740. - (void)select( 1, (char *)0, (char *)0, (char *)0, &tv );
  14741. + (void)select( 1, NULL, NULL, NULL, &tv );
  14742. }
  14743. /*
  14744. @@ -1038,17 +1015,13 @@
  14745. * network connections don't deliver data with the same
  14746. * grouping as it is written with. Written by Robert S. Miles, BRL.
  14747. */
  14748. -int
  14749. -mread(fd, bufp, n)
  14750. -int fd;
  14751. -register char *bufp;
  14752. -unsigned n;
  14753. +int mread(int mfd, char *bufp, unsigned n)
  14754. {
  14755. register unsigned count = 0;
  14756. register int nread;
  14757. do {
  14758. - nread = read(fd, bufp, n-count);
  14759. + nread = read(mfd, bufp, n-count);
  14760. numCalls++;
  14761. if(nread < 0) {
  14762. perror("ttcp_mread");
  14763. --- linux-atm-2.4.1.orig/src/debug/Makefile.in
  14764. +++ linux-atm-2.4.1/src/debug/Makefile.in
  14765. @@ -1,4 +1,4 @@
  14766. -# Makefile.in generated automatically by automake 1.4-p5 from Makefile.am
  14767. +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
  14768. # Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
  14769. # This Makefile.in is free software; the Free Software Foundation
  14770. @@ -129,8 +129,9 @@
  14771. DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
  14772. -TAR = gtar
  14773. +TAR = tar
  14774. GZIP_ENV = --best
  14775. +DEP_FILES = .deps/delay.P .deps/svctor.P
  14776. SOURCES = $(delay_SOURCES) $(svctor_SOURCES)
  14777. OBJECTS = $(delay_OBJECTS) $(svctor_OBJECTS)
  14778. @@ -138,9 +139,9 @@
  14779. .SUFFIXES:
  14780. .SUFFIXES: .S .c .lo .o .obj .s
  14781. $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
  14782. - cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps src/debug/Makefile
  14783. + cd $(top_srcdir) && $(AUTOMAKE) --gnu src/debug/Makefile
  14784. -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  14785. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
  14786. cd $(top_builddir) \
  14787. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
  14788. @@ -154,9 +155,6 @@
  14789. maintainer-clean-noinstPROGRAMS:
  14790. -.c.o:
  14791. - $(COMPILE) -c $<
  14792. -
  14793. # FIXME: We should only use cygpath when building on Windows,
  14794. # and only if it is available.
  14795. .c.obj:
  14796. @@ -179,9 +177,6 @@
  14797. maintainer-clean-compile:
  14798. -.c.lo:
  14799. - $(LIBTOOL) --mode=compile $(COMPILE) -c $<
  14800. -
  14801. .s.lo:
  14802. $(LIBTOOL) --mode=compile $(COMPILE) -c $<
  14803. @@ -224,7 +219,7 @@
  14804. awk ' { files[$$0] = 1; } \
  14805. END { for (i in files) print i; }'`; \
  14806. test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
  14807. - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
  14808. + || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags $$unique $(LISP))
  14809. mostlyclean-tags:
  14810. @@ -240,6 +235,11 @@
  14811. subdir = src/debug
  14812. distdir: $(DISTFILES)
  14813. + here=`cd $(top_builddir) && pwd`; \
  14814. + top_distdir=`cd $(top_distdir) && pwd`; \
  14815. + distdir=`cd $(distdir) && pwd`; \
  14816. + cd $(top_srcdir) \
  14817. + && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu src/debug/Makefile
  14818. @for file in $(DISTFILES); do \
  14819. d=$(srcdir); \
  14820. if test -d $$d/$$file; then \
  14821. @@ -250,11 +250,38 @@
  14822. || cp -p $$d/$$file $(distdir)/$$file || :; \
  14823. fi; \
  14824. done
  14825. -delay.o: delay.c ../../config.h ../../src/include/atm.h \
  14826. - ../../src/include/stdint.h
  14827. -svctor.o: svctor.c ../../config.h ../../src/include/atm.h \
  14828. - ../../src/include/stdint.h
  14829. +DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
  14830. +
  14831. +-include $(DEP_FILES)
  14832. +
  14833. +mostlyclean-depend:
  14834. +
  14835. +clean-depend:
  14836. +
  14837. +distclean-depend:
  14838. + -rm -rf .deps
  14839. +
  14840. +maintainer-clean-depend:
  14841. +
  14842. +%.o: %.c
  14843. + @echo '$(COMPILE) -c $<'; \
  14844. + $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
  14845. + @-cp .deps/$(*F).pp .deps/$(*F).P; \
  14846. + tr ' ' '\012' < .deps/$(*F).pp \
  14847. + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
  14848. + >> .deps/$(*F).P; \
  14849. + rm .deps/$(*F).pp
  14850. +
  14851. +%.lo: %.c
  14852. + @echo '$(LTCOMPILE) -c $<'; \
  14853. + $(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
  14854. + @-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \
  14855. + < .deps/$(*F).pp > .deps/$(*F).P; \
  14856. + tr ' ' '\012' < .deps/$(*F).pp \
  14857. + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
  14858. + >> .deps/$(*F).P; \
  14859. + rm -f .deps/$(*F).pp
  14860. info-am:
  14861. info: info-am
  14862. dvi-am:
  14863. @@ -291,27 +318,27 @@
  14864. maintainer-clean-generic:
  14865. mostlyclean-am: mostlyclean-noinstPROGRAMS mostlyclean-compile \
  14866. - mostlyclean-libtool mostlyclean-tags \
  14867. + mostlyclean-libtool mostlyclean-tags mostlyclean-depend \
  14868. mostlyclean-generic
  14869. mostlyclean: mostlyclean-am
  14870. clean-am: clean-noinstPROGRAMS clean-compile clean-libtool clean-tags \
  14871. - clean-generic mostlyclean-am
  14872. + clean-depend clean-generic mostlyclean-am
  14873. clean: clean-am
  14874. distclean-am: distclean-noinstPROGRAMS distclean-compile \
  14875. - distclean-libtool distclean-tags distclean-generic \
  14876. - clean-am
  14877. + distclean-libtool distclean-tags distclean-depend \
  14878. + distclean-generic clean-am
  14879. -rm -f libtool
  14880. distclean: distclean-am
  14881. maintainer-clean-am: maintainer-clean-noinstPROGRAMS \
  14882. maintainer-clean-compile maintainer-clean-libtool \
  14883. - maintainer-clean-tags maintainer-clean-generic \
  14884. - distclean-am
  14885. + maintainer-clean-tags maintainer-clean-depend \
  14886. + maintainer-clean-generic distclean-am
  14887. @echo "This command is intended for maintainers to use;"
  14888. @echo "it deletes files that may require special tools to rebuild."
  14889. @@ -322,12 +349,14 @@
  14890. mostlyclean-compile distclean-compile clean-compile \
  14891. maintainer-clean-compile mostlyclean-libtool distclean-libtool \
  14892. clean-libtool maintainer-clean-libtool tags mostlyclean-tags \
  14893. -distclean-tags clean-tags maintainer-clean-tags distdir info-am info \
  14894. -dvi-am dvi check check-am installcheck-am installcheck install-exec-am \
  14895. -install-exec install-data-am install-data install-am install \
  14896. -uninstall-am uninstall all-redirect all-am all installdirs \
  14897. -mostlyclean-generic distclean-generic clean-generic \
  14898. -maintainer-clean-generic clean mostlyclean distclean maintainer-clean
  14899. +distclean-tags clean-tags maintainer-clean-tags distdir \
  14900. +mostlyclean-depend distclean-depend clean-depend \
  14901. +maintainer-clean-depend info-am info dvi-am dvi check check-am \
  14902. +installcheck-am installcheck install-exec-am install-exec \
  14903. +install-data-am install-data install-am install uninstall-am uninstall \
  14904. +all-redirect all-am all installdirs mostlyclean-generic \
  14905. +distclean-generic clean-generic maintainer-clean-generic clean \
  14906. +mostlyclean distclean maintainer-clean
  14907. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  14908. --- linux-atm-2.4.1.orig/src/qgen/Makefile.in
  14909. +++ linux-atm-2.4.1/src/qgen/Makefile.in
  14910. @@ -1,4 +1,4 @@
  14911. -# Makefile.in generated automatically by automake 1.4-p5 from Makefile.am
  14912. +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
  14913. # Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
  14914. # This Makefile.in is free software; the Free Software Foundation
  14915. @@ -88,8 +88,7 @@
  14916. noinst_PROGRAMS = qgen q.dump # q40.out.o
  14917. check_PROGRAMS = q.test
  14918. -qgen_SOURCES = common.c common.h file.c file.h first.c ql_y.y ql_l.l qgen.c \
  14919. - qgen.h second.c third.c
  14920. +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
  14921. qgen_LDADD = -lfl
  14922. @@ -108,17 +107,10 @@
  14923. EXTRA_DIST = ql_y.h incl.pl mknl.pl msg.fmt TODO
  14924. -CLEANFILES = q.out.h q.out.c q.test.c qd.out.h qd.out.c qd.dump.c qd.test.c \
  14925. - default.nl # q40.out.h q40.out.c q40.test.c
  14926. +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
  14927. -NLS = atm_ai_msg atm_ai_ie atm_loc atm_cv atm_pu atm_na atm_cond atm_ie \
  14928. - atm_msg atm_np atm_ton atm_sat atm_prs atm_scrn atm_vpa atm_poe \
  14929. - q2931_cs atm_td atm_bc atm_tc atm_stc atm_upcc q2931_proto atm_flag \
  14930. - atm_aalp atm_fd atm_tag atm_l2 atm_l3 atm_tt atm_mc atm_hl atm_imd \
  14931. - atm_tdl atm_tni atm_nip atm_shi atm_oci atm_unfm atm_ofi atm_irs \
  14932. - atm_it atm_lit atm_lsi atm_tcs atm_css atm_eqo atm_eqp atm_aap \
  14933. - atm_asp atm_tor
  14934. +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
  14935. SYMFILES = uni.h $(shell @PERL@ incl.pl $(CFLAGS) linux/atmsap.h)
  14936. mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  14937. @@ -155,8 +147,11 @@
  14938. DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
  14939. -TAR = gtar
  14940. +TAR = tar
  14941. GZIP_ENV = --best
  14942. +DEP_FILES = .deps/common.P .deps/file.P .deps/first.P .deps/qgen.P \
  14943. +.deps/ql_l.P .deps/ql_y.P .deps/qlib.P .deps/qtest.P .deps/second.P \
  14944. +.deps/third.P
  14945. SOURCES = $(q_test_SOURCES) $(qgen_SOURCES) $(q_dump_SOURCES) $(EXTRA_q_dump_SOURCES)
  14946. OBJECTS = $(q_test_OBJECTS) $(qgen_OBJECTS) $(q_dump_OBJECTS)
  14947. @@ -164,9 +159,9 @@
  14948. .SUFFIXES:
  14949. .SUFFIXES: .S .c .l .lo .o .obj .s .y
  14950. $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
  14951. - cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps src/qgen/Makefile
  14952. + cd $(top_srcdir) && $(AUTOMAKE) --gnu src/qgen/Makefile
  14953. -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  14954. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
  14955. cd $(top_builddir) \
  14956. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
  14957. @@ -189,9 +184,6 @@
  14958. maintainer-clean-noinstPROGRAMS:
  14959. -.c.o:
  14960. - $(COMPILE) -c $<
  14961. -
  14962. # FIXME: We should only use cygpath when building on Windows,
  14963. # and only if it is available.
  14964. .c.obj:
  14965. @@ -214,9 +206,6 @@
  14966. maintainer-clean-compile:
  14967. -.c.lo:
  14968. - $(LIBTOOL) --mode=compile $(COMPILE) -c $<
  14969. -
  14970. .s.lo:
  14971. $(LIBTOOL) --mode=compile $(COMPILE) -c $<
  14972. @@ -272,7 +261,7 @@
  14973. awk ' { files[$$0] = 1; } \
  14974. END { for (i in files) print i; }'`; \
  14975. test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
  14976. - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
  14977. + || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags $$unique $(LISP))
  14978. mostlyclean-tags:
  14979. @@ -288,6 +277,11 @@
  14980. subdir = src/qgen
  14981. distdir: $(DISTFILES)
  14982. + here=`cd $(top_builddir) && pwd`; \
  14983. + top_distdir=`cd $(top_distdir) && pwd`; \
  14984. + distdir=`cd $(distdir) && pwd`; \
  14985. + cd $(top_srcdir) \
  14986. + && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu src/qgen/Makefile
  14987. @for file in $(DISTFILES); do \
  14988. d=$(srcdir); \
  14989. if test -d $$d/$$file; then \
  14990. @@ -298,15 +292,38 @@
  14991. || cp -p $$d/$$file $(distdir)/$$file || :; \
  14992. fi; \
  14993. done
  14994. -common.o: common.c ../../config.h common.h
  14995. -file.o: file.c ../../config.h common.h file.h
  14996. -first.o: first.c ../../config.h common.h qgen.h file.h
  14997. -qgen.o: qgen.c ../../config.h common.h file.h qgen.h
  14998. -ql_l.o: ql_l.c ../../config.h common.h qgen.h ql_y.h
  14999. -ql_y.o: ql_y.c ../../config.h common.h qgen.h file.h
  15000. -second.o: second.c ../../config.h common.h qgen.h file.h
  15001. -third.o: third.c ../../config.h common.h qgen.h file.h
  15002. +DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
  15003. +
  15004. +-include $(DEP_FILES)
  15005. +
  15006. +mostlyclean-depend:
  15007. +
  15008. +clean-depend:
  15009. +
  15010. +distclean-depend:
  15011. + -rm -rf .deps
  15012. +
  15013. +maintainer-clean-depend:
  15014. +
  15015. +%.o: %.c
  15016. + @echo '$(COMPILE) -c $<'; \
  15017. + $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
  15018. + @-cp .deps/$(*F).pp .deps/$(*F).P; \
  15019. + tr ' ' '\012' < .deps/$(*F).pp \
  15020. + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
  15021. + >> .deps/$(*F).P; \
  15022. + rm .deps/$(*F).pp
  15023. +
  15024. +%.lo: %.c
  15025. + @echo '$(LTCOMPILE) -c $<'; \
  15026. + $(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
  15027. + @-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \
  15028. + < .deps/$(*F).pp > .deps/$(*F).P; \
  15029. + tr ' ' '\012' < .deps/$(*F).pp \
  15030. + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
  15031. + >> .deps/$(*F).P; \
  15032. + rm -f .deps/$(*F).pp
  15033. info-am:
  15034. info: info-am
  15035. dvi-am:
  15036. @@ -344,21 +361,22 @@
  15037. -rm -f config.cache config.log stamp-h stamp-h[0-9]*
  15038. maintainer-clean-generic:
  15039. - -test -z "ql_llql_yhql_yc" || rm -f ql_ll ql_yh ql_yc
  15040. + -test -z "ql_lcql_yhql_yc" || rm -f ql_lc ql_yh ql_yc
  15041. mostlyclean-am: mostlyclean-checkPROGRAMS mostlyclean-noinstPROGRAMS \
  15042. mostlyclean-compile mostlyclean-libtool \
  15043. - mostlyclean-tags mostlyclean-generic
  15044. + mostlyclean-tags mostlyclean-depend mostlyclean-generic
  15045. mostlyclean: mostlyclean-am
  15046. clean-am: clean-checkPROGRAMS clean-noinstPROGRAMS clean-compile \
  15047. - clean-libtool clean-tags clean-generic mostlyclean-am
  15048. + clean-libtool clean-tags clean-depend clean-generic \
  15049. + mostlyclean-am
  15050. clean: clean-am
  15051. distclean-am: distclean-checkPROGRAMS distclean-noinstPROGRAMS \
  15052. distclean-compile distclean-libtool distclean-tags \
  15053. - distclean-generic clean-am
  15054. + distclean-depend distclean-generic clean-am
  15055. -rm -f libtool
  15056. distclean: distclean-am
  15057. @@ -366,8 +384,8 @@
  15058. maintainer-clean-am: maintainer-clean-checkPROGRAMS \
  15059. maintainer-clean-noinstPROGRAMS \
  15060. maintainer-clean-compile maintainer-clean-libtool \
  15061. - maintainer-clean-tags maintainer-clean-generic \
  15062. - distclean-am
  15063. + maintainer-clean-tags maintainer-clean-depend \
  15064. + maintainer-clean-generic distclean-am
  15065. @echo "This command is intended for maintainers to use;"
  15066. @echo "it deletes files that may require special tools to rebuild."
  15067. @@ -380,12 +398,14 @@
  15068. mostlyclean-compile distclean-compile clean-compile \
  15069. maintainer-clean-compile mostlyclean-libtool distclean-libtool \
  15070. clean-libtool maintainer-clean-libtool tags mostlyclean-tags \
  15071. -distclean-tags clean-tags maintainer-clean-tags distdir info-am info \
  15072. -dvi-am dvi check check-am installcheck-am installcheck install-exec-am \
  15073. -install-exec install-data-am install-data install-am install \
  15074. -uninstall-am uninstall all-redirect all-am all installdirs \
  15075. -mostlyclean-generic distclean-generic clean-generic \
  15076. -maintainer-clean-generic clean mostlyclean distclean maintainer-clean
  15077. +distclean-tags clean-tags maintainer-clean-tags distdir \
  15078. +mostlyclean-depend distclean-depend clean-depend \
  15079. +maintainer-clean-depend info-am info dvi-am dvi check check-am \
  15080. +installcheck-am installcheck install-exec-am install-exec \
  15081. +install-data-am install-data install-am install uninstall-am uninstall \
  15082. +all-redirect all-am all installdirs mostlyclean-generic \
  15083. +distclean-generic clean-generic maintainer-clean-generic clean \
  15084. +mostlyclean distclean maintainer-clean
  15085. default.nl: mknl.pl $(SYMFILES)
  15086. --- linux-atm-2.4.1.orig/src/qgen/ql_l.c
  15087. +++ linux-atm-2.4.1/src/qgen/ql_l.c
  15088. @@ -1,32 +1,85 @@
  15089. -/* A lexical scanner generated by flex */
  15090. -/* Scanner skeleton version:
  15091. - * $Header: /home/daffy/u0/vern/flex/RCS/flex.skl,v 2.91 96/09/10 16:58:48 vern Exp $
  15092. - */
  15093. +#line 3 "lex.yy.c"
  15094. +
  15095. +#define YY_INT_ALIGNED short int
  15096. +
  15097. +/* A lexical scanner generated by flex */
  15098. #define FLEX_SCANNER
  15099. #define YY_FLEX_MAJOR_VERSION 2
  15100. #define YY_FLEX_MINOR_VERSION 5
  15101. +#define YY_FLEX_SUBMINOR_VERSION 31
  15102. +#if YY_FLEX_SUBMINOR_VERSION > 0
  15103. +#define FLEX_BETA
  15104. +#endif
  15105. +/* First, we deal with platform-specific or compiler-specific issues. */
  15106. +
  15107. +/* begin standard C headers. */
  15108. #include <stdio.h>
  15109. -#include <unistd.h>
  15110. +#include <string.h>
  15111. +#include <errno.h>
  15112. +#include <stdlib.h>
  15113. +/* end standard C headers. */
  15114. -/* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */
  15115. -#ifdef c_plusplus
  15116. -#ifndef __cplusplus
  15117. -#define __cplusplus
  15118. +/* flex integer type definitions */
  15119. +
  15120. +#ifndef FLEXINT_H
  15121. +#define FLEXINT_H
  15122. +
  15123. +/* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
  15124. +
  15125. +#if defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L
  15126. +#include <inttypes.h>
  15127. +typedef int8_t flex_int8_t;
  15128. +typedef uint8_t flex_uint8_t;
  15129. +typedef int16_t flex_int16_t;
  15130. +typedef uint16_t flex_uint16_t;
  15131. +typedef int32_t flex_int32_t;
  15132. +typedef uint32_t flex_uint32_t;
  15133. +#else
  15134. +typedef signed char flex_int8_t;
  15135. +typedef short int flex_int16_t;
  15136. +typedef int flex_int32_t;
  15137. +typedef unsigned char flex_uint8_t;
  15138. +typedef unsigned short int flex_uint16_t;
  15139. +typedef unsigned int flex_uint32_t;
  15140. +#endif /* ! C99 */
  15141. +
  15142. +/* Limits of integral types. */
  15143. +#ifndef INT8_MIN
  15144. +#define INT8_MIN (-128)
  15145. +#endif
  15146. +#ifndef INT16_MIN
  15147. +#define INT16_MIN (-32767-1)
  15148. +#endif
  15149. +#ifndef INT32_MIN
  15150. +#define INT32_MIN (-2147483647-1)
  15151. #endif
  15152. +#ifndef INT8_MAX
  15153. +#define INT8_MAX (127)
  15154. +#endif
  15155. +#ifndef INT16_MAX
  15156. +#define INT16_MAX (32767)
  15157. +#endif
  15158. +#ifndef INT32_MAX
  15159. +#define INT32_MAX (2147483647)
  15160. +#endif
  15161. +#ifndef UINT8_MAX
  15162. +#define UINT8_MAX (255U)
  15163. +#endif
  15164. +#ifndef UINT16_MAX
  15165. +#define UINT16_MAX (65535U)
  15166. +#endif
  15167. +#ifndef UINT32_MAX
  15168. +#define UINT32_MAX (4294967295U)
  15169. #endif
  15170. +#endif /* ! FLEXINT_H */
  15171. #ifdef __cplusplus
  15172. -#include <stdlib.h>
  15173. -
  15174. -/* Use prototypes in function declarations. */
  15175. -#define YY_USE_PROTOS
  15176. -
  15177. /* The "const" storage-class-modifier is valid. */
  15178. #define YY_USE_CONST
  15179. @@ -34,34 +87,17 @@
  15180. #if __STDC__
  15181. -#define YY_USE_PROTOS
  15182. #define YY_USE_CONST
  15183. #endif /* __STDC__ */
  15184. #endif /* ! __cplusplus */
  15185. -#ifdef __TURBOC__
  15186. - #pragma warn -rch
  15187. - #pragma warn -use
  15188. -#include <io.h>
  15189. -#include <stdlib.h>
  15190. -#define YY_USE_CONST
  15191. -#define YY_USE_PROTOS
  15192. -#endif
  15193. -
  15194. #ifdef YY_USE_CONST
  15195. #define yyconst const
  15196. #else
  15197. #define yyconst
  15198. #endif
  15199. -
  15200. -#ifdef YY_USE_PROTOS
  15201. -#define YY_PROTO(proto) proto
  15202. -#else
  15203. -#define YY_PROTO(proto) ()
  15204. -#endif
  15205. -
  15206. /* Returned upon end-of-file. */
  15207. #define YY_NULL 0
  15208. @@ -76,71 +112,71 @@
  15209. * but we do it the disgusting crufty way forced on us by the ()-less
  15210. * definition of BEGIN.
  15211. */
  15212. -#define BEGIN yy_start = 1 + 2 *
  15213. +#define BEGIN (yy_start) = 1 + 2 *
  15214. /* Translate the current start state into a value that can be later handed
  15215. * to BEGIN to return to the state. The YYSTATE alias is for lex
  15216. * compatibility.
  15217. */
  15218. -#define YY_START ((yy_start - 1) / 2)
  15219. +#define YY_START (((yy_start) - 1) / 2)
  15220. #define YYSTATE YY_START
  15221. /* Action number for EOF rule of a given start state. */
  15222. #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
  15223. /* Special action meaning "start processing a new file". */
  15224. -#define YY_NEW_FILE yyrestart( yyin )
  15225. +#define YY_NEW_FILE yyrestart(yyin )
  15226. #define YY_END_OF_BUFFER_CHAR 0
  15227. /* Size of default input buffer. */
  15228. +#ifndef YY_BUF_SIZE
  15229. #define YY_BUF_SIZE 16384
  15230. +#endif
  15231. +#ifndef YY_TYPEDEF_YY_BUFFER_STATE
  15232. +#define YY_TYPEDEF_YY_BUFFER_STATE
  15233. typedef struct yy_buffer_state *YY_BUFFER_STATE;
  15234. +#endif
  15235. extern int yyleng;
  15236. +
  15237. extern FILE *yyin, *yyout;
  15238. #define EOB_ACT_CONTINUE_SCAN 0
  15239. #define EOB_ACT_END_OF_FILE 1
  15240. #define EOB_ACT_LAST_MATCH 2
  15241. -/* The funky do-while in the following #define is used to turn the definition
  15242. - * int a single C statement (which needs a semi-colon terminator). This
  15243. - * avoids problems with code like:
  15244. - *
  15245. - * if ( condition_holds )
  15246. - * yyless( 5 );
  15247. - * else
  15248. - * do_something_else();
  15249. - *
  15250. - * Prior to using the do-while the compiler would get upset at the
  15251. - * "else" because it interpreted the "if" statement as being all
  15252. - * done when it reached the ';' after the yyless() call.
  15253. - */
  15254. -
  15255. -/* Return all but the first 'n' matched characters back to the input stream. */
  15256. -
  15257. + #define YY_LESS_LINENO(n)
  15258. +
  15259. +/* Return all but the first "n" matched characters back to the input stream. */
  15260. #define yyless(n) \
  15261. do \
  15262. { \
  15263. /* Undo effects of setting up yytext. */ \
  15264. - *yy_cp = yy_hold_char; \
  15265. + int yyless_macro_arg = (n); \
  15266. + YY_LESS_LINENO(yyless_macro_arg);\
  15267. + *yy_cp = (yy_hold_char); \
  15268. YY_RESTORE_YY_MORE_OFFSET \
  15269. - yy_c_buf_p = yy_cp = yy_bp + n - YY_MORE_ADJ; \
  15270. + (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
  15271. YY_DO_BEFORE_ACTION; /* set up yytext again */ \
  15272. } \
  15273. while ( 0 )
  15274. -#define unput(c) yyunput( c, yytext_ptr )
  15275. +#define unput(c) yyunput( c, (yytext_ptr) )
  15276. /* The following is because we cannot portably get our hands on size_t
  15277. * (without autoconf's help, which isn't available because we want
  15278. * flex-generated scanners to compile on their own).
  15279. */
  15280. -typedef unsigned int yy_size_t;
  15281. +#ifndef YY_TYPEDEF_YY_SIZE_T
  15282. +#define YY_TYPEDEF_YY_SIZE_T
  15283. +typedef unsigned int yy_size_t;
  15284. +#endif
  15285. +#ifndef YY_STRUCT_YY_BUFFER_STATE
  15286. +#define YY_STRUCT_YY_BUFFER_STATE
  15287. struct yy_buffer_state
  15288. {
  15289. FILE *yy_input_file;
  15290. @@ -177,12 +213,16 @@
  15291. */
  15292. int yy_at_bol;
  15293. + int yy_bs_lineno; /**< The line count. */
  15294. + int yy_bs_column; /**< The column count. */
  15295. +
  15296. /* Whether to try to fill the input buffer when we reach the
  15297. * end of it.
  15298. */
  15299. int yy_fill_buffer;
  15300. int yy_buffer_status;
  15301. +
  15302. #define YY_BUFFER_NEW 0
  15303. #define YY_BUFFER_NORMAL 1
  15304. /* When an EOF's been seen but there's still some text to process
  15305. @@ -196,23 +236,33 @@
  15306. * just pointing yyin at a new input file.
  15307. */
  15308. #define YY_BUFFER_EOF_PENDING 2
  15309. +
  15310. };
  15311. +#endif /* !YY_STRUCT_YY_BUFFER_STATE */
  15312. -static YY_BUFFER_STATE yy_current_buffer = 0;
  15313. +/* Stack of input buffers. */
  15314. +static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */
  15315. +static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */
  15316. +static YY_BUFFER_STATE * yy_buffer_stack = 0; /**< Stack as an array. */
  15317. /* We provide macros for accessing buffer states in case in the
  15318. * future we want to put the buffer states in a more general
  15319. * "scanner state".
  15320. + *
  15321. + * Returns the top of the stack, or NULL.
  15322. */
  15323. -#define YY_CURRENT_BUFFER yy_current_buffer
  15324. +#define YY_CURRENT_BUFFER ( (yy_buffer_stack) \
  15325. + ? (yy_buffer_stack)[(yy_buffer_stack_top)] \
  15326. + : NULL)
  15327. +/* Same as previous macro, but useful when we know that the buffer stack is not
  15328. + * NULL or when we need an lvalue. For internal use only.
  15329. + */
  15330. +#define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)]
  15331. /* yy_hold_char holds the character lost when yytext is formed. */
  15332. static char yy_hold_char;
  15333. -
  15334. static int yy_n_chars; /* number of characters read into yy_ch_buf */
  15335. -
  15336. -
  15337. int yyleng;
  15338. /* Points to current character in buffer. */
  15339. @@ -225,66 +275,92 @@
  15340. */
  15341. static int yy_did_buffer_switch_on_eof;
  15342. -void yyrestart YY_PROTO(( FILE *input_file ));
  15343. -
  15344. -void yy_switch_to_buffer YY_PROTO(( YY_BUFFER_STATE new_buffer ));
  15345. -void yy_load_buffer_state YY_PROTO(( void ));
  15346. -YY_BUFFER_STATE yy_create_buffer YY_PROTO(( FILE *file, int size ));
  15347. -void yy_delete_buffer YY_PROTO(( YY_BUFFER_STATE b ));
  15348. -void yy_init_buffer YY_PROTO(( YY_BUFFER_STATE b, FILE *file ));
  15349. -void yy_flush_buffer YY_PROTO(( YY_BUFFER_STATE b ));
  15350. -#define YY_FLUSH_BUFFER yy_flush_buffer( yy_current_buffer )
  15351. -
  15352. -YY_BUFFER_STATE yy_scan_buffer YY_PROTO(( char *base, yy_size_t size ));
  15353. -YY_BUFFER_STATE yy_scan_string YY_PROTO(( yyconst char *yy_str ));
  15354. -YY_BUFFER_STATE yy_scan_bytes YY_PROTO(( yyconst char *bytes, int len ));
  15355. -
  15356. -static void *yy_flex_alloc YY_PROTO(( yy_size_t ));
  15357. -static void *yy_flex_realloc YY_PROTO(( void *, yy_size_t ));
  15358. -static void yy_flex_free YY_PROTO(( void * ));
  15359. +void yyrestart (FILE *input_file );
  15360. +void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer );
  15361. +YY_BUFFER_STATE yy_create_buffer (FILE *file,int size );
  15362. +void yy_delete_buffer (YY_BUFFER_STATE b );
  15363. +void yy_flush_buffer (YY_BUFFER_STATE b );
  15364. +void yypush_buffer_state (YY_BUFFER_STATE new_buffer );
  15365. +void yypop_buffer_state (void );
  15366. +
  15367. +static void yyensure_buffer_stack (void );
  15368. +static void yy_load_buffer_state (void );
  15369. +static void yy_init_buffer (YY_BUFFER_STATE b,FILE *file );
  15370. +
  15371. +#define YY_FLUSH_BUFFER yy_flush_buffer(YY_CURRENT_BUFFER )
  15372. +
  15373. +YY_BUFFER_STATE yy_scan_buffer (char *base,yy_size_t size );
  15374. +YY_BUFFER_STATE yy_scan_string (yyconst char *yy_str );
  15375. +YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,int len );
  15376. +
  15377. +void *yyalloc (yy_size_t );
  15378. +void *yyrealloc (void *,yy_size_t );
  15379. +void yyfree (void * );
  15380. #define yy_new_buffer yy_create_buffer
  15381. #define yy_set_interactive(is_interactive) \
  15382. { \
  15383. - if ( ! yy_current_buffer ) \
  15384. - yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
  15385. - yy_current_buffer->yy_is_interactive = is_interactive; \
  15386. + if ( ! YY_CURRENT_BUFFER ){ \
  15387. + yyensure_buffer_stack (); \
  15388. + YY_CURRENT_BUFFER_LVALUE = \
  15389. + yy_create_buffer(yyin,YY_BUF_SIZE ); \
  15390. + } \
  15391. + YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
  15392. }
  15393. #define yy_set_bol(at_bol) \
  15394. { \
  15395. - if ( ! yy_current_buffer ) \
  15396. - yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
  15397. - yy_current_buffer->yy_at_bol = at_bol; \
  15398. + if ( ! YY_CURRENT_BUFFER ){\
  15399. + yyensure_buffer_stack (); \
  15400. + YY_CURRENT_BUFFER_LVALUE = \
  15401. + yy_create_buffer(yyin,YY_BUF_SIZE ); \
  15402. + } \
  15403. + YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
  15404. }
  15405. -#define YY_AT_BOL() (yy_current_buffer->yy_at_bol)
  15406. +#define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
  15407. +
  15408. +/* Begin user sect3 */
  15409. typedef unsigned char YY_CHAR;
  15410. +
  15411. FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
  15412. +
  15413. typedef int yy_state_type;
  15414. +
  15415. +extern int yylineno;
  15416. +
  15417. +int yylineno = 1;
  15418. +
  15419. extern char *yytext;
  15420. #define yytext_ptr yytext
  15421. -static yy_state_type yy_get_previous_state YY_PROTO(( void ));
  15422. -static yy_state_type yy_try_NUL_trans YY_PROTO(( yy_state_type current_state ));
  15423. -static int yy_get_next_buffer YY_PROTO(( void ));
  15424. -static void yy_fatal_error YY_PROTO(( yyconst char msg[] ));
  15425. +static yy_state_type yy_get_previous_state (void );
  15426. +static yy_state_type yy_try_NUL_trans (yy_state_type current_state );
  15427. +static int yy_get_next_buffer (void );
  15428. +static void yy_fatal_error (yyconst char msg[] );
  15429. /* Done after the current pattern has been matched and before the
  15430. * corresponding action - sets up yytext.
  15431. */
  15432. #define YY_DO_BEFORE_ACTION \
  15433. - yytext_ptr = yy_bp; \
  15434. - yyleng = (int) (yy_cp - yy_bp); \
  15435. - yy_hold_char = *yy_cp; \
  15436. + (yytext_ptr) = yy_bp; \
  15437. + yyleng = (size_t) (yy_cp - yy_bp); \
  15438. + (yy_hold_char) = *yy_cp; \
  15439. *yy_cp = '\0'; \
  15440. - yy_c_buf_p = yy_cp;
  15441. + (yy_c_buf_p) = yy_cp;
  15442. #define YY_NUM_RULES 16
  15443. #define YY_END_OF_BUFFER 17
  15444. -static yyconst short int yy_accept[70] =
  15445. +/* This struct is not used in this scanner,
  15446. + but its presence is necessary. */
  15447. +struct yy_trans_info
  15448. + {
  15449. + flex_int32_t yy_verify;
  15450. + flex_int32_t yy_nxt;
  15451. + };
  15452. +static yyconst flex_int16_t yy_accept[70] =
  15453. { 0,
  15454. 10, 10, 17, 15, 10, 10, 15, 15, 9, 9,
  15455. 9, 9, 9, 9, 9, 9, 9, 10, 0, 0,
  15456. @@ -295,7 +371,7 @@
  15457. 7, 0, 0, 0, 0, 0, 11, 12, 0
  15458. } ;
  15459. -static yyconst int yy_ec[256] =
  15460. +static yyconst flex_int32_t yy_ec[256] =
  15461. { 0,
  15462. 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
  15463. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  15464. @@ -327,14 +403,14 @@
  15465. 1, 1, 1, 1, 1
  15466. } ;
  15467. -static yyconst int yy_meta[29] =
  15468. +static yyconst flex_int32_t yy_meta[29] =
  15469. { 0,
  15470. 1, 2, 2, 1, 3, 1, 4, 5, 5, 4,
  15471. 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
  15472. 4, 4, 4, 4, 4, 4, 4, 4
  15473. } ;
  15474. -static yyconst short int yy_base[75] =
  15475. +static yyconst flex_int16_t yy_base[75] =
  15476. { 0,
  15477. 0, 0, 99, 100, 27, 28, 0, 95, 0, 86,
  15478. 72, 85, 80, 71, 78, 64, 76, 31, 84, 85,
  15479. @@ -346,7 +422,7 @@
  15480. 48, 34, 53, 58
  15481. } ;
  15482. -static yyconst short int yy_def[75] =
  15483. +static yyconst flex_int16_t yy_def[75] =
  15484. { 0,
  15485. 69, 1, 69, 69, 69, 69, 70, 71, 72, 72,
  15486. 72, 72, 72, 72, 72, 72, 72, 69, 70, 71,
  15487. @@ -358,7 +434,7 @@
  15488. 69, 69, 69, 69
  15489. } ;
  15490. -static yyconst short int yy_nxt[129] =
  15491. +static yyconst flex_int16_t yy_nxt[129] =
  15492. { 0,
  15493. 4, 5, 6, 5, 7, 8, 9, 4, 4, 10,
  15494. 11, 12, 13, 9, 9, 9, 9, 14, 9, 15,
  15495. @@ -376,7 +452,7 @@
  15496. 69, 69, 69, 69, 69, 69, 69, 69
  15497. } ;
  15498. -static yyconst short int yy_chk[129] =
  15499. +static yyconst flex_int16_t yy_chk[129] =
  15500. { 0,
  15501. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  15502. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
  15503. @@ -397,6 +473,9 @@
  15504. static yy_state_type yy_last_accepting_state;
  15505. static char *yy_last_accepting_cpos;
  15506. +extern int yy_flex_debug;
  15507. +int yy_flex_debug = 0;
  15508. +
  15509. /* The intent behind this definition is that it'll catch
  15510. * any uses of REJECT which flex missed.
  15511. */
  15512. @@ -406,7 +485,6 @@
  15513. #define YY_RESTORE_YY_MORE_OFFSET
  15514. char *yytext;
  15515. #line 1 "ql_l.l"
  15516. -#define INITIAL 0
  15517. #line 2 "ql_l.l"
  15518. /* ql.l - Q.2931 data structures description language */
  15519. @@ -451,7 +529,21 @@
  15520. return (*walk)->str;
  15521. }
  15522. -#line 455 "lex.yy.c"
  15523. +#line 533 "lex.yy.c"
  15524. +
  15525. +#define INITIAL 0
  15526. +
  15527. +#ifndef YY_NO_UNISTD_H
  15528. +/* Special case for "unistd.h", since it is non-ANSI. We include it way
  15529. + * down here because we want the user's section 1 to have been scanned first.
  15530. + * The user has a chance to override it with an option.
  15531. + */
  15532. +#include <unistd.h>
  15533. +#endif
  15534. +
  15535. +#ifndef YY_EXTRA_TYPE
  15536. +#define YY_EXTRA_TYPE void *
  15537. +#endif
  15538. /* Macros after this point can all be overridden by user definitions in
  15539. * section 1.
  15540. @@ -459,65 +551,30 @@
  15541. #ifndef YY_SKIP_YYWRAP
  15542. #ifdef __cplusplus
  15543. -extern "C" int yywrap YY_PROTO(( void ));
  15544. +extern "C" int yywrap (void );
  15545. #else
  15546. -extern int yywrap YY_PROTO(( void ));
  15547. +extern int yywrap (void );
  15548. #endif
  15549. #endif
  15550. -#ifndef YY_NO_UNPUT
  15551. -static void yyunput YY_PROTO(( int c, char *buf_ptr ));
  15552. -#endif
  15553. -
  15554. + static void yyunput (int c,char *buf_ptr );
  15555. +
  15556. #ifndef yytext_ptr
  15557. -static void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, int ));
  15558. +static void yy_flex_strncpy (char *,yyconst char *,int );
  15559. #endif
  15560. #ifdef YY_NEED_STRLEN
  15561. -static int yy_flex_strlen YY_PROTO(( yyconst char * ));
  15562. +static int yy_flex_strlen (yyconst char * );
  15563. #endif
  15564. #ifndef YY_NO_INPUT
  15565. +
  15566. #ifdef __cplusplus
  15567. -static int yyinput YY_PROTO(( void ));
  15568. +static int yyinput (void );
  15569. #else
  15570. -static int input YY_PROTO(( void ));
  15571. -#endif
  15572. -#endif
  15573. -
  15574. -#if YY_STACK_USED
  15575. -static int yy_start_stack_ptr = 0;
  15576. -static int yy_start_stack_depth = 0;
  15577. -static int *yy_start_stack = 0;
  15578. -#ifndef YY_NO_PUSH_STATE
  15579. -static void yy_push_state YY_PROTO(( int new_state ));
  15580. -#endif
  15581. -#ifndef YY_NO_POP_STATE
  15582. -static void yy_pop_state YY_PROTO(( void ));
  15583. -#endif
  15584. -#ifndef YY_NO_TOP_STATE
  15585. -static int yy_top_state YY_PROTO(( void ));
  15586. +static int input (void );
  15587. #endif
  15588. -#else
  15589. -#define YY_NO_PUSH_STATE 1
  15590. -#define YY_NO_POP_STATE 1
  15591. -#define YY_NO_TOP_STATE 1
  15592. -#endif
  15593. -
  15594. -#ifdef YY_MALLOC_DECL
  15595. -YY_MALLOC_DECL
  15596. -#else
  15597. -#if __STDC__
  15598. -#ifndef __cplusplus
  15599. -#include <stdlib.h>
  15600. -#endif
  15601. -#else
  15602. -/* Just try to get by without declaring the routines. This will fail
  15603. - * miserably on non-ANSI systems for which sizeof(size_t) != sizeof(int)
  15604. - * or sizeof(void*) != sizeof(int).
  15605. - */
  15606. -#endif
  15607. #endif
  15608. /* Amount of stuff to slurp up with each read. */
  15609. @@ -526,7 +583,6 @@
  15610. #endif
  15611. /* Copy whatever the last rule matched to the standard output. */
  15612. -
  15613. #ifndef ECHO
  15614. /* This used to be an fputs(), but since the string might contain NUL's,
  15615. * we now use fwrite().
  15616. @@ -539,9 +595,10 @@
  15617. */
  15618. #ifndef YY_INPUT
  15619. #define YY_INPUT(buf,result,max_size) \
  15620. - if ( yy_current_buffer->yy_is_interactive ) \
  15621. + if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
  15622. { \
  15623. - int c = '*', n; \
  15624. + int c = '*'; \
  15625. + size_t n; \
  15626. for ( n = 0; n < max_size && \
  15627. (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
  15628. buf[n] = (char) c; \
  15629. @@ -551,9 +608,22 @@
  15630. YY_FATAL_ERROR( "input in flex scanner failed" ); \
  15631. result = n; \
  15632. } \
  15633. - else if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \
  15634. - && ferror( yyin ) ) \
  15635. - YY_FATAL_ERROR( "input in flex scanner failed" );
  15636. + else \
  15637. + { \
  15638. + errno=0; \
  15639. + while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \
  15640. + { \
  15641. + if( errno != EINTR) \
  15642. + { \
  15643. + YY_FATAL_ERROR( "input in flex scanner failed" ); \
  15644. + break; \
  15645. + } \
  15646. + errno=0; \
  15647. + clearerr(yyin); \
  15648. + } \
  15649. + }\
  15650. +\
  15651. +
  15652. #endif
  15653. /* No semi-colon after return; correct usage is to write "yyterminate();" -
  15654. @@ -574,12 +644,18 @@
  15655. #define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
  15656. #endif
  15657. +/* end tables serialization structures and prototypes */
  15658. +
  15659. /* Default declaration of generated scanner - a define so the user can
  15660. * easily add parameters.
  15661. */
  15662. #ifndef YY_DECL
  15663. -#define YY_DECL int yylex YY_PROTO(( void ))
  15664. -#endif
  15665. +#define YY_DECL_IS_OURS 1
  15666. +
  15667. +extern int yylex (void);
  15668. +
  15669. +#define YY_DECL int yylex (void)
  15670. +#endif /* !YY_DECL */
  15671. /* Code executed at the beginning of each rule, after yytext and yyleng
  15672. * have been set up.
  15673. @@ -596,27 +672,29 @@
  15674. #define YY_RULE_SETUP \
  15675. YY_USER_ACTION
  15676. +/** The main scanner function which does all the work.
  15677. + */
  15678. YY_DECL
  15679. - {
  15680. +{
  15681. register yy_state_type yy_current_state;
  15682. - register char *yy_cp = NULL, *yy_bp = NULL;
  15683. + register char *yy_cp, *yy_bp;
  15684. register int yy_act;
  15685. -
  15686. +
  15687. #line 47 "ql_l.l"
  15688. -#line 609 "lex.yy.c"
  15689. +#line 687 "lex.yy.c"
  15690. - if ( yy_init )
  15691. + if ( (yy_init) )
  15692. {
  15693. - yy_init = 0;
  15694. + (yy_init) = 0;
  15695. #ifdef YY_USER_INIT
  15696. YY_USER_INIT;
  15697. #endif
  15698. - if ( ! yy_start )
  15699. - yy_start = 1; /* first start state */
  15700. + if ( ! (yy_start) )
  15701. + (yy_start) = 1; /* first start state */
  15702. if ( ! yyin )
  15703. yyin = stdin;
  15704. @@ -624,34 +702,36 @@
  15705. if ( ! yyout )
  15706. yyout = stdout;
  15707. - if ( ! yy_current_buffer )
  15708. - yy_current_buffer =
  15709. - yy_create_buffer( yyin, YY_BUF_SIZE );
  15710. + if ( ! YY_CURRENT_BUFFER ) {
  15711. + yyensure_buffer_stack ();
  15712. + YY_CURRENT_BUFFER_LVALUE =
  15713. + yy_create_buffer(yyin,YY_BUF_SIZE );
  15714. + }
  15715. - yy_load_buffer_state();
  15716. + yy_load_buffer_state( );
  15717. }
  15718. while ( 1 ) /* loops until end-of-file is reached */
  15719. {
  15720. - yy_cp = yy_c_buf_p;
  15721. + yy_cp = (yy_c_buf_p);
  15722. /* Support of yytext. */
  15723. - *yy_cp = yy_hold_char;
  15724. + *yy_cp = (yy_hold_char);
  15725. /* yy_bp points to the position in yy_ch_buf of the start of
  15726. * the current run.
  15727. */
  15728. yy_bp = yy_cp;
  15729. - yy_current_state = yy_start;
  15730. + yy_current_state = (yy_start);
  15731. yy_match:
  15732. do
  15733. {
  15734. register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
  15735. if ( yy_accept[yy_current_state] )
  15736. {
  15737. - yy_last_accepting_state = yy_current_state;
  15738. - yy_last_accepting_cpos = yy_cp;
  15739. + (yy_last_accepting_state) = yy_current_state;
  15740. + (yy_last_accepting_cpos) = yy_cp;
  15741. }
  15742. while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
  15743. {
  15744. @@ -668,24 +748,22 @@
  15745. yy_act = yy_accept[yy_current_state];
  15746. if ( yy_act == 0 )
  15747. { /* have to back up */
  15748. - yy_cp = yy_last_accepting_cpos;
  15749. - yy_current_state = yy_last_accepting_state;
  15750. + yy_cp = (yy_last_accepting_cpos);
  15751. + yy_current_state = (yy_last_accepting_state);
  15752. yy_act = yy_accept[yy_current_state];
  15753. }
  15754. YY_DO_BEFORE_ACTION;
  15755. -
  15756. do_action: /* This label is used only to access EOF actions. */
  15757. -
  15758. switch ( yy_act )
  15759. { /* beginning of action switch */
  15760. case 0: /* must back up */
  15761. /* undo the effects of YY_DO_BEFORE_ACTION */
  15762. - *yy_cp = yy_hold_char;
  15763. - yy_cp = yy_last_accepting_cpos;
  15764. - yy_current_state = yy_last_accepting_state;
  15765. + *yy_cp = (yy_hold_char);
  15766. + yy_cp = (yy_last_accepting_cpos);
  15767. + yy_current_state = (yy_last_accepting_state);
  15768. goto yy_find_action;
  15769. case 1:
  15770. @@ -735,6 +813,7 @@
  15771. return TOK_ID; }
  15772. YY_BREAK
  15773. case 10:
  15774. +/* rule 10 can match eol */
  15775. YY_RULE_SETUP
  15776. #line 59 "ql_l.l"
  15777. lineno += *yytext == '\n';
  15778. @@ -755,6 +834,7 @@
  15779. return TOK_STRING; }
  15780. YY_BREAK
  15781. case 14:
  15782. +/* rule 14 can match eol */
  15783. YY_RULE_SETUP
  15784. #line 66 "ql_l.l"
  15785. lineno++;
  15786. @@ -769,33 +849,33 @@
  15787. #line 69 "ql_l.l"
  15788. ECHO;
  15789. YY_BREAK
  15790. -#line 773 "lex.yy.c"
  15791. +#line 853 "lex.yy.c"
  15792. case YY_STATE_EOF(INITIAL):
  15793. yyterminate();
  15794. case YY_END_OF_BUFFER:
  15795. {
  15796. /* Amount of text matched not including the EOB char. */
  15797. - int yy_amount_of_matched_text = (int) (yy_cp - yytext_ptr) - 1;
  15798. + int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1;
  15799. /* Undo the effects of YY_DO_BEFORE_ACTION. */
  15800. - *yy_cp = yy_hold_char;
  15801. + *yy_cp = (yy_hold_char);
  15802. YY_RESTORE_YY_MORE_OFFSET
  15803. - if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_NEW )
  15804. + if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW )
  15805. {
  15806. /* We're scanning a new file or input source. It's
  15807. * possible that this happened because the user
  15808. * just pointed yyin at a new source and called
  15809. * yylex(). If so, then we have to assure
  15810. - * consistency between yy_current_buffer and our
  15811. + * consistency between YY_CURRENT_BUFFER and our
  15812. * globals. Here is the right place to do so, because
  15813. * this is the first action (other than possibly a
  15814. * back-up) that will match for the new input source.
  15815. */
  15816. - yy_n_chars = yy_current_buffer->yy_n_chars;
  15817. - yy_current_buffer->yy_input_file = yyin;
  15818. - yy_current_buffer->yy_buffer_status = YY_BUFFER_NORMAL;
  15819. + (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
  15820. + YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin;
  15821. + YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL;
  15822. }
  15823. /* Note that here we test for yy_c_buf_p "<=" to the position
  15824. @@ -805,13 +885,13 @@
  15825. * end-of-buffer state). Contrast this with the test
  15826. * in input().
  15827. */
  15828. - if ( yy_c_buf_p <= &yy_current_buffer->yy_ch_buf[yy_n_chars] )
  15829. + if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
  15830. { /* This was really a NUL. */
  15831. yy_state_type yy_next_state;
  15832. - yy_c_buf_p = yytext_ptr + yy_amount_of_matched_text;
  15833. + (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text;
  15834. - yy_current_state = yy_get_previous_state();
  15835. + yy_current_state = yy_get_previous_state( );
  15836. /* Okay, we're now positioned to make the NUL
  15837. * transition. We couldn't have
  15838. @@ -824,30 +904,30 @@
  15839. yy_next_state = yy_try_NUL_trans( yy_current_state );
  15840. - yy_bp = yytext_ptr + YY_MORE_ADJ;
  15841. + yy_bp = (yytext_ptr) + YY_MORE_ADJ;
  15842. if ( yy_next_state )
  15843. {
  15844. /* Consume the NUL. */
  15845. - yy_cp = ++yy_c_buf_p;
  15846. + yy_cp = ++(yy_c_buf_p);
  15847. yy_current_state = yy_next_state;
  15848. goto yy_match;
  15849. }
  15850. else
  15851. {
  15852. - yy_cp = yy_c_buf_p;
  15853. + yy_cp = (yy_c_buf_p);
  15854. goto yy_find_action;
  15855. }
  15856. }
  15857. - else switch ( yy_get_next_buffer() )
  15858. + else switch ( yy_get_next_buffer( ) )
  15859. {
  15860. case EOB_ACT_END_OF_FILE:
  15861. {
  15862. - yy_did_buffer_switch_on_eof = 0;
  15863. + (yy_did_buffer_switch_on_eof) = 0;
  15864. - if ( yywrap() )
  15865. + if ( yywrap( ) )
  15866. {
  15867. /* Note: because we've taken care in
  15868. * yy_get_next_buffer() to have set up
  15869. @@ -858,7 +938,7 @@
  15870. * YY_NULL, it'll still work - another
  15871. * YY_NULL will get returned.
  15872. */
  15873. - yy_c_buf_p = yytext_ptr + YY_MORE_ADJ;
  15874. + (yy_c_buf_p) = (yytext_ptr) + YY_MORE_ADJ;
  15875. yy_act = YY_STATE_EOF(YY_START);
  15876. goto do_action;
  15877. @@ -866,30 +946,30 @@
  15878. else
  15879. {
  15880. - if ( ! yy_did_buffer_switch_on_eof )
  15881. + if ( ! (yy_did_buffer_switch_on_eof) )
  15882. YY_NEW_FILE;
  15883. }
  15884. break;
  15885. }
  15886. case EOB_ACT_CONTINUE_SCAN:
  15887. - yy_c_buf_p =
  15888. - yytext_ptr + yy_amount_of_matched_text;
  15889. + (yy_c_buf_p) =
  15890. + (yytext_ptr) + yy_amount_of_matched_text;
  15891. - yy_current_state = yy_get_previous_state();
  15892. + yy_current_state = yy_get_previous_state( );
  15893. - yy_cp = yy_c_buf_p;
  15894. - yy_bp = yytext_ptr + YY_MORE_ADJ;
  15895. + yy_cp = (yy_c_buf_p);
  15896. + yy_bp = (yytext_ptr) + YY_MORE_ADJ;
  15897. goto yy_match;
  15898. case EOB_ACT_LAST_MATCH:
  15899. - yy_c_buf_p =
  15900. - &yy_current_buffer->yy_ch_buf[yy_n_chars];
  15901. + (yy_c_buf_p) =
  15902. + &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)];
  15903. - yy_current_state = yy_get_previous_state();
  15904. + yy_current_state = yy_get_previous_state( );
  15905. - yy_cp = yy_c_buf_p;
  15906. - yy_bp = yytext_ptr + YY_MORE_ADJ;
  15907. + yy_cp = (yy_c_buf_p);
  15908. + yy_bp = (yytext_ptr) + YY_MORE_ADJ;
  15909. goto yy_find_action;
  15910. }
  15911. break;
  15912. @@ -900,8 +980,7 @@
  15913. "fatal flex scanner internal error--no action found" );
  15914. } /* end of action switch */
  15915. } /* end of scanning one token */
  15916. - } /* end of yylex */
  15917. -
  15918. +} /* end of yylex */
  15919. /* yy_get_next_buffer - try to read in a new buffer
  15920. *
  15921. @@ -910,21 +989,20 @@
  15922. * EOB_ACT_CONTINUE_SCAN - continue scanning from current position
  15923. * EOB_ACT_END_OF_FILE - end of file
  15924. */
  15925. -
  15926. -static int yy_get_next_buffer()
  15927. - {
  15928. - register char *dest = yy_current_buffer->yy_ch_buf;
  15929. - register char *source = yytext_ptr;
  15930. +static int yy_get_next_buffer (void)
  15931. +{
  15932. + register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
  15933. + register char *source = (yytext_ptr);
  15934. register int number_to_move, i;
  15935. int ret_val;
  15936. - if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] )
  15937. + if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] )
  15938. YY_FATAL_ERROR(
  15939. "fatal flex scanner internal error--end of buffer missed" );
  15940. - if ( yy_current_buffer->yy_fill_buffer == 0 )
  15941. + if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 )
  15942. { /* Don't try to fill the buffer, so this is an EOF. */
  15943. - if ( yy_c_buf_p - yytext_ptr - YY_MORE_ADJ == 1 )
  15944. + if ( (yy_c_buf_p) - (yytext_ptr) - YY_MORE_ADJ == 1 )
  15945. {
  15946. /* We matched a single character, the EOB, so
  15947. * treat this as a final EOF.
  15948. @@ -944,34 +1022,30 @@
  15949. /* Try to read more data. */
  15950. /* First move last chars to start of buffer. */
  15951. - number_to_move = (int) (yy_c_buf_p - yytext_ptr) - 1;
  15952. + number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr)) - 1;
  15953. for ( i = 0; i < number_to_move; ++i )
  15954. *(dest++) = *(source++);
  15955. - if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_EOF_PENDING )
  15956. + if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING )
  15957. /* don't do the read, it's not guaranteed to return an EOF,
  15958. * just force an EOF
  15959. */
  15960. - yy_current_buffer->yy_n_chars = yy_n_chars = 0;
  15961. + YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0;
  15962. else
  15963. {
  15964. - int num_to_read =
  15965. - yy_current_buffer->yy_buf_size - number_to_move - 1;
  15966. + size_t num_to_read =
  15967. + YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
  15968. while ( num_to_read <= 0 )
  15969. { /* Not enough room in the buffer - grow it. */
  15970. -#ifdef YY_USES_REJECT
  15971. - YY_FATAL_ERROR(
  15972. -"input buffer overflow, can't enlarge buffer because scanner uses REJECT" );
  15973. -#else
  15974. /* just a shorter name for the current buffer */
  15975. - YY_BUFFER_STATE b = yy_current_buffer;
  15976. + YY_BUFFER_STATE b = YY_CURRENT_BUFFER;
  15977. int yy_c_buf_p_offset =
  15978. - (int) (yy_c_buf_p - b->yy_ch_buf);
  15979. + (int) ((yy_c_buf_p) - b->yy_ch_buf);
  15980. if ( b->yy_is_our_buffer )
  15981. {
  15982. @@ -984,8 +1058,7 @@
  15983. b->yy_ch_buf = (char *)
  15984. /* Include room in for 2 EOB chars. */
  15985. - yy_flex_realloc( (void *) b->yy_ch_buf,
  15986. - b->yy_buf_size + 2 );
  15987. + yyrealloc((void *) b->yy_ch_buf,b->yy_buf_size + 2 );
  15988. }
  15989. else
  15990. /* Can't grow it, we don't own it. */
  15991. @@ -995,35 +1068,35 @@
  15992. YY_FATAL_ERROR(
  15993. "fatal error - scanner input buffer overflow" );
  15994. - yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset];
  15995. + (yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset];
  15996. - num_to_read = yy_current_buffer->yy_buf_size -
  15997. + num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size -
  15998. number_to_move - 1;
  15999. -#endif
  16000. +
  16001. }
  16002. if ( num_to_read > YY_READ_BUF_SIZE )
  16003. num_to_read = YY_READ_BUF_SIZE;
  16004. /* Read in more data. */
  16005. - YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]),
  16006. - yy_n_chars, num_to_read );
  16007. + YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
  16008. + (yy_n_chars), num_to_read );
  16009. - yy_current_buffer->yy_n_chars = yy_n_chars;
  16010. + YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
  16011. }
  16012. - if ( yy_n_chars == 0 )
  16013. + if ( (yy_n_chars) == 0 )
  16014. {
  16015. if ( number_to_move == YY_MORE_ADJ )
  16016. {
  16017. ret_val = EOB_ACT_END_OF_FILE;
  16018. - yyrestart( yyin );
  16019. + yyrestart(yyin );
  16020. }
  16021. else
  16022. {
  16023. ret_val = EOB_ACT_LAST_MATCH;
  16024. - yy_current_buffer->yy_buffer_status =
  16025. + YY_CURRENT_BUFFER_LVALUE->yy_buffer_status =
  16026. YY_BUFFER_EOF_PENDING;
  16027. }
  16028. }
  16029. @@ -1031,32 +1104,31 @@
  16030. else
  16031. ret_val = EOB_ACT_CONTINUE_SCAN;
  16032. - yy_n_chars += number_to_move;
  16033. - yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR;
  16034. - yy_current_buffer->yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;
  16035. + (yy_n_chars) += number_to_move;
  16036. + YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR;
  16037. + YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR;
  16038. - yytext_ptr = &yy_current_buffer->yy_ch_buf[0];
  16039. + (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
  16040. return ret_val;
  16041. - }
  16042. -
  16043. +}
  16044. /* yy_get_previous_state - get the state just before the EOB char was reached */
  16045. -static yy_state_type yy_get_previous_state()
  16046. - {
  16047. + static yy_state_type yy_get_previous_state (void)
  16048. +{
  16049. register yy_state_type yy_current_state;
  16050. register char *yy_cp;
  16051. +
  16052. + yy_current_state = (yy_start);
  16053. - yy_current_state = yy_start;
  16054. -
  16055. - for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp )
  16056. + for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp )
  16057. {
  16058. register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
  16059. if ( yy_accept[yy_current_state] )
  16060. {
  16061. - yy_last_accepting_state = yy_current_state;
  16062. - yy_last_accepting_cpos = yy_cp;
  16063. + (yy_last_accepting_state) = yy_current_state;
  16064. + (yy_last_accepting_cpos) = yy_cp;
  16065. }
  16066. while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
  16067. {
  16068. @@ -1068,30 +1140,23 @@
  16069. }
  16070. return yy_current_state;
  16071. - }
  16072. -
  16073. +}
  16074. /* yy_try_NUL_trans - try to make a transition on the NUL character
  16075. *
  16076. * synopsis
  16077. * next_state = yy_try_NUL_trans( current_state );
  16078. */
  16079. -
  16080. -#ifdef YY_USE_PROTOS
  16081. -static yy_state_type yy_try_NUL_trans( yy_state_type yy_current_state )
  16082. -#else
  16083. -static yy_state_type yy_try_NUL_trans( yy_current_state )
  16084. -yy_state_type yy_current_state;
  16085. -#endif
  16086. - {
  16087. + static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state )
  16088. +{
  16089. register int yy_is_jam;
  16090. - register char *yy_cp = yy_c_buf_p;
  16091. + register char *yy_cp = (yy_c_buf_p);
  16092. register YY_CHAR yy_c = 1;
  16093. if ( yy_accept[yy_current_state] )
  16094. {
  16095. - yy_last_accepting_state = yy_current_state;
  16096. - yy_last_accepting_cpos = yy_cp;
  16097. + (yy_last_accepting_state) = yy_current_state;
  16098. + (yy_last_accepting_cpos) = yy_cp;
  16099. }
  16100. while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
  16101. {
  16102. @@ -1103,80 +1168,73 @@
  16103. yy_is_jam = (yy_current_state == 69);
  16104. return yy_is_jam ? 0 : yy_current_state;
  16105. - }
  16106. -
  16107. +}
  16108. -#ifndef YY_NO_UNPUT
  16109. -#ifdef YY_USE_PROTOS
  16110. -static void yyunput( int c, register char *yy_bp )
  16111. -#else
  16112. -static void yyunput( c, yy_bp )
  16113. -int c;
  16114. -register char *yy_bp;
  16115. -#endif
  16116. - {
  16117. - register char *yy_cp = yy_c_buf_p;
  16118. + static void yyunput (int c, register char * yy_bp )
  16119. +{
  16120. + register char *yy_cp;
  16121. +
  16122. + yy_cp = (yy_c_buf_p);
  16123. /* undo effects of setting up yytext */
  16124. - *yy_cp = yy_hold_char;
  16125. + *yy_cp = (yy_hold_char);
  16126. - if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
  16127. + if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
  16128. { /* need to shift things up to make room */
  16129. /* +2 for EOB chars. */
  16130. - register int number_to_move = yy_n_chars + 2;
  16131. - register char *dest = &yy_current_buffer->yy_ch_buf[
  16132. - yy_current_buffer->yy_buf_size + 2];
  16133. + register int number_to_move = (yy_n_chars) + 2;
  16134. + register char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[
  16135. + YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2];
  16136. register char *source =
  16137. - &yy_current_buffer->yy_ch_buf[number_to_move];
  16138. + &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move];
  16139. - while ( source > yy_current_buffer->yy_ch_buf )
  16140. + while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
  16141. *--dest = *--source;
  16142. yy_cp += (int) (dest - source);
  16143. yy_bp += (int) (dest - source);
  16144. - yy_current_buffer->yy_n_chars =
  16145. - yy_n_chars = yy_current_buffer->yy_buf_size;
  16146. + YY_CURRENT_BUFFER_LVALUE->yy_n_chars =
  16147. + (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_buf_size;
  16148. - if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
  16149. + if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
  16150. YY_FATAL_ERROR( "flex scanner push-back overflow" );
  16151. }
  16152. *--yy_cp = (char) c;
  16153. + (yytext_ptr) = yy_bp;
  16154. + (yy_hold_char) = *yy_cp;
  16155. + (yy_c_buf_p) = yy_cp;
  16156. +}
  16157. - yytext_ptr = yy_bp;
  16158. - yy_hold_char = *yy_cp;
  16159. - yy_c_buf_p = yy_cp;
  16160. - }
  16161. -#endif /* ifndef YY_NO_UNPUT */
  16162. -
  16163. -
  16164. +#ifndef YY_NO_INPUT
  16165. #ifdef __cplusplus
  16166. -static int yyinput()
  16167. + static int yyinput (void)
  16168. #else
  16169. -static int input()
  16170. + static int input (void)
  16171. #endif
  16172. - {
  16173. - int c;
  16174. - *yy_c_buf_p = yy_hold_char;
  16175. +{
  16176. + int c;
  16177. +
  16178. + *(yy_c_buf_p) = (yy_hold_char);
  16179. - if ( *yy_c_buf_p == YY_END_OF_BUFFER_CHAR )
  16180. + if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR )
  16181. {
  16182. /* yy_c_buf_p now points to the character we want to return.
  16183. * If this occurs *before* the EOB characters, then it's a
  16184. * valid NUL; if not, then we've hit the end of the buffer.
  16185. */
  16186. - if ( yy_c_buf_p < &yy_current_buffer->yy_ch_buf[yy_n_chars] )
  16187. + if ( (yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
  16188. /* This was really a NUL. */
  16189. - *yy_c_buf_p = '\0';
  16190. + *(yy_c_buf_p) = '\0';
  16191. else
  16192. { /* need more input */
  16193. - int offset = yy_c_buf_p - yytext_ptr;
  16194. - ++yy_c_buf_p;
  16195. + int offset = (yy_c_buf_p) - (yytext_ptr);
  16196. + ++(yy_c_buf_p);
  16197. - switch ( yy_get_next_buffer() )
  16198. + switch ( yy_get_next_buffer( ) )
  16199. {
  16200. case EOB_ACT_LAST_MATCH:
  16201. /* This happens because yy_g_n_b()
  16202. @@ -1190,16 +1248,16 @@
  16203. */
  16204. /* Reset buffer status. */
  16205. - yyrestart( yyin );
  16206. + yyrestart(yyin );
  16207. - /* fall through */
  16208. + /*FALLTHROUGH*/
  16209. case EOB_ACT_END_OF_FILE:
  16210. {
  16211. - if ( yywrap() )
  16212. + if ( yywrap( ) )
  16213. return EOF;
  16214. - if ( ! yy_did_buffer_switch_on_eof )
  16215. + if ( ! (yy_did_buffer_switch_on_eof) )
  16216. YY_NEW_FILE;
  16217. #ifdef __cplusplus
  16218. return yyinput();
  16219. @@ -1209,90 +1267,92 @@
  16220. }
  16221. case EOB_ACT_CONTINUE_SCAN:
  16222. - yy_c_buf_p = yytext_ptr + offset;
  16223. + (yy_c_buf_p) = (yytext_ptr) + offset;
  16224. break;
  16225. }
  16226. }
  16227. }
  16228. - c = *(unsigned char *) yy_c_buf_p; /* cast for 8-bit char's */
  16229. - *yy_c_buf_p = '\0'; /* preserve yytext */
  16230. - yy_hold_char = *++yy_c_buf_p;
  16231. -
  16232. + c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */
  16233. + *(yy_c_buf_p) = '\0'; /* preserve yytext */
  16234. + (yy_hold_char) = *++(yy_c_buf_p);
  16235. return c;
  16236. - }
  16237. -
  16238. -
  16239. -#ifdef YY_USE_PROTOS
  16240. -void yyrestart( FILE *input_file )
  16241. -#else
  16242. -void yyrestart( input_file )
  16243. -FILE *input_file;
  16244. -#endif
  16245. - {
  16246. - if ( ! yy_current_buffer )
  16247. - yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE );
  16248. +}
  16249. +#endif /* ifndef YY_NO_INPUT */
  16250. - yy_init_buffer( yy_current_buffer, input_file );
  16251. - yy_load_buffer_state();
  16252. +/** Immediately switch to a different input stream.
  16253. + * @param input_file A readable stream.
  16254. + *
  16255. + * @note This function does not reset the start condition to @c INITIAL .
  16256. + */
  16257. + void yyrestart (FILE * input_file )
  16258. +{
  16259. +
  16260. + if ( ! YY_CURRENT_BUFFER ){
  16261. + yyensure_buffer_stack ();
  16262. + YY_CURRENT_BUFFER_LVALUE =
  16263. + yy_create_buffer(yyin,YY_BUF_SIZE );
  16264. }
  16265. + yy_init_buffer(YY_CURRENT_BUFFER,input_file );
  16266. + yy_load_buffer_state( );
  16267. +}
  16268. -#ifdef YY_USE_PROTOS
  16269. -void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer )
  16270. -#else
  16271. -void yy_switch_to_buffer( new_buffer )
  16272. -YY_BUFFER_STATE new_buffer;
  16273. -#endif
  16274. - {
  16275. - if ( yy_current_buffer == new_buffer )
  16276. +/** Switch to a different input buffer.
  16277. + * @param new_buffer The new input buffer.
  16278. + *
  16279. + */
  16280. + void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer )
  16281. +{
  16282. +
  16283. + /* TODO. We should be able to replace this entire function body
  16284. + * with
  16285. + * yypop_buffer_state();
  16286. + * yypush_buffer_state(new_buffer);
  16287. + */
  16288. + yyensure_buffer_stack ();
  16289. + if ( YY_CURRENT_BUFFER == new_buffer )
  16290. return;
  16291. - if ( yy_current_buffer )
  16292. + if ( YY_CURRENT_BUFFER )
  16293. {
  16294. /* Flush out information for old buffer. */
  16295. - *yy_c_buf_p = yy_hold_char;
  16296. - yy_current_buffer->yy_buf_pos = yy_c_buf_p;
  16297. - yy_current_buffer->yy_n_chars = yy_n_chars;
  16298. + *(yy_c_buf_p) = (yy_hold_char);
  16299. + YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
  16300. + YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
  16301. }
  16302. - yy_current_buffer = new_buffer;
  16303. - yy_load_buffer_state();
  16304. + YY_CURRENT_BUFFER_LVALUE = new_buffer;
  16305. + yy_load_buffer_state( );
  16306. /* We don't actually know whether we did this switch during
  16307. * EOF (yywrap()) processing, but the only time this flag
  16308. * is looked at is after yywrap() is called, so it's safe
  16309. * to go ahead and always set it.
  16310. */
  16311. - yy_did_buffer_switch_on_eof = 1;
  16312. - }
  16313. -
  16314. -
  16315. -#ifdef YY_USE_PROTOS
  16316. -void yy_load_buffer_state( void )
  16317. -#else
  16318. -void yy_load_buffer_state()
  16319. -#endif
  16320. - {
  16321. - yy_n_chars = yy_current_buffer->yy_n_chars;
  16322. - yytext_ptr = yy_c_buf_p = yy_current_buffer->yy_buf_pos;
  16323. - yyin = yy_current_buffer->yy_input_file;
  16324. - yy_hold_char = *yy_c_buf_p;
  16325. - }
  16326. + (yy_did_buffer_switch_on_eof) = 1;
  16327. +}
  16328. +static void yy_load_buffer_state (void)
  16329. +{
  16330. + (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
  16331. + (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
  16332. + yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
  16333. + (yy_hold_char) = *(yy_c_buf_p);
  16334. +}
  16335. -#ifdef YY_USE_PROTOS
  16336. -YY_BUFFER_STATE yy_create_buffer( FILE *file, int size )
  16337. -#else
  16338. -YY_BUFFER_STATE yy_create_buffer( file, size )
  16339. -FILE *file;
  16340. -int size;
  16341. -#endif
  16342. - {
  16343. +/** Allocate and initialize an input buffer state.
  16344. + * @param file A readable stream.
  16345. + * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE.
  16346. + *
  16347. + * @return the allocated buffer state.
  16348. + */
  16349. + YY_BUFFER_STATE yy_create_buffer (FILE * file, int size )
  16350. +{
  16351. YY_BUFFER_STATE b;
  16352. -
  16353. - b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
  16354. +
  16355. + b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) );
  16356. if ( ! b )
  16357. YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
  16358. @@ -1301,75 +1361,75 @@
  16359. /* yy_ch_buf has to be 2 characters longer than the size given because
  16360. * we need to put in 2 end-of-buffer characters.
  16361. */
  16362. - b->yy_ch_buf = (char *) yy_flex_alloc( b->yy_buf_size + 2 );
  16363. + b->yy_ch_buf = (char *) yyalloc(b->yy_buf_size + 2 );
  16364. if ( ! b->yy_ch_buf )
  16365. YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
  16366. b->yy_is_our_buffer = 1;
  16367. - yy_init_buffer( b, file );
  16368. + yy_init_buffer(b,file );
  16369. return b;
  16370. - }
  16371. -
  16372. +}
  16373. -#ifdef YY_USE_PROTOS
  16374. -void yy_delete_buffer( YY_BUFFER_STATE b )
  16375. -#else
  16376. -void yy_delete_buffer( b )
  16377. -YY_BUFFER_STATE b;
  16378. -#endif
  16379. - {
  16380. +/** Destroy the buffer.
  16381. + * @param b a buffer created with yy_create_buffer()
  16382. + *
  16383. + */
  16384. + void yy_delete_buffer (YY_BUFFER_STATE b )
  16385. +{
  16386. +
  16387. if ( ! b )
  16388. return;
  16389. - if ( b == yy_current_buffer )
  16390. - yy_current_buffer = (YY_BUFFER_STATE) 0;
  16391. + if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */
  16392. + YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0;
  16393. if ( b->yy_is_our_buffer )
  16394. - yy_flex_free( (void *) b->yy_ch_buf );
  16395. + yyfree((void *) b->yy_ch_buf );
  16396. - yy_flex_free( (void *) b );
  16397. - }
  16398. -
  16399. -
  16400. -
  16401. -#ifdef YY_USE_PROTOS
  16402. -void yy_init_buffer( YY_BUFFER_STATE b, FILE *file )
  16403. -#else
  16404. -void yy_init_buffer( b, file )
  16405. -YY_BUFFER_STATE b;
  16406. -FILE *file;
  16407. -#endif
  16408. + yyfree((void *) b );
  16409. +}
  16410. +#ifndef __cplusplus
  16411. +extern int isatty (int );
  16412. +#endif /* __cplusplus */
  16413. +
  16414. +/* Initializes or reinitializes a buffer.
  16415. + * This function is sometimes called more than once on the same buffer,
  16416. + * such as during a yyrestart() or at EOF.
  16417. + */
  16418. + static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file )
  16419. - {
  16420. - yy_flush_buffer( b );
  16421. +{
  16422. + int oerrno = errno;
  16423. +
  16424. + yy_flush_buffer(b );
  16425. b->yy_input_file = file;
  16426. b->yy_fill_buffer = 1;
  16427. -#if YY_ALWAYS_INTERACTIVE
  16428. - b->yy_is_interactive = 1;
  16429. -#else
  16430. -#if YY_NEVER_INTERACTIVE
  16431. - b->yy_is_interactive = 0;
  16432. -#else
  16433. - b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
  16434. -#endif
  16435. -#endif
  16436. - }
  16437. -
  16438. + /* If b is the current buffer, then yy_init_buffer was _probably_
  16439. + * called from yyrestart() or through yy_get_next_buffer.
  16440. + * In that case, we don't want to reset the lineno or column.
  16441. + */
  16442. + if (b != YY_CURRENT_BUFFER){
  16443. + b->yy_bs_lineno = 1;
  16444. + b->yy_bs_column = 0;
  16445. + }
  16446. -#ifdef YY_USE_PROTOS
  16447. -void yy_flush_buffer( YY_BUFFER_STATE b )
  16448. -#else
  16449. -void yy_flush_buffer( b )
  16450. -YY_BUFFER_STATE b;
  16451. -#endif
  16452. + b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
  16453. +
  16454. + errno = oerrno;
  16455. +}
  16456. - {
  16457. - if ( ! b )
  16458. +/** Discard all buffered characters. On the next scan, YY_INPUT will be called.
  16459. + * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER.
  16460. + *
  16461. + */
  16462. + void yy_flush_buffer (YY_BUFFER_STATE b )
  16463. +{
  16464. + if ( ! b )
  16465. return;
  16466. b->yy_n_chars = 0;
  16467. @@ -1386,29 +1446,121 @@
  16468. b->yy_at_bol = 1;
  16469. b->yy_buffer_status = YY_BUFFER_NEW;
  16470. - if ( b == yy_current_buffer )
  16471. - yy_load_buffer_state();
  16472. + if ( b == YY_CURRENT_BUFFER )
  16473. + yy_load_buffer_state( );
  16474. +}
  16475. +
  16476. +/** Pushes the new state onto the stack. The new state becomes
  16477. + * the current state. This function will allocate the stack
  16478. + * if necessary.
  16479. + * @param new_buffer The new state.
  16480. + *
  16481. + */
  16482. +void yypush_buffer_state (YY_BUFFER_STATE new_buffer )
  16483. +{
  16484. + if (new_buffer == NULL)
  16485. + return;
  16486. +
  16487. + yyensure_buffer_stack();
  16488. +
  16489. + /* This block is copied from yy_switch_to_buffer. */
  16490. + if ( YY_CURRENT_BUFFER )
  16491. + {
  16492. + /* Flush out information for old buffer. */
  16493. + *(yy_c_buf_p) = (yy_hold_char);
  16494. + YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
  16495. + YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
  16496. + }
  16497. +
  16498. + /* Only push if top exists. Otherwise, replace top. */
  16499. + if (YY_CURRENT_BUFFER)
  16500. + (yy_buffer_stack_top)++;
  16501. + YY_CURRENT_BUFFER_LVALUE = new_buffer;
  16502. +
  16503. + /* copied from yy_switch_to_buffer. */
  16504. + yy_load_buffer_state( );
  16505. + (yy_did_buffer_switch_on_eof) = 1;
  16506. +}
  16507. +
  16508. +/** Removes and deletes the top of the stack, if present.
  16509. + * The next element becomes the new top.
  16510. + *
  16511. + */
  16512. +void yypop_buffer_state (void)
  16513. +{
  16514. + if (!YY_CURRENT_BUFFER)
  16515. + return;
  16516. +
  16517. + yy_delete_buffer(YY_CURRENT_BUFFER );
  16518. + YY_CURRENT_BUFFER_LVALUE = NULL;
  16519. + if ((yy_buffer_stack_top) > 0)
  16520. + --(yy_buffer_stack_top);
  16521. +
  16522. + if (YY_CURRENT_BUFFER) {
  16523. + yy_load_buffer_state( );
  16524. + (yy_did_buffer_switch_on_eof) = 1;
  16525. }
  16526. +}
  16527. +/* Allocates the stack if it does not exist.
  16528. + * Guarantees space for at least one push.
  16529. + */
  16530. +static void yyensure_buffer_stack (void)
  16531. +{
  16532. + int num_to_alloc;
  16533. +
  16534. + if (!(yy_buffer_stack)) {
  16535. +
  16536. + /* First allocation is just for 2 elements, since we don't know if this
  16537. + * scanner will even need a stack. We use 2 instead of 1 to avoid an
  16538. + * immediate realloc on the next call.
  16539. + */
  16540. + num_to_alloc = 1;
  16541. + (yy_buffer_stack) = (struct yy_buffer_state**)yyalloc
  16542. + (num_to_alloc * sizeof(struct yy_buffer_state*)
  16543. + );
  16544. +
  16545. + memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*));
  16546. +
  16547. + (yy_buffer_stack_max) = num_to_alloc;
  16548. + (yy_buffer_stack_top) = 0;
  16549. + return;
  16550. + }
  16551. -#ifndef YY_NO_SCAN_BUFFER
  16552. -#ifdef YY_USE_PROTOS
  16553. -YY_BUFFER_STATE yy_scan_buffer( char *base, yy_size_t size )
  16554. -#else
  16555. -YY_BUFFER_STATE yy_scan_buffer( base, size )
  16556. -char *base;
  16557. -yy_size_t size;
  16558. -#endif
  16559. - {
  16560. - YY_BUFFER_STATE b;
  16561. + if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){
  16562. +
  16563. + /* Increase the buffer to prepare for a possible push. */
  16564. + int grow_size = 8 /* arbitrary grow size */;
  16565. + num_to_alloc = (yy_buffer_stack_max) + grow_size;
  16566. + (yy_buffer_stack) = (struct yy_buffer_state**)yyrealloc
  16567. + ((yy_buffer_stack),
  16568. + num_to_alloc * sizeof(struct yy_buffer_state*)
  16569. + );
  16570. +
  16571. + /* zero only the new slots.*/
  16572. + memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*));
  16573. + (yy_buffer_stack_max) = num_to_alloc;
  16574. + }
  16575. +}
  16576. +
  16577. +/** Setup the input buffer state to scan directly from a user-specified character buffer.
  16578. + * @param base the character buffer
  16579. + * @param size the size in bytes of the character buffer
  16580. + *
  16581. + * @return the newly allocated buffer state object.
  16582. + */
  16583. +YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size )
  16584. +{
  16585. + YY_BUFFER_STATE b;
  16586. +
  16587. if ( size < 2 ||
  16588. base[size-2] != YY_END_OF_BUFFER_CHAR ||
  16589. base[size-1] != YY_END_OF_BUFFER_CHAR )
  16590. /* They forgot to leave room for the EOB's. */
  16591. return 0;
  16592. - b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
  16593. + b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) );
  16594. if ( ! b )
  16595. YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
  16596. @@ -1422,47 +1574,42 @@
  16597. b->yy_fill_buffer = 0;
  16598. b->yy_buffer_status = YY_BUFFER_NEW;
  16599. - yy_switch_to_buffer( b );
  16600. + yy_switch_to_buffer(b );
  16601. return b;
  16602. - }
  16603. -#endif
  16604. -
  16605. -
  16606. -#ifndef YY_NO_SCAN_STRING
  16607. -#ifdef YY_USE_PROTOS
  16608. -YY_BUFFER_STATE yy_scan_string( yyconst char *yy_str )
  16609. -#else
  16610. -YY_BUFFER_STATE yy_scan_string( yy_str )
  16611. -yyconst char *yy_str;
  16612. -#endif
  16613. - {
  16614. - int len;
  16615. - for ( len = 0; yy_str[len]; ++len )
  16616. - ;
  16617. -
  16618. - return yy_scan_bytes( yy_str, len );
  16619. - }
  16620. -#endif
  16621. +}
  16622. +/** Setup the input buffer state to scan a string. The next call to yylex() will
  16623. + * scan from a @e copy of @a str.
  16624. + * @param str a NUL-terminated string to scan
  16625. + *
  16626. + * @return the newly allocated buffer state object.
  16627. + * @note If you want to scan bytes that may contain NUL values, then use
  16628. + * yy_scan_bytes() instead.
  16629. + */
  16630. +YY_BUFFER_STATE yy_scan_string (yyconst char * yy_str )
  16631. +{
  16632. +
  16633. + return yy_scan_bytes(yy_str,strlen(yy_str) );
  16634. +}
  16635. -#ifndef YY_NO_SCAN_BYTES
  16636. -#ifdef YY_USE_PROTOS
  16637. -YY_BUFFER_STATE yy_scan_bytes( yyconst char *bytes, int len )
  16638. -#else
  16639. -YY_BUFFER_STATE yy_scan_bytes( bytes, len )
  16640. -yyconst char *bytes;
  16641. -int len;
  16642. -#endif
  16643. - {
  16644. +/** Setup the input buffer state to scan the given bytes. The next call to yylex() will
  16645. + * scan from a @e copy of @a bytes.
  16646. + * @param bytes the byte buffer to scan
  16647. + * @param len the number of bytes in the buffer pointed to by @a bytes.
  16648. + *
  16649. + * @return the newly allocated buffer state object.
  16650. + */
  16651. +YY_BUFFER_STATE yy_scan_bytes (yyconst char * bytes, int len )
  16652. +{
  16653. YY_BUFFER_STATE b;
  16654. char *buf;
  16655. yy_size_t n;
  16656. int i;
  16657. -
  16658. +
  16659. /* Get memory for full buffer, including space for trailing EOB's. */
  16660. n = len + 2;
  16661. - buf = (char *) yy_flex_alloc( n );
  16662. + buf = (char *) yyalloc(n );
  16663. if ( ! buf )
  16664. YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
  16665. @@ -1471,7 +1618,7 @@
  16666. buf[len] = buf[len+1] = YY_END_OF_BUFFER_CHAR;
  16667. - b = yy_scan_buffer( buf, n );
  16668. + b = yy_scan_buffer(buf,n );
  16669. if ( ! b )
  16670. YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
  16671. @@ -1481,148 +1628,164 @@
  16672. b->yy_is_our_buffer = 1;
  16673. return b;
  16674. - }
  16675. -#endif
  16676. -
  16677. +}
  16678. -#ifndef YY_NO_PUSH_STATE
  16679. -#ifdef YY_USE_PROTOS
  16680. -static void yy_push_state( int new_state )
  16681. -#else
  16682. -static void yy_push_state( new_state )
  16683. -int new_state;
  16684. +#ifndef YY_EXIT_FAILURE
  16685. +#define YY_EXIT_FAILURE 2
  16686. #endif
  16687. - {
  16688. - if ( yy_start_stack_ptr >= yy_start_stack_depth )
  16689. - {
  16690. - yy_size_t new_size;
  16691. - yy_start_stack_depth += YY_START_STACK_INCR;
  16692. - new_size = yy_start_stack_depth * sizeof( int );
  16693. +static void yy_fatal_error (yyconst char* msg )
  16694. +{
  16695. + (void) fprintf( stderr, "%s\n", msg );
  16696. + exit( YY_EXIT_FAILURE );
  16697. +}
  16698. - if ( ! yy_start_stack )
  16699. - yy_start_stack = (int *) yy_flex_alloc( new_size );
  16700. +/* Redefine yyless() so it works in section 3 code. */
  16701. - else
  16702. - yy_start_stack = (int *) yy_flex_realloc(
  16703. - (void *) yy_start_stack, new_size );
  16704. +#undef yyless
  16705. +#define yyless(n) \
  16706. + do \
  16707. + { \
  16708. + /* Undo effects of setting up yytext. */ \
  16709. + int yyless_macro_arg = (n); \
  16710. + YY_LESS_LINENO(yyless_macro_arg);\
  16711. + yytext[yyleng] = (yy_hold_char); \
  16712. + (yy_c_buf_p) = yytext + yyless_macro_arg; \
  16713. + (yy_hold_char) = *(yy_c_buf_p); \
  16714. + *(yy_c_buf_p) = '\0'; \
  16715. + yyleng = yyless_macro_arg; \
  16716. + } \
  16717. + while ( 0 )
  16718. - if ( ! yy_start_stack )
  16719. - YY_FATAL_ERROR(
  16720. - "out of memory expanding start-condition stack" );
  16721. - }
  16722. +/* Accessor methods (get/set functions) to struct members. */
  16723. - yy_start_stack[yy_start_stack_ptr++] = YY_START;
  16724. +/** Get the current line number.
  16725. + *
  16726. + */
  16727. +int yyget_lineno (void)
  16728. +{
  16729. +
  16730. + return yylineno;
  16731. +}
  16732. - BEGIN(new_state);
  16733. - }
  16734. -#endif
  16735. +/** Get the input stream.
  16736. + *
  16737. + */
  16738. +FILE *yyget_in (void)
  16739. +{
  16740. + return yyin;
  16741. +}
  16742. +/** Get the output stream.
  16743. + *
  16744. + */
  16745. +FILE *yyget_out (void)
  16746. +{
  16747. + return yyout;
  16748. +}
  16749. -#ifndef YY_NO_POP_STATE
  16750. -static void yy_pop_state()
  16751. - {
  16752. - if ( --yy_start_stack_ptr < 0 )
  16753. - YY_FATAL_ERROR( "start-condition stack underflow" );
  16754. +/** Get the length of the current token.
  16755. + *
  16756. + */
  16757. +int yyget_leng (void)
  16758. +{
  16759. + return yyleng;
  16760. +}
  16761. - BEGIN(yy_start_stack[yy_start_stack_ptr]);
  16762. - }
  16763. -#endif
  16764. +/** Get the current token.
  16765. + *
  16766. + */
  16767. +char *yyget_text (void)
  16768. +{
  16769. + return yytext;
  16770. +}
  16771. -#ifndef YY_NO_TOP_STATE
  16772. -static int yy_top_state()
  16773. - {
  16774. - return yy_start_stack[yy_start_stack_ptr - 1];
  16775. - }
  16776. -#endif
  16777. +/** Set the current line number.
  16778. + * @param line_number
  16779. + *
  16780. + */
  16781. +void yyset_lineno (int line_number )
  16782. +{
  16783. +
  16784. + yylineno = line_number;
  16785. +}
  16786. -#ifndef YY_EXIT_FAILURE
  16787. -#define YY_EXIT_FAILURE 2
  16788. -#endif
  16789. +/** Set the input stream. This does not discard the current
  16790. + * input buffer.
  16791. + * @param in_str A readable stream.
  16792. + *
  16793. + * @see yy_switch_to_buffer
  16794. + */
  16795. +void yyset_in (FILE * in_str )
  16796. +{
  16797. + yyin = in_str ;
  16798. +}
  16799. -#ifdef YY_USE_PROTOS
  16800. -static void yy_fatal_error( yyconst char msg[] )
  16801. -#else
  16802. -static void yy_fatal_error( msg )
  16803. -char msg[];
  16804. -#endif
  16805. - {
  16806. - (void) fprintf( stderr, "%s\n", msg );
  16807. - exit( YY_EXIT_FAILURE );
  16808. - }
  16809. +void yyset_out (FILE * out_str )
  16810. +{
  16811. + yyout = out_str ;
  16812. +}
  16813. +int yyget_debug (void)
  16814. +{
  16815. + return yy_flex_debug;
  16816. +}
  16817. +void yyset_debug (int bdebug )
  16818. +{
  16819. + yy_flex_debug = bdebug ;
  16820. +}
  16821. -/* Redefine yyless() so it works in section 3 code. */
  16822. +/* yylex_destroy is for both reentrant and non-reentrant scanners. */
  16823. +int yylex_destroy (void)
  16824. +{
  16825. +
  16826. + /* Pop the buffer stack, destroying each element. */
  16827. + while(YY_CURRENT_BUFFER){
  16828. + yy_delete_buffer(YY_CURRENT_BUFFER );
  16829. + YY_CURRENT_BUFFER_LVALUE = NULL;
  16830. + yypop_buffer_state();
  16831. + }
  16832. -#undef yyless
  16833. -#define yyless(n) \
  16834. - do \
  16835. - { \
  16836. - /* Undo effects of setting up yytext. */ \
  16837. - yytext[yyleng] = yy_hold_char; \
  16838. - yy_c_buf_p = yytext + n; \
  16839. - yy_hold_char = *yy_c_buf_p; \
  16840. - *yy_c_buf_p = '\0'; \
  16841. - yyleng = n; \
  16842. - } \
  16843. - while ( 0 )
  16844. + /* Destroy the stack itself. */
  16845. + yyfree((yy_buffer_stack) );
  16846. + (yy_buffer_stack) = NULL;
  16847. + return 0;
  16848. +}
  16849. -/* Internal utility routines. */
  16850. +/*
  16851. + * Internal utility routines.
  16852. + */
  16853. #ifndef yytext_ptr
  16854. -#ifdef YY_USE_PROTOS
  16855. -static void yy_flex_strncpy( char *s1, yyconst char *s2, int n )
  16856. -#else
  16857. -static void yy_flex_strncpy( s1, s2, n )
  16858. -char *s1;
  16859. -yyconst char *s2;
  16860. -int n;
  16861. -#endif
  16862. - {
  16863. +static void yy_flex_strncpy (char* s1, yyconst char * s2, int n )
  16864. +{
  16865. register int i;
  16866. - for ( i = 0; i < n; ++i )
  16867. + for ( i = 0; i < n; ++i )
  16868. s1[i] = s2[i];
  16869. - }
  16870. +}
  16871. #endif
  16872. #ifdef YY_NEED_STRLEN
  16873. -#ifdef YY_USE_PROTOS
  16874. -static int yy_flex_strlen( yyconst char *s )
  16875. -#else
  16876. -static int yy_flex_strlen( s )
  16877. -yyconst char *s;
  16878. -#endif
  16879. - {
  16880. +static int yy_flex_strlen (yyconst char * s )
  16881. +{
  16882. register int n;
  16883. - for ( n = 0; s[n]; ++n )
  16884. + for ( n = 0; s[n]; ++n )
  16885. ;
  16886. return n;
  16887. - }
  16888. +}
  16889. #endif
  16890. -
  16891. -#ifdef YY_USE_PROTOS
  16892. -static void *yy_flex_alloc( yy_size_t size )
  16893. -#else
  16894. -static void *yy_flex_alloc( size )
  16895. -yy_size_t size;
  16896. -#endif
  16897. - {
  16898. +void *yyalloc (yy_size_t size )
  16899. +{
  16900. return (void *) malloc( size );
  16901. - }
  16902. +}
  16903. -#ifdef YY_USE_PROTOS
  16904. -static void *yy_flex_realloc( void *ptr, yy_size_t size )
  16905. -#else
  16906. -static void *yy_flex_realloc( ptr, size )
  16907. -void *ptr;
  16908. -yy_size_t size;
  16909. -#endif
  16910. - {
  16911. +void *yyrealloc (void * ptr, yy_size_t size )
  16912. +{
  16913. /* The cast to (char *) in the following accommodates both
  16914. * implementations that use char* generic pointers, and those
  16915. * that use void* generic pointers. It works with the latter
  16916. @@ -1631,30 +1794,34 @@
  16917. * as though doing an assignment.
  16918. */
  16919. return (void *) realloc( (char *) ptr, size );
  16920. - }
  16921. +}
  16922. -#ifdef YY_USE_PROTOS
  16923. -static void yy_flex_free( void *ptr )
  16924. -#else
  16925. -static void yy_flex_free( ptr )
  16926. -void *ptr;
  16927. -#endif
  16928. - {
  16929. - free( ptr );
  16930. - }
  16931. +void yyfree (void * ptr )
  16932. +{
  16933. + free( (char *) ptr ); /* see yyrealloc() for (char *) cast */
  16934. +}
  16935. -#if YY_MAIN
  16936. -int main()
  16937. - {
  16938. - yylex();
  16939. - return 0;
  16940. - }
  16941. +#define YYTABLES_NAME "yytables"
  16942. +
  16943. +#undef YY_NEW_FILE
  16944. +#undef YY_FLUSH_BUFFER
  16945. +#undef yy_set_bol
  16946. +#undef yy_new_buffer
  16947. +#undef yy_set_interactive
  16948. +#undef yytext_ptr
  16949. +#undef YY_DO_BEFORE_ACTION
  16950. +
  16951. +#ifdef YY_DECL_IS_OURS
  16952. +#undef YY_DECL_IS_OURS
  16953. +#undef YY_DECL
  16954. #endif
  16955. #line 69 "ql_l.l"
  16956. -void yyerror(char *s)
  16957. +
  16958. +void yyerror(const char *s)
  16959. {
  16960. fprintf(stderr,"line %d: %s near \"%s\"\n",lineno,s,yytext);
  16961. exit(1);
  16962. }
  16963. +
  16964. --- linux-atm-2.4.1.orig/src/qgen/ql_y.c
  16965. +++ linux-atm-2.4.1/src/qgen/ql_y.c
  16966. @@ -1,21 +1,87 @@
  16967. +/* A Bison parser, made by GNU Bison 1.875d. */
  16968. -/* A Bison parser, made from ql_y.y
  16969. - by GNU Bison version 1.28 */
  16970. +/* Skeleton parser for Yacc-like parsing with Bison,
  16971. + Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
  16972. -#define YYBISON 1 /* Identify Bison output. */
  16973. + This program is free software; you can redistribute it and/or modify
  16974. + it under the terms of the GNU General Public License as published by
  16975. + the Free Software Foundation; either version 2, or (at your option)
  16976. + any later version.
  16977. -#define TOK_BREAK 257
  16978. -#define TOK_CASE 258
  16979. -#define TOK_DEF 259
  16980. -#define TOK_DEFAULT 260
  16981. -#define TOK_LENGTH 261
  16982. -#define TOK_MULTI 262
  16983. -#define TOK_RECOVER 263
  16984. -#define TOK_ABORT 264
  16985. -#define TOK_ID 265
  16986. -#define TOK_INCLUDE 266
  16987. -#define TOK_STRING 267
  16988. + This program is distributed in the hope that it will be useful,
  16989. + but WITHOUT ANY WARRANTY; without even the implied warranty of
  16990. + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16991. + GNU General Public License for more details.
  16992. + You should have received a copy of the GNU General Public License
  16993. + along with this program; if not, write to the Free Software
  16994. + Foundation, Inc., 59 Temple Place - Suite 330,
  16995. + Boston, MA 02111-1307, USA. */
  16996. +
  16997. +/* As a special exception, when this file is copied by Bison into a
  16998. + Bison output file, you may use that output file without restriction.
  16999. + This special exception was added by the Free Software Foundation
  17000. + in version 1.24 of Bison. */
  17001. +
  17002. +/* Written by Richard Stallman by simplifying the original so called
  17003. + ``semantic'' parser. */
  17004. +
  17005. +/* All symbols defined below should begin with yy or YY, to avoid
  17006. + infringing on user name space. This should be done even for local
  17007. + variables, as they might otherwise be expanded by user macros.
  17008. + There are some unavoidable exceptions within include files to
  17009. + define necessary library symbols; they are noted "INFRINGES ON
  17010. + USER NAME SPACE" below. */
  17011. +
  17012. +/* Identify Bison output. */
  17013. +#define YYBISON 1
  17014. +
  17015. +/* Skeleton name. */
  17016. +#define YYSKELETON_NAME "yacc.c"
  17017. +
  17018. +/* Pure parsers. */
  17019. +#define YYPURE 0
  17020. +
  17021. +/* Using locations. */
  17022. +#define YYLSP_NEEDED 0
  17023. +
  17024. +
  17025. +
  17026. +/* Tokens. */
  17027. +#ifndef YYTOKENTYPE
  17028. +# define YYTOKENTYPE
  17029. + /* Put the tokens into the symbol table, so that GDB and other debuggers
  17030. + know about them. */
  17031. + enum yytokentype {
  17032. + TOK_BREAK = 258,
  17033. + TOK_CASE = 259,
  17034. + TOK_DEF = 260,
  17035. + TOK_DEFAULT = 261,
  17036. + TOK_LENGTH = 262,
  17037. + TOK_MULTI = 263,
  17038. + TOK_RECOVER = 264,
  17039. + TOK_ABORT = 265,
  17040. + TOK_ID = 266,
  17041. + TOK_INCLUDE = 267,
  17042. + TOK_STRING = 268
  17043. + };
  17044. +#endif
  17045. +#define TOK_BREAK 258
  17046. +#define TOK_CASE 259
  17047. +#define TOK_DEF 260
  17048. +#define TOK_DEFAULT 261
  17049. +#define TOK_LENGTH 262
  17050. +#define TOK_MULTI 263
  17051. +#define TOK_RECOVER 264
  17052. +#define TOK_ABORT 265
  17053. +#define TOK_ID 266
  17054. +#define TOK_INCLUDE 267
  17055. +#define TOK_STRING 268
  17056. +
  17057. +
  17058. +
  17059. +
  17060. +/* Copy the first part of user declarations. */
  17061. #line 1 "ql_y.y"
  17062. /* ql.y - Q.2931 data structures description language */
  17063. @@ -36,6 +102,8 @@
  17064. #include "qgen.h"
  17065. #include "file.h"
  17066. +extern void yyerror(const char *s);
  17067. +
  17068. #define MAX_TOKEN 256
  17069. #define DEFAULT_NAMELIST_FILE "default.nl"
  17070. @@ -77,9 +145,10 @@
  17071. for (walk = strchr(start,0)-1; walk > start && isspace(*walk); walk--)
  17072. *walk = 0;
  17073. if (*start == ':') {
  17074. - if (!(searching = strcmp(start+1,name)))
  17075. + if (!(searching = strcmp(start+1,name))) {
  17076. if (found) yyerror("multiple entries");
  17077. else found = 1;
  17078. + }
  17079. continue;
  17080. }
  17081. if (searching) continue;
  17082. @@ -154,8 +223,23 @@
  17083. -#line 139 "ql_y.y"
  17084. -typedef union {
  17085. +
  17086. +/* Enabling traces. */
  17087. +#ifndef YYDEBUG
  17088. +# define YYDEBUG 0
  17089. +#endif
  17090. +
  17091. +/* Enabling verbose error messages. */
  17092. +#ifdef YYERROR_VERBOSE
  17093. +# undef YYERROR_VERBOSE
  17094. +# define YYERROR_VERBOSE 1
  17095. +#else
  17096. +# define YYERROR_VERBOSE 0
  17097. +#endif
  17098. +
  17099. +#if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
  17100. +#line 142 "ql_y.y"
  17101. +typedef union YYSTYPE {
  17102. const char *str;
  17103. int num;
  17104. FIELD *field;
  17105. @@ -164,470 +248,762 @@
  17106. TAG *tag;
  17107. NAME_LIST *nlist;
  17108. } YYSTYPE;
  17109. -#include <stdio.h>
  17110. +/* Line 191 of yacc.c. */
  17111. +#line 253 "y.tab.c"
  17112. +# define yystype YYSTYPE /* obsolescent; will be withdrawn */
  17113. +# define YYSTYPE_IS_DECLARED 1
  17114. +# define YYSTYPE_IS_TRIVIAL 1
  17115. +#endif
  17116. +
  17117. +
  17118. +
  17119. +/* Copy the second part of user declarations. */
  17120. +
  17121. +
  17122. +/* Line 214 of yacc.c. */
  17123. +#line 265 "y.tab.c"
  17124. +
  17125. +#if ! defined (yyoverflow) || YYERROR_VERBOSE
  17126. +
  17127. +# ifndef YYFREE
  17128. +# define YYFREE free
  17129. +# endif
  17130. +# ifndef YYMALLOC
  17131. +# define YYMALLOC malloc
  17132. +# endif
  17133. +
  17134. +/* The parser invokes alloca or malloc; define the necessary symbols. */
  17135. +
  17136. +# ifdef YYSTACK_USE_ALLOCA
  17137. +# if YYSTACK_USE_ALLOCA
  17138. +# define YYSTACK_ALLOC alloca
  17139. +# endif
  17140. +# else
  17141. +# if defined (alloca) || defined (_ALLOCA_H)
  17142. +# define YYSTACK_ALLOC alloca
  17143. +# else
  17144. +# ifdef __GNUC__
  17145. +# define YYSTACK_ALLOC __builtin_alloca
  17146. +# endif
  17147. +# endif
  17148. +# endif
  17149. +
  17150. +# ifdef YYSTACK_ALLOC
  17151. + /* Pacify GCC's `empty if-body' warning. */
  17152. +# define YYSTACK_FREE(Ptr) do { /* empty */; } while (0)
  17153. +# else
  17154. +# if defined (__STDC__) || defined (__cplusplus)
  17155. +# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
  17156. +# define YYSIZE_T size_t
  17157. +# endif
  17158. +# define YYSTACK_ALLOC YYMALLOC
  17159. +# define YYSTACK_FREE YYFREE
  17160. +# endif
  17161. +#endif /* ! defined (yyoverflow) || YYERROR_VERBOSE */
  17162. +
  17163. +
  17164. +#if (! defined (yyoverflow) \
  17165. + && (! defined (__cplusplus) \
  17166. + || (defined (YYSTYPE_IS_TRIVIAL) && YYSTYPE_IS_TRIVIAL)))
  17167. +
  17168. +/* A type that is properly aligned for any stack member. */
  17169. +union yyalloc
  17170. +{
  17171. + short int yyss;
  17172. + YYSTYPE yyvs;
  17173. + };
  17174. +
  17175. +/* The size of the maximum gap between one aligned stack and the next. */
  17176. +# define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1)
  17177. +
  17178. +/* The size of an array large to enough to hold all stacks, each with
  17179. + N elements. */
  17180. +# define YYSTACK_BYTES(N) \
  17181. + ((N) * (sizeof (short int) + sizeof (YYSTYPE)) \
  17182. + + YYSTACK_GAP_MAXIMUM)
  17183. +
  17184. +/* Copy COUNT objects from FROM to TO. The source and destination do
  17185. + not overlap. */
  17186. +# ifndef YYCOPY
  17187. +# if defined (__GNUC__) && 1 < __GNUC__
  17188. +# define YYCOPY(To, From, Count) \
  17189. + __builtin_memcpy (To, From, (Count) * sizeof (*(From)))
  17190. +# else
  17191. +# define YYCOPY(To, From, Count) \
  17192. + do \
  17193. + { \
  17194. + register YYSIZE_T yyi; \
  17195. + for (yyi = 0; yyi < (Count); yyi++) \
  17196. + (To)[yyi] = (From)[yyi]; \
  17197. + } \
  17198. + while (0)
  17199. +# endif
  17200. +# endif
  17201. +
  17202. +/* Relocate STACK from its old location to the new one. The
  17203. + local variables YYSIZE and YYSTACKSIZE give the old and new number of
  17204. + elements in the stack, and YYPTR gives the new location of the
  17205. + stack. Advance YYPTR to a properly aligned location for the next
  17206. + stack. */
  17207. +# define YYSTACK_RELOCATE(Stack) \
  17208. + do \
  17209. + { \
  17210. + YYSIZE_T yynewbytes; \
  17211. + YYCOPY (&yyptr->Stack, Stack, yysize); \
  17212. + Stack = &yyptr->Stack; \
  17213. + yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
  17214. + yyptr += yynewbytes / sizeof (*yyptr); \
  17215. + } \
  17216. + while (0)
  17217. -#ifndef __cplusplus
  17218. -#ifndef __STDC__
  17219. -#define const
  17220. -#endif
  17221. #endif
  17222. +#if defined (__STDC__) || defined (__cplusplus)
  17223. + typedef signed char yysigned_char;
  17224. +#else
  17225. + typedef short int yysigned_char;
  17226. +#endif
  17227. -
  17228. -#define YYFINAL 86
  17229. -#define YYFLAG -32768
  17230. -#define YYNTBASE 23
  17231. -
  17232. -#define YYTRANSLATE(x) ((unsigned)(x) <= 267 ? yytranslate[x] : 47)
  17233. -
  17234. -static const char yytranslate[] = { 0,
  17235. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  17236. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  17237. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  17238. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  17239. - 2, 2, 2, 21, 18, 2, 2, 2, 2, 2,
  17240. - 2, 2, 2, 2, 2, 2, 2, 22, 2, 17,
  17241. - 14, 19, 2, 20, 2, 2, 2, 2, 2, 2,
  17242. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  17243. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  17244. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  17245. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  17246. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  17247. - 2, 2, 15, 2, 16, 2, 2, 2, 2, 2,
  17248. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  17249. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  17250. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  17251. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  17252. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  17253. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  17254. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  17255. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  17256. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  17257. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  17258. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  17259. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  17260. - 2, 2, 2, 2, 2, 1, 3, 4, 5, 6,
  17261. - 7, 8, 9, 10, 11, 12, 13
  17262. +/* YYFINAL -- State number of the termination state. */
  17263. +#define YYFINAL 5
  17264. +/* YYLAST -- Last index in YYTABLE. */
  17265. +#define YYLAST 65
  17266. +
  17267. +/* YYNTOKENS -- Number of terminals. */
  17268. +#define YYNTOKENS 23
  17269. +/* YYNNTS -- Number of nonterminals. */
  17270. +#define YYNNTS 25
  17271. +/* YYNRULES -- Number of rules. */
  17272. +#define YYNRULES 46
  17273. +/* YYNRULES -- Number of states. */
  17274. +#define YYNSTATES 86
  17275. +
  17276. +/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */
  17277. +#define YYUNDEFTOK 2
  17278. +#define YYMAXUTOK 268
  17279. +
  17280. +#define YYTRANSLATE(YYX) \
  17281. + ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
  17282. +
  17283. +/* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */
  17284. +static const unsigned char yytranslate[] =
  17285. +{
  17286. + 0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  17287. + 2, 2, 2, 2, 2, 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, 21, 18, 2, 2, 2, 2,
  17291. + 2, 2, 2, 2, 2, 2, 2, 2, 22, 2,
  17292. + 17, 14, 19, 2, 20, 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, 15, 2, 16, 2, 2, 2, 2,
  17299. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  17300. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  17301. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  17302. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  17303. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  17304. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  17305. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  17306. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  17307. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  17308. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  17309. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  17310. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  17311. + 2, 2, 2, 2, 2, 2, 1, 2, 3, 4,
  17312. + 5, 6, 7, 8, 9, 10, 11, 12, 13
  17313. };
  17314. -#if YYDEBUG != 0
  17315. -static const short yyprhs[] = { 0,
  17316. - 0, 4, 5, 8, 9, 12, 17, 18, 21, 23,
  17317. - 27, 30, 31, 34, 40, 41, 43, 47, 53, 54,
  17318. - 57, 59, 60, 63, 64, 67, 69, 74, 79, 83,
  17319. - 84, 87, 88, 90, 91, 97, 98, 105, 106, 112,
  17320. - 113, 120, 121, 124, 125
  17321. +#if YYDEBUG
  17322. +/* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
  17323. + YYRHS. */
  17324. +static const unsigned char yyprhs[] =
  17325. +{
  17326. + 0, 0, 3, 7, 8, 11, 12, 15, 20, 21,
  17327. + 24, 26, 30, 33, 34, 37, 43, 44, 46, 50,
  17328. + 56, 57, 60, 62, 63, 66, 67, 70, 72, 77,
  17329. + 82, 86, 87, 90, 91, 93, 94, 100, 101, 108,
  17330. + 109, 115, 116, 123, 124, 127, 128
  17331. };
  17332. -static const short yyrhs[] = { 24,
  17333. - 25, 29, 0, 0, 12, 24, 0, 0, 25, 26,
  17334. - 0, 5, 11, 14, 29, 0, 0, 28, 29, 0,
  17335. - 11, 0, 15, 30, 16, 0, 10, 11, 0, 0,
  17336. - 31, 30, 0, 32, 11, 40, 17, 33, 0, 0,
  17337. - 3, 0, 18, 35, 19, 0, 35, 34, 36, 19,
  17338. - 37, 0, 0, 20, 35, 0, 11, 0, 0, 21,
  17339. - 11, 0, 0, 14, 38, 0, 11, 0, 4, 15,
  17340. - 41, 16, 0, 8, 15, 43, 16, 0, 39, 7,
  17341. - 29, 0, 0, 9, 11, 0, 0, 13, 0, 0,
  17342. - 6, 11, 45, 46, 29, 0, 0, 11, 45, 46,
  17343. - 29, 42, 41, 0, 0, 6, 11, 45, 46, 27,
  17344. - 0, 0, 11, 45, 46, 27, 44, 43, 0, 0,
  17345. - 22, 11, 0, 0, 21, 11, 46, 0
  17346. +/* YYRHS -- A `-1'-separated list of the rules' RHS. */
  17347. +static const yysigned_char yyrhs[] =
  17348. +{
  17349. + 24, 0, -1, 25, 26, 30, -1, -1, 12, 25,
  17350. + -1, -1, 26, 27, -1, 5, 11, 14, 30, -1,
  17351. + -1, 29, 30, -1, 11, -1, 15, 31, 16, -1,
  17352. + 10, 11, -1, -1, 32, 31, -1, 33, 11, 41,
  17353. + 17, 34, -1, -1, 3, -1, 18, 36, 19, -1,
  17354. + 36, 35, 37, 19, 38, -1, -1, 20, 36, -1,
  17355. + 11, -1, -1, 21, 11, -1, -1, 14, 39, -1,
  17356. + 11, -1, 4, 15, 42, 16, -1, 8, 15, 44,
  17357. + 16, -1, 40, 7, 30, -1, -1, 9, 11, -1,
  17358. + -1, 13, -1, -1, 6, 11, 46, 47, 30, -1,
  17359. + -1, 11, 46, 47, 30, 43, 42, -1, -1, 6,
  17360. + 11, 46, 47, 28, -1, -1, 11, 46, 47, 28,
  17361. + 45, 44, -1, -1, 22, 11, -1, -1, 21, 11,
  17362. + 47, -1
  17363. };
  17364. -#endif
  17365. -
  17366. -#if YYDEBUG != 0
  17367. -static const short yyrline[] = { 0,
  17368. - 163, 175, 176, 184, 185, 188, 202, 207, 212, 231,
  17369. - 236, 243, 247, 254, 278, 282, 288, 301, 318, 322,
  17370. - 329, 339, 343, 350, 354, 360, 367, 374, 380, 390,
  17371. - 394, 400, 404, 410, 414, 431, 437, 454, 458, 474,
  17372. - 480, 497, 501, 507, 511
  17373. +/* YYRLINE[YYN] -- source line where rule number YYN was defined. */
  17374. +static const unsigned short int yyrline[] =
  17375. +{
  17376. + 0, 167, 167, 178, 179, 187, 188, 192, 206, 206,
  17377. + 216, 234, 239, 247, 250, 258, 282, 285, 292, 304,
  17378. + 323, 326, 334, 344, 347, 355, 358, 365, 371, 378,
  17379. + 384, 395, 398, 405, 408, 415, 418, 436, 435, 459,
  17380. + 462, 479, 478, 502, 505, 512, 515
  17381. };
  17382. #endif
  17383. -
  17384. -#if YYDEBUG != 0 || defined (YYERROR_VERBOSE)
  17385. -
  17386. -static const char * const yytname[] = { "$","error","$undefined.","TOK_BREAK",
  17387. -"TOK_CASE","TOK_DEF","TOK_DEFAULT","TOK_LENGTH","TOK_MULTI","TOK_RECOVER","TOK_ABORT",
  17388. -"TOK_ID","TOK_INCLUDE","TOK_STRING","'='","'{'","'}'","'<'","'-'","'>'","'@'",
  17389. -"','","':'","all","includes","structures","structure","rep_block","@1","block",
  17390. -"fields","field","opt_break","field_cont","opt_pos","decimal","opt_more","opt_val",
  17391. -"value","opt_recover","opt_name_list","tags","@2","rep_tags","@3","opt_id","list", NULL
  17392. +#if YYDEBUG || YYERROR_VERBOSE
  17393. +/* YYTNME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
  17394. + First, the terminals, then, starting at YYNTOKENS, nonterminals. */
  17395. +static const char *const yytname[] =
  17396. +{
  17397. + "$end", "error", "$undefined", "TOK_BREAK", "TOK_CASE", "TOK_DEF",
  17398. + "TOK_DEFAULT", "TOK_LENGTH", "TOK_MULTI", "TOK_RECOVER", "TOK_ABORT",
  17399. + "TOK_ID", "TOK_INCLUDE", "TOK_STRING", "'='", "'{'", "'}'", "'<'", "'-'",
  17400. + "'>'", "'@'", "','", "':'", "$accept", "all", "includes", "structures",
  17401. + "structure", "rep_block", "@1", "block", "fields", "field", "opt_break",
  17402. + "field_cont", "opt_pos", "decimal", "opt_more", "opt_val", "value",
  17403. + "opt_recover", "opt_name_list", "tags", "@2", "rep_tags", "@3", "opt_id",
  17404. + "list", 0
  17405. };
  17406. #endif
  17407. -static const short yyr1[] = { 0,
  17408. - 23, 24, 24, 25, 25, 26, 28, 27, 29, 29,
  17409. - 29, 30, 30, 31, 32, 32, 33, 33, 34, 34,
  17410. - 35, 36, 36, 37, 37, 38, 38, 38, 38, 39,
  17411. - 39, 40, 40, 41, 41, 42, 41, 43, 43, 44,
  17412. - 43, 45, 45, 46, 46
  17413. +# ifdef YYPRINT
  17414. +/* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to
  17415. + token YYLEX-NUM. */
  17416. +static const unsigned short int yytoknum[] =
  17417. +{
  17418. + 0, 256, 257, 258, 259, 260, 261, 262, 263, 264,
  17419. + 265, 266, 267, 268, 61, 123, 125, 60, 45, 62,
  17420. + 64, 44, 58
  17421. };
  17422. +# endif
  17423. -static const short yyr2[] = { 0,
  17424. - 3, 0, 2, 0, 2, 4, 0, 2, 1, 3,
  17425. - 2, 0, 2, 5, 0, 1, 3, 5, 0, 2,
  17426. - 1, 0, 2, 0, 2, 1, 4, 4, 3, 0,
  17427. - 2, 0, 1, 0, 5, 0, 6, 0, 5, 0,
  17428. - 6, 0, 2, 0, 3
  17429. +/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
  17430. +static const unsigned char yyr1[] =
  17431. +{
  17432. + 0, 23, 24, 25, 25, 26, 26, 27, 29, 28,
  17433. + 30, 30, 30, 31, 31, 32, 33, 33, 34, 34,
  17434. + 35, 35, 36, 37, 37, 38, 38, 39, 39, 39,
  17435. + 39, 40, 40, 41, 41, 42, 42, 43, 42, 44,
  17436. + 44, 45, 44, 46, 46, 47, 47
  17437. };
  17438. -static const short yydefact[] = { 2,
  17439. - 2, 4, 3, 0, 0, 0, 9, 12, 5, 1,
  17440. - 0, 11, 16, 0, 12, 0, 0, 10, 13, 32,
  17441. - 6, 33, 0, 0, 21, 0, 14, 19, 0, 0,
  17442. - 22, 17, 20, 0, 0, 23, 24, 30, 18, 0,
  17443. - 0, 0, 26, 25, 0, 34, 38, 31, 0, 0,
  17444. - 42, 0, 0, 42, 0, 29, 42, 0, 44, 27,
  17445. - 42, 44, 28, 44, 43, 0, 0, 44, 7, 0,
  17446. - 44, 36, 7, 40, 0, 35, 45, 34, 39, 38,
  17447. - 8, 37, 41, 0, 0, 0
  17448. +/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */
  17449. +static const unsigned char yyr2[] =
  17450. +{
  17451. + 0, 2, 3, 0, 2, 0, 2, 4, 0, 2,
  17452. + 1, 3, 2, 0, 2, 5, 0, 1, 3, 5,
  17453. + 0, 2, 1, 0, 2, 0, 2, 1, 4, 4,
  17454. + 3, 0, 2, 0, 1, 0, 5, 0, 6, 0,
  17455. + 5, 0, 6, 0, 2, 0, 3
  17456. };
  17457. -static const short yydefgoto[] = { 84,
  17458. - 2, 4, 9, 74, 75, 10, 14, 15, 16, 27,
  17459. - 31, 28, 35, 39, 44, 45, 23, 52, 78, 55,
  17460. - 80, 59, 67
  17461. +/* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state
  17462. + STATE-NUM when YYTABLE doesn't specify something else to do. Zero
  17463. + means the default is an error. */
  17464. +static const unsigned char yydefact[] =
  17465. +{
  17466. + 3, 3, 0, 5, 4, 1, 0, 0, 0, 10,
  17467. + 13, 6, 2, 0, 12, 17, 0, 13, 0, 0,
  17468. + 11, 14, 33, 7, 34, 0, 0, 22, 0, 15,
  17469. + 20, 0, 0, 23, 18, 21, 0, 0, 24, 25,
  17470. + 31, 19, 0, 0, 0, 27, 26, 0, 35, 39,
  17471. + 32, 0, 0, 43, 0, 0, 43, 0, 30, 43,
  17472. + 0, 45, 28, 43, 45, 29, 45, 44, 0, 0,
  17473. + 45, 8, 0, 45, 37, 8, 41, 0, 36, 46,
  17474. + 35, 40, 39, 9, 38, 42
  17475. };
  17476. -static const short yypact[] = { -8,
  17477. - -8,-32768,-32768, -4, 3, 17,-32768, -1,-32768,-32768,
  17478. - 20,-32768,-32768, 21, -1, 22, 11,-32768,-32768, 23,
  17479. --32768,-32768, 24, -3,-32768, 27,-32768, 15, 25, 27,
  17480. - 26,-32768,-32768, 28, 29,-32768, 31, 9,-32768, 34,
  17481. - 36, 32,-32768,-32768, 33, 18, 19,-32768, 11, 35,
  17482. - 30, 38, 44, 30, 40,-32768, 30, 46, 39,-32768,
  17483. - 30, 39,-32768, 39,-32768, 48, 11, 39,-32768, 11,
  17484. - 39,-32768,-32768,-32768, 11,-32768,-32768, 18,-32768, 19,
  17485. --32768,-32768,-32768, 42, 61,-32768
  17486. +/* YYDEFGOTO[NTERM-NUM]. */
  17487. +static const yysigned_char yydefgoto[] =
  17488. +{
  17489. + -1, 2, 3, 6, 11, 76, 77, 12, 16, 17,
  17490. + 18, 29, 33, 30, 37, 41, 46, 47, 25, 54,
  17491. + 80, 57, 82, 61, 69
  17492. };
  17493. -static const short yypgoto[] = {-32768,
  17494. - 62,-32768,-32768, -11,-32768, -17, 49,-32768,-32768,-32768,
  17495. --32768, 1,-32768,-32768,-32768,-32768,-32768, -13,-32768, -14,
  17496. --32768, -38, -59
  17497. +/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
  17498. + STATE-NUM. */
  17499. +#define YYPACT_NINF -62
  17500. +static const yysigned_char yypact[] =
  17501. +{
  17502. + -8, -8, 14, -62, -62, -62, -4, 16, 17, -62,
  17503. + -1, -62, -62, 20, -62, -62, 21, -1, 22, 11,
  17504. + -62, -62, 23, -62, -62, 24, -3, -62, 27, -62,
  17505. + 25, 28, 27, 30, -62, -62, 29, 33, -62, 32,
  17506. + 9, -62, 34, 39, 31, -62, -62, 36, 18, 19,
  17507. + -62, 11, 37, 35, 40, 44, 35, 43, -62, 35,
  17508. + 49, 41, -62, 35, 41, -62, 41, -62, 50, 11,
  17509. + 41, -62, 11, 41, -62, -62, -62, 11, -62, -62,
  17510. + 18, -62, 19, -62, -62, -62
  17511. };
  17512. -
  17513. -#define YYLAST 66
  17514. -
  17515. -
  17516. -static const short yytable[] = { 21,
  17517. - 5, 13, 69, 1, 70, 6, 7, 25, 73, -15,
  17518. - 8, 77, 40, 11, 26, 62, 41, 42, 64, 43,
  17519. - 6, 7, 68, 50, 53, 8, 29, 12, 51, 54,
  17520. - 33, 56, 20, 17, 30, 22, 18, 25, 36, 49,
  17521. - 24, 85, 48, 32, 38, 57, 34, 37, 46, 72,
  17522. - 47, 58, 76, 60, 61, 63, 65, 81, 71, 66,
  17523. - 86, 79, 3, 19, 82, 83
  17524. +/* YYPGOTO[NTERM-NUM]. */
  17525. +static const yysigned_char yypgoto[] =
  17526. +{
  17527. + -62, -62, 38, -62, -62, -31, -62, -19, 46, -62,
  17528. + -62, -62, -62, 3, -62, -62, -62, -62, -62, -16,
  17529. + -62, -17, -62, -40, -61
  17530. };
  17531. -static const short yycheck[] = { 17,
  17532. - 5, 3, 62, 12, 64, 10, 11, 11, 68, 11,
  17533. - 15, 71, 4, 11, 18, 54, 8, 9, 57, 11,
  17534. - 10, 11, 61, 6, 6, 15, 26, 11, 11, 11,
  17535. - 30, 49, 11, 14, 20, 13, 16, 11, 11, 7,
  17536. - 17, 0, 11, 19, 14, 11, 21, 19, 15, 67,
  17537. - 15, 22, 70, 16, 11, 16, 11, 75, 11, 21,
  17538. - 0, 73, 1, 15, 78, 80
  17539. +/* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If
  17540. + positive, shift that token. If negative, reduce the rule which
  17541. + number is the opposite. If zero, do what YYDEFACT says.
  17542. + If YYTABLE_NINF, syntax error. */
  17543. +#define YYTABLE_NINF -17
  17544. +static const yysigned_char yytable[] =
  17545. +{
  17546. + 23, 7, 15, 71, 1, 72, 8, 9, 27, 75,
  17547. + -16, 10, 79, 42, 5, 28, 64, 43, 44, 66,
  17548. + 45, 8, 9, 70, 52, 55, 10, 13, 14, 53,
  17549. + 56, 31, 58, 22, 19, 35, 24, 20, 27, 4,
  17550. + 38, 26, 50, 51, 81, 32, 40, 34, 59, 48,
  17551. + 74, 36, 39, 78, 49, 63, 62, 60, 83, 65,
  17552. + 67, 73, 68, 21, 84, 85
  17553. };
  17554. -/* -*-C-*- Note some compilers choke on comments on `#line' lines. */
  17555. -#line 3 "/usr/lib/bison.simple"
  17556. -/* This file comes from bison-1.28. */
  17557. -/* Skeleton output parser for bison,
  17558. - Copyright (C) 1984, 1989, 1990 Free Software Foundation, Inc.
  17559. -
  17560. - This program is free software; you can redistribute it and/or modify
  17561. - it under the terms of the GNU General Public License as published by
  17562. - the Free Software Foundation; either version 2, or (at your option)
  17563. - any later version.
  17564. -
  17565. - This program is distributed in the hope that it will be useful,
  17566. - but WITHOUT ANY WARRANTY; without even the implied warranty of
  17567. - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17568. - GNU General Public License for more details.
  17569. -
  17570. - You should have received a copy of the GNU General Public License
  17571. - along with this program; if not, write to the Free Software
  17572. - Foundation, Inc., 59 Temple Place - Suite 330,
  17573. - Boston, MA 02111-1307, USA. */
  17574. -
  17575. -/* As a special exception, when this file is copied by Bison into a
  17576. - Bison output file, you may use that output file without restriction.
  17577. - This special exception was added by the Free Software Foundation
  17578. - in version 1.24 of Bison. */
  17579. +static const unsigned char yycheck[] =
  17580. +{
  17581. + 19, 5, 3, 64, 12, 66, 10, 11, 11, 70,
  17582. + 11, 15, 73, 4, 0, 18, 56, 8, 9, 59,
  17583. + 11, 10, 11, 63, 6, 6, 15, 11, 11, 11,
  17584. + 11, 28, 51, 11, 14, 32, 13, 16, 11, 1,
  17585. + 11, 17, 11, 7, 75, 20, 14, 19, 11, 15,
  17586. + 69, 21, 19, 72, 15, 11, 16, 22, 77, 16,
  17587. + 11, 11, 21, 17, 80, 82
  17588. +};
  17589. -/* This is the parser code that is written into each bison parser
  17590. - when the %semantic_parser declaration is not specified in the grammar.
  17591. - It was written by Richard Stallman by simplifying the hairy parser
  17592. - used when %semantic_parser is specified. */
  17593. -
  17594. -#ifndef YYSTACK_USE_ALLOCA
  17595. -#ifdef alloca
  17596. -#define YYSTACK_USE_ALLOCA
  17597. -#else /* alloca not defined */
  17598. -#ifdef __GNUC__
  17599. -#define YYSTACK_USE_ALLOCA
  17600. -#define alloca __builtin_alloca
  17601. -#else /* not GNU C. */
  17602. -#if (!defined (__STDC__) && defined (sparc)) || defined (__sparc__) || defined (__sparc) || defined (__sgi) || (defined (__sun) && defined (__i386))
  17603. -#define YYSTACK_USE_ALLOCA
  17604. -#include <alloca.h>
  17605. -#else /* not sparc */
  17606. -/* We think this test detects Watcom and Microsoft C. */
  17607. -/* This used to test MSDOS, but that is a bad idea
  17608. - since that symbol is in the user namespace. */
  17609. -#if (defined (_MSDOS) || defined (_MSDOS_)) && !defined (__TURBOC__)
  17610. -#if 0 /* No need for malloc.h, which pollutes the namespace;
  17611. - instead, just don't use alloca. */
  17612. -#include <malloc.h>
  17613. -#endif
  17614. -#else /* not MSDOS, or __TURBOC__ */
  17615. -#if defined(_AIX)
  17616. -/* I don't know what this was needed for, but it pollutes the namespace.
  17617. - So I turned it off. rms, 2 May 1997. */
  17618. -/* #include <malloc.h> */
  17619. - #pragma alloca
  17620. -#define YYSTACK_USE_ALLOCA
  17621. -#else /* not MSDOS, or __TURBOC__, or _AIX */
  17622. -#if 0
  17623. -#ifdef __hpux /* haible@ilog.fr says this works for HPUX 9.05 and up,
  17624. - and on HPUX 10. Eventually we can turn this on. */
  17625. -#define YYSTACK_USE_ALLOCA
  17626. -#define alloca __builtin_alloca
  17627. -#endif /* __hpux */
  17628. -#endif
  17629. -#endif /* not _AIX */
  17630. -#endif /* not MSDOS, or __TURBOC__ */
  17631. -#endif /* not sparc */
  17632. -#endif /* not GNU C */
  17633. -#endif /* alloca not defined */
  17634. -#endif /* YYSTACK_USE_ALLOCA not defined */
  17635. +/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
  17636. + symbol of state STATE-NUM. */
  17637. +static const unsigned char yystos[] =
  17638. +{
  17639. + 0, 12, 24, 25, 25, 0, 26, 5, 10, 11,
  17640. + 15, 27, 30, 11, 11, 3, 31, 32, 33, 14,
  17641. + 16, 31, 11, 30, 13, 41, 17, 11, 18, 34,
  17642. + 36, 36, 20, 35, 19, 36, 21, 37, 11, 19,
  17643. + 14, 38, 4, 8, 9, 11, 39, 40, 15, 15,
  17644. + 11, 7, 6, 11, 42, 6, 11, 44, 30, 11,
  17645. + 22, 46, 16, 11, 46, 16, 46, 11, 21, 47,
  17646. + 46, 47, 47, 11, 30, 47, 28, 29, 30, 47,
  17647. + 43, 28, 45, 30, 42, 44
  17648. +};
  17649. -#ifdef YYSTACK_USE_ALLOCA
  17650. -#define YYSTACK_ALLOC alloca
  17651. -#else
  17652. -#define YYSTACK_ALLOC malloc
  17653. +#if ! defined (YYSIZE_T) && defined (__SIZE_TYPE__)
  17654. +# define YYSIZE_T __SIZE_TYPE__
  17655. +#endif
  17656. +#if ! defined (YYSIZE_T) && defined (size_t)
  17657. +# define YYSIZE_T size_t
  17658. +#endif
  17659. +#if ! defined (YYSIZE_T)
  17660. +# if defined (__STDC__) || defined (__cplusplus)
  17661. +# include <stddef.h> /* INFRINGES ON USER NAME SPACE */
  17662. +# define YYSIZE_T size_t
  17663. +# endif
  17664. +#endif
  17665. +#if ! defined (YYSIZE_T)
  17666. +# define YYSIZE_T unsigned int
  17667. #endif
  17668. -
  17669. -/* Note: there must be only one dollar sign in this file.
  17670. - It is replaced by the list of actions, each action
  17671. - as one case of the switch. */
  17672. #define yyerrok (yyerrstatus = 0)
  17673. #define yyclearin (yychar = YYEMPTY)
  17674. -#define YYEMPTY -2
  17675. +#define YYEMPTY (-2)
  17676. #define YYEOF 0
  17677. +
  17678. #define YYACCEPT goto yyacceptlab
  17679. -#define YYABORT goto yyabortlab
  17680. -#define YYERROR goto yyerrlab1
  17681. -/* Like YYERROR except do call yyerror.
  17682. - This remains here temporarily to ease the
  17683. - transition to the new meaning of YYERROR, for GCC.
  17684. +#define YYABORT goto yyabortlab
  17685. +#define YYERROR goto yyerrorlab
  17686. +
  17687. +
  17688. +/* Like YYERROR except do call yyerror. This remains here temporarily
  17689. + to ease the transition to the new meaning of YYERROR, for GCC.
  17690. Once GCC version 2 has supplanted version 1, this can go. */
  17691. +
  17692. #define YYFAIL goto yyerrlab
  17693. +
  17694. #define YYRECOVERING() (!!yyerrstatus)
  17695. -#define YYBACKUP(token, value) \
  17696. +
  17697. +#define YYBACKUP(Token, Value) \
  17698. do \
  17699. if (yychar == YYEMPTY && yylen == 1) \
  17700. - { yychar = (token), yylval = (value); \
  17701. - yychar1 = YYTRANSLATE (yychar); \
  17702. + { \
  17703. + yychar = (Token); \
  17704. + yylval = (Value); \
  17705. + yytoken = YYTRANSLATE (yychar); \
  17706. YYPOPSTACK; \
  17707. goto yybackup; \
  17708. } \
  17709. else \
  17710. - { yyerror ("syntax error: cannot back up"); YYERROR; } \
  17711. + { \
  17712. + yyerror ("syntax error: cannot back up");\
  17713. + YYERROR; \
  17714. + } \
  17715. while (0)
  17716. #define YYTERROR 1
  17717. #define YYERRCODE 256
  17718. -#ifndef YYPURE
  17719. -#define YYLEX yylex()
  17720. -#endif
  17721. +/* YYLLOC_DEFAULT -- Compute the default location (before the actions
  17722. + are run). */
  17723. -#ifdef YYPURE
  17724. -#ifdef YYLSP_NEEDED
  17725. -#ifdef YYLEX_PARAM
  17726. -#define YYLEX yylex(&yylval, &yylloc, YYLEX_PARAM)
  17727. -#else
  17728. -#define YYLEX yylex(&yylval, &yylloc)
  17729. +#ifndef YYLLOC_DEFAULT
  17730. +# define YYLLOC_DEFAULT(Current, Rhs, N) \
  17731. + ((Current).first_line = (Rhs)[1].first_line, \
  17732. + (Current).first_column = (Rhs)[1].first_column, \
  17733. + (Current).last_line = (Rhs)[N].last_line, \
  17734. + (Current).last_column = (Rhs)[N].last_column)
  17735. #endif
  17736. -#else /* not YYLSP_NEEDED */
  17737. +
  17738. +/* YYLEX -- calling `yylex' with the right arguments. */
  17739. +
  17740. #ifdef YYLEX_PARAM
  17741. -#define YYLEX yylex(&yylval, YYLEX_PARAM)
  17742. +# define YYLEX yylex (YYLEX_PARAM)
  17743. #else
  17744. -#define YYLEX yylex(&yylval)
  17745. -#endif
  17746. -#endif /* not YYLSP_NEEDED */
  17747. +# define YYLEX yylex ()
  17748. #endif
  17749. -/* If nonreentrant, generate the variables here */
  17750. +/* Enable debugging if requested. */
  17751. +#if YYDEBUG
  17752. -#ifndef YYPURE
  17753. +# ifndef YYFPRINTF
  17754. +# include <stdio.h> /* INFRINGES ON USER NAME SPACE */
  17755. +# define YYFPRINTF fprintf
  17756. +# endif
  17757. +
  17758. +# define YYDPRINTF(Args) \
  17759. +do { \
  17760. + if (yydebug) \
  17761. + YYFPRINTF Args; \
  17762. +} while (0)
  17763. +
  17764. +# define YYDSYMPRINT(Args) \
  17765. +do { \
  17766. + if (yydebug) \
  17767. + yysymprint Args; \
  17768. +} while (0)
  17769. +
  17770. +# define YYDSYMPRINTF(Title, Token, Value, Location) \
  17771. +do { \
  17772. + if (yydebug) \
  17773. + { \
  17774. + YYFPRINTF (stderr, "%s ", Title); \
  17775. + yysymprint (stderr, \
  17776. + Token, Value); \
  17777. + YYFPRINTF (stderr, "\n"); \
  17778. + } \
  17779. +} while (0)
  17780. -int yychar; /* the lookahead symbol */
  17781. -YYSTYPE yylval; /* the semantic value of the */
  17782. - /* lookahead symbol */
  17783. +/*------------------------------------------------------------------.
  17784. +| yy_stack_print -- Print the state stack from its BOTTOM up to its |
  17785. +| TOP (included). |
  17786. +`------------------------------------------------------------------*/
  17787. -#ifdef YYLSP_NEEDED
  17788. -YYLTYPE yylloc; /* location data for the lookahead */
  17789. - /* symbol */
  17790. +#if defined (__STDC__) || defined (__cplusplus)
  17791. +static void
  17792. +yy_stack_print (short int *bottom, short int *top)
  17793. +#else
  17794. +static void
  17795. +yy_stack_print (bottom, top)
  17796. + short int *bottom;
  17797. + short int *top;
  17798. #endif
  17799. +{
  17800. + YYFPRINTF (stderr, "Stack now");
  17801. + for (/* Nothing. */; bottom <= top; ++bottom)
  17802. + YYFPRINTF (stderr, " %d", *bottom);
  17803. + YYFPRINTF (stderr, "\n");
  17804. +}
  17805. -int yynerrs; /* number of parse errors so far */
  17806. -#endif /* not YYPURE */
  17807. +# define YY_STACK_PRINT(Bottom, Top) \
  17808. +do { \
  17809. + if (yydebug) \
  17810. + yy_stack_print ((Bottom), (Top)); \
  17811. +} while (0)
  17812. -#if YYDEBUG != 0
  17813. -int yydebug; /* nonzero means print parse trace */
  17814. -/* Since this is uninitialized, it does not stop multiple parsers
  17815. - from coexisting. */
  17816. +
  17817. +/*------------------------------------------------.
  17818. +| Report that the YYRULE is going to be reduced. |
  17819. +`------------------------------------------------*/
  17820. +
  17821. +#if defined (__STDC__) || defined (__cplusplus)
  17822. +static void
  17823. +yy_reduce_print (int yyrule)
  17824. +#else
  17825. +static void
  17826. +yy_reduce_print (yyrule)
  17827. + int yyrule;
  17828. #endif
  17829. +{
  17830. + int yyi;
  17831. + unsigned int yylno = yyrline[yyrule];
  17832. + YYFPRINTF (stderr, "Reducing stack by rule %d (line %u), ",
  17833. + yyrule - 1, yylno);
  17834. + /* Print the symbols being reduced, and their result. */
  17835. + for (yyi = yyprhs[yyrule]; 0 <= yyrhs[yyi]; yyi++)
  17836. + YYFPRINTF (stderr, "%s ", yytname [yyrhs[yyi]]);
  17837. + YYFPRINTF (stderr, "-> %s\n", yytname [yyr1[yyrule]]);
  17838. +}
  17839. -/* YYINITDEPTH indicates the initial size of the parser's stacks */
  17840. +# define YY_REDUCE_PRINT(Rule) \
  17841. +do { \
  17842. + if (yydebug) \
  17843. + yy_reduce_print (Rule); \
  17844. +} while (0)
  17845. +
  17846. +/* Nonzero means print parse trace. It is left uninitialized so that
  17847. + multiple parsers can coexist. */
  17848. +int yydebug;
  17849. +#else /* !YYDEBUG */
  17850. +# define YYDPRINTF(Args)
  17851. +# define YYDSYMPRINT(Args)
  17852. +# define YYDSYMPRINTF(Title, Token, Value, Location)
  17853. +# define YY_STACK_PRINT(Bottom, Top)
  17854. +# define YY_REDUCE_PRINT(Rule)
  17855. +#endif /* !YYDEBUG */
  17856. +
  17857. +/* YYINITDEPTH -- initial size of the parser's stacks. */
  17858. #ifndef YYINITDEPTH
  17859. -#define YYINITDEPTH 200
  17860. +# define YYINITDEPTH 200
  17861. #endif
  17862. -/* YYMAXDEPTH is the maximum size the stacks can grow to
  17863. - (effective only if the built-in stack extension method is used). */
  17864. +/* YYMAXDEPTH -- maximum size the stacks can grow to (effective only
  17865. + if the built-in stack extension method is used).
  17866. +
  17867. + Do not make this value too large; the results are undefined if
  17868. + SIZE_MAX < YYSTACK_BYTES (YYMAXDEPTH)
  17869. + evaluated with infinite-precision integer arithmetic. */
  17870. -#if YYMAXDEPTH == 0
  17871. -#undef YYMAXDEPTH
  17872. +#if defined (YYMAXDEPTH) && YYMAXDEPTH == 0
  17873. +# undef YYMAXDEPTH
  17874. #endif
  17875. #ifndef YYMAXDEPTH
  17876. -#define YYMAXDEPTH 10000
  17877. +# define YYMAXDEPTH 10000
  17878. #endif
  17879. +
  17880. -/* Define __yy_memcpy. Note that the size argument
  17881. - should be passed with type unsigned int, because that is what the non-GCC
  17882. - definitions require. With GCC, __builtin_memcpy takes an arg
  17883. - of type size_t, but it can handle unsigned int. */
  17884. -
  17885. -#if __GNUC__ > 1 /* GNU C and GNU C++ define this. */
  17886. -#define __yy_memcpy(TO,FROM,COUNT) __builtin_memcpy(TO,FROM,COUNT)
  17887. -#else /* not GNU C or C++ */
  17888. -#ifndef __cplusplus
  17889. -/* This is the most reliable way to avoid incompatibilities
  17890. - in available built-in functions on various systems. */
  17891. -static void
  17892. -__yy_memcpy (to, from, count)
  17893. - char *to;
  17894. - char *from;
  17895. - unsigned int count;
  17896. -{
  17897. - register char *f = from;
  17898. - register char *t = to;
  17899. - register int i = count;
  17900. +#if YYERROR_VERBOSE
  17901. +
  17902. +# ifndef yystrlen
  17903. +# if defined (__GLIBC__) && defined (_STRING_H)
  17904. +# define yystrlen strlen
  17905. +# else
  17906. +/* Return the length of YYSTR. */
  17907. +static YYSIZE_T
  17908. +# if defined (__STDC__) || defined (__cplusplus)
  17909. +yystrlen (const char *yystr)
  17910. +# else
  17911. +yystrlen (yystr)
  17912. + const char *yystr;
  17913. +# endif
  17914. +{
  17915. + register const char *yys = yystr;
  17916. +
  17917. + while (*yys++ != '\0')
  17918. + continue;
  17919. - while (i-- > 0)
  17920. - *t++ = *f++;
  17921. + return yys - yystr - 1;
  17922. }
  17923. +# endif
  17924. +# endif
  17925. -#else /* __cplusplus */
  17926. +# ifndef yystpcpy
  17927. +# if defined (__GLIBC__) && defined (_STRING_H) && defined (_GNU_SOURCE)
  17928. +# define yystpcpy stpcpy
  17929. +# else
  17930. +/* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in
  17931. + YYDEST. */
  17932. +static char *
  17933. +# if defined (__STDC__) || defined (__cplusplus)
  17934. +yystpcpy (char *yydest, const char *yysrc)
  17935. +# else
  17936. +yystpcpy (yydest, yysrc)
  17937. + char *yydest;
  17938. + const char *yysrc;
  17939. +# endif
  17940. +{
  17941. + register char *yyd = yydest;
  17942. + register const char *yys = yysrc;
  17943. +
  17944. + while ((*yyd++ = *yys++) != '\0')
  17945. + continue;
  17946. +
  17947. + return yyd - 1;
  17948. +}
  17949. +# endif
  17950. +# endif
  17951. +
  17952. +#endif /* !YYERROR_VERBOSE */
  17953. +
  17954. +
  17955. +
  17956. +#if YYDEBUG
  17957. +/*--------------------------------.
  17958. +| Print this symbol on YYOUTPUT. |
  17959. +`--------------------------------*/
  17960. -/* This is the most reliable way to avoid incompatibilities
  17961. - in available built-in functions on various systems. */
  17962. +#if defined (__STDC__) || defined (__cplusplus)
  17963. static void
  17964. -__yy_memcpy (char *to, char *from, unsigned int count)
  17965. +yysymprint (FILE *yyoutput, int yytype, YYSTYPE *yyvaluep)
  17966. +#else
  17967. +static void
  17968. +yysymprint (yyoutput, yytype, yyvaluep)
  17969. + FILE *yyoutput;
  17970. + int yytype;
  17971. + YYSTYPE *yyvaluep;
  17972. +#endif
  17973. {
  17974. - register char *t = to;
  17975. - register char *f = from;
  17976. - register int i = count;
  17977. + /* Pacify ``unused variable'' warnings. */
  17978. + (void) yyvaluep;
  17979. +
  17980. + if (yytype < YYNTOKENS)
  17981. + {
  17982. + YYFPRINTF (yyoutput, "token %s (", yytname[yytype]);
  17983. +# ifdef YYPRINT
  17984. + YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
  17985. +# endif
  17986. + }
  17987. + else
  17988. + YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]);
  17989. - while (i-- > 0)
  17990. - *t++ = *f++;
  17991. + switch (yytype)
  17992. + {
  17993. + default:
  17994. + break;
  17995. + }
  17996. + YYFPRINTF (yyoutput, ")");
  17997. }
  17998. +#endif /* ! YYDEBUG */
  17999. +/*-----------------------------------------------.
  18000. +| Release the memory associated to this symbol. |
  18001. +`-----------------------------------------------*/
  18002. +
  18003. +#if defined (__STDC__) || defined (__cplusplus)
  18004. +static void
  18005. +yydestruct (int yytype, YYSTYPE *yyvaluep)
  18006. +#else
  18007. +static void
  18008. +yydestruct (yytype, yyvaluep)
  18009. + int yytype;
  18010. + YYSTYPE *yyvaluep;
  18011. #endif
  18012. -#endif
  18013. +{
  18014. + /* Pacify ``unused variable'' warnings. */
  18015. + (void) yyvaluep;
  18016. +
  18017. + switch (yytype)
  18018. + {
  18019. +
  18020. + default:
  18021. + break;
  18022. + }
  18023. +}
  18024. -#line 217 "/usr/lib/bison.simple"
  18025. -/* The user can define YYPARSE_PARAM as the name of an argument to be passed
  18026. - into yyparse. The argument should have type void *.
  18027. - It should actually point to an object.
  18028. - Grammar actions can access the variable by casting it
  18029. - to the proper pointer type. */
  18030. +/* Prevent warnings from -Wmissing-prototypes. */
  18031. #ifdef YYPARSE_PARAM
  18032. -#ifdef __cplusplus
  18033. -#define YYPARSE_PARAM_ARG void *YYPARSE_PARAM
  18034. -#define YYPARSE_PARAM_DECL
  18035. -#else /* not __cplusplus */
  18036. -#define YYPARSE_PARAM_ARG YYPARSE_PARAM
  18037. -#define YYPARSE_PARAM_DECL void *YYPARSE_PARAM;
  18038. -#endif /* not __cplusplus */
  18039. -#else /* not YYPARSE_PARAM */
  18040. -#define YYPARSE_PARAM_ARG
  18041. -#define YYPARSE_PARAM_DECL
  18042. -#endif /* not YYPARSE_PARAM */
  18043. +# if defined (__STDC__) || defined (__cplusplus)
  18044. +int yyparse (void *YYPARSE_PARAM);
  18045. +# else
  18046. +int yyparse ();
  18047. +# endif
  18048. +#else /* ! YYPARSE_PARAM */
  18049. +#if defined (__STDC__) || defined (__cplusplus)
  18050. +int yyparse (void);
  18051. +#else
  18052. +int yyparse ();
  18053. +#endif
  18054. +#endif /* ! YYPARSE_PARAM */
  18055. +
  18056. +
  18057. +
  18058. +/* The lookahead symbol. */
  18059. +int yychar;
  18060. +
  18061. +/* The semantic value of the lookahead symbol. */
  18062. +YYSTYPE yylval;
  18063. +
  18064. +/* Number of syntax errors so far. */
  18065. +int yynerrs;
  18066. +
  18067. +
  18068. +
  18069. +/*----------.
  18070. +| yyparse. |
  18071. +`----------*/
  18072. -/* Prevent warning if -Wstrict-prototypes. */
  18073. -#ifdef __GNUC__
  18074. #ifdef YYPARSE_PARAM
  18075. -int yyparse (void *);
  18076. +# if defined (__STDC__) || defined (__cplusplus)
  18077. +int yyparse (void *YYPARSE_PARAM)
  18078. +# else
  18079. +int yyparse (YYPARSE_PARAM)
  18080. + void *YYPARSE_PARAM;
  18081. +# endif
  18082. +#else /* ! YYPARSE_PARAM */
  18083. +#if defined (__STDC__) || defined (__cplusplus)
  18084. +int
  18085. +yyparse (void)
  18086. #else
  18087. -int yyparse (void);
  18088. +int
  18089. +yyparse ()
  18090. +
  18091. #endif
  18092. #endif
  18093. -
  18094. -int
  18095. -yyparse(YYPARSE_PARAM_ARG)
  18096. - YYPARSE_PARAM_DECL
  18097. {
  18098. +
  18099. register int yystate;
  18100. register int yyn;
  18101. - register short *yyssp;
  18102. + int yyresult;
  18103. + /* Number of tokens to shift before error messages enabled. */
  18104. + int yyerrstatus;
  18105. + /* Lookahead token as an internal (translated) token number. */
  18106. + int yytoken = 0;
  18107. +
  18108. + /* Three stacks and their tools:
  18109. + `yyss': related to states,
  18110. + `yyvs': related to semantic values,
  18111. + `yyls': related to locations.
  18112. +
  18113. + Refer to the stacks thru separate pointers, to allow yyoverflow
  18114. + to reallocate them elsewhere. */
  18115. +
  18116. + /* The state stack. */
  18117. + short int yyssa[YYINITDEPTH];
  18118. + short int *yyss = yyssa;
  18119. + register short int *yyssp;
  18120. +
  18121. + /* The semantic value stack. */
  18122. + YYSTYPE yyvsa[YYINITDEPTH];
  18123. + YYSTYPE *yyvs = yyvsa;
  18124. register YYSTYPE *yyvsp;
  18125. - int yyerrstatus; /* number of tokens to shift before error messages enabled */
  18126. - int yychar1 = 0; /* lookahead token as an internal (translated) token number */
  18127. - short yyssa[YYINITDEPTH]; /* the state stack */
  18128. - YYSTYPE yyvsa[YYINITDEPTH]; /* the semantic value stack */
  18129. - short *yyss = yyssa; /* refer to the stacks thru separate pointers */
  18130. - YYSTYPE *yyvs = yyvsa; /* to allow yyoverflow to reallocate them elsewhere */
  18131. -#ifdef YYLSP_NEEDED
  18132. - YYLTYPE yylsa[YYINITDEPTH]; /* the location stack */
  18133. - YYLTYPE *yyls = yylsa;
  18134. - YYLTYPE *yylsp;
  18135. -
  18136. -#define YYPOPSTACK (yyvsp--, yyssp--, yylsp--)
  18137. -#else
  18138. #define YYPOPSTACK (yyvsp--, yyssp--)
  18139. -#endif
  18140. - int yystacksize = YYINITDEPTH;
  18141. - int yyfree_stacks = 0;
  18142. + YYSIZE_T yystacksize = YYINITDEPTH;
  18143. -#ifdef YYPURE
  18144. - int yychar;
  18145. - YYSTYPE yylval;
  18146. - int yynerrs;
  18147. -#ifdef YYLSP_NEEDED
  18148. - YYLTYPE yylloc;
  18149. -#endif
  18150. -#endif
  18151. + /* The variables used to return semantic value and location from the
  18152. + action routines. */
  18153. + YYSTYPE yyval;
  18154. - YYSTYPE yyval; /* the variable used to return */
  18155. - /* semantic values from the action */
  18156. - /* routines */
  18157. + /* When reducing, the number of symbols on the RHS of the reduced
  18158. + rule. */
  18159. int yylen;
  18160. -#if YYDEBUG != 0
  18161. - if (yydebug)
  18162. - fprintf(stderr, "Starting parse\n");
  18163. -#endif
  18164. + YYDPRINTF ((stderr, "Starting parse\n"));
  18165. yystate = 0;
  18166. yyerrstatus = 0;
  18167. @@ -639,110 +1015,97 @@
  18168. so that they stay on the same level as the state stack.
  18169. The wasted elements are never initialized. */
  18170. - yyssp = yyss - 1;
  18171. + yyssp = yyss;
  18172. yyvsp = yyvs;
  18173. -#ifdef YYLSP_NEEDED
  18174. - yylsp = yyls;
  18175. -#endif
  18176. -/* Push a new state, which is found in yystate . */
  18177. -/* In all cases, when you get here, the value and location stacks
  18178. - have just been pushed. so pushing a state here evens the stacks. */
  18179. -yynewstate:
  18180. - *++yyssp = yystate;
  18181. + goto yysetstate;
  18182. - if (yyssp >= yyss + yystacksize - 1)
  18183. - {
  18184. - /* Give user a chance to reallocate the stack */
  18185. - /* Use copies of these so that the &'s don't force the real ones into memory. */
  18186. - YYSTYPE *yyvs1 = yyvs;
  18187. - short *yyss1 = yyss;
  18188. -#ifdef YYLSP_NEEDED
  18189. - YYLTYPE *yyls1 = yyls;
  18190. -#endif
  18191. +/*------------------------------------------------------------.
  18192. +| yynewstate -- Push a new state, which is found in yystate. |
  18193. +`------------------------------------------------------------*/
  18194. + yynewstate:
  18195. + /* In all cases, when you get here, the value and location stacks
  18196. + have just been pushed. so pushing a state here evens the stacks.
  18197. + */
  18198. + yyssp++;
  18199. + yysetstate:
  18200. + *yyssp = yystate;
  18201. +
  18202. + if (yyss + yystacksize - 1 <= yyssp)
  18203. + {
  18204. /* Get the current used size of the three stacks, in elements. */
  18205. - int size = yyssp - yyss + 1;
  18206. + YYSIZE_T yysize = yyssp - yyss + 1;
  18207. #ifdef yyoverflow
  18208. - /* Each stack pointer address is followed by the size of
  18209. - the data in use in that stack, in bytes. */
  18210. -#ifdef YYLSP_NEEDED
  18211. - /* This used to be a conditional around just the two extra args,
  18212. - but that might be undefined if yyoverflow is a macro. */
  18213. - yyoverflow("parser stack overflow",
  18214. - &yyss1, size * sizeof (*yyssp),
  18215. - &yyvs1, size * sizeof (*yyvsp),
  18216. - &yyls1, size * sizeof (*yylsp),
  18217. - &yystacksize);
  18218. -#else
  18219. - yyoverflow("parser stack overflow",
  18220. - &yyss1, size * sizeof (*yyssp),
  18221. - &yyvs1, size * sizeof (*yyvsp),
  18222. - &yystacksize);
  18223. -#endif
  18224. -
  18225. - yyss = yyss1; yyvs = yyvs1;
  18226. -#ifdef YYLSP_NEEDED
  18227. - yyls = yyls1;
  18228. -#endif
  18229. + {
  18230. + /* Give user a chance to reallocate the stack. Use copies of
  18231. + these so that the &'s don't force the real ones into
  18232. + memory. */
  18233. + YYSTYPE *yyvs1 = yyvs;
  18234. + short int *yyss1 = yyss;
  18235. +
  18236. +
  18237. + /* Each stack pointer address is followed by the size of the
  18238. + data in use in that stack, in bytes. This used to be a
  18239. + conditional around just the two extra args, but that might
  18240. + be undefined if yyoverflow is a macro. */
  18241. + yyoverflow ("parser stack overflow",
  18242. + &yyss1, yysize * sizeof (*yyssp),
  18243. + &yyvs1, yysize * sizeof (*yyvsp),
  18244. +
  18245. + &yystacksize);
  18246. +
  18247. + yyss = yyss1;
  18248. + yyvs = yyvs1;
  18249. + }
  18250. #else /* no yyoverflow */
  18251. +# ifndef YYSTACK_RELOCATE
  18252. + goto yyoverflowlab;
  18253. +# else
  18254. /* Extend the stack our own way. */
  18255. - if (yystacksize >= YYMAXDEPTH)
  18256. - {
  18257. - yyerror("parser stack overflow");
  18258. - if (yyfree_stacks)
  18259. - {
  18260. - free (yyss);
  18261. - free (yyvs);
  18262. -#ifdef YYLSP_NEEDED
  18263. - free (yyls);
  18264. -#endif
  18265. - }
  18266. - return 2;
  18267. - }
  18268. + if (YYMAXDEPTH <= yystacksize)
  18269. + goto yyoverflowlab;
  18270. yystacksize *= 2;
  18271. - if (yystacksize > YYMAXDEPTH)
  18272. + if (YYMAXDEPTH < yystacksize)
  18273. yystacksize = YYMAXDEPTH;
  18274. -#ifndef YYSTACK_USE_ALLOCA
  18275. - yyfree_stacks = 1;
  18276. -#endif
  18277. - yyss = (short *) YYSTACK_ALLOC (yystacksize * sizeof (*yyssp));
  18278. - __yy_memcpy ((char *)yyss, (char *)yyss1,
  18279. - size * (unsigned int) sizeof (*yyssp));
  18280. - yyvs = (YYSTYPE *) YYSTACK_ALLOC (yystacksize * sizeof (*yyvsp));
  18281. - __yy_memcpy ((char *)yyvs, (char *)yyvs1,
  18282. - size * (unsigned int) sizeof (*yyvsp));
  18283. -#ifdef YYLSP_NEEDED
  18284. - yyls = (YYLTYPE *) YYSTACK_ALLOC (yystacksize * sizeof (*yylsp));
  18285. - __yy_memcpy ((char *)yyls, (char *)yyls1,
  18286. - size * (unsigned int) sizeof (*yylsp));
  18287. -#endif
  18288. +
  18289. + {
  18290. + short int *yyss1 = yyss;
  18291. + union yyalloc *yyptr =
  18292. + (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));
  18293. + if (! yyptr)
  18294. + goto yyoverflowlab;
  18295. + YYSTACK_RELOCATE (yyss);
  18296. + YYSTACK_RELOCATE (yyvs);
  18297. +
  18298. +# undef YYSTACK_RELOCATE
  18299. + if (yyss1 != yyssa)
  18300. + YYSTACK_FREE (yyss1);
  18301. + }
  18302. +# endif
  18303. #endif /* no yyoverflow */
  18304. - yyssp = yyss + size - 1;
  18305. - yyvsp = yyvs + size - 1;
  18306. -#ifdef YYLSP_NEEDED
  18307. - yylsp = yyls + size - 1;
  18308. -#endif
  18309. + yyssp = yyss + yysize - 1;
  18310. + yyvsp = yyvs + yysize - 1;
  18311. -#if YYDEBUG != 0
  18312. - if (yydebug)
  18313. - fprintf(stderr, "Stack size increased to %d\n", yystacksize);
  18314. -#endif
  18315. - if (yyssp >= yyss + yystacksize - 1)
  18316. + YYDPRINTF ((stderr, "Stack size increased to %lu\n",
  18317. + (unsigned long int) yystacksize));
  18318. +
  18319. + if (yyss + yystacksize - 1 <= yyssp)
  18320. YYABORT;
  18321. }
  18322. -#if YYDEBUG != 0
  18323. - if (yydebug)
  18324. - fprintf(stderr, "Entering state %d\n", yystate);
  18325. -#endif
  18326. + YYDPRINTF ((stderr, "Entering state %d\n", yystate));
  18327. goto yybackup;
  18328. - yybackup:
  18329. +
  18330. +/*-----------.
  18331. +| yybackup. |
  18332. +`-----------*/
  18333. +yybackup:
  18334. /* Do appropriate processing given the current state. */
  18335. /* Read a lookahead token if we need one and don't already have one. */
  18336. @@ -751,154 +1114,120 @@
  18337. /* First try to decide what to do without reference to lookahead token. */
  18338. yyn = yypact[yystate];
  18339. - if (yyn == YYFLAG)
  18340. + if (yyn == YYPACT_NINF)
  18341. goto yydefault;
  18342. /* Not known => get a lookahead token if don't already have one. */
  18343. - /* yychar is either YYEMPTY or YYEOF
  18344. - or a valid token in external form. */
  18345. -
  18346. + /* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol. */
  18347. if (yychar == YYEMPTY)
  18348. {
  18349. -#if YYDEBUG != 0
  18350. - if (yydebug)
  18351. - fprintf(stderr, "Reading a token: ");
  18352. -#endif
  18353. + YYDPRINTF ((stderr, "Reading a token: "));
  18354. yychar = YYLEX;
  18355. }
  18356. - /* Convert token to internal form (in yychar1) for indexing tables with */
  18357. -
  18358. - if (yychar <= 0) /* This means end of input. */
  18359. + if (yychar <= YYEOF)
  18360. {
  18361. - yychar1 = 0;
  18362. - yychar = YYEOF; /* Don't call YYLEX any more */
  18363. -
  18364. -#if YYDEBUG != 0
  18365. - if (yydebug)
  18366. - fprintf(stderr, "Now at end of input.\n");
  18367. -#endif
  18368. + yychar = yytoken = YYEOF;
  18369. + YYDPRINTF ((stderr, "Now at end of input.\n"));
  18370. }
  18371. else
  18372. {
  18373. - yychar1 = YYTRANSLATE(yychar);
  18374. -
  18375. -#if YYDEBUG != 0
  18376. - if (yydebug)
  18377. - {
  18378. - fprintf (stderr, "Next token is %d (%s", yychar, yytname[yychar1]);
  18379. - /* Give the individual parser a way to print the precise meaning
  18380. - of a token, for further debugging info. */
  18381. -#ifdef YYPRINT
  18382. - YYPRINT (stderr, yychar, yylval);
  18383. -#endif
  18384. - fprintf (stderr, ")\n");
  18385. - }
  18386. -#endif
  18387. + yytoken = YYTRANSLATE (yychar);
  18388. + YYDSYMPRINTF ("Next token is", yytoken, &yylval, &yylloc);
  18389. }
  18390. - yyn += yychar1;
  18391. - if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != yychar1)
  18392. + /* If the proper action on seeing token YYTOKEN is to reduce or to
  18393. + detect an error, take that action. */
  18394. + yyn += yytoken;
  18395. + if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken)
  18396. goto yydefault;
  18397. -
  18398. yyn = yytable[yyn];
  18399. -
  18400. - /* yyn is what to do for this token type in this state.
  18401. - Negative => reduce, -yyn is rule number.
  18402. - Positive => shift, yyn is new state.
  18403. - New state is final state => don't bother to shift,
  18404. - just return success.
  18405. - 0, or most negative number => error. */
  18406. -
  18407. - if (yyn < 0)
  18408. + if (yyn <= 0)
  18409. {
  18410. - if (yyn == YYFLAG)
  18411. + if (yyn == 0 || yyn == YYTABLE_NINF)
  18412. goto yyerrlab;
  18413. yyn = -yyn;
  18414. goto yyreduce;
  18415. }
  18416. - else if (yyn == 0)
  18417. - goto yyerrlab;
  18418. if (yyn == YYFINAL)
  18419. YYACCEPT;
  18420. /* Shift the lookahead token. */
  18421. -
  18422. -#if YYDEBUG != 0
  18423. - if (yydebug)
  18424. - fprintf(stderr, "Shifting token %d (%s), ", yychar, yytname[yychar1]);
  18425. -#endif
  18426. + YYDPRINTF ((stderr, "Shifting token %s, ", yytname[yytoken]));
  18427. /* Discard the token being shifted unless it is eof. */
  18428. if (yychar != YYEOF)
  18429. yychar = YYEMPTY;
  18430. *++yyvsp = yylval;
  18431. -#ifdef YYLSP_NEEDED
  18432. - *++yylsp = yylloc;
  18433. -#endif
  18434. - /* count tokens shifted since error; after three, turn off error status. */
  18435. - if (yyerrstatus) yyerrstatus--;
  18436. +
  18437. + /* Count tokens shifted since error; after three, turn off error
  18438. + status. */
  18439. + if (yyerrstatus)
  18440. + yyerrstatus--;
  18441. yystate = yyn;
  18442. goto yynewstate;
  18443. -/* Do the default action for the current state. */
  18444. -yydefault:
  18445. +/*-----------------------------------------------------------.
  18446. +| yydefault -- do the default action for the current state. |
  18447. +`-----------------------------------------------------------*/
  18448. +yydefault:
  18449. yyn = yydefact[yystate];
  18450. if (yyn == 0)
  18451. goto yyerrlab;
  18452. + goto yyreduce;
  18453. -/* Do a reduction. yyn is the number of a rule to reduce with. */
  18454. +
  18455. +/*-----------------------------.
  18456. +| yyreduce -- Do a reduction. |
  18457. +`-----------------------------*/
  18458. yyreduce:
  18459. + /* yyn is the number of a rule to reduce with. */
  18460. yylen = yyr2[yyn];
  18461. - if (yylen > 0)
  18462. - yyval = yyvsp[1-yylen]; /* implement default value of the action */
  18463. -#if YYDEBUG != 0
  18464. - if (yydebug)
  18465. - {
  18466. - int i;
  18467. + /* If YYLEN is nonzero, implement the default value of the action:
  18468. + `$$ = $1'.
  18469. - fprintf (stderr, "Reducing via rule %d (line %d), ",
  18470. - yyn, yyrline[yyn]);
  18471. + Otherwise, the following line sets YYVAL to garbage.
  18472. + This behavior is undocumented and Bison
  18473. + users should not rely upon it. Assigning to YYVAL
  18474. + unconditionally makes the parser a bit smaller, and it avoids a
  18475. + GCC warning that YYVAL may be used uninitialized. */
  18476. + yyval = yyvsp[1-yylen];
  18477. - /* Print the symbols being reduced, and their result. */
  18478. - for (i = yyprhs[yyn]; yyrhs[i] > 0; i++)
  18479. - fprintf (stderr, "%s ", yytname[yyrhs[i]]);
  18480. - fprintf (stderr, " -> %s\n", yytname[yyr1[yyn]]);
  18481. - }
  18482. -#endif
  18483. -
  18484. - switch (yyn) {
  18485. -
  18486. -case 1:
  18487. -#line 165 "ql_y.y"
  18488. -{
  18489. + YY_REDUCE_PRINT (yyn);
  18490. + switch (yyn)
  18491. + {
  18492. + case 2:
  18493. +#line 168 "ql_y.y"
  18494. + {
  18495. STRUCTURE *walk;
  18496. def = yyvsp[0].field;
  18497. for (walk = structures; walk; walk = walk->next)
  18498. if (!walk->instances)
  18499. fprintf(stderr,"unused structure: %s\n",walk->id);
  18500. - ;
  18501. - break;}
  18502. -case 3:
  18503. -#line 177 "ql_y.y"
  18504. -{
  18505. + }
  18506. + break;
  18507. +
  18508. + case 4:
  18509. +#line 180 "ql_y.y"
  18510. + {
  18511. to_c("#%s\n",yyvsp[-1].str);
  18512. to_test("#%s\n",yyvsp[-1].str);
  18513. if (dump) to_dump("#%s\n",yyvsp[-1].str);
  18514. - ;
  18515. - break;}
  18516. -case 6:
  18517. -#line 190 "ql_y.y"
  18518. -{
  18519. + }
  18520. + break;
  18521. +
  18522. + case 7:
  18523. +#line 193 "ql_y.y"
  18524. + {
  18525. STRUCTURE *n;
  18526. n = alloc_t(STRUCTURE);
  18527. @@ -907,23 +1236,26 @@
  18528. n->instances = 0;
  18529. n->next = structures;
  18530. structures = n;
  18531. - ;
  18532. - break;}
  18533. -case 7:
  18534. -#line 203 "ql_y.y"
  18535. -{
  18536. + }
  18537. + break;
  18538. +
  18539. + case 8:
  18540. +#line 206 "ql_y.y"
  18541. + {
  18542. abort_id = NULL;
  18543. - ;
  18544. - break;}
  18545. -case 8:
  18546. -#line 207 "ql_y.y"
  18547. -{
  18548. + }
  18549. + break;
  18550. +
  18551. + case 9:
  18552. +#line 210 "ql_y.y"
  18553. + {
  18554. yyval.field = yyvsp[0].field;
  18555. - ;
  18556. - break;}
  18557. -case 9:
  18558. -#line 214 "ql_y.y"
  18559. -{
  18560. + }
  18561. + break;
  18562. +
  18563. + case 10:
  18564. +#line 217 "ql_y.y"
  18565. + {
  18566. STRUCTURE *walk;
  18567. for (walk = structures; walk; walk = walk->next)
  18568. @@ -939,38 +1271,43 @@
  18569. yyval.field->my_block = copy_block(walk->block);
  18570. yyval.field->next = NULL;
  18571. abort_id = NULL;
  18572. - ;
  18573. - break;}
  18574. -case 10:
  18575. -#line 232 "ql_y.y"
  18576. -{
  18577. + }
  18578. + break;
  18579. +
  18580. + case 11:
  18581. +#line 235 "ql_y.y"
  18582. + {
  18583. yyval.field = yyvsp[-1].field;
  18584. abort_id = NULL;
  18585. - ;
  18586. - break;}
  18587. -case 11:
  18588. -#line 237 "ql_y.y"
  18589. -{
  18590. + }
  18591. + break;
  18592. +
  18593. + case 12:
  18594. +#line 240 "ql_y.y"
  18595. + {
  18596. yyval.field = NULL;
  18597. abort_id = yyvsp[0].str;
  18598. - ;
  18599. - break;}
  18600. -case 12:
  18601. -#line 244 "ql_y.y"
  18602. -{
  18603. + }
  18604. + break;
  18605. +
  18606. + case 13:
  18607. +#line 247 "ql_y.y"
  18608. + {
  18609. yyval.field = NULL;
  18610. - ;
  18611. - break;}
  18612. -case 13:
  18613. -#line 248 "ql_y.y"
  18614. -{
  18615. + }
  18616. + break;
  18617. +
  18618. + case 14:
  18619. +#line 251 "ql_y.y"
  18620. + {
  18621. yyval.field = yyvsp[-1].field;
  18622. yyvsp[-1].field->next = yyvsp[0].field;
  18623. - ;
  18624. - break;}
  18625. -case 14:
  18626. -#line 256 "ql_y.y"
  18627. -{
  18628. + }
  18629. + break;
  18630. +
  18631. + case 15:
  18632. +#line 259 "ql_y.y"
  18633. + {
  18634. TAG *walk;
  18635. yyval.field = yyvsp[0].field;
  18636. @@ -989,23 +1326,26 @@
  18637. "selections");
  18638. if (*yyval.field->id != '_' && yyval.field->value && yyval.field->value->type == vt_multi)
  18639. yyerror("multi selectors must be unnamed");
  18640. - ;
  18641. - break;}
  18642. -case 15:
  18643. -#line 279 "ql_y.y"
  18644. -{
  18645. + }
  18646. + break;
  18647. +
  18648. + case 16:
  18649. +#line 282 "ql_y.y"
  18650. + {
  18651. yyval.num = 0;
  18652. - ;
  18653. - break;}
  18654. -case 16:
  18655. -#line 283 "ql_y.y"
  18656. -{
  18657. + }
  18658. + break;
  18659. +
  18660. + case 17:
  18661. +#line 286 "ql_y.y"
  18662. + {
  18663. yyval.num = 1;
  18664. - ;
  18665. - break;}
  18666. -case 17:
  18667. -#line 290 "ql_y.y"
  18668. -{
  18669. + }
  18670. + break;
  18671. +
  18672. + case 18:
  18673. +#line 293 "ql_y.y"
  18674. + {
  18675. yyval.field = alloc_t(FIELD);
  18676. yyval.field->size = yyvsp[-1].num;
  18677. yyval.field->var_len = -2; /* hack */
  18678. @@ -1015,140 +1355,159 @@
  18679. yyval.field->value = NULL;
  18680. yyval.field->structure = NULL;
  18681. yyval.field->next = NULL;
  18682. - ;
  18683. - break;}
  18684. -case 18:
  18685. -#line 302 "ql_y.y"
  18686. -{
  18687. + }
  18688. + break;
  18689. +
  18690. + case 19:
  18691. +#line 305 "ql_y.y"
  18692. + {
  18693. yyval.field = alloc_t(FIELD);
  18694. yyval.field->size = yyvsp[-4].num;
  18695. yyval.field->var_len = -1;
  18696. yyval.field->pos = yyvsp[-3].num;
  18697. yyval.field->flush = !yyvsp[-2].num;
  18698. - if (yyval.field->pos == -1)
  18699. + if (yyval.field->pos == -1) {
  18700. if (yyval.field->size & 7)
  18701. yyerror("position required for small fields");
  18702. else yyval.field->pos = 0;
  18703. + }
  18704. yyval.field->value = yyvsp[0].value;
  18705. yyval.field->structure = NULL;
  18706. yyval.field->next = NULL;
  18707. - ;
  18708. - break;}
  18709. -case 19:
  18710. -#line 319 "ql_y.y"
  18711. -{
  18712. - yyval.num = -1;
  18713. - ;
  18714. - break;}
  18715. -case 20:
  18716. + }
  18717. + break;
  18718. +
  18719. + case 20:
  18720. #line 323 "ql_y.y"
  18721. -{
  18722. + {
  18723. + yyval.num = -1;
  18724. + }
  18725. + break;
  18726. +
  18727. + case 21:
  18728. +#line 327 "ql_y.y"
  18729. + {
  18730. yyval.num = yyvsp[0].num-1;
  18731. if (yyval.num < 0 || yyval.num > 7) yyerror("invalid position");
  18732. - ;
  18733. - break;}
  18734. -case 21:
  18735. -#line 331 "ql_y.y"
  18736. -{
  18737. + }
  18738. + break;
  18739. +
  18740. + case 22:
  18741. +#line 335 "ql_y.y"
  18742. + {
  18743. char *end;
  18744. yyval.num = strtoul(yyvsp[0].str,&end,10);
  18745. if (*end) yyerror("no a decimal number");
  18746. - ;
  18747. - break;}
  18748. -case 22:
  18749. -#line 340 "ql_y.y"
  18750. -{
  18751. - yyval.num = 0;
  18752. - ;
  18753. - break;}
  18754. -case 23:
  18755. + }
  18756. + break;
  18757. +
  18758. + case 23:
  18759. #line 344 "ql_y.y"
  18760. -{
  18761. + {
  18762. + yyval.num = 0;
  18763. + }
  18764. + break;
  18765. +
  18766. + case 24:
  18767. +#line 348 "ql_y.y"
  18768. + {
  18769. if (strcmp(yyvsp[0].str,"more")) yyerror("\"more\" expected");
  18770. yyval.num = 1;
  18771. - ;
  18772. - break;}
  18773. -case 24:
  18774. -#line 351 "ql_y.y"
  18775. -{
  18776. - yyval.value = NULL;
  18777. - ;
  18778. - break;}
  18779. -case 25:
  18780. + }
  18781. + break;
  18782. +
  18783. + case 25:
  18784. #line 355 "ql_y.y"
  18785. -{
  18786. + {
  18787. + yyval.value = NULL;
  18788. + }
  18789. + break;
  18790. +
  18791. + case 26:
  18792. +#line 359 "ql_y.y"
  18793. + {
  18794. yyval.value = yyvsp[0].value;
  18795. - ;
  18796. - break;}
  18797. -case 26:
  18798. -#line 362 "ql_y.y"
  18799. -{
  18800. + }
  18801. + break;
  18802. +
  18803. + case 27:
  18804. +#line 366 "ql_y.y"
  18805. + {
  18806. yyval.value = alloc_t(VALUE);
  18807. yyval.value->type = vt_id;
  18808. yyval.value->id = yyvsp[0].str;
  18809. - ;
  18810. - break;}
  18811. -case 27:
  18812. -#line 368 "ql_y.y"
  18813. -{
  18814. + }
  18815. + break;
  18816. +
  18817. + case 28:
  18818. +#line 372 "ql_y.y"
  18819. + {
  18820. yyval.value = alloc_t(VALUE);
  18821. yyval.value->type = vt_case;
  18822. yyval.value->id = NULL;
  18823. yyval.value->tags = yyvsp[-1].tag;
  18824. - ;
  18825. - break;}
  18826. -case 28:
  18827. -#line 375 "ql_y.y"
  18828. -{
  18829. + }
  18830. + break;
  18831. +
  18832. + case 29:
  18833. +#line 379 "ql_y.y"
  18834. + {
  18835. yyval.value = alloc_t(VALUE);
  18836. yyval.value->type = vt_multi;
  18837. yyval.value->tags = yyvsp[-1].tag;
  18838. - ;
  18839. - break;}
  18840. -case 29:
  18841. -#line 381 "ql_y.y"
  18842. -{
  18843. + }
  18844. + break;
  18845. +
  18846. + case 30:
  18847. +#line 385 "ql_y.y"
  18848. + {
  18849. yyval.value = alloc_t(VALUE);
  18850. yyval.value->type = vt_length;
  18851. yyval.value->recovery = yyvsp[-2].str;
  18852. yyval.value->block = yyvsp[0].field;
  18853. yyval.value->abort_id = abort_id;
  18854. - ;
  18855. - break;}
  18856. -case 30:
  18857. -#line 391 "ql_y.y"
  18858. -{
  18859. - yyval.str = NULL;
  18860. - ;
  18861. - break;}
  18862. -case 31:
  18863. + }
  18864. + break;
  18865. +
  18866. + case 31:
  18867. #line 395 "ql_y.y"
  18868. -{
  18869. + {
  18870. + yyval.str = NULL;
  18871. + }
  18872. + break;
  18873. +
  18874. + case 32:
  18875. +#line 399 "ql_y.y"
  18876. + {
  18877. yyval.str = yyvsp[0].str;
  18878. - ;
  18879. - break;}
  18880. -case 32:
  18881. -#line 401 "ql_y.y"
  18882. -{
  18883. - yyval.nlist = NULL;
  18884. - ;
  18885. - break;}
  18886. -case 33:
  18887. + }
  18888. + break;
  18889. +
  18890. + case 33:
  18891. #line 405 "ql_y.y"
  18892. -{
  18893. + {
  18894. + yyval.nlist = NULL;
  18895. + }
  18896. + break;
  18897. +
  18898. + case 34:
  18899. +#line 409 "ql_y.y"
  18900. + {
  18901. yyval.nlist = get_name_list(yyvsp[0].str);
  18902. - ;
  18903. - break;}
  18904. -case 34:
  18905. -#line 411 "ql_y.y"
  18906. -{
  18907. - yyval.tag = NULL;
  18908. - ;
  18909. - break;}
  18910. -case 35:
  18911. + }
  18912. + break;
  18913. +
  18914. + case 35:
  18915. #line 415 "ql_y.y"
  18916. -{
  18917. + {
  18918. + yyval.tag = NULL;
  18919. + }
  18920. + break;
  18921. +
  18922. + case 36:
  18923. +#line 419 "ql_y.y"
  18924. + {
  18925. yyval.tag = alloc_t(TAG);
  18926. yyval.tag->deflt = 1;
  18927. if (yyvsp[-2].str) {
  18928. @@ -1163,18 +1522,20 @@
  18929. yyval.tag->block = yyvsp[0].field;
  18930. yyval.tag->next = NULL;
  18931. yyval.tag->abort_id = abort_id;
  18932. - ;
  18933. - break;}
  18934. -case 36:
  18935. -#line 432 "ql_y.y"
  18936. -{
  18937. + }
  18938. + break;
  18939. +
  18940. + case 37:
  18941. +#line 436 "ql_y.y"
  18942. + {
  18943. yyval.tag = alloc_t(TAG);
  18944. yyval.tag->abort_id = abort_id;
  18945. - ;
  18946. - break;}
  18947. -case 37:
  18948. -#line 437 "ql_y.y"
  18949. -{
  18950. + }
  18951. + break;
  18952. +
  18953. + case 38:
  18954. +#line 441 "ql_y.y"
  18955. + {
  18956. yyval.tag = yyvsp[-1].tag;
  18957. yyval.tag->deflt = 0;
  18958. if (yyvsp[-4].str) {
  18959. @@ -1188,17 +1549,19 @@
  18960. yyval.tag->more = yyvsp[-3].list;
  18961. yyval.tag->block = yyvsp[-2].field;
  18962. yyval.tag->next = yyvsp[0].tag;
  18963. - ;
  18964. - break;}
  18965. -case 38:
  18966. -#line 455 "ql_y.y"
  18967. -{
  18968. - yyval.tag = NULL;
  18969. - ;
  18970. - break;}
  18971. -case 39:
  18972. + }
  18973. + break;
  18974. +
  18975. + case 39:
  18976. #line 459 "ql_y.y"
  18977. -{
  18978. + {
  18979. + yyval.tag = NULL;
  18980. + }
  18981. + break;
  18982. +
  18983. + case 40:
  18984. +#line 463 "ql_y.y"
  18985. + {
  18986. yyval.tag = alloc_t(TAG);
  18987. yyval.tag->deflt = 1;
  18988. if (yyvsp[-2].str) {
  18989. @@ -1212,18 +1575,20 @@
  18990. yyval.tag->more = yyvsp[-1].list;
  18991. yyval.tag->block = yyvsp[0].field;
  18992. yyval.tag->next = NULL;
  18993. - ;
  18994. - break;}
  18995. -case 40:
  18996. -#line 475 "ql_y.y"
  18997. -{
  18998. + }
  18999. + break;
  19000. +
  19001. + case 41:
  19002. +#line 479 "ql_y.y"
  19003. + {
  19004. yyval.tag = alloc_t(TAG);
  19005. yyval.tag->abort_id = abort_id;
  19006. - ;
  19007. - break;}
  19008. -case 41:
  19009. -#line 480 "ql_y.y"
  19010. -{
  19011. + }
  19012. + break;
  19013. +
  19014. + case 42:
  19015. +#line 484 "ql_y.y"
  19016. + {
  19017. yyval.tag = yyvsp[-1].tag;
  19018. yyval.tag->deflt = 0;
  19019. if (yyvsp[-4].str) {
  19020. @@ -1237,254 +1602,266 @@
  19021. yyval.tag->more = yyvsp[-3].list;
  19022. yyval.tag->block = yyvsp[-2].field;
  19023. yyval.tag->next = yyvsp[0].tag;
  19024. - ;
  19025. - break;}
  19026. -case 42:
  19027. -#line 498 "ql_y.y"
  19028. -{
  19029. - yyval.str = NULL;
  19030. - ;
  19031. - break;}
  19032. -case 43:
  19033. + }
  19034. + break;
  19035. +
  19036. + case 43:
  19037. #line 502 "ql_y.y"
  19038. -{
  19039. + {
  19040. + yyval.str = NULL;
  19041. + }
  19042. + break;
  19043. +
  19044. + case 44:
  19045. +#line 506 "ql_y.y"
  19046. + {
  19047. yyval.str = yyvsp[0].str;
  19048. - ;
  19049. - break;}
  19050. -case 44:
  19051. -#line 508 "ql_y.y"
  19052. -{
  19053. - yyval.list = NULL;
  19054. - ;
  19055. - break;}
  19056. -case 45:
  19057. + }
  19058. + break;
  19059. +
  19060. + case 45:
  19061. #line 512 "ql_y.y"
  19062. -{
  19063. + {
  19064. + yyval.list = NULL;
  19065. + }
  19066. + break;
  19067. +
  19068. + case 46:
  19069. +#line 516 "ql_y.y"
  19070. + {
  19071. yyval.list = alloc_t(VALUE_LIST);
  19072. yyval.list->value = yyvsp[-1].str;
  19073. yyval.list->next = yyvsp[0].list;
  19074. - ;
  19075. - break;}
  19076. -}
  19077. - /* the action file gets copied in in place of this dollarsign */
  19078. -#line 543 "/usr/lib/bison.simple"
  19079. + }
  19080. + break;
  19081. +
  19082. +
  19083. + }
  19084. +
  19085. +/* Line 1010 of yacc.c. */
  19086. +#line 1643 "y.tab.c"
  19087. yyvsp -= yylen;
  19088. yyssp -= yylen;
  19089. -#ifdef YYLSP_NEEDED
  19090. - yylsp -= yylen;
  19091. -#endif
  19092. -#if YYDEBUG != 0
  19093. - if (yydebug)
  19094. - {
  19095. - short *ssp1 = yyss - 1;
  19096. - fprintf (stderr, "state stack now");
  19097. - while (ssp1 != yyssp)
  19098. - fprintf (stderr, " %d", *++ssp1);
  19099. - fprintf (stderr, "\n");
  19100. - }
  19101. -#endif
  19102. +
  19103. + YY_STACK_PRINT (yyss, yyssp);
  19104. *++yyvsp = yyval;
  19105. -#ifdef YYLSP_NEEDED
  19106. - yylsp++;
  19107. - if (yylen == 0)
  19108. - {
  19109. - yylsp->first_line = yylloc.first_line;
  19110. - yylsp->first_column = yylloc.first_column;
  19111. - yylsp->last_line = (yylsp-1)->last_line;
  19112. - yylsp->last_column = (yylsp-1)->last_column;
  19113. - yylsp->text = 0;
  19114. - }
  19115. - else
  19116. - {
  19117. - yylsp->last_line = (yylsp+yylen-1)->last_line;
  19118. - yylsp->last_column = (yylsp+yylen-1)->last_column;
  19119. - }
  19120. -#endif
  19121. - /* Now "shift" the result of the reduction.
  19122. - Determine what state that goes to,
  19123. - based on the state we popped back to
  19124. - and the rule number reduced by. */
  19125. + /* Now `shift' the result of the reduction. Determine what state
  19126. + that goes to, based on the state we popped back to and the rule
  19127. + number reduced by. */
  19128. yyn = yyr1[yyn];
  19129. - yystate = yypgoto[yyn - YYNTBASE] + *yyssp;
  19130. - if (yystate >= 0 && yystate <= YYLAST && yycheck[yystate] == *yyssp)
  19131. + yystate = yypgoto[yyn - YYNTOKENS] + *yyssp;
  19132. + if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp)
  19133. yystate = yytable[yystate];
  19134. else
  19135. - yystate = yydefgoto[yyn - YYNTBASE];
  19136. + yystate = yydefgoto[yyn - YYNTOKENS];
  19137. goto yynewstate;
  19138. -yyerrlab: /* here on detecting error */
  19139. - if (! yyerrstatus)
  19140. - /* If not already recovering from an error, report this error. */
  19141. +/*------------------------------------.
  19142. +| yyerrlab -- here on detecting error |
  19143. +`------------------------------------*/
  19144. +yyerrlab:
  19145. + /* If not already recovering from an error, report this error. */
  19146. + if (!yyerrstatus)
  19147. {
  19148. ++yynerrs;
  19149. -
  19150. -#ifdef YYERROR_VERBOSE
  19151. +#if YYERROR_VERBOSE
  19152. yyn = yypact[yystate];
  19153. - if (yyn > YYFLAG && yyn < YYLAST)
  19154. + if (YYPACT_NINF < yyn && yyn < YYLAST)
  19155. {
  19156. - int size = 0;
  19157. - char *msg;
  19158. - int x, count;
  19159. -
  19160. - count = 0;
  19161. - /* Start X at -yyn if nec to avoid negative indexes in yycheck. */
  19162. - for (x = (yyn < 0 ? -yyn : 0);
  19163. - x < (sizeof(yytname) / sizeof(char *)); x++)
  19164. - if (yycheck[x + yyn] == x)
  19165. - size += strlen(yytname[x]) + 15, count++;
  19166. - msg = (char *) malloc(size + 15);
  19167. - if (msg != 0)
  19168. + YYSIZE_T yysize = 0;
  19169. + int yytype = YYTRANSLATE (yychar);
  19170. + const char* yyprefix;
  19171. + char *yymsg;
  19172. + int yyx;
  19173. +
  19174. + /* Start YYX at -YYN if negative to avoid negative indexes in
  19175. + YYCHECK. */
  19176. + int yyxbegin = yyn < 0 ? -yyn : 0;
  19177. +
  19178. + /* Stay within bounds of both yycheck and yytname. */
  19179. + int yychecklim = YYLAST - yyn;
  19180. + int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;
  19181. + int yycount = 0;
  19182. +
  19183. + yyprefix = ", expecting ";
  19184. + for (yyx = yyxbegin; yyx < yyxend; ++yyx)
  19185. + if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR)
  19186. + {
  19187. + yysize += yystrlen (yyprefix) + yystrlen (yytname [yyx]);
  19188. + yycount += 1;
  19189. + if (yycount == 5)
  19190. + {
  19191. + yysize = 0;
  19192. + break;
  19193. + }
  19194. + }
  19195. + yysize += (sizeof ("syntax error, unexpected ")
  19196. + + yystrlen (yytname[yytype]));
  19197. + yymsg = (char *) YYSTACK_ALLOC (yysize);
  19198. + if (yymsg != 0)
  19199. {
  19200. - strcpy(msg, "parse error");
  19201. + char *yyp = yystpcpy (yymsg, "syntax error, unexpected ");
  19202. + yyp = yystpcpy (yyp, yytname[yytype]);
  19203. - if (count < 5)
  19204. + if (yycount < 5)
  19205. {
  19206. - count = 0;
  19207. - for (x = (yyn < 0 ? -yyn : 0);
  19208. - x < (sizeof(yytname) / sizeof(char *)); x++)
  19209. - if (yycheck[x + yyn] == x)
  19210. + yyprefix = ", expecting ";
  19211. + for (yyx = yyxbegin; yyx < yyxend; ++yyx)
  19212. + if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR)
  19213. {
  19214. - strcat(msg, count == 0 ? ", expecting `" : " or `");
  19215. - strcat(msg, yytname[x]);
  19216. - strcat(msg, "'");
  19217. - count++;
  19218. + yyp = yystpcpy (yyp, yyprefix);
  19219. + yyp = yystpcpy (yyp, yytname[yyx]);
  19220. + yyprefix = " or ";
  19221. }
  19222. }
  19223. - yyerror(msg);
  19224. - free(msg);
  19225. + yyerror (yymsg);
  19226. + YYSTACK_FREE (yymsg);
  19227. }
  19228. else
  19229. - yyerror ("parse error; also virtual memory exceeded");
  19230. + yyerror ("syntax error; also virtual memory exhausted");
  19231. }
  19232. else
  19233. #endif /* YYERROR_VERBOSE */
  19234. - yyerror("parse error");
  19235. + yyerror ("syntax error");
  19236. }
  19237. - goto yyerrlab1;
  19238. -yyerrlab1: /* here on error raised explicitly by an action */
  19239. +
  19240. if (yyerrstatus == 3)
  19241. {
  19242. - /* if just tried and failed to reuse lookahead token after an error, discard it. */
  19243. + /* If just tried and failed to reuse lookahead token after an
  19244. + error, discard it. */
  19245. - /* return failure if at end of input */
  19246. - if (yychar == YYEOF)
  19247. - YYABORT;
  19248. -
  19249. -#if YYDEBUG != 0
  19250. - if (yydebug)
  19251. - fprintf(stderr, "Discarding token %d (%s).\n", yychar, yytname[yychar1]);
  19252. -#endif
  19253. + if (yychar <= YYEOF)
  19254. + {
  19255. + /* If at end of input, pop the error token,
  19256. + then the rest of the stack, then return failure. */
  19257. + if (yychar == YYEOF)
  19258. + for (;;)
  19259. + {
  19260. + YYPOPSTACK;
  19261. + if (yyssp == yyss)
  19262. + YYABORT;
  19263. + YYDSYMPRINTF ("Error: popping", yystos[*yyssp], yyvsp, yylsp);
  19264. + yydestruct (yystos[*yyssp], yyvsp);
  19265. + }
  19266. + }
  19267. + else
  19268. + {
  19269. + YYDSYMPRINTF ("Error: discarding", yytoken, &yylval, &yylloc);
  19270. + yydestruct (yytoken, &yylval);
  19271. + yychar = YYEMPTY;
  19272. - yychar = YYEMPTY;
  19273. + }
  19274. }
  19275. - /* Else will try to reuse lookahead token
  19276. - after shifting the error token. */
  19277. -
  19278. - yyerrstatus = 3; /* Each real token shifted decrements this */
  19279. + /* Else will try to reuse lookahead token after shifting the error
  19280. + token. */
  19281. + goto yyerrlab1;
  19282. - goto yyerrhandle;
  19283. -yyerrdefault: /* current state does not do anything special for the error token. */
  19284. +/*---------------------------------------------------.
  19285. +| yyerrorlab -- error raised explicitly by YYERROR. |
  19286. +`---------------------------------------------------*/
  19287. +yyerrorlab:
  19288. -#if 0
  19289. - /* This is wrong; only states that explicitly want error tokens
  19290. - should shift them. */
  19291. - yyn = yydefact[yystate]; /* If its default is to accept any token, ok. Otherwise pop it.*/
  19292. - if (yyn) goto yydefault;
  19293. +#ifdef __GNUC__
  19294. + /* Pacify GCC when the user code never invokes YYERROR and the label
  19295. + yyerrorlab therefore never appears in user code. */
  19296. + if (0)
  19297. + goto yyerrorlab;
  19298. #endif
  19299. -yyerrpop: /* pop the current state because it cannot handle the error token */
  19300. -
  19301. - if (yyssp == yyss) YYABORT;
  19302. - yyvsp--;
  19303. - yystate = *--yyssp;
  19304. -#ifdef YYLSP_NEEDED
  19305. - yylsp--;
  19306. -#endif
  19307. + yyvsp -= yylen;
  19308. + yyssp -= yylen;
  19309. + yystate = *yyssp;
  19310. + goto yyerrlab1;
  19311. -#if YYDEBUG != 0
  19312. - if (yydebug)
  19313. - {
  19314. - short *ssp1 = yyss - 1;
  19315. - fprintf (stderr, "Error: state stack now");
  19316. - while (ssp1 != yyssp)
  19317. - fprintf (stderr, " %d", *++ssp1);
  19318. - fprintf (stderr, "\n");
  19319. - }
  19320. -#endif
  19321. -yyerrhandle:
  19322. +/*-------------------------------------------------------------.
  19323. +| yyerrlab1 -- common code for both syntax error and YYERROR. |
  19324. +`-------------------------------------------------------------*/
  19325. +yyerrlab1:
  19326. + yyerrstatus = 3; /* Each real token shifted decrements this. */
  19327. - yyn = yypact[yystate];
  19328. - if (yyn == YYFLAG)
  19329. - goto yyerrdefault;
  19330. + for (;;)
  19331. + {
  19332. + yyn = yypact[yystate];
  19333. + if (yyn != YYPACT_NINF)
  19334. + {
  19335. + yyn += YYTERROR;
  19336. + if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR)
  19337. + {
  19338. + yyn = yytable[yyn];
  19339. + if (0 < yyn)
  19340. + break;
  19341. + }
  19342. + }
  19343. - yyn += YYTERROR;
  19344. - if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != YYTERROR)
  19345. - goto yyerrdefault;
  19346. + /* Pop the current state because it cannot handle the error token. */
  19347. + if (yyssp == yyss)
  19348. + YYABORT;
  19349. - yyn = yytable[yyn];
  19350. - if (yyn < 0)
  19351. - {
  19352. - if (yyn == YYFLAG)
  19353. - goto yyerrpop;
  19354. - yyn = -yyn;
  19355. - goto yyreduce;
  19356. + YYDSYMPRINTF ("Error: popping", yystos[*yyssp], yyvsp, yylsp);
  19357. + yydestruct (yystos[yystate], yyvsp);
  19358. + YYPOPSTACK;
  19359. + yystate = *yyssp;
  19360. + YY_STACK_PRINT (yyss, yyssp);
  19361. }
  19362. - else if (yyn == 0)
  19363. - goto yyerrpop;
  19364. if (yyn == YYFINAL)
  19365. YYACCEPT;
  19366. -#if YYDEBUG != 0
  19367. - if (yydebug)
  19368. - fprintf(stderr, "Shifting error token, ");
  19369. -#endif
  19370. + YYDPRINTF ((stderr, "Shifting error token, "));
  19371. *++yyvsp = yylval;
  19372. -#ifdef YYLSP_NEEDED
  19373. - *++yylsp = yylloc;
  19374. -#endif
  19375. +
  19376. yystate = yyn;
  19377. goto yynewstate;
  19378. - yyacceptlab:
  19379. - /* YYACCEPT comes here. */
  19380. - if (yyfree_stacks)
  19381. - {
  19382. - free (yyss);
  19383. - free (yyvs);
  19384. -#ifdef YYLSP_NEEDED
  19385. - free (yyls);
  19386. -#endif
  19387. - }
  19388. - return 0;
  19389. - yyabortlab:
  19390. - /* YYABORT comes here. */
  19391. - if (yyfree_stacks)
  19392. - {
  19393. - free (yyss);
  19394. - free (yyvs);
  19395. -#ifdef YYLSP_NEEDED
  19396. - free (yyls);
  19397. +/*-------------------------------------.
  19398. +| yyacceptlab -- YYACCEPT comes here. |
  19399. +`-------------------------------------*/
  19400. +yyacceptlab:
  19401. + yyresult = 0;
  19402. + goto yyreturn;
  19403. +
  19404. +/*-----------------------------------.
  19405. +| yyabortlab -- YYABORT comes here. |
  19406. +`-----------------------------------*/
  19407. +yyabortlab:
  19408. + yyresult = 1;
  19409. + goto yyreturn;
  19410. +
  19411. +#ifndef yyoverflow
  19412. +/*----------------------------------------------.
  19413. +| yyoverflowlab -- parser overflow comes here. |
  19414. +`----------------------------------------------*/
  19415. +yyoverflowlab:
  19416. + yyerror ("parser stack overflow");
  19417. + yyresult = 2;
  19418. + /* Fall through. */
  19419. +#endif
  19420. +
  19421. +yyreturn:
  19422. +#ifndef yyoverflow
  19423. + if (yyss != yyssa)
  19424. + YYSTACK_FREE (yyss);
  19425. #endif
  19426. - }
  19427. - return 1;
  19428. + return yyresult;
  19429. }
  19430. -#line 518 "ql_y.y"
  19431. +
  19432. +
  19433. +
  19434. --- linux-atm-2.4.1.orig/src/qgen/ql_y.y
  19435. +++ linux-atm-2.4.1/src/qgen/ql_y.y
  19436. @@ -17,6 +17,8 @@
  19437. #include "qgen.h"
  19438. #include "file.h"
  19439. +extern void yyerror(const char *s);
  19440. +
  19441. #define MAX_TOKEN 256
  19442. #define DEFAULT_NAMELIST_FILE "default.nl"
  19443. @@ -58,9 +60,10 @@
  19444. for (walk = strchr(start,0)-1; walk > start && isspace(*walk); walk--)
  19445. *walk = 0;
  19446. if (*start == ':') {
  19447. - if (!(searching = strcmp(start+1,name)))
  19448. + if (!(searching = strcmp(start+1,name))) {
  19449. if (found) yyerror("multiple entries");
  19450. else found = 1;
  19451. + }
  19452. continue;
  19453. }
  19454. if (searching) continue;
  19455. @@ -305,10 +308,11 @@
  19456. $$->var_len = -1;
  19457. $$->pos = $2;
  19458. $$->flush = !$3;
  19459. - if ($$->pos == -1)
  19460. + if ($$->pos == -1) {
  19461. if ($$->size & 7)
  19462. yyerror("position required for small fields");
  19463. else $$->pos = 0;
  19464. + }
  19465. $$->value = $5;
  19466. $$->structure = NULL;
  19467. $$->next = NULL;
  19468. --- linux-atm-2.4.1.orig/src/qgen/ql_l.l
  19469. +++ linux-atm-2.4.1/src/qgen/ql_l.l
  19470. @@ -68,7 +68,7 @@
  19471. %%
  19472. -void yyerror(char *s)
  19473. +void yyerror(const char *s)
  19474. {
  19475. fprintf(stderr,"line %d: %s near \"%s\"\n",lineno,s,yytext);
  19476. exit(1);
  19477. --- linux-atm-2.4.1.orig/src/qgen/qlib.c
  19478. +++ linux-atm-2.4.1/src/qgen/qlib.c
  19479. @@ -26,14 +26,14 @@
  19480. #include "op.h"
  19481. -static int debug = 0;
  19482. +static int q_debug = 0;
  19483. void PREFIX(report)(int severity,const char *msg,...)
  19484. {
  19485. va_list ap;
  19486. - if (!debug && severity > Q_ERROR) return;
  19487. + if (!q_debug && severity > Q_ERROR) return;
  19488. va_start(ap,msg);
  19489. vprintf(msg,ap);
  19490. printf("\n");
  19491. @@ -836,7 +836,7 @@
  19492. Q_DSC dsc;
  19493. int len,c;
  19494. - debug = argc != 1;
  19495. + q_debug = argc != 1;
  19496. len = 0;
  19497. while (scanf("%x",&c) == 1) msg[len++] = c;
  19498. qd_start();
  19499. --- linux-atm-2.4.1.orig/src/qgen/qlib.h
  19500. +++ linux-atm-2.4.1/src/qgen/qlib.h
  19501. @@ -23,7 +23,9 @@
  19502. #define Q_FATAL -1
  19503. +#ifndef DUMP_MODE
  19504. extern int q_dump;
  19505. +#endif
  19506. extern void q_report(int severity,const char *msg,...);
  19507. #ifdef DUMP_MODE
  19508. --- linux-atm-2.4.1.orig/src/qgen/ql_y.h
  19509. +++ linux-atm-2.4.1/src/qgen/ql_y.h
  19510. @@ -1,4 +1,65 @@
  19511. -typedef union {
  19512. +/* A Bison parser, made by GNU Bison 1.875d. */
  19513. +
  19514. +/* Skeleton parser for Yacc-like parsing with Bison,
  19515. + Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
  19516. +
  19517. + This program is free software; you can redistribute it and/or modify
  19518. + it under the terms of the GNU General Public License as published by
  19519. + the Free Software Foundation; either version 2, or (at your option)
  19520. + any later version.
  19521. +
  19522. + This program is distributed in the hope that it will be useful,
  19523. + but WITHOUT ANY WARRANTY; without even the implied warranty of
  19524. + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19525. + GNU General Public License for more details.
  19526. +
  19527. + You should have received a copy of the GNU General Public License
  19528. + along with this program; if not, write to the Free Software
  19529. + Foundation, Inc., 59 Temple Place - Suite 330,
  19530. + Boston, MA 02111-1307, USA. */
  19531. +
  19532. +/* As a special exception, when this file is copied by Bison into a
  19533. + Bison output file, you may use that output file without restriction.
  19534. + This special exception was added by the Free Software Foundation
  19535. + in version 1.24 of Bison. */
  19536. +
  19537. +/* Tokens. */
  19538. +#ifndef YYTOKENTYPE
  19539. +# define YYTOKENTYPE
  19540. + /* Put the tokens into the symbol table, so that GDB and other debuggers
  19541. + know about them. */
  19542. + enum yytokentype {
  19543. + TOK_BREAK = 258,
  19544. + TOK_CASE = 259,
  19545. + TOK_DEF = 260,
  19546. + TOK_DEFAULT = 261,
  19547. + TOK_LENGTH = 262,
  19548. + TOK_MULTI = 263,
  19549. + TOK_RECOVER = 264,
  19550. + TOK_ABORT = 265,
  19551. + TOK_ID = 266,
  19552. + TOK_INCLUDE = 267,
  19553. + TOK_STRING = 268
  19554. + };
  19555. +#endif
  19556. +#define TOK_BREAK 258
  19557. +#define TOK_CASE 259
  19558. +#define TOK_DEF 260
  19559. +#define TOK_DEFAULT 261
  19560. +#define TOK_LENGTH 262
  19561. +#define TOK_MULTI 263
  19562. +#define TOK_RECOVER 264
  19563. +#define TOK_ABORT 265
  19564. +#define TOK_ID 266
  19565. +#define TOK_INCLUDE 267
  19566. +#define TOK_STRING 268
  19567. +
  19568. +
  19569. +
  19570. +
  19571. +#if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
  19572. +#line 142 "ql_y.y"
  19573. +typedef union YYSTYPE {
  19574. const char *str;
  19575. int num;
  19576. FIELD *field;
  19577. @@ -7,17 +68,14 @@
  19578. TAG *tag;
  19579. NAME_LIST *nlist;
  19580. } YYSTYPE;
  19581. -#define TOK_BREAK 257
  19582. -#define TOK_CASE 258
  19583. -#define TOK_DEF 259
  19584. -#define TOK_DEFAULT 260
  19585. -#define TOK_LENGTH 261
  19586. -#define TOK_MULTI 262
  19587. -#define TOK_RECOVER 263
  19588. -#define TOK_ABORT 264
  19589. -#define TOK_ID 265
  19590. -#define TOK_INCLUDE 266
  19591. -#define TOK_STRING 267
  19592. -
  19593. +/* Line 1285 of yacc.c. */
  19594. +#line 73 "y.tab.h"
  19595. +# define yystype YYSTYPE /* obsolescent; will be withdrawn */
  19596. +# define YYSTYPE_IS_DECLARED 1
  19597. +# define YYSTYPE_IS_TRIVIAL 1
  19598. +#endif
  19599. extern YYSTYPE yylval;
  19600. +
  19601. +
  19602. +
  19603. --- linux-atm-2.4.1.orig/src/qgen/incl.pl
  19604. +++ linux-atm-2.4.1/src/qgen/incl.pl
  19605. @@ -24,7 +24,7 @@
  19606. }
  19607. die "no include file specified" unless defined $last;
  19608. for (@STD,@USR) {
  19609. - next unless defined stat $_."/".$last;
  19610. + next unless -e "$_/$last";
  19611. print $_."/".$last."\n" || die "print STDOUT: $!";
  19612. exit 0;
  19613. }
  19614. --- linux-atm-2.4.1.orig/src/qgen/msg.fmt
  19615. +++ linux-atm-2.4.1/src/qgen/msg.fmt
  19616. @@ -53,7 +53,7 @@
  19617. ATM_TD_FW_PCR_0 { p##fw_pcr_0 <24> } \
  19618. ATM_TD_BW_PCR_0 { p##bw_pcr_0 <24> } \
  19619. ATM_TD_FW_PCR_01 { p##fw_pcr_01 <24> } \
  19620. - ATM_TD_BW_PCR_01 { p##bw_pcr_01 <24> } \
  19621. + ATM_TD_BW_PCR_01 { p##bw_pcr_01 <24> }
  19622. #define TRAFFIC_DESCRIPTOR_VBR(p) \
  19623. ATM_TD_FW_SCR_0 { p##fw_scr_0 <24> } \
  19624. @@ -63,15 +63,15 @@
  19625. ATM_TD_FW_MBS_0 { p##fw_mbs_0 <24> } \
  19626. ATM_TD_BW_MBS_0 { p##bw_mbs_0 <24> } \
  19627. ATM_TD_FW_MBS_01 { p##fw_mbs_01 <24> } \
  19628. - ATM_TD_BW_MBS_01 { p##bw_mbs_01 <24> } \
  19629. + ATM_TD_BW_MBS_01 { p##bw_mbs_01 <24> }
  19630. #define TRAFFIC_DESCRIPTOR_BE(p) \
  19631. - ATM_TD_BEST_EFFORT { p##best_effort <0> } \
  19632. + ATM_TD_BEST_EFFORT { p##best_effort <0> }
  19633. #if defined(UNI40) || defined(DYNAMIC_UNI)
  19634. #define TRAFFIC_DESCRIPTOR_ABR(p) \
  19635. ATM_TD_FW_MCR_01 { p##fw_mcr_01 <24> } \
  19636. - ATM_TD_BW_MCR_01 { p##bw_mcr_01 <24> } \
  19637. + ATM_TD_BW_MCR_01 { p##bw_mcr_01 <24> }
  19638. #else
  19639. #define TRAFFIC_DESCRIPTOR_ABR(p) /* not yet */
  19640. --- linux-atm-2.4.1.orig/src/qgen/output
  19641. +++ linux-atm-2.4.1/src/qgen/output
  19642. @@ -0,0 +1,704 @@
  19643. +# 1 "<stdin>"
  19644. +# 1 "<built-in>"
  19645. +# 1 "<command line>"
  19646. +# 1 "<stdin>"
  19647. +
  19648. +
  19649. +
  19650. +
  19651. +
  19652. +# 1 "../../config.h" 1
  19653. +# 7 "<stdin>" 2
  19654. +
  19655. +
  19656. +
  19657. +
  19658. +include "atmsap.h"
  19659. +include "uni.h"
  19660. +# 26 "<stdin>"
  19661. +def ie_aal = {
  19662. + _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 {
  19663. + aal_type <8> = case {
  19664. + 5 {
  19665. + _id "atm_aalp" <8> = multi {
  19666. + ATM_AALP_FW_MAX_SDU {
  19667. + fw_max_sdu <16>
  19668. + }
  19669. + ATM_AALP_BW_MAX_SDU {
  19670. + bw_max_sdu <16>
  19671. + }
  19672. +
  19673. + ATM_AALP_AAL_MODE {
  19674. + aal_mode <8> # UNI 3.0 only
  19675. + }
  19676. +
  19677. + ATM_AALP_SSCS {
  19678. + sscs_type <8>
  19679. + }
  19680. + }
  19681. + }
  19682. + }
  19683. + }
  19684. +}
  19685. +# 90 "<stdin>"
  19686. +def ie_td = { # UNI 3.0 calls this "User Cell Rate"
  19687. + _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 {
  19688. + _id "atm_td" <8> = multi {
  19689. + 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> }
  19690. +# 104 "<stdin>"
  19691. + ATM_TD_TM_OPT { # @@@ should this also go into the TD macro ?
  19692. +
  19693. + fw_fdisc "atm_fd" <1@8,more> = ATM_FD_NO
  19694. + bw_fdisc "atm_fd" <1@7,more> = ATM_FD_NO
  19695. +
  19696. + bw_tag "atm_tag" <1@2,more> = ATM_TAG_NO
  19697. + fw_tag "atm_tag" <1@1> = ATM_TAG_NO
  19698. + }
  19699. + }
  19700. + }
  19701. +}
  19702. +
  19703. +
  19704. +def ie_bbcap = {
  19705. + _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 {
  19706. + bearer_class "atm_bc" <5@1,more>
  19707. + _ext <1@8> = case {
  19708. + 0 {
  19709. + _ext <1@8,more> = 1
  19710. + trans_cap "atm_tc" <7@1>
  19711. + }
  19712. + default 1 {}
  19713. + }
  19714. + _ext <1@8,more> = 1
  19715. + susc_clip "atm_stc" <2@6,more> = ATM_STC_NO
  19716. + upcc "atm_upcc" <2@1> = ATM_UPCC_P2P
  19717. + }
  19718. +}
  19719. +
  19720. +
  19721. +def ie_bhli = {
  19722. + _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 {
  19723. + _ext <1@8,more> = 1
  19724. + hli_type <7@1> = case {
  19725. +
  19726. +
  19727. + 0 { # ISO
  19728. + iso_hli <-64>
  19729. + }
  19730. + 1 { # User Specific
  19731. + user_hli <-64>
  19732. + }
  19733. +
  19734. + 2 { # High layer profile - UNI 3.0 only
  19735. + hlp <32>
  19736. + }
  19737. +
  19738. + 3 { # Vendor-Specific Application identifier
  19739. + hli_oui <24>
  19740. + app_id <32>
  19741. + }
  19742. +
  19743. + 4 { # Reference to ITU-T SG 1 B-ISDN Teleservice Recommendation
  19744. + tobedefined <8>
  19745. + }
  19746. +
  19747. + }
  19748. + }
  19749. +}
  19750. +
  19751. +
  19752. +def ie_blli = {
  19753. + _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 {
  19754. + _lid <2@6,more> = multi {
  19755. + 1 {
  19756. + _ext <1@8,more> = 1
  19757. + uil1_proto <5@1>
  19758. + }
  19759. + 2 {
  19760. + uil2_proto "atm_l2" <5@1,more> = case {
  19761. + ATM_L2_X25_LL,ATM_L2_X25_ML,ATM_L2_HDLC_ARM,
  19762. + ATM_L2_HDLC_NRM,ATM_L2_HDLC_ABM,ATM_L2_Q922,
  19763. + ATM_L2_ISO7776 { # CCITT encoding
  19764. + _ext <1@8> = case {
  19765. + 0 {
  19766. + l2_mode "atm_imd" <2@6,more> = ATM_IMD_NORMAL
  19767. + q933 <2@1,more> = 0
  19768. + _ext <1@8> = case {
  19769. + 0 {
  19770. + window_size <7@1,more>
  19771. + _ext <1@8> = 1
  19772. + }
  19773. + default 1 {}
  19774. + }
  19775. + }
  19776. + default 1 {}
  19777. + }
  19778. + }
  19779. + ATM_L2_USER { # User specified
  19780. + _ext <1@8> = 0
  19781. + user_l2 <7@1,more>
  19782. + _ext <1@8> = 1
  19783. + }
  19784. + default ATM_L2_ISO1745,ATM_L2_Q291,ATM_L2_LAPB,
  19785. + ATM_L2_ISO8802,ATM_L2_X75 { # No additional data
  19786. + _ext <1@8> = 1
  19787. + }
  19788. + }
  19789. + }
  19790. + 3 {
  19791. + uil3_proto "atm_l3" <5@1,more> = case {
  19792. + ATM_L3_X25,ATM_L3_ISO8208,ATM_L3_X223 { # CCITT coding
  19793. + _ext <1@8> = case {
  19794. + 0 {
  19795. + l3_mode "atm_imd" <2@6,more> = ATM_IMD_NORMAL
  19796. + _ext <1@8> = case {
  19797. + 0 {
  19798. + def_pck_size <4@1,more>
  19799. + _ext <1@8> = case {
  19800. + 0 {
  19801. + _ext <1@8> = 1
  19802. + pck_win_size <7@1>
  19803. + }
  19804. + default 1 {}
  19805. + }
  19806. + }
  19807. + default 1 {}
  19808. + }
  19809. + }
  19810. + default 1 {}
  19811. + }
  19812. + }
  19813. +
  19814. + ATM_L3_H310 { # ITU-T Rec. H.310
  19815. + _ext <1@8> = case {
  19816. + 0 {
  19817. + term_type "atm_tt" <4@1,more> = ATM_TT_RXTX
  19818. + _ext <1@8> = case {
  19819. + 0 {
  19820. + _ext <1@8,more> = 1
  19821. + fw_mpx_cap "atm_mc" <3@4,more> =
  19822. + ATM_MC_NONE
  19823. + bw_mpx_cap "atm_mc" <3@1> = ATM_MC_NONE
  19824. + }
  19825. + default 1 {}
  19826. + }
  19827. + }
  19828. + default 1 {}
  19829. + }
  19830. + }
  19831. +
  19832. + ATM_L3_TR9577 { # ISO/IEC TR9577
  19833. + _ext <1@8> = case {
  19834. + 0 {
  19835. + _ext <1@8,more> = 0
  19836. + ipi_high <7@1> = case {
  19837. + 0x40 { # SNAP hack
  19838. + _ext <1@8,more> = 1
  19839. + _ipi_low <1@7> = case { # ugly
  19840. + 0 {
  19841. + _ext <1@8,more> = 1
  19842. + _snap_id <2@6> = 0
  19843. + oui <24>
  19844. + pid <16>
  19845. + }
  19846. + default 1 {}
  19847. + }
  19848. + }
  19849. + default 0x0 { # ugly
  19850. + _ext <1@8,more> = 1
  19851. + ipi_low <1@7>
  19852. + }
  19853. + }
  19854. + }
  19855. + default 1 {}
  19856. + }
  19857. + }
  19858. + ATM_L3_USER { # User specified
  19859. + _ext <1@8> = 0
  19860. + user_l3 <7@1,more>
  19861. + _ext <1@8> = 1
  19862. + }
  19863. + }
  19864. + }
  19865. + }
  19866. + }
  19867. +}
  19868. +
  19869. +
  19870. +def ie_call_state = {
  19871. + _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 {
  19872. + call_state <6@1>
  19873. + }
  19874. +}
  19875. +
  19876. +
  19877. +def ie_cdpn = {
  19878. + _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 {
  19879. + _ext <1@8,more> = 1
  19880. + _plan "atm_np" <4@1,more> = case {
  19881. + ATM_NP_E164 {
  19882. + _type "atm_ton" <3@5> = ATM_TON_INTRNTNL
  19883. + cdpn_e164 <-96>
  19884. + }
  19885. + ATM_NP_AEA { # ATM Endsystem Address
  19886. + _type "atm_ton" <3@5> = ATM_TON_UNKNOWN
  19887. + cdpn_esa <-160>
  19888. + }
  19889. + }
  19890. + }
  19891. +}
  19892. +
  19893. +
  19894. +def ie_cdps = {
  19895. + _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 {
  19896. + _ext <1@8,more> = 1
  19897. +
  19898. +
  19899. +
  19900. +
  19901. + cdps_type "atm_sat" <3@5,more> = ATM_SAT_AEA
  19902. +
  19903. + _oddeven <1@4> = 0
  19904. + cdps <-160>
  19905. + }
  19906. +}
  19907. +
  19908. +
  19909. +def ie_cgpn = { # @@@ extend language to allow same trick as for cdpn
  19910. + _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 {
  19911. + cgpn_plan "atm_np" <4@1,more>
  19912. + cgpn_type "atm_ton" <3@5,more>
  19913. + _ext <1@8> = case {
  19914. + 0 {
  19915. + _ext <1@8,more> = 1
  19916. + pres_ind "atm_prs" <2@6,more> = ATM_PRS_ALLOW
  19917. + scr_ind "atm_scrn" <2@1> = ATM_SCRN_UP_NS
  19918. + }
  19919. + default 1 {}
  19920. + }
  19921. + cgpn <-160>
  19922. + }
  19923. +}
  19924. +
  19925. +
  19926. +def ie_cgps = {
  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. + _ext <1@8,more> = 1
  19929. +
  19930. +
  19931. +
  19932. +
  19933. + cgps_type "atm_sat" <3@5,more> = ATM_SAT_AEA
  19934. +
  19935. + _oddeven <1@4> = 0
  19936. + cgps <-160>
  19937. + }
  19938. +}
  19939. +
  19940. +
  19941. +def ie_cause = {
  19942. + _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 {
  19943. + _ext <1@8,more> = 1
  19944. + location "atm_loc" <4@1> = ATM_LOC_USER
  19945. + _ext <1@8,more> = 1
  19946. + cause "atm_cv" <7@1> = case {
  19947. + ATM_CV_UNALLOC,ATM_CV_NO_ROUTE_DEST,ATM_CV_QOS_UNAVAIL { # Note 2
  19948. + break
  19949. + _ext <1@8,more> = 1
  19950. + pu "atm_pu" <1@4,more> = ATM_PU_USER
  19951. + na "atm_na" <1@3,more> = ATM_NA_NORMAL
  19952. + cond2 "atm_cond" <2@1> = ATM_COND_UNKNOWN
  19953. + }
  19954. + ATM_CV_CALL_REJ { # Note 3
  19955. + break
  19956. + _ext <1@8,more> = 1
  19957. + cond3 "atm_cond" <2@1,more> = ATM_COND_UNKNOWN
  19958. + reason <5@3> = case {
  19959. + ATM_RSN_USER {
  19960. + user_diag <-216>
  19961. + }
  19962. + ATM_RSN_IE_MISS,ATM_RSN_IE_INSUFF {
  19963. + ie_id3 "atm_ie" <8>
  19964. + }
  19965. + }
  19966. + }
  19967. + ATM_CV_NUM_CHANGED { # Note 4
  19968. + break
  19969. + new_dest <-224> # good luck ...
  19970. + }
  19971. + ATM_CV_REJ_CLIR { # Note 5
  19972. + break
  19973. + invalid <8> # not supported
  19974. + }
  19975. + ATM_CV_ACC_INF_DISC,ATM_CV_INCOMP_DEST,ATM_CV_MAND_IE_MISSING,
  19976. + ATM_CV_UNKNOWN_IE,ATM_CV_INVALID_IE { # Note 6
  19977. + break
  19978. + ie_id6 <-224>
  19979. + }
  19980. +
  19981. + ATM_CV_UCR_UNAVAIL_OLD,ATM_CV_UCR_UNAVAIL_NEW { # Note 8
  19982. +
  19983. +
  19984. +
  19985. +
  19986. +
  19987. +
  19988. +
  19989. + break
  19990. + ucr_id <-224>
  19991. + }
  19992. + ATM_CV_NO_SUCH_CHAN { # Note 9
  19993. + break
  19994. + unav_vpci <16>
  19995. + unav_vci <16>
  19996. + }
  19997. + ATM_CV_UNKNOWN_MSG_TYPE,ATM_CV_INCOMP_MSG { # Note 10
  19998. + break
  19999. + bad_msg_type "atm_msg" <8>
  20000. + }
  20001. + ATM_CV_TIMER_EXP { # Note 11
  20002. + break
  20003. + timer <24>
  20004. + }
  20005. + default 0 {}
  20006. + }
  20007. + }
  20008. +}
  20009. +
  20010. +
  20011. +def ie_conn_id = {
  20012. + _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 {
  20013. + _ext <1@8,more> = 1
  20014. + _vp_ass "atm_vpa" <2@4,more> = ATM_VPA_EXPL
  20015. + _pref_exc "atm_poe" <3@1> = 0
  20016. + vpi <16>
  20017. + vci <16>
  20018. + }
  20019. +}
  20020. +
  20021. +
  20022. +
  20023. +
  20024. +def ie_e2e_tdl = {
  20025. + _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 {
  20026. + _id "atm_tdl" <8> = multi {
  20027. + ATM_TDL_CUM {
  20028. + cum_delay <16>
  20029. + }
  20030. + ATM_TDL_E2EMAX {
  20031. + max_delay <16>
  20032. + }
  20033. + ATM_TDL_NGI {}
  20034. + }
  20035. +
  20036. + }
  20037. +}
  20038. +
  20039. +
  20040. +
  20041. +
  20042. +def ie_qos = {
  20043. +# 467 "<stdin>"
  20044. + _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 {
  20045. +
  20046. + qos_fw <8> = 0
  20047. + qos_bw <8> = 0
  20048. + }
  20049. +}
  20050. +
  20051. +
  20052. +def ie_bbrep = {
  20053. + _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 {
  20054. + _ext <1@8,more> = 1
  20055. + rep_ind <4@1> = 2
  20056. + }
  20057. +}
  20058. +
  20059. +
  20060. +def ie_restart = {
  20061. + _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 {
  20062. + _ext <1@8,more> = 1
  20063. + rst_class <3@1>
  20064. + }
  20065. +}
  20066. +
  20067. +
  20068. +def ie_bbs_comp = {
  20069. + _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 {
  20070. + _ext <1@8,more> = 1
  20071. + bbsc_ind <7@1> = 0x21
  20072. + }
  20073. +}
  20074. +
  20075. +
  20076. +def ie_tns = {
  20077. + _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 {
  20078. + _ext <1@8,more> = 1
  20079. + _net_type "atm_tni" <3@5,more> = ATM_TNI_NNI
  20080. + _carrier_id "atm_nip" <4@1> = ATM_NIP_CARRIER
  20081. + net_id <-32>
  20082. + }
  20083. +}
  20084. +
  20085. +
  20086. +
  20087. +
  20088. +def ie_notify = {
  20089. + _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 {
  20090. + notification <-32> # @@@ how many actually ?
  20091. + }
  20092. +}
  20093. +
  20094. +
  20095. +def ie_oam_td = {
  20096. + _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 {
  20097. + _ext <1@8,more> = 1
  20098. + shaping "atm_shi" <2@6,more> = ATM_SHI_NONE
  20099. + compliance "atm_oci" <1@5,more> = ATM_OCI_OPT
  20100. + fault "atm_unfm" <3@1> = ATM_UNFM_NONE
  20101. + _ext <1@8,more> = 1
  20102. + fwd_ofi "atm_ofi" <3@5,more> = ATM_OFI_0_0
  20103. + bwd_ofi "atm_ofi" <3@1> = ATM_OFI_0_0
  20104. + }
  20105. +}
  20106. +
  20107. +
  20108. +def ie_git = {
  20109. + _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
  20110. + _dummy <1@8> = 0 # bit is "spare", although not indicated in spec
  20111. + id_std_app "atm_irs" <7@1> = case {
  20112. + ATM_IRS_DSMCC,ATM_IRS_H245 {
  20113. + _type "atm_it" <8> = ATM_IT_SESSION
  20114. + _length <8> = length {
  20115. + session_id <-160>
  20116. + }
  20117. + _type "atm_it" <8> = ATM_IT_RESOURCE
  20118. + _length <8> = length {
  20119. + resource_id <-32>
  20120. + }
  20121. + }
  20122. + default 0 {
  20123. + unrecognized_git_identifiers <-224> # 33-5 bytes
  20124. + }
  20125. + }
  20126. + }
  20127. +}
  20128. +
  20129. +
  20130. +def ie_lij_id = {
  20131. + _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
  20132. + _ext <1@8,more> = 1
  20133. + lij_id_type "atm_lit" <7@1> = ATM_LIT_ROOT
  20134. + lij_id <32>
  20135. + }
  20136. +}
  20137. +
  20138. +
  20139. +def ie_lij_prm = {
  20140. + _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
  20141. + _ext <1@8,more> = 1
  20142. + lij_scr_ind "atm_lsi" <2@1>
  20143. + }
  20144. +}
  20145. +
  20146. +
  20147. +def ie_leaf_sn = {
  20148. + _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
  20149. + leaf_sn <32>
  20150. + }
  20151. +}
  20152. +
  20153. +
  20154. +def ie_scope_sel = {
  20155. + _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
  20156. + _ext <1@8,more> = 1
  20157. + scope_type "atm_tcs" <4@1> = ATM_TCS_ORGANIZATIONAL
  20158. + scope_sel "atm_css" <8>
  20159. + }
  20160. +}
  20161. +
  20162. +
  20163. +def ie_alt_td = {
  20164. + _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 {
  20165. + _id "atm_td" <8> = multi {
  20166. + 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> }
  20167. + }
  20168. + }
  20169. +}
  20170. +
  20171. +
  20172. +def ie_min_td = {
  20173. + _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
  20174. + _id "atm_td" <8> = multi {
  20175. + 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> }
  20176. + ATM_TD_FW_MCR_01 { minfw_mcr_01 <24> } ATM_TD_BW_MCR_01 { minbw_mcr_01 <24> }
  20177. + }
  20178. + }
  20179. +}
  20180. +
  20181. +
  20182. +def ie_eqos = {
  20183. + _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 {
  20184. + eqos_origin "atm_eqo" <8>
  20185. + _id "atm_eqp" <8> = multi {
  20186. + ATM_EQP_ACC_FW_CDV {
  20187. + acc_fw_cdv <24>
  20188. + }
  20189. + ATM_EQP_ACC_BW_CDV {
  20190. + acc_bw_cdv <24>
  20191. + }
  20192. + ATM_EQP_CUM_FW_CDV {
  20193. + cum_fw_cdv <24>
  20194. + }
  20195. + ATM_EQP_CUM_BW_CDV {
  20196. + cum_bw_cdv <24>
  20197. + }
  20198. + ATM_EQP_ACC_FW_CLR {
  20199. + acc_fw_clr <8>
  20200. + }
  20201. + ATM_EQP_ACC_BW_CLR {
  20202. + acc_bw_clr <8>
  20203. + }
  20204. + }
  20205. + }
  20206. +}
  20207. +
  20208. +
  20209. +def ie_abr_add_prm = {
  20210. + _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 {
  20211. + _id "atm_aap" <8> = multi {
  20212. + ATM_AAP_FW_REC {
  20213. + abr_fw_add_rec <32>
  20214. + }
  20215. + ATM_AAP_BW_REC {
  20216. + abr_bw_add_rec <32>
  20217. + }
  20218. + }
  20219. + }
  20220. +}
  20221. +
  20222. +
  20223. +def ie_abr_set_prm = {
  20224. + _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
  20225. + _id "atm_asp" <8> = multi {
  20226. + ATM_ASP_FW_ICR {
  20227. + abr_fw_icr <24>
  20228. + }
  20229. + ATM_ASP_BW_ICR {
  20230. + abr_bw_icr <24>
  20231. + }
  20232. + ATM_ASP_FW_TBE {
  20233. + abr_fw_tbe <24>
  20234. + }
  20235. + ATM_ASP_BW_TBE {
  20236. + abr_bw_tbe <24>
  20237. + }
  20238. + ATM_ASP_CRF_RTT {
  20239. + atm_crf_rtt <24>
  20240. + }
  20241. + ATM_ASP_FW_RIF {
  20242. + atm_fw_rif <8>
  20243. + }
  20244. + ATM_ASP_BW_RIF {
  20245. + atm_bw_rif <8>
  20246. + }
  20247. + ATM_ASP_FW_RDF {
  20248. + atm_fw_rdf <8>
  20249. + }
  20250. + ATM_ASP_BW_RDF {
  20251. + atm_bw_rdf <8>
  20252. + }
  20253. + }
  20254. + }
  20255. +}
  20256. +
  20257. +
  20258. +
  20259. +
  20260. +def ie_ep_ref = {
  20261. + _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 {
  20262. + _ep_type <8> = 0
  20263. + ep_ref <16>
  20264. + }
  20265. +}
  20266. +
  20267. +
  20268. +def ie_ep_state = {
  20269. + _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 {
  20270. + ep_state <6@1>
  20271. + }
  20272. +}
  20273. +
  20274. +
  20275. +
  20276. +
  20277. +def ie_bbrt = {
  20278. + _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 {
  20279. + type_of_report "atm_tor" <8>
  20280. + }
  20281. +}
  20282. +
  20283. +
  20284. +
  20285. +
  20286. +{
  20287. + _pdsc "q2931_proto" <8> = Q2931_PROTO_DSC
  20288. + _cr_len <8> = 3
  20289. + call_ref <24>
  20290. + msg_type "atm_msg" <8>
  20291. + _ext <1@8,more> = 1
  20292. + _flag "atm_flag" <1@5,more> = ATM_FLAG_NO
  20293. + _action_ind "atm_ai_msg" <2@1> = 0
  20294. + msg_len <16> = length {
  20295. + _ie_id "atm_ie" <8> = multi {
  20296. + aal: ATM_IE_AAL ie_aal
  20297. + td: ATM_IE_TD ie_td
  20298. + bbcap: ATM_IE_BBCAP ie_bbcap
  20299. + bhli: ATM_IE_BHLI ie_bhli
  20300. + blli1: ATM_IE_BLLI ie_blli
  20301. + blli2: ATM_IE_BLLI ie_blli
  20302. + blli3: ATM_IE_BLLI ie_blli
  20303. + call_state: ATM_IE_CALL_STATE ie_call_state
  20304. + cdpn: ATM_IE_CDPN ie_cdpn
  20305. + cdps: ATM_IE_CDPS ie_cdps
  20306. + cgpn: ATM_IE_CGPN ie_cgpn
  20307. + cgps: ATM_IE_CGPS ie_cgps
  20308. + cause: ATM_IE_CAUSE ie_cause
  20309. + cause2: ATM_IE_CAUSE ie_cause
  20310. + conn_id: ATM_IE_CONN_ID ie_conn_id
  20311. +
  20312. + e2e_tdl: ATM_IE_E2E_TDL ie_e2e_tdl
  20313. +
  20314. + qos: ATM_IE_QOS ie_qos
  20315. + bbrep: ATM_IE_BBREP ie_bbrep
  20316. + restart: ATM_IE_RESTART ie_restart
  20317. + bbs_comp: ATM_IE_BBS_COMP ie_bbs_comp
  20318. + tns: ATM_IE_TNS ie_tns
  20319. +
  20320. + notify: ATM_IE_NOTIFY ie_notify
  20321. + oam_td: ATM_IE_OAM_TD ie_oam_td
  20322. + git: ATM_IE_GIT ie_git
  20323. + git2: ATM_IE_GIT ie_git
  20324. + git3: ATM_IE_GIT ie_git
  20325. + lij_id: ATM_IE_LIJ_ID ie_lij_id
  20326. + lij_prm: ATM_IE_LIJ_PRM ie_lij_prm
  20327. + leaf_sn: ATM_IE_LEAF_SN ie_leaf_sn
  20328. + scope_sel: ATM_IE_SCOPE_SEL ie_scope_sel
  20329. + alt_td: ATM_IE_ALT_TD ie_alt_td
  20330. + min_td: ATM_IE_MIN_TD ie_min_td
  20331. + eqos: ATM_IE_EQOS ie_eqos
  20332. + abr_add_prm:ATM_IE_ABR_ADD_PRM ie_abr_add_prm
  20333. + abr_set_prm:ATM_IE_ABR_SET_PRM ie_abr_set_prm
  20334. +
  20335. + ep_ref: ATM_IE_EPR ie_ep_ref
  20336. + ep_state: ATM_IE_EP_STATE ie_ep_state
  20337. +
  20338. + bbrt: ATM_IE_BBRT ie_bbrt
  20339. +
  20340. + default 0 {
  20341. + _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
  20342. + abort RECOV_ASE_UNKNOWN_IE
  20343. + }
  20344. + }
  20345. + }
  20346. +}
  20347. --- linux-atm-2.4.1.orig/src/saal/Makefile.in
  20348. +++ linux-atm-2.4.1/src/saal/Makefile.in
  20349. @@ -1,4 +1,4 @@
  20350. -# Makefile.in generated automatically by automake 1.4-p5 from Makefile.am
  20351. +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
  20352. # Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
  20353. # This Makefile.in is free software; the Free Software Foundation
  20354. @@ -87,8 +87,7 @@
  20355. noinst_LIBRARIES = libsaal.a
  20356. -libsaal_a_SOURCES = pdu.h queue.h saal.h sscf.h sscop.h pdu.c queue.c saal.c \
  20357. - sscf.c sscop.c
  20358. +libsaal_a_SOURCES = pdu.h queue.h saal.h sscf.h sscop.h pdu.c queue.c saal.c sscf.c sscop.c
  20359. mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  20360. CONFIG_HEADER = ../../config.h
  20361. @@ -114,8 +113,10 @@
  20362. DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
  20363. -TAR = gtar
  20364. +TAR = tar
  20365. GZIP_ENV = --best
  20366. +DEP_FILES = .deps/pdu.P .deps/queue.P .deps/saal.P .deps/sscf.P \
  20367. +.deps/sscop.P
  20368. SOURCES = $(libsaal_a_SOURCES)
  20369. OBJECTS = $(libsaal_a_OBJECTS)
  20370. @@ -123,9 +124,9 @@
  20371. .SUFFIXES:
  20372. .SUFFIXES: .S .c .lo .o .obj .s
  20373. $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
  20374. - cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps src/saal/Makefile
  20375. + cd $(top_srcdir) && $(AUTOMAKE) --gnu src/saal/Makefile
  20376. -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  20377. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
  20378. cd $(top_builddir) \
  20379. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
  20380. @@ -139,9 +140,6 @@
  20381. maintainer-clean-noinstLIBRARIES:
  20382. -.c.o:
  20383. - $(COMPILE) -c $<
  20384. -
  20385. # FIXME: We should only use cygpath when building on Windows,
  20386. # and only if it is available.
  20387. .c.obj:
  20388. @@ -164,9 +162,6 @@
  20389. maintainer-clean-compile:
  20390. -.c.lo:
  20391. - $(LIBTOOL) --mode=compile $(COMPILE) -c $<
  20392. -
  20393. .s.lo:
  20394. $(LIBTOOL) --mode=compile $(COMPILE) -c $<
  20395. @@ -206,7 +201,7 @@
  20396. awk ' { files[$$0] = 1; } \
  20397. END { for (i in files) print i; }'`; \
  20398. test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
  20399. - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
  20400. + || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags $$unique $(LISP))
  20401. mostlyclean-tags:
  20402. @@ -222,6 +217,11 @@
  20403. subdir = src/saal
  20404. distdir: $(DISTFILES)
  20405. + here=`cd $(top_builddir) && pwd`; \
  20406. + top_distdir=`cd $(top_distdir) && pwd`; \
  20407. + distdir=`cd $(distdir) && pwd`; \
  20408. + cd $(top_srcdir) \
  20409. + && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu src/saal/Makefile
  20410. @for file in $(DISTFILES); do \
  20411. d=$(srcdir); \
  20412. if test -d $$d/$$file; then \
  20413. @@ -232,20 +232,38 @@
  20414. || cp -p $$d/$$file $(distdir)/$$file || :; \
  20415. fi; \
  20416. done
  20417. -pdu.o: pdu.c ../../config.h ../../src/include/stdint.h pdu.h \
  20418. - ../../src/include/atmd.h ../../src/include/atm.h
  20419. -queue.o: queue.c ../../config.h ../../src/include/atmd.h \
  20420. - ../../src/include/stdint.h ../../src/include/atm.h queue.h
  20421. -saal.o: saal.c ../../config.h sscop.h ../../src/include/stdint.h \
  20422. - ../../src/include/atmd.h ../../src/include/atm.h queue.h saal.h \
  20423. - sscf.h
  20424. -sscf.o: sscf.c ../../config.h ../../src/include/atmd.h \
  20425. - ../../src/include/stdint.h ../../src/include/atm.h sscop.h \
  20426. - queue.h sscf.h
  20427. -sscop.o: sscop.c ../../config.h ../../src/include/stdint.h \
  20428. - ../../src/include/atmd.h ../../src/include/atm.h sscop.h \
  20429. - queue.h pdu.h
  20430. +DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
  20431. +
  20432. +-include $(DEP_FILES)
  20433. +
  20434. +mostlyclean-depend:
  20435. +
  20436. +clean-depend:
  20437. +
  20438. +distclean-depend:
  20439. + -rm -rf .deps
  20440. +
  20441. +maintainer-clean-depend:
  20442. +
  20443. +%.o: %.c
  20444. + @echo '$(COMPILE) -c $<'; \
  20445. + $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
  20446. + @-cp .deps/$(*F).pp .deps/$(*F).P; \
  20447. + tr ' ' '\012' < .deps/$(*F).pp \
  20448. + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
  20449. + >> .deps/$(*F).P; \
  20450. + rm .deps/$(*F).pp
  20451. +
  20452. +%.lo: %.c
  20453. + @echo '$(LTCOMPILE) -c $<'; \
  20454. + $(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
  20455. + @-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \
  20456. + < .deps/$(*F).pp > .deps/$(*F).P; \
  20457. + tr ' ' '\012' < .deps/$(*F).pp \
  20458. + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
  20459. + >> .deps/$(*F).P; \
  20460. + rm -f .deps/$(*F).pp
  20461. info-am:
  20462. info: info-am
  20463. dvi-am:
  20464. @@ -282,27 +300,27 @@
  20465. maintainer-clean-generic:
  20466. mostlyclean-am: mostlyclean-noinstLIBRARIES mostlyclean-compile \
  20467. - mostlyclean-libtool mostlyclean-tags \
  20468. + mostlyclean-libtool mostlyclean-tags mostlyclean-depend \
  20469. mostlyclean-generic
  20470. mostlyclean: mostlyclean-am
  20471. clean-am: clean-noinstLIBRARIES clean-compile clean-libtool clean-tags \
  20472. - clean-generic mostlyclean-am
  20473. + clean-depend clean-generic mostlyclean-am
  20474. clean: clean-am
  20475. distclean-am: distclean-noinstLIBRARIES distclean-compile \
  20476. - distclean-libtool distclean-tags distclean-generic \
  20477. - clean-am
  20478. + distclean-libtool distclean-tags distclean-depend \
  20479. + distclean-generic clean-am
  20480. -rm -f libtool
  20481. distclean: distclean-am
  20482. maintainer-clean-am: maintainer-clean-noinstLIBRARIES \
  20483. maintainer-clean-compile maintainer-clean-libtool \
  20484. - maintainer-clean-tags maintainer-clean-generic \
  20485. - distclean-am
  20486. + maintainer-clean-tags maintainer-clean-depend \
  20487. + maintainer-clean-generic distclean-am
  20488. @echo "This command is intended for maintainers to use;"
  20489. @echo "it deletes files that may require special tools to rebuild."
  20490. @@ -313,12 +331,14 @@
  20491. mostlyclean-compile distclean-compile clean-compile \
  20492. maintainer-clean-compile mostlyclean-libtool distclean-libtool \
  20493. clean-libtool maintainer-clean-libtool tags mostlyclean-tags \
  20494. -distclean-tags clean-tags maintainer-clean-tags distdir info-am info \
  20495. -dvi-am dvi check check-am installcheck-am installcheck install-exec-am \
  20496. -install-exec install-data-am install-data install-am install \
  20497. -uninstall-am uninstall all-redirect all-am all installdirs \
  20498. -mostlyclean-generic distclean-generic clean-generic \
  20499. -maintainer-clean-generic clean mostlyclean distclean maintainer-clean
  20500. +distclean-tags clean-tags maintainer-clean-tags distdir \
  20501. +mostlyclean-depend distclean-depend clean-depend \
  20502. +maintainer-clean-depend info-am info dvi-am dvi check check-am \
  20503. +installcheck-am installcheck install-exec-am install-exec \
  20504. +install-data-am install-data install-am install uninstall-am uninstall \
  20505. +all-redirect all-am all installdirs mostlyclean-generic \
  20506. +distclean-generic clean-generic maintainer-clean-generic clean \
  20507. +mostlyclean distclean maintainer-clean
  20508. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  20509. --- linux-atm-2.4.1.orig/src/sigd/Makefile.in
  20510. +++ linux-atm-2.4.1/src/sigd/Makefile.in
  20511. @@ -1,4 +1,4 @@
  20512. -# Makefile.in generated automatically by automake 1.4-p5 from Makefile.am
  20513. +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
  20514. # Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
  20515. # This Makefile.in is free software; the Free Software Foundation
  20516. @@ -88,14 +88,9 @@
  20517. INCLUDES = -I$(top_builddir)/src/qgen -I$(top_builddir)/src/saal -I.
  20518. sbin_PROGRAMS = atmsigd
  20519. -atmsigd_SOURCES = atmsigd.c io.c io.h kernel.c proto.c proto.h uni.c \
  20520. - sap.c sap.h timeout.c timeout.h trace.c trace.h \
  20521. - policy.c policy.h cfg_y.y cfg_l.l
  20522. -
  20523. -atmsigd_XTRAS = mess.o $(top_builddir)/src/qgen/q.out.o \
  20524. - $(top_builddir)/src/qgen/qd.dump.o \
  20525. - $(top_builddir)/src/lib/libatm.la \
  20526. - $(top_builddir)/src/saal/libsaal.a
  20527. +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
  20528. +
  20529. +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
  20530. atmsigd_LDADD = $(atmsigd_XTRAS) -lfl
  20531. atmsigd_DEPENDENCIES = mess.c $(atmsigd_XTRAS)
  20532. @@ -140,8 +135,11 @@
  20533. DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
  20534. -TAR = gtar
  20535. +TAR = tar
  20536. GZIP_ENV = --best
  20537. +DEP_FILES = .deps/atmsigd.P .deps/cfg_l.P .deps/cfg_y.P .deps/io.P \
  20538. +.deps/kernel.P .deps/policy.P .deps/proto.P .deps/sap.P .deps/timeout.P \
  20539. +.deps/trace.P .deps/uni.P
  20540. SOURCES = $(atmsigd_SOURCES)
  20541. OBJECTS = $(atmsigd_OBJECTS)
  20542. @@ -149,9 +147,9 @@
  20543. .SUFFIXES:
  20544. .SUFFIXES: .S .c .l .lo .o .obj .s .y
  20545. $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
  20546. - cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps src/sigd/Makefile
  20547. + cd $(top_srcdir) && $(AUTOMAKE) --gnu src/sigd/Makefile
  20548. -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  20549. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
  20550. cd $(top_builddir) \
  20551. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
  20552. @@ -181,9 +179,6 @@
  20553. rm -f $(DESTDIR)$(sbindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
  20554. done
  20555. -.c.o:
  20556. - $(COMPILE) -c $<
  20557. -
  20558. # FIXME: We should only use cygpath when building on Windows,
  20559. # and only if it is available.
  20560. .c.obj:
  20561. @@ -206,9 +201,6 @@
  20562. maintainer-clean-compile:
  20563. -.c.lo:
  20564. - $(LIBTOOL) --mode=compile $(COMPILE) -c $<
  20565. -
  20566. .s.lo:
  20567. $(LIBTOOL) --mode=compile $(COMPILE) -c $<
  20568. @@ -347,7 +339,7 @@
  20569. awk ' { files[$$0] = 1; } \
  20570. END { for (i in files) print i; }'`; \
  20571. test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
  20572. - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
  20573. + || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags $$unique $(LISP))
  20574. mostlyclean-tags:
  20575. @@ -363,6 +355,11 @@
  20576. subdir = src/sigd
  20577. distdir: $(DISTFILES)
  20578. + here=`cd $(top_builddir) && pwd`; \
  20579. + top_distdir=`cd $(top_distdir) && pwd`; \
  20580. + distdir=`cd $(distdir) && pwd`; \
  20581. + cd $(top_srcdir) \
  20582. + && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu src/sigd/Makefile
  20583. @for file in $(DISTFILES); do \
  20584. d=$(srcdir); \
  20585. if test -d $$d/$$file; then \
  20586. @@ -373,69 +370,38 @@
  20587. || cp -p $$d/$$file $(distdir)/$$file || :; \
  20588. fi; \
  20589. done
  20590. -atmsigd.o: atmsigd.c ../../config.h ../../src/include/atm.h \
  20591. - ../../src/include/stdint.h ../../src/include/atmd.h \
  20592. - ../../src/qgen/qlib.h io.h proto.h ../../src/include/atmsap.h \
  20593. - ../../src/saal/saal.h ../../src/saal/sscf.h \
  20594. - ../../src/saal/sscop.h ../../src/saal/queue.h trace.h
  20595. -cfg_l.o: cfg_l.c ../../config.h ../../src/include/atm.h \
  20596. - ../../src/include/stdint.h cfg_y.h
  20597. -cfg_y.o: cfg_y.c ../../config.h ../../src/include/atm.h \
  20598. - ../../src/include/stdint.h ../../src/include/atmd.h proto.h \
  20599. - ../../src/include/atmsap.h ../../src/saal/saal.h \
  20600. - ../../src/saal/sscf.h ../../src/saal/sscop.h \
  20601. - ../../src/saal/queue.h io.h trace.h policy.h
  20602. -io.o: io.c ../../config.h ../../src/include/atm.h \
  20603. - ../../src/include/stdint.h ../../src/include/atmd.h \
  20604. - ../../src/qgen/uni.h ../../src/saal/pdu.h proto.h \
  20605. - ../../src/include/atmsap.h ../../src/saal/saal.h \
  20606. - ../../src/saal/sscf.h ../../src/saal/sscop.h \
  20607. - ../../src/saal/queue.h io.h trace.h
  20608. -kernel.o: kernel.c ../../config.h ../../src/include/atm.h \
  20609. - ../../src/include/stdint.h ../../src/include/atmd.h \
  20610. - ../../src/qgen/uni.h ../../src/qgen/qlib.h \
  20611. - ../../src/qgen/q.out.h proto.h ../../src/include/atmsap.h \
  20612. - ../../src/saal/saal.h ../../src/saal/sscf.h \
  20613. - ../../src/saal/sscop.h ../../src/saal/queue.h sap.h io.h \
  20614. - policy.h timeout.h
  20615. -mess.o: mess.c ../../config.h
  20616. -policy.o: policy.c ../../config.h ../../src/include/atm.h \
  20617. - ../../src/include/stdint.h ../../src/include/atmd.h proto.h \
  20618. - ../../src/include/atmsap.h ../../src/saal/saal.h \
  20619. - ../../src/saal/sscf.h ../../src/saal/sscop.h \
  20620. - ../../src/saal/queue.h policy.h
  20621. -proto.o: proto.c ../../config.h ../../src/include/atmd.h \
  20622. - ../../src/include/stdint.h ../../src/include/atm.h \
  20623. - ../../src/qgen/uni.h ../../src/qgen/qlib.h \
  20624. - ../../src/qgen/q.out.h io.h proto.h ../../src/include/atmsap.h \
  20625. - ../../src/saal/saal.h ../../src/saal/sscf.h \
  20626. - ../../src/saal/sscop.h ../../src/saal/queue.h sap.h
  20627. -sap.o: sap.c ../../config.h ../../src/include/atm.h \
  20628. - ../../src/include/stdint.h ../../src/include/atmd.h \
  20629. - ../../src/qgen/uni.h ../../src/qgen/qlib.h \
  20630. - ../../src/qgen/q.out.h ../../src/qgen/common.h proto.h \
  20631. - ../../src/include/atmsap.h ../../src/saal/saal.h \
  20632. - ../../src/saal/sscf.h ../../src/saal/sscop.h \
  20633. - ../../src/saal/queue.h sap.h
  20634. -timeout.o: timeout.c ../../config.h ../../src/include/atm.h \
  20635. - ../../src/include/stdint.h ../../src/include/atmd.h \
  20636. - ../../src/qgen/uni.h proto.h ../../src/include/atmsap.h \
  20637. - ../../src/saal/saal.h ../../src/saal/sscf.h \
  20638. - ../../src/saal/sscop.h ../../src/saal/queue.h timeout.h
  20639. -trace.o: trace.c ../../config.h ../../src/include/atm.h \
  20640. - ../../src/include/stdint.h ../../src/include/atmd.h \
  20641. - ../../src/include/atmsap.h trace.h proto.h \
  20642. - ../../src/saal/saal.h ../../src/saal/sscf.h \
  20643. - ../../src/saal/sscop.h ../../src/saal/queue.h \
  20644. - ../../src/qgen/qlib.h
  20645. -uni.o: uni.c ../../config.h ../../src/include/atm.h \
  20646. - ../../src/include/stdint.h ../../src/include/atmd.h \
  20647. - ../../src/qgen/uni.h ../../src/qgen/qlib.h \
  20648. - ../../src/qgen/q.out.h proto.h ../../src/include/atmsap.h \
  20649. - ../../src/saal/saal.h ../../src/saal/sscf.h \
  20650. - ../../src/saal/sscop.h ../../src/saal/queue.h sap.h io.h \
  20651. - policy.h timeout.h trace.h
  20652. +DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
  20653. +
  20654. +-include $(DEP_FILES)
  20655. +
  20656. +mostlyclean-depend:
  20657. +
  20658. +clean-depend:
  20659. +
  20660. +distclean-depend:
  20661. + -rm -rf .deps
  20662. +
  20663. +maintainer-clean-depend:
  20664. +
  20665. +%.o: %.c
  20666. + @echo '$(COMPILE) -c $<'; \
  20667. + $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
  20668. + @-cp .deps/$(*F).pp .deps/$(*F).P; \
  20669. + tr ' ' '\012' < .deps/$(*F).pp \
  20670. + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
  20671. + >> .deps/$(*F).P; \
  20672. + rm .deps/$(*F).pp
  20673. +
  20674. +%.lo: %.c
  20675. + @echo '$(LTCOMPILE) -c $<'; \
  20676. + $(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
  20677. + @-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \
  20678. + < .deps/$(*F).pp > .deps/$(*F).P; \
  20679. + tr ' ' '\012' < .deps/$(*F).pp \
  20680. + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
  20681. + >> .deps/$(*F).P; \
  20682. + rm -f .deps/$(*F).pp
  20683. info-am:
  20684. info: info-am
  20685. dvi-am:
  20686. @@ -474,29 +440,29 @@
  20687. -rm -f config.cache config.log stamp-h stamp-h[0-9]*
  20688. maintainer-clean-generic:
  20689. - -test -z "cfg_llcfg_yhcfg_yc" || rm -f cfg_ll cfg_yh cfg_yc
  20690. + -test -z "cfg_lccfg_yhcfg_yc" || rm -f cfg_lc cfg_yh cfg_yc
  20691. mostlyclean-am: mostlyclean-sbinPROGRAMS mostlyclean-compile \
  20692. - mostlyclean-libtool mostlyclean-tags \
  20693. + mostlyclean-libtool mostlyclean-tags mostlyclean-depend \
  20694. mostlyclean-generic
  20695. mostlyclean: mostlyclean-am
  20696. clean-am: clean-sbinPROGRAMS clean-compile clean-libtool clean-tags \
  20697. - clean-generic mostlyclean-am
  20698. + clean-depend clean-generic mostlyclean-am
  20699. clean: clean-am
  20700. distclean-am: distclean-sbinPROGRAMS distclean-compile \
  20701. - distclean-libtool distclean-tags distclean-generic \
  20702. - clean-am
  20703. + distclean-libtool distclean-tags distclean-depend \
  20704. + distclean-generic clean-am
  20705. -rm -f libtool
  20706. distclean: distclean-am
  20707. maintainer-clean-am: maintainer-clean-sbinPROGRAMS \
  20708. maintainer-clean-compile maintainer-clean-libtool \
  20709. - maintainer-clean-tags maintainer-clean-generic \
  20710. - distclean-am
  20711. + maintainer-clean-tags maintainer-clean-depend \
  20712. + maintainer-clean-generic distclean-am
  20713. @echo "This command is intended for maintainers to use;"
  20714. @echo "it deletes files that may require special tools to rebuild."
  20715. @@ -509,12 +475,14 @@
  20716. distclean-libtool clean-libtool maintainer-clean-libtool install-man4 \
  20717. uninstall-man4 install-man8 uninstall-man8 install-man uninstall-man \
  20718. uninstall-sysconfDATA install-sysconfDATA tags mostlyclean-tags \
  20719. -distclean-tags clean-tags maintainer-clean-tags distdir info-am info \
  20720. -dvi-am dvi check check-am installcheck-am installcheck install-exec-am \
  20721. -install-exec install-data-am install-data install-am install \
  20722. -uninstall-am uninstall all-redirect all-am all installdirs \
  20723. -mostlyclean-generic distclean-generic clean-generic \
  20724. -maintainer-clean-generic clean mostlyclean distclean maintainer-clean
  20725. +distclean-tags clean-tags maintainer-clean-tags distdir \
  20726. +mostlyclean-depend distclean-depend clean-depend \
  20727. +maintainer-clean-depend info-am info dvi-am dvi check check-am \
  20728. +installcheck-am installcheck install-exec-am install-exec \
  20729. +install-data-am install-data install-am install uninstall-am uninstall \
  20730. +all-redirect all-am all installdirs mostlyclean-generic \
  20731. +distclean-generic clean-generic maintainer-clean-generic clean \
  20732. +mostlyclean distclean maintainer-clean
  20733. mess.c: $(top_builddir)/src/qgen/uni.h mkmess.pl
  20734. --- linux-atm-2.4.1.orig/src/sigd/cfg_y.c
  20735. +++ linux-atm-2.4.1/src/sigd/cfg_y.c
  20736. @@ -1,46 +1,137 @@
  20737. +/* A Bison parser, made by GNU Bison 1.875d. */
  20738. -/* A Bison parser, made from cfg_y.y
  20739. - by GNU Bison version 1.28 */
  20740. +/* Skeleton parser for Yacc-like parsing with Bison,
  20741. + Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
  20742. -#define YYBISON 1 /* Identify Bison output. */
  20743. + This program is free software; you can redistribute it and/or modify
  20744. + it under the terms of the GNU General Public License as published by
  20745. + the Free Software Foundation; either version 2, or (at your option)
  20746. + any later version.
  20747. -#define TOK_LEVEL 257
  20748. -#define TOK_DEBUG 258
  20749. -#define TOK_INFO 259
  20750. -#define TOK_WARN 260
  20751. -#define TOK_ERROR 261
  20752. -#define TOK_FATAL 262
  20753. -#define TOK_SIG 263
  20754. -#define TOK_UNI30 264
  20755. -#define TOK_UNI31 265
  20756. -#define TOK_UNI40 266
  20757. -#define TOK_Q2963_1 267
  20758. -#define TOK_SAAL 268
  20759. -#define TOK_VC 269
  20760. -#define TOK_IO 270
  20761. -#define TOK_MODE 271
  20762. -#define TOK_USER 272
  20763. -#define TOK_NET 273
  20764. -#define TOK_SWITCH 274
  20765. -#define TOK_VPCI 275
  20766. -#define TOK_ITF 276
  20767. -#define TOK_PCR 277
  20768. -#define TOK_TRACE 278
  20769. -#define TOK_POLICY 279
  20770. -#define TOK_ALLOW 280
  20771. -#define TOK_REJECT 281
  20772. -#define TOK_ENTITY 282
  20773. -#define TOK_DEFAULT 283
  20774. -#define TOK_NUMBER 284
  20775. -#define TOK_MAX_RATE 285
  20776. -#define TOK_DUMP_DIR 286
  20777. -#define TOK_LOGFILE 287
  20778. -#define TOK_QOS 288
  20779. -#define TOK_FROM 289
  20780. -#define TOK_TO 290
  20781. -#define TOK_ROUTE 291
  20782. -#define TOK_PVC 292
  20783. + This program is distributed in the hope that it will be useful,
  20784. + but WITHOUT ANY WARRANTY; without even the implied warranty of
  20785. + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20786. + GNU General Public License for more details.
  20787. + You should have received a copy of the GNU General Public License
  20788. + along with this program; if not, write to the Free Software
  20789. + Foundation, Inc., 59 Temple Place - Suite 330,
  20790. + Boston, MA 02111-1307, USA. */
  20791. +
  20792. +/* As a special exception, when this file is copied by Bison into a
  20793. + Bison output file, you may use that output file without restriction.
  20794. + This special exception was added by the Free Software Foundation
  20795. + in version 1.24 of Bison. */
  20796. +
  20797. +/* Written by Richard Stallman by simplifying the original so called
  20798. + ``semantic'' parser. */
  20799. +
  20800. +/* All symbols defined below should begin with yy or YY, to avoid
  20801. + infringing on user name space. This should be done even for local
  20802. + variables, as they might otherwise be expanded by user macros.
  20803. + There are some unavoidable exceptions within include files to
  20804. + define necessary library symbols; they are noted "INFRINGES ON
  20805. + USER NAME SPACE" below. */
  20806. +
  20807. +/* Identify Bison output. */
  20808. +#define YYBISON 1
  20809. +
  20810. +/* Skeleton name. */
  20811. +#define YYSKELETON_NAME "yacc.c"
  20812. +
  20813. +/* Pure parsers. */
  20814. +#define YYPURE 0
  20815. +
  20816. +/* Using locations. */
  20817. +#define YYLSP_NEEDED 0
  20818. +
  20819. +
  20820. +
  20821. +/* Tokens. */
  20822. +#ifndef YYTOKENTYPE
  20823. +# define YYTOKENTYPE
  20824. + /* Put the tokens into the symbol table, so that GDB and other debuggers
  20825. + know about them. */
  20826. + enum yytokentype {
  20827. + TOK_LEVEL = 258,
  20828. + TOK_DEBUG = 259,
  20829. + TOK_INFO = 260,
  20830. + TOK_WARN = 261,
  20831. + TOK_ERROR = 262,
  20832. + TOK_FATAL = 263,
  20833. + TOK_SIG = 264,
  20834. + TOK_UNI30 = 265,
  20835. + TOK_UNI31 = 266,
  20836. + TOK_UNI40 = 267,
  20837. + TOK_Q2963_1 = 268,
  20838. + TOK_SAAL = 269,
  20839. + TOK_VC = 270,
  20840. + TOK_IO = 271,
  20841. + TOK_MODE = 272,
  20842. + TOK_USER = 273,
  20843. + TOK_NET = 274,
  20844. + TOK_SWITCH = 275,
  20845. + TOK_VPCI = 276,
  20846. + TOK_ITF = 277,
  20847. + TOK_PCR = 278,
  20848. + TOK_TRACE = 279,
  20849. + TOK_POLICY = 280,
  20850. + TOK_ALLOW = 281,
  20851. + TOK_REJECT = 282,
  20852. + TOK_ENTITY = 283,
  20853. + TOK_DEFAULT = 284,
  20854. + TOK_NUMBER = 285,
  20855. + TOK_MAX_RATE = 286,
  20856. + TOK_DUMP_DIR = 287,
  20857. + TOK_LOGFILE = 288,
  20858. + TOK_QOS = 289,
  20859. + TOK_FROM = 290,
  20860. + TOK_TO = 291,
  20861. + TOK_ROUTE = 292,
  20862. + TOK_PVC = 293
  20863. + };
  20864. +#endif
  20865. +#define TOK_LEVEL 258
  20866. +#define TOK_DEBUG 259
  20867. +#define TOK_INFO 260
  20868. +#define TOK_WARN 261
  20869. +#define TOK_ERROR 262
  20870. +#define TOK_FATAL 263
  20871. +#define TOK_SIG 264
  20872. +#define TOK_UNI30 265
  20873. +#define TOK_UNI31 266
  20874. +#define TOK_UNI40 267
  20875. +#define TOK_Q2963_1 268
  20876. +#define TOK_SAAL 269
  20877. +#define TOK_VC 270
  20878. +#define TOK_IO 271
  20879. +#define TOK_MODE 272
  20880. +#define TOK_USER 273
  20881. +#define TOK_NET 274
  20882. +#define TOK_SWITCH 275
  20883. +#define TOK_VPCI 276
  20884. +#define TOK_ITF 277
  20885. +#define TOK_PCR 278
  20886. +#define TOK_TRACE 279
  20887. +#define TOK_POLICY 280
  20888. +#define TOK_ALLOW 281
  20889. +#define TOK_REJECT 282
  20890. +#define TOK_ENTITY 283
  20891. +#define TOK_DEFAULT 284
  20892. +#define TOK_NUMBER 285
  20893. +#define TOK_MAX_RATE 286
  20894. +#define TOK_DUMP_DIR 287
  20895. +#define TOK_LOGFILE 288
  20896. +#define TOK_QOS 289
  20897. +#define TOK_FROM 290
  20898. +#define TOK_TO 291
  20899. +#define TOK_ROUTE 292
  20900. +#define TOK_PVC 293
  20901. +
  20902. +
  20903. +
  20904. +
  20905. +/* Copy the first part of user declarations. */
  20906. #line 1 "cfg_y.y"
  20907. /* cfg.y - configuration language */
  20908. @@ -51,6 +142,7 @@
  20909. #include <config.h>
  20910. #endif
  20911. +#include <stdlib.h>
  20912. #include <string.h>
  20913. #include <ctype.h>
  20914. #include <limits.h>
  20915. @@ -63,6 +155,8 @@
  20916. #include "trace.h"
  20917. #include "policy.h"
  20918. +extern void yywarn(const char *s);
  20919. +extern void yyerror(const char *s);
  20920. static RULE *rule;
  20921. static SIG_ENTITY *curr_sig = &_entity;
  20922. @@ -93,516 +187,830 @@
  20923. }
  20924. -#line 53 "cfg_y.y"
  20925. -typedef union {
  20926. +
  20927. +/* Enabling traces. */
  20928. +#ifndef YYDEBUG
  20929. +# define YYDEBUG 0
  20930. +#endif
  20931. +
  20932. +/* Enabling verbose error messages. */
  20933. +#ifdef YYERROR_VERBOSE
  20934. +# undef YYERROR_VERBOSE
  20935. +# define YYERROR_VERBOSE 1
  20936. +#else
  20937. +# define YYERROR_VERBOSE 0
  20938. +#endif
  20939. +
  20940. +#if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
  20941. +#line 56 "cfg_y.y"
  20942. +typedef union YYSTYPE {
  20943. int num;
  20944. char *str;
  20945. struct sockaddr_atmpvc pvc;
  20946. } YYSTYPE;
  20947. -#include <stdio.h>
  20948. +/* Line 191 of yacc.c. */
  20949. +#line 213 "y.tab.c"
  20950. +# define yystype YYSTYPE /* obsolescent; will be withdrawn */
  20951. +# define YYSTYPE_IS_DECLARED 1
  20952. +# define YYSTYPE_IS_TRIVIAL 1
  20953. +#endif
  20954. +
  20955. +
  20956. +
  20957. +/* Copy the second part of user declarations. */
  20958. +
  20959. +
  20960. +/* Line 214 of yacc.c. */
  20961. +#line 225 "y.tab.c"
  20962. +
  20963. +#if ! defined (yyoverflow) || YYERROR_VERBOSE
  20964. +
  20965. +# ifndef YYFREE
  20966. +# define YYFREE free
  20967. +# endif
  20968. +# ifndef YYMALLOC
  20969. +# define YYMALLOC malloc
  20970. +# endif
  20971. +
  20972. +/* The parser invokes alloca or malloc; define the necessary symbols. */
  20973. +
  20974. +# ifdef YYSTACK_USE_ALLOCA
  20975. +# if YYSTACK_USE_ALLOCA
  20976. +# define YYSTACK_ALLOC alloca
  20977. +# endif
  20978. +# else
  20979. +# if defined (alloca) || defined (_ALLOCA_H)
  20980. +# define YYSTACK_ALLOC alloca
  20981. +# else
  20982. +# ifdef __GNUC__
  20983. +# define YYSTACK_ALLOC __builtin_alloca
  20984. +# endif
  20985. +# endif
  20986. +# endif
  20987. +
  20988. +# ifdef YYSTACK_ALLOC
  20989. + /* Pacify GCC's `empty if-body' warning. */
  20990. +# define YYSTACK_FREE(Ptr) do { /* empty */; } while (0)
  20991. +# else
  20992. +# if defined (__STDC__) || defined (__cplusplus)
  20993. +# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
  20994. +# define YYSIZE_T size_t
  20995. +# endif
  20996. +# define YYSTACK_ALLOC YYMALLOC
  20997. +# define YYSTACK_FREE YYFREE
  20998. +# endif
  20999. +#endif /* ! defined (yyoverflow) || YYERROR_VERBOSE */
  21000. +
  21001. +
  21002. +#if (! defined (yyoverflow) \
  21003. + && (! defined (__cplusplus) \
  21004. + || (defined (YYSTYPE_IS_TRIVIAL) && YYSTYPE_IS_TRIVIAL)))
  21005. +
  21006. +/* A type that is properly aligned for any stack member. */
  21007. +union yyalloc
  21008. +{
  21009. + short int yyss;
  21010. + YYSTYPE yyvs;
  21011. + };
  21012. +
  21013. +/* The size of the maximum gap between one aligned stack and the next. */
  21014. +# define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1)
  21015. +
  21016. +/* The size of an array large to enough to hold all stacks, each with
  21017. + N elements. */
  21018. +# define YYSTACK_BYTES(N) \
  21019. + ((N) * (sizeof (short int) + sizeof (YYSTYPE)) \
  21020. + + YYSTACK_GAP_MAXIMUM)
  21021. +
  21022. +/* Copy COUNT objects from FROM to TO. The source and destination do
  21023. + not overlap. */
  21024. +# ifndef YYCOPY
  21025. +# if defined (__GNUC__) && 1 < __GNUC__
  21026. +# define YYCOPY(To, From, Count) \
  21027. + __builtin_memcpy (To, From, (Count) * sizeof (*(From)))
  21028. +# else
  21029. +# define YYCOPY(To, From, Count) \
  21030. + do \
  21031. + { \
  21032. + register YYSIZE_T yyi; \
  21033. + for (yyi = 0; yyi < (Count); yyi++) \
  21034. + (To)[yyi] = (From)[yyi]; \
  21035. + } \
  21036. + while (0)
  21037. +# endif
  21038. +# endif
  21039. +
  21040. +/* Relocate STACK from its old location to the new one. The
  21041. + local variables YYSIZE and YYSTACKSIZE give the old and new number of
  21042. + elements in the stack, and YYPTR gives the new location of the
  21043. + stack. Advance YYPTR to a properly aligned location for the next
  21044. + stack. */
  21045. +# define YYSTACK_RELOCATE(Stack) \
  21046. + do \
  21047. + { \
  21048. + YYSIZE_T yynewbytes; \
  21049. + YYCOPY (&yyptr->Stack, Stack, yysize); \
  21050. + Stack = &yyptr->Stack; \
  21051. + yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
  21052. + yyptr += yynewbytes / sizeof (*yyptr); \
  21053. + } \
  21054. + while (0)
  21055. -#ifndef __cplusplus
  21056. -#ifndef __STDC__
  21057. -#define const
  21058. -#endif
  21059. #endif
  21060. +#if defined (__STDC__) || defined (__cplusplus)
  21061. + typedef signed char yysigned_char;
  21062. +#else
  21063. + typedef short int yysigned_char;
  21064. +#endif
  21065. -
  21066. -#define YYFINAL 117
  21067. -#define YYFLAG -32768
  21068. -#define YYNTBASE 41
  21069. -
  21070. -#define YYTRANSLATE(x) ((unsigned)(x) <= 292 ? yytranslate[x] : 71)
  21071. -
  21072. -static const char yytranslate[] = { 0,
  21073. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  21074. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  21075. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  21076. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  21077. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  21078. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  21079. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  21080. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  21081. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  21082. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  21083. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  21084. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  21085. - 2, 2, 39, 2, 40, 2, 2, 2, 2, 2,
  21086. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  21087. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  21088. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  21089. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  21090. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  21091. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  21092. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  21093. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  21094. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  21095. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  21096. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  21097. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  21098. - 2, 2, 2, 2, 2, 1, 3, 4, 5, 6,
  21099. - 7, 8, 9, 10, 11, 12, 13, 14, 15, 16,
  21100. - 17, 18, 19, 20, 21, 22, 23, 24, 25, 26,
  21101. - 27, 28, 29, 30, 31, 32, 33, 34, 35, 36,
  21102. - 37, 38
  21103. +/* YYFINAL -- State number of the termination state. */
  21104. +#define YYFINAL 53
  21105. +/* YYLAST -- Last index in YYTABLE. */
  21106. +#define YYLAST 108
  21107. +
  21108. +/* YYNTOKENS -- Number of terminals. */
  21109. +#define YYNTOKENS 41
  21110. +/* YYNNTS -- Number of nonterminals. */
  21111. +#define YYNNTS 31
  21112. +/* YYNRULES -- Number of rules. */
  21113. +#define YYNRULES 79
  21114. +/* YYNRULES -- Number of states. */
  21115. +#define YYNSTATES 117
  21116. +
  21117. +/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */
  21118. +#define YYUNDEFTOK 2
  21119. +#define YYMAXUTOK 293
  21120. +
  21121. +#define YYTRANSLATE(YYX) \
  21122. + ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
  21123. +
  21124. +/* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */
  21125. +static const unsigned char yytranslate[] =
  21126. +{
  21127. + 0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  21128. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  21129. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  21130. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  21131. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  21132. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  21133. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  21134. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  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, 39, 2, 40, 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, 2, 2, 2, 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, 1, 2, 3, 4,
  21153. + 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
  21154. + 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
  21155. + 25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
  21156. + 35, 36, 37, 38
  21157. };
  21158. -#if YYDEBUG != 0
  21159. -static const short yyprhs[] = { 0,
  21160. - 0, 3, 4, 7, 8, 11, 14, 17, 20, 23,
  21161. - 26, 29, 30, 35, 36, 40, 41, 44, 49, 52,
  21162. - 54, 56, 58, 60, 62, 66, 67, 70, 72, 76,
  21163. - 77, 80, 82, 86, 87, 90, 92, 96, 97, 100,
  21164. - 102, 106, 107, 110, 113, 118, 120, 122, 124, 126,
  21165. - 128, 131, 134, 137, 140, 143, 145, 147, 150, 152,
  21166. - 154, 157, 158, 160, 162, 164, 166, 168, 170, 172,
  21167. - 174, 176, 179, 180, 184, 186, 188, 190
  21168. +#if YYDEBUG
  21169. +/* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
  21170. + YYRHS. */
  21171. +static const unsigned char yyprhs[] =
  21172. +{
  21173. + 0, 0, 3, 6, 7, 10, 11, 14, 17, 20,
  21174. + 23, 26, 29, 32, 33, 38, 39, 43, 44, 47,
  21175. + 52, 55, 57, 59, 61, 63, 65, 69, 70, 73,
  21176. + 75, 79, 80, 83, 85, 89, 90, 93, 95, 99,
  21177. + 100, 103, 105, 109, 110, 113, 116, 121, 123, 125,
  21178. + 127, 129, 131, 134, 137, 140, 143, 146, 148, 150,
  21179. + 153, 155, 157, 160, 161, 163, 165, 167, 169, 171,
  21180. + 173, 175, 177, 179, 182, 183, 187, 189, 191, 193
  21181. };
  21182. -static const short yyrhs[] = { 42,
  21183. - 43, 0, 0, 44, 42, 0, 0, 45, 43, 0,
  21184. - 3, 65, 0, 9, 50, 0, 14, 52, 0, 16,
  21185. - 54, 0, 4, 56, 0, 25, 58, 0, 0, 28,
  21186. - 38, 46, 47, 0, 0, 39, 48, 40, 0, 0,
  21187. - 49, 48, 0, 21, 30, 22, 30, 0, 17, 66,
  21188. - 0, 34, 0, 31, 0, 37, 0, 29, 0, 60,
  21189. - 0, 39, 51, 40, 0, 0, 60, 51, 0, 61,
  21190. - 0, 39, 53, 40, 0, 0, 61, 53, 0, 62,
  21191. - 0, 39, 55, 40, 0, 0, 62, 55, 0, 63,
  21192. - 0, 39, 57, 40, 0, 0, 63, 57, 0, 67,
  21193. - 0, 39, 59, 40, 0, 0, 67, 59, 0, 3,
  21194. - 65, 0, 21, 30, 22, 30, 0, 10, 0, 11,
  21195. - 0, 12, 0, 13, 0, 19, 0, 17, 66, 0,
  21196. - 3, 65, 0, 3, 65, 0, 15, 38, 0, 23,
  21197. - 30, 0, 34, 0, 31, 0, 3, 65, 0, 32,
  21198. - 0, 33, 0, 24, 64, 0, 0, 30, 0, 4,
  21199. - 0, 5, 0, 6, 0, 7, 0, 8, 0, 18,
  21200. - 0, 19, 0, 20, 0, 3, 65, 0, 0, 69,
  21201. - 68, 70, 0, 26, 0, 27, 0, 35, 0, 36,
  21202. - 0
  21203. +/* YYRHS -- A `-1'-separated list of the rules' RHS. */
  21204. +static const yysigned_char yyrhs[] =
  21205. +{
  21206. + 42, 0, -1, 43, 44, -1, -1, 45, 43, -1,
  21207. + -1, 46, 44, -1, 3, 66, -1, 9, 51, -1,
  21208. + 14, 53, -1, 16, 55, -1, 4, 57, -1, 25,
  21209. + 59, -1, -1, 28, 38, 47, 48, -1, -1, 39,
  21210. + 49, 40, -1, -1, 50, 49, -1, 21, 30, 22,
  21211. + 30, -1, 17, 67, -1, 34, -1, 31, -1, 37,
  21212. + -1, 29, -1, 61, -1, 39, 52, 40, -1, -1,
  21213. + 61, 52, -1, 62, -1, 39, 54, 40, -1, -1,
  21214. + 62, 54, -1, 63, -1, 39, 56, 40, -1, -1,
  21215. + 63, 56, -1, 64, -1, 39, 58, 40, -1, -1,
  21216. + 64, 58, -1, 68, -1, 39, 60, 40, -1, -1,
  21217. + 68, 60, -1, 3, 66, -1, 21, 30, 22, 30,
  21218. + -1, 10, -1, 11, -1, 12, -1, 13, -1, 19,
  21219. + -1, 17, 67, -1, 3, 66, -1, 3, 66, -1,
  21220. + 15, 38, -1, 23, 30, -1, 34, -1, 31, -1,
  21221. + 3, 66, -1, 32, -1, 33, -1, 24, 65, -1,
  21222. + -1, 30, -1, 4, -1, 5, -1, 6, -1, 7,
  21223. + -1, 8, -1, 18, -1, 19, -1, 20, -1, 3,
  21224. + 66, -1, -1, 70, 69, 71, -1, 26, -1, 27,
  21225. + -1, 35, -1, 36, -1
  21226. };
  21227. -#endif
  21228. -
  21229. -#if YYDEBUG != 0
  21230. -static const short yyrline[] = { 0,
  21231. - 73, 77, 78, 81, 82, 105, 110, 111, 112, 113,
  21232. - 114, 117, 138, 140, 141, 144, 145, 148, 153, 154,
  21233. - 158, 162, 176, 182, 184, 187, 188, 191, 193, 196,
  21234. - 197, 200, 202, 205, 206, 209, 211, 214, 215, 218,
  21235. - 220, 223, 224, 227, 234, 238, 247, 256, 265, 274,
  21236. - 279, 282, 290, 295, 299, 304, 308, 314, 319, 324,
  21237. - 328, 334, 338, 344, 349, 353, 357, 361, 367, 372,
  21238. - 376, 382, 387, 393, 395, 400, 406, 412
  21239. +/* YYRLINE[YYN] -- source line where rule number YYN was defined. */
  21240. +static const unsigned short int yyrline[] =
  21241. +{
  21242. + 0, 77, 77, 80, 81, 84, 85, 109, 113, 114,
  21243. + 115, 116, 117, 122, 121, 151, 152, 155, 156, 160,
  21244. + 164, 165, 169, 173, 187, 194, 195, 198, 199, 203,
  21245. + 204, 207, 208, 212, 213, 216, 217, 221, 222, 225,
  21246. + 226, 230, 231, 234, 235, 239, 245, 249, 258, 267,
  21247. + 276, 285, 290, 294, 302, 306, 310, 315, 319, 326,
  21248. + 330, 335, 339, 346, 349, 356, 360, 364, 368, 372,
  21249. + 379, 383, 387, 394, 399, 398, 407, 411, 418, 423
  21250. };
  21251. #endif
  21252. -
  21253. -#if YYDEBUG != 0 || defined (YYERROR_VERBOSE)
  21254. -
  21255. -static const char * const yytname[] = { "$","error","$undefined.","TOK_LEVEL",
  21256. -"TOK_DEBUG","TOK_INFO","TOK_WARN","TOK_ERROR","TOK_FATAL","TOK_SIG","TOK_UNI30",
  21257. -"TOK_UNI31","TOK_UNI40","TOK_Q2963_1","TOK_SAAL","TOK_VC","TOK_IO","TOK_MODE",
  21258. -"TOK_USER","TOK_NET","TOK_SWITCH","TOK_VPCI","TOK_ITF","TOK_PCR","TOK_TRACE",
  21259. -"TOK_POLICY","TOK_ALLOW","TOK_REJECT","TOK_ENTITY","TOK_DEFAULT","TOK_NUMBER",
  21260. -"TOK_MAX_RATE","TOK_DUMP_DIR","TOK_LOGFILE","TOK_QOS","TOK_FROM","TOK_TO","TOK_ROUTE",
  21261. -"TOK_PVC","'{'","'}'","all","global","local","item","entity","@1","opt_options",
  21262. -"options","option","sig","sig_items","saal","saal_items","io","io_items","debug",
  21263. -"debug_items","policy","policy_items","sig_item","saal_item","io_item","debug_item",
  21264. -"opt_trace_size","level","mode","policy_item","@2","action","direction", NULL
  21265. +#if YYDEBUG || YYERROR_VERBOSE
  21266. +/* YYTNME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
  21267. + First, the terminals, then, starting at YYNTOKENS, nonterminals. */
  21268. +static const char *const yytname[] =
  21269. +{
  21270. + "$end", "error", "$undefined", "TOK_LEVEL", "TOK_DEBUG", "TOK_INFO",
  21271. + "TOK_WARN", "TOK_ERROR", "TOK_FATAL", "TOK_SIG", "TOK_UNI30",
  21272. + "TOK_UNI31", "TOK_UNI40", "TOK_Q2963_1", "TOK_SAAL", "TOK_VC", "TOK_IO",
  21273. + "TOK_MODE", "TOK_USER", "TOK_NET", "TOK_SWITCH", "TOK_VPCI", "TOK_ITF",
  21274. + "TOK_PCR", "TOK_TRACE", "TOK_POLICY", "TOK_ALLOW", "TOK_REJECT",
  21275. + "TOK_ENTITY", "TOK_DEFAULT", "TOK_NUMBER", "TOK_MAX_RATE",
  21276. + "TOK_DUMP_DIR", "TOK_LOGFILE", "TOK_QOS", "TOK_FROM", "TOK_TO",
  21277. + "TOK_ROUTE", "TOK_PVC", "'{'", "'}'", "$accept", "all", "global",
  21278. + "local", "item", "entity", "@1", "opt_options", "options", "option",
  21279. + "sig", "sig_items", "saal", "saal_items", "io", "io_items", "debug",
  21280. + "debug_items", "policy", "policy_items", "sig_item", "saal_item",
  21281. + "io_item", "debug_item", "opt_trace_size", "level", "mode",
  21282. + "policy_item", "@2", "action", "direction", 0
  21283. };
  21284. #endif
  21285. -static const short yyr1[] = { 0,
  21286. - 41, 42, 42, 43, 43, 44, 44, 44, 44, 44,
  21287. - 44, 46, 45, 47, 47, 48, 48, 49, 49, 49,
  21288. - 49, 49, 49, 50, 50, 51, 51, 52, 52, 53,
  21289. - 53, 54, 54, 55, 55, 56, 56, 57, 57, 58,
  21290. - 58, 59, 59, 60, 60, 60, 60, 60, 60, 60,
  21291. - 60, 61, 62, 62, 62, 62, 62, 63, 63, 63,
  21292. - 63, 64, 64, 65, 65, 65, 65, 65, 66, 66,
  21293. - 66, 67, 68, 67, 69, 69, 70, 70
  21294. +# ifdef YYPRINT
  21295. +/* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to
  21296. + token YYLEX-NUM. */
  21297. +static const unsigned short int yytoknum[] =
  21298. +{
  21299. + 0, 256, 257, 258, 259, 260, 261, 262, 263, 264,
  21300. + 265, 266, 267, 268, 269, 270, 271, 272, 273, 274,
  21301. + 275, 276, 277, 278, 279, 280, 281, 282, 283, 284,
  21302. + 285, 286, 287, 288, 289, 290, 291, 292, 293, 123,
  21303. + 125
  21304. };
  21305. +# endif
  21306. -static const short yyr2[] = { 0,
  21307. - 2, 0, 2, 0, 2, 2, 2, 2, 2, 2,
  21308. - 2, 0, 4, 0, 3, 0, 2, 4, 2, 1,
  21309. - 1, 1, 1, 1, 3, 0, 2, 1, 3, 0,
  21310. - 2, 1, 3, 0, 2, 1, 3, 0, 2, 1,
  21311. - 3, 0, 2, 2, 4, 1, 1, 1, 1, 1,
  21312. - 2, 2, 2, 2, 2, 1, 1, 2, 1, 1,
  21313. - 2, 0, 1, 1, 1, 1, 1, 1, 1, 1,
  21314. - 1, 2, 0, 3, 1, 1, 1, 1
  21315. +/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
  21316. +static const unsigned char yyr1[] =
  21317. +{
  21318. + 0, 41, 42, 43, 43, 44, 44, 45, 45, 45,
  21319. + 45, 45, 45, 47, 46, 48, 48, 49, 49, 50,
  21320. + 50, 50, 50, 50, 50, 51, 51, 52, 52, 53,
  21321. + 53, 54, 54, 55, 55, 56, 56, 57, 57, 58,
  21322. + 58, 59, 59, 60, 60, 61, 61, 61, 61, 61,
  21323. + 61, 61, 61, 62, 63, 63, 63, 63, 63, 64,
  21324. + 64, 64, 64, 65, 65, 66, 66, 66, 66, 66,
  21325. + 67, 67, 67, 68, 69, 68, 70, 70, 71, 71
  21326. };
  21327. -static const short yydefact[] = { 2,
  21328. - 0, 0, 0, 0, 0, 0, 4, 2, 64, 65,
  21329. - 66, 67, 68, 6, 0, 62, 59, 60, 38, 10,
  21330. - 36, 0, 46, 47, 48, 49, 0, 50, 0, 26,
  21331. - 7, 24, 0, 30, 8, 28, 0, 0, 0, 57,
  21332. - 56, 34, 9, 32, 0, 75, 76, 42, 11, 40,
  21333. - 73, 0, 1, 4, 3, 58, 63, 61, 0, 38,
  21334. - 44, 69, 70, 71, 51, 0, 0, 26, 52, 0,
  21335. - 30, 53, 54, 55, 0, 34, 72, 0, 42, 0,
  21336. - 12, 5, 37, 39, 0, 25, 27, 29, 31, 33,
  21337. - 35, 41, 43, 77, 78, 74, 14, 45, 16, 13,
  21338. - 0, 0, 23, 21, 20, 22, 0, 16, 19, 0,
  21339. - 15, 17, 0, 18, 0, 0, 0
  21340. +/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */
  21341. +static const unsigned char yyr2[] =
  21342. +{
  21343. + 0, 2, 2, 0, 2, 0, 2, 2, 2, 2,
  21344. + 2, 2, 2, 0, 4, 0, 3, 0, 2, 4,
  21345. + 2, 1, 1, 1, 1, 1, 3, 0, 2, 1,
  21346. + 3, 0, 2, 1, 3, 0, 2, 1, 3, 0,
  21347. + 2, 1, 3, 0, 2, 2, 4, 1, 1, 1,
  21348. + 1, 1, 2, 2, 2, 2, 2, 1, 1, 2,
  21349. + 1, 1, 2, 0, 1, 1, 1, 1, 1, 1,
  21350. + 1, 1, 1, 2, 0, 3, 1, 1, 1, 1
  21351. };
  21352. -static const short yydefgoto[] = { 115,
  21353. - 7, 53, 8, 54, 97, 100, 107, 108, 31, 67,
  21354. - 35, 70, 43, 75, 20, 59, 49, 78, 68, 71,
  21355. - 76, 60, 58, 14, 65, 79, 80, 51, 96
  21356. +/* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state
  21357. + STATE-NUM when YYTABLE doesn't specify something else to do. Zero
  21358. + means the default is an error. */
  21359. +static const unsigned char yydefact[] =
  21360. +{
  21361. + 3, 0, 0, 0, 0, 0, 0, 0, 5, 3,
  21362. + 65, 66, 67, 68, 69, 7, 0, 63, 60, 61,
  21363. + 39, 11, 37, 0, 47, 48, 49, 50, 0, 51,
  21364. + 0, 27, 8, 25, 0, 31, 9, 29, 0, 0,
  21365. + 0, 58, 57, 35, 10, 33, 0, 76, 77, 43,
  21366. + 12, 41, 74, 1, 0, 2, 5, 4, 59, 64,
  21367. + 62, 0, 39, 45, 70, 71, 72, 52, 0, 0,
  21368. + 27, 53, 0, 31, 54, 55, 56, 0, 35, 73,
  21369. + 0, 43, 0, 13, 6, 38, 40, 0, 26, 28,
  21370. + 30, 32, 34, 36, 42, 44, 78, 79, 75, 15,
  21371. + 46, 17, 14, 0, 0, 24, 22, 21, 23, 0,
  21372. + 17, 20, 0, 16, 18, 0, 19
  21373. };
  21374. -static const short yypact[] = { 52,
  21375. - 100, 1, -3, -1, -2, 0, -17, 52,-32768,-32768,
  21376. --32768,-32768,-32768,-32768, 100, -18,-32768,-32768, 25,-32768,
  21377. --32768, 100,-32768,-32768,-32768,-32768, 60,-32768, -15, 82,
  21378. --32768,-32768, 100, 14,-32768,-32768, 100, -19, -10,-32768,
  21379. --32768, 20,-32768,-32768, 100,-32768,-32768, 19,-32768,-32768,
  21380. --32768, -14,-32768, -17,-32768,-32768,-32768,-32768, -9, 25,
  21381. --32768,-32768,-32768,-32768,-32768, 8, 2, 82,-32768, 4,
  21382. - 14,-32768,-32768,-32768, 7, 20,-32768, 10, 19, -30,
  21383. --32768,-32768,-32768,-32768, 22,-32768,-32768,-32768,-32768,-32768,
  21384. --32768,-32768,-32768,-32768,-32768,-32768, 21,-32768, 53,-32768,
  21385. - 60, 23,-32768,-32768,-32768,-32768, 24, 53,-32768, 40,
  21386. --32768,-32768, 35,-32768, 67, 69,-32768
  21387. +/* YYDEFGOTO[NTERM-NUM]. */
  21388. +static const yysigned_char yydefgoto[] =
  21389. +{
  21390. + -1, 7, 8, 55, 9, 56, 99, 102, 109, 110,
  21391. + 32, 69, 36, 72, 44, 77, 21, 61, 50, 80,
  21392. + 70, 73, 78, 62, 60, 15, 67, 81, 82, 52,
  21393. + 98
  21394. };
  21395. -static const short yypgoto[] = {-32768,
  21396. - 64, 27,-32768,-32768,-32768,-32768, -35,-32768,-32768, 15,
  21397. --32768, 5,-32768, 12,-32768, 29,-32768, -4, 83, 87,
  21398. - 91, 95,-32768, 26, 9, 92,-32768,-32768,-32768
  21399. +/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
  21400. + STATE-NUM. */
  21401. +#define YYPACT_NINF -31
  21402. +static const yysigned_char yypact[] =
  21403. +{
  21404. + 53, 69, 1, -3, -1, -2, 0, 11, -16, 53,
  21405. + -31, -31, -31, -31, -31, -31, 69, -15, -31, -31,
  21406. + 28, -31, -31, 69, -31, -31, -31, -31, 46, -31,
  21407. + -13, 80, -31, -31, 69, 16, -31, -31, 69, -18,
  21408. + -6, -31, -31, 20, -31, -31, 69, -31, -31, 19,
  21409. + -31, -31, -31, -31, -10, -31, -16, -31, -31, -31,
  21410. + -31, 2, 28, -31, -31, -31, -31, -31, 8, 4,
  21411. + 80, -31, 7, 16, -31, -31, -31, 9, 20, -31,
  21412. + 10, 19, -30, -31, -31, -31, -31, 23, -31, -31,
  21413. + -31, -31, -31, -31, -31, -31, -31, -31, -31, 31,
  21414. + -31, 51, -31, 46, 49, -31, -31, -31, -31, 15,
  21415. + 51, -31, 36, -31, -31, 54, -31
  21416. };
  21417. -
  21418. -#define YYLAST 110
  21419. -
  21420. -
  21421. -static const short yytable[] = { 22,
  21422. - 37, 33, 45, 15, 94, 95, 23, 24, 25, 26,
  21423. - 52, 57, 38, 27, 66, 28, 33, 29, 73, 74,
  21424. - 39, 45, 37, 81, 16, 46, 47, 15, 40, 85,
  21425. - 83, 41, 17, 18, 38, 30, 42, 34, 48, 19,
  21426. - 56, 86, 39, 88, 46, 47, 90, 61, 16, 92,
  21427. - 40, 98, 110, 41, 1, 2, 17, 18, 69, 99,
  21428. - 3, 113, 72, 111, 114, 4, 116, 5, 117, 101,
  21429. - 77, 55, 112, 102, 93, 89, 6, 62, 63, 64,
  21430. - 82, 103, 87, 104, 22, 32, 105, 91, 84, 106,
  21431. - 36, 23, 24, 25, 26, 44, 21, 50, 27, 0,
  21432. - 28, 0, 29, 9, 10, 11, 12, 13, 0, 109
  21433. +/* YYPGOTO[NTERM-NUM]. */
  21434. +static const yysigned_char yypgoto[] =
  21435. +{
  21436. + -31, -31, 72, 30, -31, -31, -31, -31, -23, -31,
  21437. + -31, 24, -31, 22, -31, 18, -31, 27, -31, 17,
  21438. + 97, 98, 99, 101, -31, 25, 3, 102, -31, -31,
  21439. + -31
  21440. };
  21441. -static const short yycheck[] = { 3,
  21442. - 3, 3, 3, 3, 35, 36, 10, 11, 12, 13,
  21443. - 28, 30, 15, 17, 30, 19, 3, 21, 38, 30,
  21444. - 23, 3, 3, 38, 24, 26, 27, 3, 31, 22,
  21445. - 40, 34, 32, 33, 15, 39, 39, 39, 39, 39,
  21446. - 15, 40, 23, 40, 26, 27, 40, 22, 24, 40,
  21447. - 31, 30, 30, 34, 3, 4, 32, 33, 33, 39,
  21448. - 9, 22, 37, 40, 30, 14, 0, 16, 0, 17,
  21449. - 45, 8, 108, 21, 79, 71, 25, 18, 19, 20,
  21450. - 54, 29, 68, 31, 3, 3, 34, 76, 60, 37,
  21451. - 4, 10, 11, 12, 13, 5, 2, 6, 17, -1,
  21452. - 19, -1, 21, 4, 5, 6, 7, 8, -1, 101
  21453. +/* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If
  21454. + positive, shift that token. If negative, reduce the rule which
  21455. + number is the opposite. If zero, do what YYDEFACT says.
  21456. + If YYTABLE_NINF, syntax error. */
  21457. +#define YYTABLE_NINF -1
  21458. +static const unsigned char yytable[] =
  21459. +{
  21460. + 23, 38, 34, 46, 16, 96, 97, 24, 25, 26,
  21461. + 27, 53, 54, 39, 28, 59, 29, 68, 30, 34,
  21462. + 75, 40, 46, 38, 76, 17, 47, 48, 83, 41,
  21463. + 87, 16, 42, 18, 19, 39, 31, 43, 35, 49,
  21464. + 20, 58, 85, 40, 88, 47, 48, 90, 63, 92,
  21465. + 94, 41, 17, 100, 42, 113, 1, 2, 115, 71,
  21466. + 18, 19, 3, 74, 64, 65, 66, 4, 103, 5,
  21467. + 101, 79, 104, 10, 11, 12, 13, 14, 6, 112,
  21468. + 105, 57, 106, 23, 116, 107, 84, 114, 108, 86,
  21469. + 24, 25, 26, 27, 89, 91, 93, 28, 95, 29,
  21470. + 33, 30, 37, 22, 45, 0, 111, 0, 51
  21471. };
  21472. -/* -*-C-*- Note some compilers choke on comments on `#line' lines. */
  21473. -#line 3 "/usr/lib/bison.simple"
  21474. -/* This file comes from bison-1.28. */
  21475. -
  21476. -/* Skeleton output parser for bison,
  21477. - Copyright (C) 1984, 1989, 1990 Free Software Foundation, Inc.
  21478. -
  21479. - This program is free software; you can redistribute it and/or modify
  21480. - it under the terms of the GNU General Public License as published by
  21481. - the Free Software Foundation; either version 2, or (at your option)
  21482. - any later version.
  21483. - This program is distributed in the hope that it will be useful,
  21484. - but WITHOUT ANY WARRANTY; without even the implied warranty of
  21485. - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21486. - GNU General Public License for more details.
  21487. -
  21488. - You should have received a copy of the GNU General Public License
  21489. - along with this program; if not, write to the Free Software
  21490. - Foundation, Inc., 59 Temple Place - Suite 330,
  21491. - Boston, MA 02111-1307, USA. */
  21492. -
  21493. -/* As a special exception, when this file is copied by Bison into a
  21494. - Bison output file, you may use that output file without restriction.
  21495. - This special exception was added by the Free Software Foundation
  21496. - in version 1.24 of Bison. */
  21497. +static const yysigned_char yycheck[] =
  21498. +{
  21499. + 3, 3, 3, 3, 3, 35, 36, 10, 11, 12,
  21500. + 13, 0, 28, 15, 17, 30, 19, 30, 21, 3,
  21501. + 38, 23, 3, 3, 30, 24, 26, 27, 38, 31,
  21502. + 22, 3, 34, 32, 33, 15, 39, 39, 39, 39,
  21503. + 39, 16, 40, 23, 40, 26, 27, 40, 23, 40,
  21504. + 40, 31, 24, 30, 34, 40, 3, 4, 22, 34,
  21505. + 32, 33, 9, 38, 18, 19, 20, 14, 17, 16,
  21506. + 39, 46, 21, 4, 5, 6, 7, 8, 25, 30,
  21507. + 29, 9, 31, 3, 30, 34, 56, 110, 37, 62,
  21508. + 10, 11, 12, 13, 70, 73, 78, 17, 81, 19,
  21509. + 3, 21, 4, 2, 5, -1, 103, -1, 6
  21510. +};
  21511. -/* This is the parser code that is written into each bison parser
  21512. - when the %semantic_parser declaration is not specified in the grammar.
  21513. - It was written by Richard Stallman by simplifying the hairy parser
  21514. - used when %semantic_parser is specified. */
  21515. -
  21516. -#ifndef YYSTACK_USE_ALLOCA
  21517. -#ifdef alloca
  21518. -#define YYSTACK_USE_ALLOCA
  21519. -#else /* alloca not defined */
  21520. -#ifdef __GNUC__
  21521. -#define YYSTACK_USE_ALLOCA
  21522. -#define alloca __builtin_alloca
  21523. -#else /* not GNU C. */
  21524. -#if (!defined (__STDC__) && defined (sparc)) || defined (__sparc__) || defined (__sparc) || defined (__sgi) || (defined (__sun) && defined (__i386))
  21525. -#define YYSTACK_USE_ALLOCA
  21526. -#include <alloca.h>
  21527. -#else /* not sparc */
  21528. -/* We think this test detects Watcom and Microsoft C. */
  21529. -/* This used to test MSDOS, but that is a bad idea
  21530. - since that symbol is in the user namespace. */
  21531. -#if (defined (_MSDOS) || defined (_MSDOS_)) && !defined (__TURBOC__)
  21532. -#if 0 /* No need for malloc.h, which pollutes the namespace;
  21533. - instead, just don't use alloca. */
  21534. -#include <malloc.h>
  21535. -#endif
  21536. -#else /* not MSDOS, or __TURBOC__ */
  21537. -#if defined(_AIX)
  21538. -/* I don't know what this was needed for, but it pollutes the namespace.
  21539. - So I turned it off. rms, 2 May 1997. */
  21540. -/* #include <malloc.h> */
  21541. - #pragma alloca
  21542. -#define YYSTACK_USE_ALLOCA
  21543. -#else /* not MSDOS, or __TURBOC__, or _AIX */
  21544. -#if 0
  21545. -#ifdef __hpux /* haible@ilog.fr says this works for HPUX 9.05 and up,
  21546. - and on HPUX 10. Eventually we can turn this on. */
  21547. -#define YYSTACK_USE_ALLOCA
  21548. -#define alloca __builtin_alloca
  21549. -#endif /* __hpux */
  21550. -#endif
  21551. -#endif /* not _AIX */
  21552. -#endif /* not MSDOS, or __TURBOC__ */
  21553. -#endif /* not sparc */
  21554. -#endif /* not GNU C */
  21555. -#endif /* alloca not defined */
  21556. -#endif /* YYSTACK_USE_ALLOCA not defined */
  21557. +/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
  21558. + symbol of state STATE-NUM. */
  21559. +static const unsigned char yystos[] =
  21560. +{
  21561. + 0, 3, 4, 9, 14, 16, 25, 42, 43, 45,
  21562. + 4, 5, 6, 7, 8, 66, 3, 24, 32, 33,
  21563. + 39, 57, 64, 3, 10, 11, 12, 13, 17, 19,
  21564. + 21, 39, 51, 61, 3, 39, 53, 62, 3, 15,
  21565. + 23, 31, 34, 39, 55, 63, 3, 26, 27, 39,
  21566. + 59, 68, 70, 0, 28, 44, 46, 43, 66, 30,
  21567. + 65, 58, 64, 66, 18, 19, 20, 67, 30, 52,
  21568. + 61, 66, 54, 62, 66, 38, 30, 56, 63, 66,
  21569. + 60, 68, 69, 38, 44, 40, 58, 22, 40, 52,
  21570. + 40, 54, 40, 56, 40, 60, 35, 36, 71, 47,
  21571. + 30, 39, 48, 17, 21, 29, 31, 34, 37, 49,
  21572. + 50, 67, 30, 40, 49, 22, 30
  21573. +};
  21574. -#ifdef YYSTACK_USE_ALLOCA
  21575. -#define YYSTACK_ALLOC alloca
  21576. -#else
  21577. -#define YYSTACK_ALLOC malloc
  21578. +#if ! defined (YYSIZE_T) && defined (__SIZE_TYPE__)
  21579. +# define YYSIZE_T __SIZE_TYPE__
  21580. +#endif
  21581. +#if ! defined (YYSIZE_T) && defined (size_t)
  21582. +# define YYSIZE_T size_t
  21583. +#endif
  21584. +#if ! defined (YYSIZE_T)
  21585. +# if defined (__STDC__) || defined (__cplusplus)
  21586. +# include <stddef.h> /* INFRINGES ON USER NAME SPACE */
  21587. +# define YYSIZE_T size_t
  21588. +# endif
  21589. +#endif
  21590. +#if ! defined (YYSIZE_T)
  21591. +# define YYSIZE_T unsigned int
  21592. #endif
  21593. -
  21594. -/* Note: there must be only one dollar sign in this file.
  21595. - It is replaced by the list of actions, each action
  21596. - as one case of the switch. */
  21597. #define yyerrok (yyerrstatus = 0)
  21598. #define yyclearin (yychar = YYEMPTY)
  21599. -#define YYEMPTY -2
  21600. +#define YYEMPTY (-2)
  21601. #define YYEOF 0
  21602. +
  21603. #define YYACCEPT goto yyacceptlab
  21604. -#define YYABORT goto yyabortlab
  21605. -#define YYERROR goto yyerrlab1
  21606. -/* Like YYERROR except do call yyerror.
  21607. - This remains here temporarily to ease the
  21608. - transition to the new meaning of YYERROR, for GCC.
  21609. +#define YYABORT goto yyabortlab
  21610. +#define YYERROR goto yyerrorlab
  21611. +
  21612. +
  21613. +/* Like YYERROR except do call yyerror. This remains here temporarily
  21614. + to ease the transition to the new meaning of YYERROR, for GCC.
  21615. Once GCC version 2 has supplanted version 1, this can go. */
  21616. +
  21617. #define YYFAIL goto yyerrlab
  21618. +
  21619. #define YYRECOVERING() (!!yyerrstatus)
  21620. -#define YYBACKUP(token, value) \
  21621. +
  21622. +#define YYBACKUP(Token, Value) \
  21623. do \
  21624. if (yychar == YYEMPTY && yylen == 1) \
  21625. - { yychar = (token), yylval = (value); \
  21626. - yychar1 = YYTRANSLATE (yychar); \
  21627. + { \
  21628. + yychar = (Token); \
  21629. + yylval = (Value); \
  21630. + yytoken = YYTRANSLATE (yychar); \
  21631. YYPOPSTACK; \
  21632. goto yybackup; \
  21633. } \
  21634. else \
  21635. - { yyerror ("syntax error: cannot back up"); YYERROR; } \
  21636. + { \
  21637. + yyerror ("syntax error: cannot back up");\
  21638. + YYERROR; \
  21639. + } \
  21640. while (0)
  21641. #define YYTERROR 1
  21642. #define YYERRCODE 256
  21643. -#ifndef YYPURE
  21644. -#define YYLEX yylex()
  21645. -#endif
  21646. +/* YYLLOC_DEFAULT -- Compute the default location (before the actions
  21647. + are run). */
  21648. -#ifdef YYPURE
  21649. -#ifdef YYLSP_NEEDED
  21650. -#ifdef YYLEX_PARAM
  21651. -#define YYLEX yylex(&yylval, &yylloc, YYLEX_PARAM)
  21652. -#else
  21653. -#define YYLEX yylex(&yylval, &yylloc)
  21654. +#ifndef YYLLOC_DEFAULT
  21655. +# define YYLLOC_DEFAULT(Current, Rhs, N) \
  21656. + ((Current).first_line = (Rhs)[1].first_line, \
  21657. + (Current).first_column = (Rhs)[1].first_column, \
  21658. + (Current).last_line = (Rhs)[N].last_line, \
  21659. + (Current).last_column = (Rhs)[N].last_column)
  21660. #endif
  21661. -#else /* not YYLSP_NEEDED */
  21662. +
  21663. +/* YYLEX -- calling `yylex' with the right arguments. */
  21664. +
  21665. #ifdef YYLEX_PARAM
  21666. -#define YYLEX yylex(&yylval, YYLEX_PARAM)
  21667. +# define YYLEX yylex (YYLEX_PARAM)
  21668. #else
  21669. -#define YYLEX yylex(&yylval)
  21670. -#endif
  21671. -#endif /* not YYLSP_NEEDED */
  21672. +# define YYLEX yylex ()
  21673. #endif
  21674. -/* If nonreentrant, generate the variables here */
  21675. +/* Enable debugging if requested. */
  21676. +#if YYDEBUG
  21677. -#ifndef YYPURE
  21678. +# ifndef YYFPRINTF
  21679. +# include <stdio.h> /* INFRINGES ON USER NAME SPACE */
  21680. +# define YYFPRINTF fprintf
  21681. +# endif
  21682. +
  21683. +# define YYDPRINTF(Args) \
  21684. +do { \
  21685. + if (yydebug) \
  21686. + YYFPRINTF Args; \
  21687. +} while (0)
  21688. +
  21689. +# define YYDSYMPRINT(Args) \
  21690. +do { \
  21691. + if (yydebug) \
  21692. + yysymprint Args; \
  21693. +} while (0)
  21694. +
  21695. +# define YYDSYMPRINTF(Title, Token, Value, Location) \
  21696. +do { \
  21697. + if (yydebug) \
  21698. + { \
  21699. + YYFPRINTF (stderr, "%s ", Title); \
  21700. + yysymprint (stderr, \
  21701. + Token, Value); \
  21702. + YYFPRINTF (stderr, "\n"); \
  21703. + } \
  21704. +} while (0)
  21705. -int yychar; /* the lookahead symbol */
  21706. -YYSTYPE yylval; /* the semantic value of the */
  21707. - /* lookahead symbol */
  21708. +/*------------------------------------------------------------------.
  21709. +| yy_stack_print -- Print the state stack from its BOTTOM up to its |
  21710. +| TOP (included). |
  21711. +`------------------------------------------------------------------*/
  21712. -#ifdef YYLSP_NEEDED
  21713. -YYLTYPE yylloc; /* location data for the lookahead */
  21714. - /* symbol */
  21715. +#if defined (__STDC__) || defined (__cplusplus)
  21716. +static void
  21717. +yy_stack_print (short int *bottom, short int *top)
  21718. +#else
  21719. +static void
  21720. +yy_stack_print (bottom, top)
  21721. + short int *bottom;
  21722. + short int *top;
  21723. #endif
  21724. +{
  21725. + YYFPRINTF (stderr, "Stack now");
  21726. + for (/* Nothing. */; bottom <= top; ++bottom)
  21727. + YYFPRINTF (stderr, " %d", *bottom);
  21728. + YYFPRINTF (stderr, "\n");
  21729. +}
  21730. +
  21731. +# define YY_STACK_PRINT(Bottom, Top) \
  21732. +do { \
  21733. + if (yydebug) \
  21734. + yy_stack_print ((Bottom), (Top)); \
  21735. +} while (0)
  21736. -int yynerrs; /* number of parse errors so far */
  21737. -#endif /* not YYPURE */
  21738. -#if YYDEBUG != 0
  21739. -int yydebug; /* nonzero means print parse trace */
  21740. -/* Since this is uninitialized, it does not stop multiple parsers
  21741. - from coexisting. */
  21742. +/*------------------------------------------------.
  21743. +| Report that the YYRULE is going to be reduced. |
  21744. +`------------------------------------------------*/
  21745. +
  21746. +#if defined (__STDC__) || defined (__cplusplus)
  21747. +static void
  21748. +yy_reduce_print (int yyrule)
  21749. +#else
  21750. +static void
  21751. +yy_reduce_print (yyrule)
  21752. + int yyrule;
  21753. #endif
  21754. +{
  21755. + int yyi;
  21756. + unsigned int yylno = yyrline[yyrule];
  21757. + YYFPRINTF (stderr, "Reducing stack by rule %d (line %u), ",
  21758. + yyrule - 1, yylno);
  21759. + /* Print the symbols being reduced, and their result. */
  21760. + for (yyi = yyprhs[yyrule]; 0 <= yyrhs[yyi]; yyi++)
  21761. + YYFPRINTF (stderr, "%s ", yytname [yyrhs[yyi]]);
  21762. + YYFPRINTF (stderr, "-> %s\n", yytname [yyr1[yyrule]]);
  21763. +}
  21764. +
  21765. +# define YY_REDUCE_PRINT(Rule) \
  21766. +do { \
  21767. + if (yydebug) \
  21768. + yy_reduce_print (Rule); \
  21769. +} while (0)
  21770. +
  21771. +/* Nonzero means print parse trace. It is left uninitialized so that
  21772. + multiple parsers can coexist. */
  21773. +int yydebug;
  21774. +#else /* !YYDEBUG */
  21775. +# define YYDPRINTF(Args)
  21776. +# define YYDSYMPRINT(Args)
  21777. +# define YYDSYMPRINTF(Title, Token, Value, Location)
  21778. +# define YY_STACK_PRINT(Bottom, Top)
  21779. +# define YY_REDUCE_PRINT(Rule)
  21780. +#endif /* !YYDEBUG */
  21781. -/* YYINITDEPTH indicates the initial size of the parser's stacks */
  21782. +/* YYINITDEPTH -- initial size of the parser's stacks. */
  21783. #ifndef YYINITDEPTH
  21784. -#define YYINITDEPTH 200
  21785. +# define YYINITDEPTH 200
  21786. #endif
  21787. -/* YYMAXDEPTH is the maximum size the stacks can grow to
  21788. - (effective only if the built-in stack extension method is used). */
  21789. +/* YYMAXDEPTH -- maximum size the stacks can grow to (effective only
  21790. + if the built-in stack extension method is used).
  21791. -#if YYMAXDEPTH == 0
  21792. -#undef YYMAXDEPTH
  21793. + Do not make this value too large; the results are undefined if
  21794. + SIZE_MAX < YYSTACK_BYTES (YYMAXDEPTH)
  21795. + evaluated with infinite-precision integer arithmetic. */
  21796. +
  21797. +#if defined (YYMAXDEPTH) && YYMAXDEPTH == 0
  21798. +# undef YYMAXDEPTH
  21799. #endif
  21800. #ifndef YYMAXDEPTH
  21801. -#define YYMAXDEPTH 10000
  21802. +# define YYMAXDEPTH 10000
  21803. #endif
  21804. +
  21805. -/* Define __yy_memcpy. Note that the size argument
  21806. - should be passed with type unsigned int, because that is what the non-GCC
  21807. - definitions require. With GCC, __builtin_memcpy takes an arg
  21808. - of type size_t, but it can handle unsigned int. */
  21809. -
  21810. -#if __GNUC__ > 1 /* GNU C and GNU C++ define this. */
  21811. -#define __yy_memcpy(TO,FROM,COUNT) __builtin_memcpy(TO,FROM,COUNT)
  21812. -#else /* not GNU C or C++ */
  21813. -#ifndef __cplusplus
  21814. -/* This is the most reliable way to avoid incompatibilities
  21815. - in available built-in functions on various systems. */
  21816. -static void
  21817. -__yy_memcpy (to, from, count)
  21818. - char *to;
  21819. - char *from;
  21820. - unsigned int count;
  21821. -{
  21822. - register char *f = from;
  21823. - register char *t = to;
  21824. - register int i = count;
  21825. +#if YYERROR_VERBOSE
  21826. - while (i-- > 0)
  21827. - *t++ = *f++;
  21828. +# ifndef yystrlen
  21829. +# if defined (__GLIBC__) && defined (_STRING_H)
  21830. +# define yystrlen strlen
  21831. +# else
  21832. +/* Return the length of YYSTR. */
  21833. +static YYSIZE_T
  21834. +# if defined (__STDC__) || defined (__cplusplus)
  21835. +yystrlen (const char *yystr)
  21836. +# else
  21837. +yystrlen (yystr)
  21838. + const char *yystr;
  21839. +# endif
  21840. +{
  21841. + register const char *yys = yystr;
  21842. +
  21843. + while (*yys++ != '\0')
  21844. + continue;
  21845. +
  21846. + return yys - yystr - 1;
  21847. }
  21848. +# endif
  21849. +# endif
  21850. -#else /* __cplusplus */
  21851. +# ifndef yystpcpy
  21852. +# if defined (__GLIBC__) && defined (_STRING_H) && defined (_GNU_SOURCE)
  21853. +# define yystpcpy stpcpy
  21854. +# else
  21855. +/* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in
  21856. + YYDEST. */
  21857. +static char *
  21858. +# if defined (__STDC__) || defined (__cplusplus)
  21859. +yystpcpy (char *yydest, const char *yysrc)
  21860. +# else
  21861. +yystpcpy (yydest, yysrc)
  21862. + char *yydest;
  21863. + const char *yysrc;
  21864. +# endif
  21865. +{
  21866. + register char *yyd = yydest;
  21867. + register const char *yys = yysrc;
  21868. +
  21869. + while ((*yyd++ = *yys++) != '\0')
  21870. + continue;
  21871. +
  21872. + return yyd - 1;
  21873. +}
  21874. +# endif
  21875. +# endif
  21876. -/* This is the most reliable way to avoid incompatibilities
  21877. - in available built-in functions on various systems. */
  21878. +#endif /* !YYERROR_VERBOSE */
  21879. +
  21880. +
  21881. +
  21882. +#if YYDEBUG
  21883. +/*--------------------------------.
  21884. +| Print this symbol on YYOUTPUT. |
  21885. +`--------------------------------*/
  21886. +
  21887. +#if defined (__STDC__) || defined (__cplusplus)
  21888. static void
  21889. -__yy_memcpy (char *to, char *from, unsigned int count)
  21890. +yysymprint (FILE *yyoutput, int yytype, YYSTYPE *yyvaluep)
  21891. +#else
  21892. +static void
  21893. +yysymprint (yyoutput, yytype, yyvaluep)
  21894. + FILE *yyoutput;
  21895. + int yytype;
  21896. + YYSTYPE *yyvaluep;
  21897. +#endif
  21898. {
  21899. - register char *t = to;
  21900. - register char *f = from;
  21901. - register int i = count;
  21902. + /* Pacify ``unused variable'' warnings. */
  21903. + (void) yyvaluep;
  21904. - while (i-- > 0)
  21905. - *t++ = *f++;
  21906. + if (yytype < YYNTOKENS)
  21907. + {
  21908. + YYFPRINTF (yyoutput, "token %s (", yytname[yytype]);
  21909. +# ifdef YYPRINT
  21910. + YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
  21911. +# endif
  21912. + }
  21913. + else
  21914. + YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]);
  21915. +
  21916. + switch (yytype)
  21917. + {
  21918. + default:
  21919. + break;
  21920. + }
  21921. + YYFPRINTF (yyoutput, ")");
  21922. }
  21923. +#endif /* ! YYDEBUG */
  21924. +/*-----------------------------------------------.
  21925. +| Release the memory associated to this symbol. |
  21926. +`-----------------------------------------------*/
  21927. +
  21928. +#if defined (__STDC__) || defined (__cplusplus)
  21929. +static void
  21930. +yydestruct (int yytype, YYSTYPE *yyvaluep)
  21931. +#else
  21932. +static void
  21933. +yydestruct (yytype, yyvaluep)
  21934. + int yytype;
  21935. + YYSTYPE *yyvaluep;
  21936. #endif
  21937. -#endif
  21938. +{
  21939. + /* Pacify ``unused variable'' warnings. */
  21940. + (void) yyvaluep;
  21941. +
  21942. + switch (yytype)
  21943. + {
  21944. +
  21945. + default:
  21946. + break;
  21947. + }
  21948. +}
  21949. -#line 217 "/usr/lib/bison.simple"
  21950. -/* The user can define YYPARSE_PARAM as the name of an argument to be passed
  21951. - into yyparse. The argument should have type void *.
  21952. - It should actually point to an object.
  21953. - Grammar actions can access the variable by casting it
  21954. - to the proper pointer type. */
  21955. +/* Prevent warnings from -Wmissing-prototypes. */
  21956. #ifdef YYPARSE_PARAM
  21957. -#ifdef __cplusplus
  21958. -#define YYPARSE_PARAM_ARG void *YYPARSE_PARAM
  21959. -#define YYPARSE_PARAM_DECL
  21960. -#else /* not __cplusplus */
  21961. -#define YYPARSE_PARAM_ARG YYPARSE_PARAM
  21962. -#define YYPARSE_PARAM_DECL void *YYPARSE_PARAM;
  21963. -#endif /* not __cplusplus */
  21964. -#else /* not YYPARSE_PARAM */
  21965. -#define YYPARSE_PARAM_ARG
  21966. -#define YYPARSE_PARAM_DECL
  21967. -#endif /* not YYPARSE_PARAM */
  21968. +# if defined (__STDC__) || defined (__cplusplus)
  21969. +int yyparse (void *YYPARSE_PARAM);
  21970. +# else
  21971. +int yyparse ();
  21972. +# endif
  21973. +#else /* ! YYPARSE_PARAM */
  21974. +#if defined (__STDC__) || defined (__cplusplus)
  21975. +int yyparse (void);
  21976. +#else
  21977. +int yyparse ();
  21978. +#endif
  21979. +#endif /* ! YYPARSE_PARAM */
  21980. +
  21981. +
  21982. +
  21983. +/* The lookahead symbol. */
  21984. +int yychar;
  21985. +
  21986. +/* The semantic value of the lookahead symbol. */
  21987. +YYSTYPE yylval;
  21988. +
  21989. +/* Number of syntax errors so far. */
  21990. +int yynerrs;
  21991. +
  21992. +
  21993. +
  21994. +/*----------.
  21995. +| yyparse. |
  21996. +`----------*/
  21997. -/* Prevent warning if -Wstrict-prototypes. */
  21998. -#ifdef __GNUC__
  21999. #ifdef YYPARSE_PARAM
  22000. -int yyparse (void *);
  22001. +# if defined (__STDC__) || defined (__cplusplus)
  22002. +int yyparse (void *YYPARSE_PARAM)
  22003. +# else
  22004. +int yyparse (YYPARSE_PARAM)
  22005. + void *YYPARSE_PARAM;
  22006. +# endif
  22007. +#else /* ! YYPARSE_PARAM */
  22008. +#if defined (__STDC__) || defined (__cplusplus)
  22009. +int
  22010. +yyparse (void)
  22011. #else
  22012. -int yyparse (void);
  22013. +int
  22014. +yyparse ()
  22015. +
  22016. #endif
  22017. #endif
  22018. -
  22019. -int
  22020. -yyparse(YYPARSE_PARAM_ARG)
  22021. - YYPARSE_PARAM_DECL
  22022. {
  22023. +
  22024. register int yystate;
  22025. register int yyn;
  22026. - register short *yyssp;
  22027. + int yyresult;
  22028. + /* Number of tokens to shift before error messages enabled. */
  22029. + int yyerrstatus;
  22030. + /* Lookahead token as an internal (translated) token number. */
  22031. + int yytoken = 0;
  22032. +
  22033. + /* Three stacks and their tools:
  22034. + `yyss': related to states,
  22035. + `yyvs': related to semantic values,
  22036. + `yyls': related to locations.
  22037. +
  22038. + Refer to the stacks thru separate pointers, to allow yyoverflow
  22039. + to reallocate them elsewhere. */
  22040. +
  22041. + /* The state stack. */
  22042. + short int yyssa[YYINITDEPTH];
  22043. + short int *yyss = yyssa;
  22044. + register short int *yyssp;
  22045. +
  22046. + /* The semantic value stack. */
  22047. + YYSTYPE yyvsa[YYINITDEPTH];
  22048. + YYSTYPE *yyvs = yyvsa;
  22049. register YYSTYPE *yyvsp;
  22050. - int yyerrstatus; /* number of tokens to shift before error messages enabled */
  22051. - int yychar1 = 0; /* lookahead token as an internal (translated) token number */
  22052. - short yyssa[YYINITDEPTH]; /* the state stack */
  22053. - YYSTYPE yyvsa[YYINITDEPTH]; /* the semantic value stack */
  22054. - short *yyss = yyssa; /* refer to the stacks thru separate pointers */
  22055. - YYSTYPE *yyvs = yyvsa; /* to allow yyoverflow to reallocate them elsewhere */
  22056. -#ifdef YYLSP_NEEDED
  22057. - YYLTYPE yylsa[YYINITDEPTH]; /* the location stack */
  22058. - YYLTYPE *yyls = yylsa;
  22059. - YYLTYPE *yylsp;
  22060. -
  22061. -#define YYPOPSTACK (yyvsp--, yyssp--, yylsp--)
  22062. -#else
  22063. #define YYPOPSTACK (yyvsp--, yyssp--)
  22064. -#endif
  22065. - int yystacksize = YYINITDEPTH;
  22066. - int yyfree_stacks = 0;
  22067. + YYSIZE_T yystacksize = YYINITDEPTH;
  22068. -#ifdef YYPURE
  22069. - int yychar;
  22070. - YYSTYPE yylval;
  22071. - int yynerrs;
  22072. -#ifdef YYLSP_NEEDED
  22073. - YYLTYPE yylloc;
  22074. -#endif
  22075. -#endif
  22076. + /* The variables used to return semantic value and location from the
  22077. + action routines. */
  22078. + YYSTYPE yyval;
  22079. - YYSTYPE yyval; /* the variable used to return */
  22080. - /* semantic values from the action */
  22081. - /* routines */
  22082. + /* When reducing, the number of symbols on the RHS of the reduced
  22083. + rule. */
  22084. int yylen;
  22085. -#if YYDEBUG != 0
  22086. - if (yydebug)
  22087. - fprintf(stderr, "Starting parse\n");
  22088. -#endif
  22089. + YYDPRINTF ((stderr, "Starting parse\n"));
  22090. yystate = 0;
  22091. yyerrstatus = 0;
  22092. @@ -614,110 +1022,97 @@
  22093. so that they stay on the same level as the state stack.
  22094. The wasted elements are never initialized. */
  22095. - yyssp = yyss - 1;
  22096. + yyssp = yyss;
  22097. yyvsp = yyvs;
  22098. -#ifdef YYLSP_NEEDED
  22099. - yylsp = yyls;
  22100. -#endif
  22101. -/* Push a new state, which is found in yystate . */
  22102. -/* In all cases, when you get here, the value and location stacks
  22103. - have just been pushed. so pushing a state here evens the stacks. */
  22104. -yynewstate:
  22105. - *++yyssp = yystate;
  22106. + goto yysetstate;
  22107. - if (yyssp >= yyss + yystacksize - 1)
  22108. - {
  22109. - /* Give user a chance to reallocate the stack */
  22110. - /* Use copies of these so that the &'s don't force the real ones into memory. */
  22111. - YYSTYPE *yyvs1 = yyvs;
  22112. - short *yyss1 = yyss;
  22113. -#ifdef YYLSP_NEEDED
  22114. - YYLTYPE *yyls1 = yyls;
  22115. -#endif
  22116. +/*------------------------------------------------------------.
  22117. +| yynewstate -- Push a new state, which is found in yystate. |
  22118. +`------------------------------------------------------------*/
  22119. + yynewstate:
  22120. + /* In all cases, when you get here, the value and location stacks
  22121. + have just been pushed. so pushing a state here evens the stacks.
  22122. + */
  22123. + yyssp++;
  22124. + yysetstate:
  22125. + *yyssp = yystate;
  22126. +
  22127. + if (yyss + yystacksize - 1 <= yyssp)
  22128. + {
  22129. /* Get the current used size of the three stacks, in elements. */
  22130. - int size = yyssp - yyss + 1;
  22131. + YYSIZE_T yysize = yyssp - yyss + 1;
  22132. #ifdef yyoverflow
  22133. - /* Each stack pointer address is followed by the size of
  22134. - the data in use in that stack, in bytes. */
  22135. -#ifdef YYLSP_NEEDED
  22136. - /* This used to be a conditional around just the two extra args,
  22137. - but that might be undefined if yyoverflow is a macro. */
  22138. - yyoverflow("parser stack overflow",
  22139. - &yyss1, size * sizeof (*yyssp),
  22140. - &yyvs1, size * sizeof (*yyvsp),
  22141. - &yyls1, size * sizeof (*yylsp),
  22142. - &yystacksize);
  22143. -#else
  22144. - yyoverflow("parser stack overflow",
  22145. - &yyss1, size * sizeof (*yyssp),
  22146. - &yyvs1, size * sizeof (*yyvsp),
  22147. - &yystacksize);
  22148. -#endif
  22149. -
  22150. - yyss = yyss1; yyvs = yyvs1;
  22151. -#ifdef YYLSP_NEEDED
  22152. - yyls = yyls1;
  22153. -#endif
  22154. + {
  22155. + /* Give user a chance to reallocate the stack. Use copies of
  22156. + these so that the &'s don't force the real ones into
  22157. + memory. */
  22158. + YYSTYPE *yyvs1 = yyvs;
  22159. + short int *yyss1 = yyss;
  22160. +
  22161. +
  22162. + /* Each stack pointer address is followed by the size of the
  22163. + data in use in that stack, in bytes. This used to be a
  22164. + conditional around just the two extra args, but that might
  22165. + be undefined if yyoverflow is a macro. */
  22166. + yyoverflow ("parser stack overflow",
  22167. + &yyss1, yysize * sizeof (*yyssp),
  22168. + &yyvs1, yysize * sizeof (*yyvsp),
  22169. +
  22170. + &yystacksize);
  22171. +
  22172. + yyss = yyss1;
  22173. + yyvs = yyvs1;
  22174. + }
  22175. #else /* no yyoverflow */
  22176. +# ifndef YYSTACK_RELOCATE
  22177. + goto yyoverflowlab;
  22178. +# else
  22179. /* Extend the stack our own way. */
  22180. - if (yystacksize >= YYMAXDEPTH)
  22181. - {
  22182. - yyerror("parser stack overflow");
  22183. - if (yyfree_stacks)
  22184. - {
  22185. - free (yyss);
  22186. - free (yyvs);
  22187. -#ifdef YYLSP_NEEDED
  22188. - free (yyls);
  22189. -#endif
  22190. - }
  22191. - return 2;
  22192. - }
  22193. + if (YYMAXDEPTH <= yystacksize)
  22194. + goto yyoverflowlab;
  22195. yystacksize *= 2;
  22196. - if (yystacksize > YYMAXDEPTH)
  22197. + if (YYMAXDEPTH < yystacksize)
  22198. yystacksize = YYMAXDEPTH;
  22199. -#ifndef YYSTACK_USE_ALLOCA
  22200. - yyfree_stacks = 1;
  22201. -#endif
  22202. - yyss = (short *) YYSTACK_ALLOC (yystacksize * sizeof (*yyssp));
  22203. - __yy_memcpy ((char *)yyss, (char *)yyss1,
  22204. - size * (unsigned int) sizeof (*yyssp));
  22205. - yyvs = (YYSTYPE *) YYSTACK_ALLOC (yystacksize * sizeof (*yyvsp));
  22206. - __yy_memcpy ((char *)yyvs, (char *)yyvs1,
  22207. - size * (unsigned int) sizeof (*yyvsp));
  22208. -#ifdef YYLSP_NEEDED
  22209. - yyls = (YYLTYPE *) YYSTACK_ALLOC (yystacksize * sizeof (*yylsp));
  22210. - __yy_memcpy ((char *)yyls, (char *)yyls1,
  22211. - size * (unsigned int) sizeof (*yylsp));
  22212. -#endif
  22213. +
  22214. + {
  22215. + short int *yyss1 = yyss;
  22216. + union yyalloc *yyptr =
  22217. + (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));
  22218. + if (! yyptr)
  22219. + goto yyoverflowlab;
  22220. + YYSTACK_RELOCATE (yyss);
  22221. + YYSTACK_RELOCATE (yyvs);
  22222. +
  22223. +# undef YYSTACK_RELOCATE
  22224. + if (yyss1 != yyssa)
  22225. + YYSTACK_FREE (yyss1);
  22226. + }
  22227. +# endif
  22228. #endif /* no yyoverflow */
  22229. - yyssp = yyss + size - 1;
  22230. - yyvsp = yyvs + size - 1;
  22231. -#ifdef YYLSP_NEEDED
  22232. - yylsp = yyls + size - 1;
  22233. -#endif
  22234. + yyssp = yyss + yysize - 1;
  22235. + yyvsp = yyvs + yysize - 1;
  22236. -#if YYDEBUG != 0
  22237. - if (yydebug)
  22238. - fprintf(stderr, "Stack size increased to %d\n", yystacksize);
  22239. -#endif
  22240. - if (yyssp >= yyss + yystacksize - 1)
  22241. + YYDPRINTF ((stderr, "Stack size increased to %lu\n",
  22242. + (unsigned long int) yystacksize));
  22243. +
  22244. + if (yyss + yystacksize - 1 <= yyssp)
  22245. YYABORT;
  22246. }
  22247. -#if YYDEBUG != 0
  22248. - if (yydebug)
  22249. - fprintf(stderr, "Entering state %d\n", yystate);
  22250. -#endif
  22251. + YYDPRINTF ((stderr, "Entering state %d\n", yystate));
  22252. goto yybackup;
  22253. - yybackup:
  22254. +
  22255. +/*-----------.
  22256. +| yybackup. |
  22257. +`-----------*/
  22258. +yybackup:
  22259. /* Do appropriate processing given the current state. */
  22260. /* Read a lookahead token if we need one and don't already have one. */
  22261. @@ -726,135 +1121,99 @@
  22262. /* First try to decide what to do without reference to lookahead token. */
  22263. yyn = yypact[yystate];
  22264. - if (yyn == YYFLAG)
  22265. + if (yyn == YYPACT_NINF)
  22266. goto yydefault;
  22267. /* Not known => get a lookahead token if don't already have one. */
  22268. - /* yychar is either YYEMPTY or YYEOF
  22269. - or a valid token in external form. */
  22270. -
  22271. + /* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol. */
  22272. if (yychar == YYEMPTY)
  22273. {
  22274. -#if YYDEBUG != 0
  22275. - if (yydebug)
  22276. - fprintf(stderr, "Reading a token: ");
  22277. -#endif
  22278. + YYDPRINTF ((stderr, "Reading a token: "));
  22279. yychar = YYLEX;
  22280. }
  22281. - /* Convert token to internal form (in yychar1) for indexing tables with */
  22282. -
  22283. - if (yychar <= 0) /* This means end of input. */
  22284. + if (yychar <= YYEOF)
  22285. {
  22286. - yychar1 = 0;
  22287. - yychar = YYEOF; /* Don't call YYLEX any more */
  22288. -
  22289. -#if YYDEBUG != 0
  22290. - if (yydebug)
  22291. - fprintf(stderr, "Now at end of input.\n");
  22292. -#endif
  22293. + yychar = yytoken = YYEOF;
  22294. + YYDPRINTF ((stderr, "Now at end of input.\n"));
  22295. }
  22296. else
  22297. {
  22298. - yychar1 = YYTRANSLATE(yychar);
  22299. -
  22300. -#if YYDEBUG != 0
  22301. - if (yydebug)
  22302. - {
  22303. - fprintf (stderr, "Next token is %d (%s", yychar, yytname[yychar1]);
  22304. - /* Give the individual parser a way to print the precise meaning
  22305. - of a token, for further debugging info. */
  22306. -#ifdef YYPRINT
  22307. - YYPRINT (stderr, yychar, yylval);
  22308. -#endif
  22309. - fprintf (stderr, ")\n");
  22310. - }
  22311. -#endif
  22312. + yytoken = YYTRANSLATE (yychar);
  22313. + YYDSYMPRINTF ("Next token is", yytoken, &yylval, &yylloc);
  22314. }
  22315. - yyn += yychar1;
  22316. - if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != yychar1)
  22317. + /* If the proper action on seeing token YYTOKEN is to reduce or to
  22318. + detect an error, take that action. */
  22319. + yyn += yytoken;
  22320. + if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken)
  22321. goto yydefault;
  22322. -
  22323. yyn = yytable[yyn];
  22324. -
  22325. - /* yyn is what to do for this token type in this state.
  22326. - Negative => reduce, -yyn is rule number.
  22327. - Positive => shift, yyn is new state.
  22328. - New state is final state => don't bother to shift,
  22329. - just return success.
  22330. - 0, or most negative number => error. */
  22331. -
  22332. - if (yyn < 0)
  22333. + if (yyn <= 0)
  22334. {
  22335. - if (yyn == YYFLAG)
  22336. + if (yyn == 0 || yyn == YYTABLE_NINF)
  22337. goto yyerrlab;
  22338. yyn = -yyn;
  22339. goto yyreduce;
  22340. }
  22341. - else if (yyn == 0)
  22342. - goto yyerrlab;
  22343. if (yyn == YYFINAL)
  22344. YYACCEPT;
  22345. /* Shift the lookahead token. */
  22346. -
  22347. -#if YYDEBUG != 0
  22348. - if (yydebug)
  22349. - fprintf(stderr, "Shifting token %d (%s), ", yychar, yytname[yychar1]);
  22350. -#endif
  22351. + YYDPRINTF ((stderr, "Shifting token %s, ", yytname[yytoken]));
  22352. /* Discard the token being shifted unless it is eof. */
  22353. if (yychar != YYEOF)
  22354. yychar = YYEMPTY;
  22355. *++yyvsp = yylval;
  22356. -#ifdef YYLSP_NEEDED
  22357. - *++yylsp = yylloc;
  22358. -#endif
  22359. - /* count tokens shifted since error; after three, turn off error status. */
  22360. - if (yyerrstatus) yyerrstatus--;
  22361. +
  22362. + /* Count tokens shifted since error; after three, turn off error
  22363. + status. */
  22364. + if (yyerrstatus)
  22365. + yyerrstatus--;
  22366. yystate = yyn;
  22367. goto yynewstate;
  22368. -/* Do the default action for the current state. */
  22369. -yydefault:
  22370. +/*-----------------------------------------------------------.
  22371. +| yydefault -- do the default action for the current state. |
  22372. +`-----------------------------------------------------------*/
  22373. +yydefault:
  22374. yyn = yydefact[yystate];
  22375. if (yyn == 0)
  22376. goto yyerrlab;
  22377. + goto yyreduce;
  22378. +
  22379. -/* Do a reduction. yyn is the number of a rule to reduce with. */
  22380. +/*-----------------------------.
  22381. +| yyreduce -- Do a reduction. |
  22382. +`-----------------------------*/
  22383. yyreduce:
  22384. + /* yyn is the number of a rule to reduce with. */
  22385. yylen = yyr2[yyn];
  22386. - if (yylen > 0)
  22387. - yyval = yyvsp[1-yylen]; /* implement default value of the action */
  22388. -#if YYDEBUG != 0
  22389. - if (yydebug)
  22390. - {
  22391. - int i;
  22392. -
  22393. - fprintf (stderr, "Reducing via rule %d (line %d), ",
  22394. - yyn, yyrline[yyn]);
  22395. + /* If YYLEN is nonzero, implement the default value of the action:
  22396. + `$$ = $1'.
  22397. - /* Print the symbols being reduced, and their result. */
  22398. - for (i = yyprhs[yyn]; yyrhs[i] > 0; i++)
  22399. - fprintf (stderr, "%s ", yytname[yyrhs[i]]);
  22400. - fprintf (stderr, " -> %s\n", yytname[yyr1[yyn]]);
  22401. - }
  22402. -#endif
  22403. + Otherwise, the following line sets YYVAL to garbage.
  22404. + This behavior is undocumented and Bison
  22405. + users should not rely upon it. Assigning to YYVAL
  22406. + unconditionally makes the parser a bit smaller, and it avoids a
  22407. + GCC warning that YYVAL may be used uninitialized. */
  22408. + yyval = yyvsp[1-yylen];
  22409. - switch (yyn) {
  22410. -
  22411. -case 5:
  22412. -#line 83 "cfg_y.y"
  22413. -{
  22414. + YY_REDUCE_PRINT (yyn);
  22415. + switch (yyn)
  22416. + {
  22417. + case 6:
  22418. +#line 86 "cfg_y.y"
  22419. + {
  22420. if (!curr_sig->uni)
  22421. curr_sig->uni =
  22422. #if defined(UNI30) || defined(DYNAMIC_UNI)
  22423. @@ -873,17 +1232,19 @@
  22424. #endif
  22425. #endif
  22426. ;
  22427. - ;
  22428. - break;}
  22429. -case 6:
  22430. -#line 107 "cfg_y.y"
  22431. -{
  22432. + }
  22433. + break;
  22434. +
  22435. + case 7:
  22436. +#line 110 "cfg_y.y"
  22437. + {
  22438. set_verbosity(NULL,yyvsp[0].num);
  22439. - ;
  22440. - break;}
  22441. -case 12:
  22442. -#line 119 "cfg_y.y"
  22443. -{
  22444. + }
  22445. + break;
  22446. +
  22447. + case 13:
  22448. +#line 122 "cfg_y.y"
  22449. + {
  22450. SIG_ENTITY *sig,**walk;
  22451. if (atmpvc_addr_in_use(_entity.signaling_pvc))
  22452. @@ -892,37 +1253,49 @@
  22453. if (entities == &_entity) entities = NULL;
  22454. for (sig = entities; sig; sig = sig->next)
  22455. if (atm_equal((struct sockaddr *) &sig->signaling_pvc,
  22456. - (struct sockaddr *) &yyvsp[0].pvc,0,0))
  22457. - yyerror("duplicate PVC address %d.%d.%d",S_PVC(sig));
  22458. + (struct sockaddr *) &yyvsp[0].pvc,0,0)) {
  22459. + const char *err;
  22460. + asprintf(&err,"duplicate PVC address %d.%d.%d",S_PVC(sig));
  22461. + if(err) {
  22462. + yyerror(err);
  22463. + free(err);
  22464. + }
  22465. + else
  22466. + yyerror("duplicate PVC address");
  22467. + }
  22468. curr_sig = alloc_t(SIG_ENTITY);
  22469. *curr_sig = _entity;
  22470. curr_sig->signaling_pvc = yyvsp[0].pvc;
  22471. curr_sig->next = NULL;
  22472. for (walk = &entities; *walk; walk = &(*walk)->next);
  22473. *walk = curr_sig;
  22474. - ;
  22475. - break;}
  22476. -case 18:
  22477. -#line 150 "cfg_y.y"
  22478. -{
  22479. + }
  22480. + break;
  22481. +
  22482. + case 19:
  22483. +#line 161 "cfg_y.y"
  22484. + {
  22485. enter_vpci(curr_sig,yyvsp[-2].num,yyvsp[0].num);
  22486. - ;
  22487. - break;}
  22488. -case 20:
  22489. -#line 155 "cfg_y.y"
  22490. -{
  22491. + }
  22492. + break;
  22493. +
  22494. + case 21:
  22495. +#line 166 "cfg_y.y"
  22496. + {
  22497. curr_sig->sig_qos = yyvsp[0].str;
  22498. - ;
  22499. - break;}
  22500. -case 21:
  22501. -#line 159 "cfg_y.y"
  22502. -{
  22503. + }
  22504. + break;
  22505. +
  22506. + case 22:
  22507. +#line 170 "cfg_y.y"
  22508. + {
  22509. curr_sig->max_rate = yyvsp[0].num;
  22510. - ;
  22511. - break;}
  22512. -case 22:
  22513. -#line 163 "cfg_y.y"
  22514. -{
  22515. + }
  22516. + break;
  22517. +
  22518. + case 23:
  22519. +#line 174 "cfg_y.y"
  22520. + {
  22521. struct sockaddr_atmsvc addr;
  22522. char *mask;
  22523. @@ -931,464 +1304,506 @@
  22524. if (text2atm(yyvsp[0].str,(struct sockaddr *) &addr,sizeof(addr),
  22525. T2A_SVC | T2A_WILDCARD | T2A_NAME | T2A_LOCAL) < 0) {
  22526. yyerror("invalid address");
  22527. - return;
  22528. + return 0;
  22529. }
  22530. add_route(curr_sig,&addr,mask ? strtol(mask,NULL,10) : INT_MAX);
  22531. - ;
  22532. - break;}
  22533. -case 23:
  22534. -#line 177 "cfg_y.y"
  22535. -{
  22536. + }
  22537. + break;
  22538. +
  22539. + case 24:
  22540. +#line 188 "cfg_y.y"
  22541. + {
  22542. add_route(curr_sig,NULL,0);
  22543. - ;
  22544. - break;}
  22545. -case 44:
  22546. -#line 229 "cfg_y.y"
  22547. -{
  22548. + }
  22549. + break;
  22550. +
  22551. + case 45:
  22552. +#line 240 "cfg_y.y"
  22553. + {
  22554. set_verbosity("UNI",yyvsp[0].num);
  22555. set_verbosity("KERNEL",yyvsp[0].num);
  22556. set_verbosity("SAP",yyvsp[0].num);
  22557. - ;
  22558. - break;}
  22559. -case 45:
  22560. -#line 235 "cfg_y.y"
  22561. -{
  22562. + }
  22563. + break;
  22564. +
  22565. + case 46:
  22566. +#line 246 "cfg_y.y"
  22567. + {
  22568. enter_vpci(curr_sig,yyvsp[-2].num,yyvsp[0].num);
  22569. - ;
  22570. - break;}
  22571. -case 46:
  22572. -#line 239 "cfg_y.y"
  22573. -{
  22574. + }
  22575. + break;
  22576. +
  22577. + case 47:
  22578. +#line 250 "cfg_y.y"
  22579. + {
  22580. #if defined(UNI30) || defined(ALLOW_UNI30) || defined(DYNAMIC_UNI)
  22581. if (curr_sig->uni & ~S_UNI31) yyerror("UNI mode is already set");
  22582. curr_sig->uni |= S_UNI30;
  22583. #else
  22584. yyerror("Sorry, not supported yet");
  22585. #endif
  22586. - ;
  22587. - break;}
  22588. -case 47:
  22589. -#line 248 "cfg_y.y"
  22590. -{
  22591. + }
  22592. + break;
  22593. +
  22594. + case 48:
  22595. +#line 259 "cfg_y.y"
  22596. + {
  22597. #if defined(UNI31) || defined(ALLOW_UNI30) || defined(DYNAMIC_UNI)
  22598. if (curr_sig->uni & ~S_UNI30) yyerror("UNI mode is already set");
  22599. curr_sig->uni |= S_UNI31;
  22600. #else
  22601. yyerror("Sorry, not supported yet");
  22602. #endif
  22603. - ;
  22604. - break;}
  22605. -case 48:
  22606. -#line 257 "cfg_y.y"
  22607. -{
  22608. + }
  22609. + break;
  22610. +
  22611. + case 49:
  22612. +#line 268 "cfg_y.y"
  22613. + {
  22614. #if defined(UNI40) || defined(DYNAMIC_UNI)
  22615. if (curr_sig->uni) yyerror("UNI mode is already set");
  22616. curr_sig->uni = S_UNI40;
  22617. #else
  22618. yyerror("Sorry, not supported yet");
  22619. #endif
  22620. - ;
  22621. - break;}
  22622. -case 49:
  22623. -#line 266 "cfg_y.y"
  22624. -{
  22625. + }
  22626. + break;
  22627. +
  22628. + case 50:
  22629. +#line 277 "cfg_y.y"
  22630. + {
  22631. #if defined(Q2963_1) || defined(DYNAMIC_UNI)
  22632. if (!(curr_sig->uni & S_UNI40)) yyerror("Incompatible UNI mode");
  22633. curr_sig->uni |= S_Q2963_1;
  22634. #else
  22635. yyerror("Sorry, not supported yet");
  22636. #endif
  22637. - ;
  22638. - break;}
  22639. -case 50:
  22640. -#line 275 "cfg_y.y"
  22641. -{
  22642. + }
  22643. + break;
  22644. +
  22645. + case 51:
  22646. +#line 286 "cfg_y.y"
  22647. + {
  22648. yywarn("sig net is obsolete, please use sig mode net instead");
  22649. curr_sig->mode = sm_net;
  22650. - ;
  22651. - break;}
  22652. -case 52:
  22653. -#line 284 "cfg_y.y"
  22654. -{
  22655. + }
  22656. + break;
  22657. +
  22658. + case 53:
  22659. +#line 295 "cfg_y.y"
  22660. + {
  22661. set_verbosity("SSCF",yyvsp[0].num);
  22662. set_verbosity("SSCOP",yyvsp[0].num);
  22663. - ;
  22664. - break;}
  22665. -case 53:
  22666. -#line 292 "cfg_y.y"
  22667. -{
  22668. + }
  22669. + break;
  22670. +
  22671. + case 54:
  22672. +#line 303 "cfg_y.y"
  22673. + {
  22674. set_verbosity("IO",yyvsp[0].num);
  22675. - ;
  22676. - break;}
  22677. -case 54:
  22678. -#line 296 "cfg_y.y"
  22679. -{
  22680. + }
  22681. + break;
  22682. +
  22683. + case 55:
  22684. +#line 307 "cfg_y.y"
  22685. + {
  22686. curr_sig->signaling_pvc = yyvsp[0].pvc;
  22687. - ;
  22688. - break;}
  22689. -case 55:
  22690. -#line 300 "cfg_y.y"
  22691. -{
  22692. + }
  22693. + break;
  22694. +
  22695. + case 56:
  22696. +#line 311 "cfg_y.y"
  22697. + {
  22698. yywarn("io pcr is obsolete, please use io qos instead");
  22699. curr_sig->sig_pcr = yyvsp[0].num;
  22700. - ;
  22701. - break;}
  22702. -case 56:
  22703. -#line 305 "cfg_y.y"
  22704. -{
  22705. + }
  22706. + break;
  22707. +
  22708. + case 57:
  22709. +#line 316 "cfg_y.y"
  22710. + {
  22711. curr_sig->sig_qos = yyvsp[0].str;
  22712. - ;
  22713. - break;}
  22714. -case 57:
  22715. -#line 309 "cfg_y.y"
  22716. -{
  22717. + }
  22718. + break;
  22719. +
  22720. + case 58:
  22721. +#line 320 "cfg_y.y"
  22722. + {
  22723. curr_sig->max_rate = yyvsp[0].num;
  22724. - ;
  22725. - break;}
  22726. -case 58:
  22727. -#line 316 "cfg_y.y"
  22728. -{
  22729. + }
  22730. + break;
  22731. +
  22732. + case 59:
  22733. +#line 327 "cfg_y.y"
  22734. + {
  22735. set_verbosity(NULL,yyvsp[0].num);
  22736. - ;
  22737. - break;}
  22738. -case 59:
  22739. -#line 320 "cfg_y.y"
  22740. -{
  22741. + }
  22742. + break;
  22743. +
  22744. + case 60:
  22745. +#line 331 "cfg_y.y"
  22746. + {
  22747. dump_dir = yyvsp[0].str;
  22748. if (!trace_size) trace_size = DEFAULT_TRACE_SIZE;
  22749. - ;
  22750. - break;}
  22751. -case 60:
  22752. -#line 325 "cfg_y.y"
  22753. -{
  22754. + }
  22755. + break;
  22756. +
  22757. + case 61:
  22758. +#line 336 "cfg_y.y"
  22759. + {
  22760. set_logfile(yyvsp[0].str);
  22761. - ;
  22762. - break;}
  22763. -case 61:
  22764. -#line 329 "cfg_y.y"
  22765. -{
  22766. + }
  22767. + break;
  22768. +
  22769. + case 62:
  22770. +#line 340 "cfg_y.y"
  22771. + {
  22772. trace_size = yyvsp[0].num;
  22773. - ;
  22774. - break;}
  22775. -case 62:
  22776. -#line 335 "cfg_y.y"
  22777. -{
  22778. + }
  22779. + break;
  22780. +
  22781. + case 63:
  22782. +#line 346 "cfg_y.y"
  22783. + {
  22784. yyval.num = DEFAULT_TRACE_SIZE;
  22785. - ;
  22786. - break;}
  22787. -case 63:
  22788. -#line 339 "cfg_y.y"
  22789. -{
  22790. + }
  22791. + break;
  22792. +
  22793. + case 64:
  22794. +#line 350 "cfg_y.y"
  22795. + {
  22796. yyval.num = yyvsp[0].num;
  22797. - ;
  22798. - break;}
  22799. -case 64:
  22800. -#line 346 "cfg_y.y"
  22801. -{
  22802. + }
  22803. + break;
  22804. +
  22805. + case 65:
  22806. +#line 357 "cfg_y.y"
  22807. + {
  22808. yyval.num = DIAG_DEBUG;
  22809. - ;
  22810. - break;}
  22811. -case 65:
  22812. -#line 350 "cfg_y.y"
  22813. -{
  22814. + }
  22815. + break;
  22816. +
  22817. + case 66:
  22818. +#line 361 "cfg_y.y"
  22819. + {
  22820. yyval.num = DIAG_INFO;
  22821. - ;
  22822. - break;}
  22823. -case 66:
  22824. -#line 354 "cfg_y.y"
  22825. -{
  22826. + }
  22827. + break;
  22828. +
  22829. + case 67:
  22830. +#line 365 "cfg_y.y"
  22831. + {
  22832. yyval.num = DIAG_WARN;
  22833. - ;
  22834. - break;}
  22835. -case 67:
  22836. -#line 358 "cfg_y.y"
  22837. -{
  22838. + }
  22839. + break;
  22840. +
  22841. + case 68:
  22842. +#line 369 "cfg_y.y"
  22843. + {
  22844. yyval.num = DIAG_ERROR;
  22845. - ;
  22846. - break;}
  22847. -case 68:
  22848. -#line 362 "cfg_y.y"
  22849. -{
  22850. + }
  22851. + break;
  22852. +
  22853. + case 69:
  22854. +#line 373 "cfg_y.y"
  22855. + {
  22856. yyval.num = DIAG_FATAL;
  22857. - ;
  22858. - break;}
  22859. -case 69:
  22860. -#line 369 "cfg_y.y"
  22861. -{
  22862. + }
  22863. + break;
  22864. +
  22865. + case 70:
  22866. +#line 380 "cfg_y.y"
  22867. + {
  22868. curr_sig->mode = sm_user;
  22869. - ;
  22870. - break;}
  22871. -case 70:
  22872. -#line 373 "cfg_y.y"
  22873. -{
  22874. + }
  22875. + break;
  22876. +
  22877. + case 71:
  22878. +#line 384 "cfg_y.y"
  22879. + {
  22880. curr_sig->mode = sm_net;
  22881. - ;
  22882. - break;}
  22883. -case 71:
  22884. -#line 377 "cfg_y.y"
  22885. -{
  22886. + }
  22887. + break;
  22888. +
  22889. + case 72:
  22890. +#line 388 "cfg_y.y"
  22891. + {
  22892. curr_sig->mode = sm_switch;
  22893. - ;
  22894. - break;}
  22895. -case 72:
  22896. -#line 384 "cfg_y.y"
  22897. -{
  22898. + }
  22899. + break;
  22900. +
  22901. + case 73:
  22902. +#line 395 "cfg_y.y"
  22903. + {
  22904. set_verbosity("POLICY",yyvsp[0].num);
  22905. - ;
  22906. - break;}
  22907. -case 73:
  22908. -#line 388 "cfg_y.y"
  22909. -{
  22910. + }
  22911. + break;
  22912. +
  22913. + case 74:
  22914. +#line 399 "cfg_y.y"
  22915. + {
  22916. rule = alloc_t(RULE);
  22917. rule->type = yyvsp[0].num;
  22918. - ;
  22919. - break;}
  22920. -case 75:
  22921. -#line 397 "cfg_y.y"
  22922. -{
  22923. + }
  22924. + break;
  22925. +
  22926. + case 76:
  22927. +#line 408 "cfg_y.y"
  22928. + {
  22929. yyval.num = ACL_ALLOW;
  22930. - ;
  22931. - break;}
  22932. -case 76:
  22933. -#line 401 "cfg_y.y"
  22934. -{
  22935. + }
  22936. + break;
  22937. +
  22938. + case 77:
  22939. +#line 412 "cfg_y.y"
  22940. + {
  22941. yyval.num = ACL_REJECT;
  22942. - ;
  22943. - break;}
  22944. -case 77:
  22945. -#line 408 "cfg_y.y"
  22946. -{
  22947. + }
  22948. + break;
  22949. +
  22950. + case 78:
  22951. +#line 419 "cfg_y.y"
  22952. + {
  22953. rule->type |= ACL_IN;
  22954. put_address(yyvsp[0].str);
  22955. - ;
  22956. - break;}
  22957. -case 78:
  22958. -#line 413 "cfg_y.y"
  22959. -{
  22960. + }
  22961. + break;
  22962. +
  22963. + case 79:
  22964. +#line 424 "cfg_y.y"
  22965. + {
  22966. rule->type |= ACL_OUT;
  22967. put_address(yyvsp[0].str);
  22968. - ;
  22969. - break;}
  22970. -}
  22971. - /* the action file gets copied in in place of this dollarsign */
  22972. -#line 543 "/usr/lib/bison.simple"
  22973. + }
  22974. + break;
  22975. +
  22976. +
  22977. + }
  22978. +
  22979. +/* Line 1010 of yacc.c. */
  22980. +#line 1585 "y.tab.c"
  22981. yyvsp -= yylen;
  22982. yyssp -= yylen;
  22983. -#ifdef YYLSP_NEEDED
  22984. - yylsp -= yylen;
  22985. -#endif
  22986. -#if YYDEBUG != 0
  22987. - if (yydebug)
  22988. - {
  22989. - short *ssp1 = yyss - 1;
  22990. - fprintf (stderr, "state stack now");
  22991. - while (ssp1 != yyssp)
  22992. - fprintf (stderr, " %d", *++ssp1);
  22993. - fprintf (stderr, "\n");
  22994. - }
  22995. -#endif
  22996. +
  22997. + YY_STACK_PRINT (yyss, yyssp);
  22998. *++yyvsp = yyval;
  22999. -#ifdef YYLSP_NEEDED
  23000. - yylsp++;
  23001. - if (yylen == 0)
  23002. - {
  23003. - yylsp->first_line = yylloc.first_line;
  23004. - yylsp->first_column = yylloc.first_column;
  23005. - yylsp->last_line = (yylsp-1)->last_line;
  23006. - yylsp->last_column = (yylsp-1)->last_column;
  23007. - yylsp->text = 0;
  23008. - }
  23009. - else
  23010. - {
  23011. - yylsp->last_line = (yylsp+yylen-1)->last_line;
  23012. - yylsp->last_column = (yylsp+yylen-1)->last_column;
  23013. - }
  23014. -#endif
  23015. - /* Now "shift" the result of the reduction.
  23016. - Determine what state that goes to,
  23017. - based on the state we popped back to
  23018. - and the rule number reduced by. */
  23019. + /* Now `shift' the result of the reduction. Determine what state
  23020. + that goes to, based on the state we popped back to and the rule
  23021. + number reduced by. */
  23022. yyn = yyr1[yyn];
  23023. - yystate = yypgoto[yyn - YYNTBASE] + *yyssp;
  23024. - if (yystate >= 0 && yystate <= YYLAST && yycheck[yystate] == *yyssp)
  23025. + yystate = yypgoto[yyn - YYNTOKENS] + *yyssp;
  23026. + if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp)
  23027. yystate = yytable[yystate];
  23028. else
  23029. - yystate = yydefgoto[yyn - YYNTBASE];
  23030. + yystate = yydefgoto[yyn - YYNTOKENS];
  23031. goto yynewstate;
  23032. -yyerrlab: /* here on detecting error */
  23033. - if (! yyerrstatus)
  23034. - /* If not already recovering from an error, report this error. */
  23035. +/*------------------------------------.
  23036. +| yyerrlab -- here on detecting error |
  23037. +`------------------------------------*/
  23038. +yyerrlab:
  23039. + /* If not already recovering from an error, report this error. */
  23040. + if (!yyerrstatus)
  23041. {
  23042. ++yynerrs;
  23043. -
  23044. -#ifdef YYERROR_VERBOSE
  23045. +#if YYERROR_VERBOSE
  23046. yyn = yypact[yystate];
  23047. - if (yyn > YYFLAG && yyn < YYLAST)
  23048. + if (YYPACT_NINF < yyn && yyn < YYLAST)
  23049. {
  23050. - int size = 0;
  23051. - char *msg;
  23052. - int x, count;
  23053. -
  23054. - count = 0;
  23055. - /* Start X at -yyn if nec to avoid negative indexes in yycheck. */
  23056. - for (x = (yyn < 0 ? -yyn : 0);
  23057. - x < (sizeof(yytname) / sizeof(char *)); x++)
  23058. - if (yycheck[x + yyn] == x)
  23059. - size += strlen(yytname[x]) + 15, count++;
  23060. - msg = (char *) malloc(size + 15);
  23061. - if (msg != 0)
  23062. + YYSIZE_T yysize = 0;
  23063. + int yytype = YYTRANSLATE (yychar);
  23064. + const char* yyprefix;
  23065. + char *yymsg;
  23066. + int yyx;
  23067. +
  23068. + /* Start YYX at -YYN if negative to avoid negative indexes in
  23069. + YYCHECK. */
  23070. + int yyxbegin = yyn < 0 ? -yyn : 0;
  23071. +
  23072. + /* Stay within bounds of both yycheck and yytname. */
  23073. + int yychecklim = YYLAST - yyn;
  23074. + int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;
  23075. + int yycount = 0;
  23076. +
  23077. + yyprefix = ", expecting ";
  23078. + for (yyx = yyxbegin; yyx < yyxend; ++yyx)
  23079. + if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR)
  23080. + {
  23081. + yysize += yystrlen (yyprefix) + yystrlen (yytname [yyx]);
  23082. + yycount += 1;
  23083. + if (yycount == 5)
  23084. + {
  23085. + yysize = 0;
  23086. + break;
  23087. + }
  23088. + }
  23089. + yysize += (sizeof ("syntax error, unexpected ")
  23090. + + yystrlen (yytname[yytype]));
  23091. + yymsg = (char *) YYSTACK_ALLOC (yysize);
  23092. + if (yymsg != 0)
  23093. {
  23094. - strcpy(msg, "parse error");
  23095. + char *yyp = yystpcpy (yymsg, "syntax error, unexpected ");
  23096. + yyp = yystpcpy (yyp, yytname[yytype]);
  23097. - if (count < 5)
  23098. + if (yycount < 5)
  23099. {
  23100. - count = 0;
  23101. - for (x = (yyn < 0 ? -yyn : 0);
  23102. - x < (sizeof(yytname) / sizeof(char *)); x++)
  23103. - if (yycheck[x + yyn] == x)
  23104. + yyprefix = ", expecting ";
  23105. + for (yyx = yyxbegin; yyx < yyxend; ++yyx)
  23106. + if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR)
  23107. {
  23108. - strcat(msg, count == 0 ? ", expecting `" : " or `");
  23109. - strcat(msg, yytname[x]);
  23110. - strcat(msg, "'");
  23111. - count++;
  23112. + yyp = yystpcpy (yyp, yyprefix);
  23113. + yyp = yystpcpy (yyp, yytname[yyx]);
  23114. + yyprefix = " or ";
  23115. }
  23116. }
  23117. - yyerror(msg);
  23118. - free(msg);
  23119. + yyerror (yymsg);
  23120. + YYSTACK_FREE (yymsg);
  23121. }
  23122. else
  23123. - yyerror ("parse error; also virtual memory exceeded");
  23124. + yyerror ("syntax error; also virtual memory exhausted");
  23125. }
  23126. else
  23127. #endif /* YYERROR_VERBOSE */
  23128. - yyerror("parse error");
  23129. + yyerror ("syntax error");
  23130. }
  23131. - goto yyerrlab1;
  23132. -yyerrlab1: /* here on error raised explicitly by an action */
  23133. +
  23134. if (yyerrstatus == 3)
  23135. {
  23136. - /* if just tried and failed to reuse lookahead token after an error, discard it. */
  23137. + /* If just tried and failed to reuse lookahead token after an
  23138. + error, discard it. */
  23139. - /* return failure if at end of input */
  23140. - if (yychar == YYEOF)
  23141. - YYABORT;
  23142. -
  23143. -#if YYDEBUG != 0
  23144. - if (yydebug)
  23145. - fprintf(stderr, "Discarding token %d (%s).\n", yychar, yytname[yychar1]);
  23146. -#endif
  23147. + if (yychar <= YYEOF)
  23148. + {
  23149. + /* If at end of input, pop the error token,
  23150. + then the rest of the stack, then return failure. */
  23151. + if (yychar == YYEOF)
  23152. + for (;;)
  23153. + {
  23154. + YYPOPSTACK;
  23155. + if (yyssp == yyss)
  23156. + YYABORT;
  23157. + YYDSYMPRINTF ("Error: popping", yystos[*yyssp], yyvsp, yylsp);
  23158. + yydestruct (yystos[*yyssp], yyvsp);
  23159. + }
  23160. + }
  23161. + else
  23162. + {
  23163. + YYDSYMPRINTF ("Error: discarding", yytoken, &yylval, &yylloc);
  23164. + yydestruct (yytoken, &yylval);
  23165. + yychar = YYEMPTY;
  23166. - yychar = YYEMPTY;
  23167. + }
  23168. }
  23169. - /* Else will try to reuse lookahead token
  23170. - after shifting the error token. */
  23171. -
  23172. - yyerrstatus = 3; /* Each real token shifted decrements this */
  23173. + /* Else will try to reuse lookahead token after shifting the error
  23174. + token. */
  23175. + goto yyerrlab1;
  23176. - goto yyerrhandle;
  23177. -yyerrdefault: /* current state does not do anything special for the error token. */
  23178. +/*---------------------------------------------------.
  23179. +| yyerrorlab -- error raised explicitly by YYERROR. |
  23180. +`---------------------------------------------------*/
  23181. +yyerrorlab:
  23182. -#if 0
  23183. - /* This is wrong; only states that explicitly want error tokens
  23184. - should shift them. */
  23185. - yyn = yydefact[yystate]; /* If its default is to accept any token, ok. Otherwise pop it.*/
  23186. - if (yyn) goto yydefault;
  23187. +#ifdef __GNUC__
  23188. + /* Pacify GCC when the user code never invokes YYERROR and the label
  23189. + yyerrorlab therefore never appears in user code. */
  23190. + if (0)
  23191. + goto yyerrorlab;
  23192. #endif
  23193. -yyerrpop: /* pop the current state because it cannot handle the error token */
  23194. -
  23195. - if (yyssp == yyss) YYABORT;
  23196. - yyvsp--;
  23197. - yystate = *--yyssp;
  23198. -#ifdef YYLSP_NEEDED
  23199. - yylsp--;
  23200. -#endif
  23201. + yyvsp -= yylen;
  23202. + yyssp -= yylen;
  23203. + yystate = *yyssp;
  23204. + goto yyerrlab1;
  23205. -#if YYDEBUG != 0
  23206. - if (yydebug)
  23207. - {
  23208. - short *ssp1 = yyss - 1;
  23209. - fprintf (stderr, "Error: state stack now");
  23210. - while (ssp1 != yyssp)
  23211. - fprintf (stderr, " %d", *++ssp1);
  23212. - fprintf (stderr, "\n");
  23213. - }
  23214. -#endif
  23215. -yyerrhandle:
  23216. +/*-------------------------------------------------------------.
  23217. +| yyerrlab1 -- common code for both syntax error and YYERROR. |
  23218. +`-------------------------------------------------------------*/
  23219. +yyerrlab1:
  23220. + yyerrstatus = 3; /* Each real token shifted decrements this. */
  23221. - yyn = yypact[yystate];
  23222. - if (yyn == YYFLAG)
  23223. - goto yyerrdefault;
  23224. + for (;;)
  23225. + {
  23226. + yyn = yypact[yystate];
  23227. + if (yyn != YYPACT_NINF)
  23228. + {
  23229. + yyn += YYTERROR;
  23230. + if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR)
  23231. + {
  23232. + yyn = yytable[yyn];
  23233. + if (0 < yyn)
  23234. + break;
  23235. + }
  23236. + }
  23237. - yyn += YYTERROR;
  23238. - if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != YYTERROR)
  23239. - goto yyerrdefault;
  23240. + /* Pop the current state because it cannot handle the error token. */
  23241. + if (yyssp == yyss)
  23242. + YYABORT;
  23243. - yyn = yytable[yyn];
  23244. - if (yyn < 0)
  23245. - {
  23246. - if (yyn == YYFLAG)
  23247. - goto yyerrpop;
  23248. - yyn = -yyn;
  23249. - goto yyreduce;
  23250. + YYDSYMPRINTF ("Error: popping", yystos[*yyssp], yyvsp, yylsp);
  23251. + yydestruct (yystos[yystate], yyvsp);
  23252. + YYPOPSTACK;
  23253. + yystate = *yyssp;
  23254. + YY_STACK_PRINT (yyss, yyssp);
  23255. }
  23256. - else if (yyn == 0)
  23257. - goto yyerrpop;
  23258. if (yyn == YYFINAL)
  23259. YYACCEPT;
  23260. -#if YYDEBUG != 0
  23261. - if (yydebug)
  23262. - fprintf(stderr, "Shifting error token, ");
  23263. -#endif
  23264. + YYDPRINTF ((stderr, "Shifting error token, "));
  23265. *++yyvsp = yylval;
  23266. -#ifdef YYLSP_NEEDED
  23267. - *++yylsp = yylloc;
  23268. -#endif
  23269. +
  23270. yystate = yyn;
  23271. goto yynewstate;
  23272. - yyacceptlab:
  23273. - /* YYACCEPT comes here. */
  23274. - if (yyfree_stacks)
  23275. - {
  23276. - free (yyss);
  23277. - free (yyvs);
  23278. -#ifdef YYLSP_NEEDED
  23279. - free (yyls);
  23280. -#endif
  23281. - }
  23282. - return 0;
  23283. - yyabortlab:
  23284. - /* YYABORT comes here. */
  23285. - if (yyfree_stacks)
  23286. - {
  23287. - free (yyss);
  23288. - free (yyvs);
  23289. -#ifdef YYLSP_NEEDED
  23290. - free (yyls);
  23291. +/*-------------------------------------.
  23292. +| yyacceptlab -- YYACCEPT comes here. |
  23293. +`-------------------------------------*/
  23294. +yyacceptlab:
  23295. + yyresult = 0;
  23296. + goto yyreturn;
  23297. +
  23298. +/*-----------------------------------.
  23299. +| yyabortlab -- YYABORT comes here. |
  23300. +`-----------------------------------*/
  23301. +yyabortlab:
  23302. + yyresult = 1;
  23303. + goto yyreturn;
  23304. +
  23305. +#ifndef yyoverflow
  23306. +/*----------------------------------------------.
  23307. +| yyoverflowlab -- parser overflow comes here. |
  23308. +`----------------------------------------------*/
  23309. +yyoverflowlab:
  23310. + yyerror ("parser stack overflow");
  23311. + yyresult = 2;
  23312. + /* Fall through. */
  23313. +#endif
  23314. +
  23315. +yyreturn:
  23316. +#ifndef yyoverflow
  23317. + if (yyss != yyssa)
  23318. + YYSTACK_FREE (yyss);
  23319. #endif
  23320. - }
  23321. - return 1;
  23322. + return yyresult;
  23323. }
  23324. -#line 418 "cfg_y.y"
  23325. +
  23326. +
  23327. +
  23328. --- linux-atm-2.4.1.orig/src/sigd/proto.c
  23329. +++ linux-atm-2.4.1/src/sigd/proto.c
  23330. @@ -259,6 +259,7 @@
  23331. break;
  23332. }
  23333. default:
  23334. + break;
  23335. }
  23336. va_end(ap);
  23337. if ((size = q_close(&dsc)) >= 0) to_signaling(sock->sig,q_buffer,size);
  23338. @@ -288,6 +289,7 @@
  23339. }
  23340. break;
  23341. default:
  23342. + break;
  23343. }
  23344. va_end(ap);
  23345. }
  23346. --- linux-atm-2.4.1.orig/src/sigd/cfg_y.y
  23347. +++ linux-atm-2.4.1/src/sigd/cfg_y.y
  23348. @@ -7,6 +7,7 @@
  23349. #include <config.h>
  23350. #endif
  23351. +#include <stdlib.h>
  23352. #include <string.h>
  23353. #include <ctype.h>
  23354. #include <limits.h>
  23355. @@ -19,6 +20,8 @@
  23356. #include "trace.h"
  23357. #include "policy.h"
  23358. +extern void yywarn(const char *s);
  23359. +extern void yyerror(const char *s);
  23360. static RULE *rule;
  23361. static SIG_ENTITY *curr_sig = &_entity;
  23362. @@ -125,8 +128,16 @@
  23363. if (entities == &_entity) entities = NULL;
  23364. for (sig = entities; sig; sig = sig->next)
  23365. if (atm_equal((struct sockaddr *) &sig->signaling_pvc,
  23366. - (struct sockaddr *) &$2,0,0))
  23367. - yyerror("duplicate PVC address %d.%d.%d",S_PVC(sig));
  23368. + (struct sockaddr *) &$2,0,0)) {
  23369. + const char *err;
  23370. + asprintf(&err,"duplicate PVC address %d.%d.%d",S_PVC(sig));
  23371. + if(err) {
  23372. + yyerror(err);
  23373. + free(err);
  23374. + }
  23375. + else
  23376. + yyerror("duplicate PVC address");
  23377. + }
  23378. curr_sig = alloc_t(SIG_ENTITY);
  23379. *curr_sig = _entity;
  23380. curr_sig->signaling_pvc = $2;
  23381. @@ -169,7 +180,7 @@
  23382. if (text2atm($1,(struct sockaddr *) &addr,sizeof(addr),
  23383. T2A_SVC | T2A_WILDCARD | T2A_NAME | T2A_LOCAL) < 0) {
  23384. yyerror("invalid address");
  23385. - return;
  23386. + return 0;
  23387. }
  23388. add_route(curr_sig,&addr,mask ? strtol(mask,NULL,10) : INT_MAX);
  23389. }
  23390. --- linux-atm-2.4.1.orig/src/sigd/cfg_y.h
  23391. +++ linux-atm-2.4.1/src/sigd/cfg_y.h
  23392. @@ -1,44 +1,127 @@
  23393. -typedef union {
  23394. +/* A Bison parser, made by GNU Bison 1.875d. */
  23395. +
  23396. +/* Skeleton parser for Yacc-like parsing with Bison,
  23397. + Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
  23398. +
  23399. + This program is free software; you can redistribute it and/or modify
  23400. + it under the terms of the GNU General Public License as published by
  23401. + the Free Software Foundation; either version 2, or (at your option)
  23402. + any later version.
  23403. +
  23404. + This program is distributed in the hope that it will be useful,
  23405. + but WITHOUT ANY WARRANTY; without even the implied warranty of
  23406. + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  23407. + GNU General Public License for more details.
  23408. +
  23409. + You should have received a copy of the GNU General Public License
  23410. + along with this program; if not, write to the Free Software
  23411. + Foundation, Inc., 59 Temple Place - Suite 330,
  23412. + Boston, MA 02111-1307, USA. */
  23413. +
  23414. +/* As a special exception, when this file is copied by Bison into a
  23415. + Bison output file, you may use that output file without restriction.
  23416. + This special exception was added by the Free Software Foundation
  23417. + in version 1.24 of Bison. */
  23418. +
  23419. +/* Tokens. */
  23420. +#ifndef YYTOKENTYPE
  23421. +# define YYTOKENTYPE
  23422. + /* Put the tokens into the symbol table, so that GDB and other debuggers
  23423. + know about them. */
  23424. + enum yytokentype {
  23425. + TOK_LEVEL = 258,
  23426. + TOK_DEBUG = 259,
  23427. + TOK_INFO = 260,
  23428. + TOK_WARN = 261,
  23429. + TOK_ERROR = 262,
  23430. + TOK_FATAL = 263,
  23431. + TOK_SIG = 264,
  23432. + TOK_UNI30 = 265,
  23433. + TOK_UNI31 = 266,
  23434. + TOK_UNI40 = 267,
  23435. + TOK_Q2963_1 = 268,
  23436. + TOK_SAAL = 269,
  23437. + TOK_VC = 270,
  23438. + TOK_IO = 271,
  23439. + TOK_MODE = 272,
  23440. + TOK_USER = 273,
  23441. + TOK_NET = 274,
  23442. + TOK_SWITCH = 275,
  23443. + TOK_VPCI = 276,
  23444. + TOK_ITF = 277,
  23445. + TOK_PCR = 278,
  23446. + TOK_TRACE = 279,
  23447. + TOK_POLICY = 280,
  23448. + TOK_ALLOW = 281,
  23449. + TOK_REJECT = 282,
  23450. + TOK_ENTITY = 283,
  23451. + TOK_DEFAULT = 284,
  23452. + TOK_NUMBER = 285,
  23453. + TOK_MAX_RATE = 286,
  23454. + TOK_DUMP_DIR = 287,
  23455. + TOK_LOGFILE = 288,
  23456. + TOK_QOS = 289,
  23457. + TOK_FROM = 290,
  23458. + TOK_TO = 291,
  23459. + TOK_ROUTE = 292,
  23460. + TOK_PVC = 293
  23461. + };
  23462. +#endif
  23463. +#define TOK_LEVEL 258
  23464. +#define TOK_DEBUG 259
  23465. +#define TOK_INFO 260
  23466. +#define TOK_WARN 261
  23467. +#define TOK_ERROR 262
  23468. +#define TOK_FATAL 263
  23469. +#define TOK_SIG 264
  23470. +#define TOK_UNI30 265
  23471. +#define TOK_UNI31 266
  23472. +#define TOK_UNI40 267
  23473. +#define TOK_Q2963_1 268
  23474. +#define TOK_SAAL 269
  23475. +#define TOK_VC 270
  23476. +#define TOK_IO 271
  23477. +#define TOK_MODE 272
  23478. +#define TOK_USER 273
  23479. +#define TOK_NET 274
  23480. +#define TOK_SWITCH 275
  23481. +#define TOK_VPCI 276
  23482. +#define TOK_ITF 277
  23483. +#define TOK_PCR 278
  23484. +#define TOK_TRACE 279
  23485. +#define TOK_POLICY 280
  23486. +#define TOK_ALLOW 281
  23487. +#define TOK_REJECT 282
  23488. +#define TOK_ENTITY 283
  23489. +#define TOK_DEFAULT 284
  23490. +#define TOK_NUMBER 285
  23491. +#define TOK_MAX_RATE 286
  23492. +#define TOK_DUMP_DIR 287
  23493. +#define TOK_LOGFILE 288
  23494. +#define TOK_QOS 289
  23495. +#define TOK_FROM 290
  23496. +#define TOK_TO 291
  23497. +#define TOK_ROUTE 292
  23498. +#define TOK_PVC 293
  23499. +
  23500. +
  23501. +
  23502. +
  23503. +#if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
  23504. +#line 56 "cfg_y.y"
  23505. +typedef union YYSTYPE {
  23506. int num;
  23507. char *str;
  23508. struct sockaddr_atmpvc pvc;
  23509. } YYSTYPE;
  23510. -#define TOK_LEVEL 257
  23511. -#define TOK_DEBUG 258
  23512. -#define TOK_INFO 259
  23513. -#define TOK_WARN 260
  23514. -#define TOK_ERROR 261
  23515. -#define TOK_FATAL 262
  23516. -#define TOK_SIG 263
  23517. -#define TOK_UNI30 264
  23518. -#define TOK_UNI31 265
  23519. -#define TOK_UNI40 266
  23520. -#define TOK_Q2963_1 267
  23521. -#define TOK_SAAL 268
  23522. -#define TOK_VC 269
  23523. -#define TOK_IO 270
  23524. -#define TOK_MODE 271
  23525. -#define TOK_USER 272
  23526. -#define TOK_NET 273
  23527. -#define TOK_SWITCH 274
  23528. -#define TOK_VPCI 275
  23529. -#define TOK_ITF 276
  23530. -#define TOK_PCR 277
  23531. -#define TOK_TRACE 278
  23532. -#define TOK_POLICY 279
  23533. -#define TOK_ALLOW 280
  23534. -#define TOK_REJECT 281
  23535. -#define TOK_ENTITY 282
  23536. -#define TOK_DEFAULT 283
  23537. -#define TOK_NUMBER 284
  23538. -#define TOK_MAX_RATE 285
  23539. -#define TOK_DUMP_DIR 286
  23540. -#define TOK_LOGFILE 287
  23541. -#define TOK_QOS 288
  23542. -#define TOK_FROM 289
  23543. -#define TOK_TO 290
  23544. -#define TOK_ROUTE 291
  23545. -#define TOK_PVC 292
  23546. -
  23547. +/* Line 1285 of yacc.c. */
  23548. +#line 119 "y.tab.h"
  23549. +# define yystype YYSTYPE /* obsolescent; will be withdrawn */
  23550. +# define YYSTYPE_IS_DECLARED 1
  23551. +# define YYSTYPE_IS_TRIVIAL 1
  23552. +#endif
  23553. extern YYSTYPE yylval;
  23554. +
  23555. +
  23556. +
  23557. --- linux-atm-2.4.1.orig/src/maint/Makefile.in
  23558. +++ linux-atm-2.4.1/src/maint/Makefile.in
  23559. @@ -1,4 +1,4 @@
  23560. -# Makefile.in generated automatically by automake 1.4-p5 from Makefile.am
  23561. +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
  23562. # Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
  23563. # This Makefile.in is free software; the Free Software Foundation
  23564. @@ -181,8 +181,11 @@
  23565. DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
  23566. -TAR = gtar
  23567. +TAR = tar
  23568. GZIP_ENV = --best
  23569. +DEP_FILES = .deps/atmaddr.P .deps/atmdiag.P .deps/atmdump.P \
  23570. +.deps/atmloop.P .deps/atmtcp.P .deps/enitune.P .deps/esi.P \
  23571. +.deps/saaldump.P .deps/sonetdiag.P .deps/zntune.P
  23572. SOURCES = $(atmdiag_SOURCES) $(atmdump_SOURCES) $(sonetdiag_SOURCES) $(saaldump_SOURCES) $(atmaddr_SOURCES) $(esi_SOURCES) $(atmloop_SOURCES) $(atmtcp_SOURCES) $(enitune_SOURCES) $(zntune_SOURCES)
  23573. OBJECTS = $(atmdiag_OBJECTS) $(atmdump_OBJECTS) $(sonetdiag_OBJECTS) $(saaldump_OBJECTS) $(atmaddr_OBJECTS) $(esi_OBJECTS) $(atmloop_OBJECTS) $(atmtcp_OBJECTS) $(enitune_OBJECTS) $(zntune_OBJECTS)
  23574. @@ -190,9 +193,9 @@
  23575. .SUFFIXES:
  23576. .SUFFIXES: .S .c .lo .o .obj .s
  23577. $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
  23578. - cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps src/maint/Makefile
  23579. + cd $(top_srcdir) && $(AUTOMAKE) --gnu src/maint/Makefile
  23580. -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  23581. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
  23582. cd $(top_builddir) \
  23583. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
  23584. @@ -247,9 +250,6 @@
  23585. rm -f $(DESTDIR)$(sbindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
  23586. done
  23587. -.c.o:
  23588. - $(COMPILE) -c $<
  23589. -
  23590. # FIXME: We should only use cygpath when building on Windows,
  23591. # and only if it is available.
  23592. .c.obj:
  23593. @@ -272,9 +272,6 @@
  23594. maintainer-clean-compile:
  23595. -.c.lo:
  23596. - $(LIBTOOL) --mode=compile $(COMPILE) -c $<
  23597. -
  23598. .s.lo:
  23599. $(LIBTOOL) --mode=compile $(COMPILE) -c $<
  23600. @@ -388,7 +385,7 @@
  23601. awk ' { files[$$0] = 1; } \
  23602. END { for (i in files) print i; }'`; \
  23603. test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
  23604. - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
  23605. + || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags $$unique $(LISP))
  23606. mostlyclean-tags:
  23607. @@ -404,6 +401,11 @@
  23608. subdir = src/maint
  23609. distdir: $(DISTFILES)
  23610. + here=`cd $(top_builddir) && pwd`; \
  23611. + top_distdir=`cd $(top_distdir) && pwd`; \
  23612. + distdir=`cd $(distdir) && pwd`; \
  23613. + cd $(top_srcdir) \
  23614. + && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu src/maint/Makefile
  23615. @for file in $(DISTFILES); do \
  23616. d=$(srcdir); \
  23617. if test -d $$d/$$file; then \
  23618. @@ -414,28 +416,38 @@
  23619. || cp -p $$d/$$file $(distdir)/$$file || :; \
  23620. fi; \
  23621. done
  23622. -atmaddr.o: atmaddr.c ../../config.h ../../src/include/atm.h \
  23623. - ../../src/include/stdint.h
  23624. -atmdiag.o: atmdiag.c ../../config.h ../../src/include/atm.h \
  23625. - ../../src/include/stdint.h
  23626. -atmdump.o: atmdump.c ../../config.h ../../src/include/stdint.h \
  23627. - ../../src/include/atm.h
  23628. -atmloop.o: atmloop.c ../../config.h ../../src/include/atm.h \
  23629. - ../../src/include/stdint.h
  23630. -atmtcp.o: atmtcp.c ../../config.h ../../src/include/stdint.h \
  23631. - ../../src/include/atm.h ../../src/include/atmd.h
  23632. -enitune.o: enitune.c ../../config.h ../../src/include/atm.h \
  23633. - ../../src/include/stdint.h
  23634. -esi.o: esi.c ../../config.h ../../src/include/atm.h \
  23635. - ../../src/include/stdint.h
  23636. -saaldump.o: saaldump.c ../../config.h ../../src/include/atm.h \
  23637. - ../../src/include/stdint.h ../../src/saal/pdu.h \
  23638. - ../../src/include/atmd.h ../../src/qgen/qlib.h
  23639. -sonetdiag.o: sonetdiag.c ../../config.h ../../src/include/atm.h \
  23640. - ../../src/include/stdint.h
  23641. -zntune.o: zntune.c ../../config.h ../../src/include/atm.h \
  23642. - ../../src/include/stdint.h
  23643. +DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
  23644. +
  23645. +-include $(DEP_FILES)
  23646. +
  23647. +mostlyclean-depend:
  23648. +
  23649. +clean-depend:
  23650. +
  23651. +distclean-depend:
  23652. + -rm -rf .deps
  23653. +
  23654. +maintainer-clean-depend:
  23655. +
  23656. +%.o: %.c
  23657. + @echo '$(COMPILE) -c $<'; \
  23658. + $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
  23659. + @-cp .deps/$(*F).pp .deps/$(*F).P; \
  23660. + tr ' ' '\012' < .deps/$(*F).pp \
  23661. + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
  23662. + >> .deps/$(*F).P; \
  23663. + rm .deps/$(*F).pp
  23664. +
  23665. +%.lo: %.c
  23666. + @echo '$(LTCOMPILE) -c $<'; \
  23667. + $(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
  23668. + @-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \
  23669. + < .deps/$(*F).pp > .deps/$(*F).P; \
  23670. + tr ' ' '\012' < .deps/$(*F).pp \
  23671. + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
  23672. + >> .deps/$(*F).P; \
  23673. + rm -f .deps/$(*F).pp
  23674. info-am:
  23675. info: info-am
  23676. dvi-am:
  23677. @@ -475,18 +487,19 @@
  23678. maintainer-clean-generic:
  23679. mostlyclean-am: mostlyclean-binPROGRAMS mostlyclean-sbinPROGRAMS \
  23680. mostlyclean-compile mostlyclean-libtool \
  23681. - mostlyclean-tags mostlyclean-generic
  23682. + mostlyclean-tags mostlyclean-depend mostlyclean-generic
  23683. mostlyclean: mostlyclean-am
  23684. clean-am: clean-binPROGRAMS clean-sbinPROGRAMS clean-compile \
  23685. - clean-libtool clean-tags clean-generic mostlyclean-am
  23686. + clean-libtool clean-tags clean-depend clean-generic \
  23687. + mostlyclean-am
  23688. clean: clean-am
  23689. distclean-am: distclean-binPROGRAMS distclean-sbinPROGRAMS \
  23690. distclean-compile distclean-libtool distclean-tags \
  23691. - distclean-generic clean-am
  23692. + distclean-depend distclean-generic clean-am
  23693. -rm -f libtool
  23694. distclean: distclean-am
  23695. @@ -494,7 +507,8 @@
  23696. maintainer-clean-am: maintainer-clean-binPROGRAMS \
  23697. maintainer-clean-sbinPROGRAMS maintainer-clean-compile \
  23698. maintainer-clean-libtool maintainer-clean-tags \
  23699. - maintainer-clean-generic distclean-am
  23700. + maintainer-clean-depend maintainer-clean-generic \
  23701. + distclean-am
  23702. @echo "This command is intended for maintainers to use;"
  23703. @echo "it deletes files that may require special tools to rebuild."
  23704. @@ -508,12 +522,14 @@
  23705. clean-compile maintainer-clean-compile mostlyclean-libtool \
  23706. distclean-libtool clean-libtool maintainer-clean-libtool install-man8 \
  23707. uninstall-man8 install-man uninstall-man tags mostlyclean-tags \
  23708. -distclean-tags clean-tags maintainer-clean-tags distdir info-am info \
  23709. -dvi-am dvi check check-am installcheck-am installcheck install-exec-am \
  23710. -install-exec install-data-am install-data install-am install \
  23711. -uninstall-am uninstall all-redirect all-am all installdirs \
  23712. -mostlyclean-generic distclean-generic clean-generic \
  23713. -maintainer-clean-generic clean mostlyclean distclean maintainer-clean
  23714. +distclean-tags clean-tags maintainer-clean-tags distdir \
  23715. +mostlyclean-depend distclean-depend clean-depend \
  23716. +maintainer-clean-depend info-am info dvi-am dvi check check-am \
  23717. +installcheck-am installcheck install-exec-am install-exec \
  23718. +install-data-am install-data install-am install uninstall-am uninstall \
  23719. +all-redirect all-am all installdirs mostlyclean-generic \
  23720. +distclean-generic clean-generic maintainer-clean-generic clean \
  23721. +mostlyclean distclean maintainer-clean
  23722. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  23723. --- linux-atm-2.4.1.orig/src/maint/atmtcp.c
  23724. +++ linux-atm-2.4.1/src/maint/atmtcp.c
  23725. @@ -60,7 +60,7 @@
  23726. static IN *inputs = NULL;
  23727. static fd_set in_set;
  23728. static int fds = 0;
  23729. -static int debug = 0;
  23730. +static int atmtcp_debug = 0;
  23731. static int links = 0;
  23732. @@ -86,7 +86,7 @@
  23733. {
  23734. OUT *out;
  23735. - if (debug)
  23736. + if (atmtcp_debug)
  23737. fprintf(stderr,"Emit: %d.%d, %d bytes\n",ntohs(hdr->vpi),
  23738. ntohs(hdr->vci),(int) ntohl(hdr->length));
  23739. for (out = outputs; out; out = out->next)
  23740. @@ -99,7 +99,7 @@
  23741. OUT *out;
  23742. int changed = 0;
  23743. - if (debug)
  23744. + if (atmtcp_debug)
  23745. fprintf(stderr,"Control: (%d.%d) %s %d.%d, vcc %s\n",
  23746. ntohs(msg->hdr.vpi),ntohs(msg->hdr.vci),
  23747. msg->type == ATMTCP_CTRL_OPEN ? "OPEN" :
  23748. @@ -295,19 +295,19 @@
  23749. }
  23750. if ((s = socket(PF_ATMPVC,SOCK_DGRAM,0)) < 0) {
  23751. msg->result = -errno;
  23752. - if (debug) perror("socket");
  23753. + if (atmtcp_debug) perror("socket");
  23754. return 1;
  23755. }
  23756. if (setsockopt(s,SOL_ATM,SO_ATMQOS,&msg->qos,sizeof(msg->qos)) < 0) {
  23757. msg->result = -errno;
  23758. - if (debug) perror("setsockopt SO_ATMQOS");
  23759. + if (atmtcp_debug) perror("setsockopt SO_ATMQOS");
  23760. return 1;
  23761. }
  23762. msg->addr.sap_addr.itf = data->itf;
  23763. if (connect(s,(struct sockaddr *) &msg->addr,
  23764. sizeof(struct sockaddr_atmpvc)) < 0) {
  23765. msg->result = -errno;
  23766. - if (debug) perror("connect");
  23767. + if (atmtcp_debug) perror("connect");
  23768. return 1;
  23769. }
  23770. (*vcc) = alloc_t(VCC);
  23771. @@ -333,7 +333,7 @@
  23772. addr.sap_addr.vci = ntohs(hdr->vci);
  23773. vcc = real_lookup(data,&addr);
  23774. if (!*vcc) {
  23775. - if (debug)
  23776. + if (atmtcp_debug)
  23777. fprintf(stderr,"VCC %d.%d not found\n",addr.sap_addr.vpi,
  23778. addr.sap_addr.vci);
  23779. return;
  23780. @@ -430,7 +430,7 @@
  23781. exit(1);
  23782. }
  23783. if (in->bytes < sizeof(*hdr)+ntohl(hdr->length)) return;
  23784. - if (debug)
  23785. + if (atmtcp_debug)
  23786. fprintf(stderr,"TCP %d.%d, %d bytes\n",ntohs(hdr->vpi),
  23787. ntohs(hdr->vci),(unsigned int) ntohl(hdr->length));
  23788. in->bytes = 0;
  23789. @@ -447,7 +447,7 @@
  23790. fprintf(stderr,"unrecognized control message \"%s\"\n",msg);
  23791. return;
  23792. }
  23793. - if (debug) fprintf(stderr,"received control \"%s\"\n",msg);
  23794. + if (atmtcp_debug) fprintf(stderr,"received control \"%s\"\n",msg);
  23795. ctl.hdr.vpi = htons(vpi);
  23796. ctl.hdr.vci = htons(vci);
  23797. ctl.hdr.length = htonl(ATMTCP_HDR_MAGIC);
  23798. @@ -508,7 +508,7 @@
  23799. }
  23800. hdr->vpi = hdr->vci = htons(0);
  23801. hdr->length = htonl(pos-start);
  23802. - if (debug) fprintf(stderr,"sending control \"%s\"\n",start);
  23803. + if (atmtcp_debug) fprintf(stderr,"sending control \"%s\"\n",start);
  23804. tcp_do_send(*(int *) out->user,buf,pos-buf);
  23805. return 0;
  23806. }
  23807. @@ -555,7 +555,7 @@
  23808. exit(1);
  23809. }
  23810. if (in->bytes < sizeof(int)+sizeof(*hdr)+ntohl(hdr->length)) return;
  23811. - if (debug)
  23812. + if (atmtcp_debug)
  23813. fprintf(stderr,"File %d.%d, %d bytes\n",ntohs(hdr->vpi),
  23814. ntohs(hdr->vci),(unsigned int) ntohl(hdr->length));
  23815. }
  23816. @@ -708,7 +708,7 @@
  23817. while ((c = getopt(argc,argv,"dvV")) != EOF)
  23818. switch (c) {
  23819. case 'd':
  23820. - debug = 1;
  23821. + atmtcp_debug = 1;
  23822. break;
  23823. case 'v':
  23824. verbose = 1;
  23825. @@ -817,7 +817,8 @@
  23826. }
  23827. else if (!strcmp(ARG,"listen") ||
  23828. (do_background = !strcmp(ARG,"listen-bg"))) {
  23829. - int fd,port,addr_len;
  23830. + int fd,port;
  23831. + size_t addr_len;
  23832. int *fd2 = alloc_t(int);
  23833. if ((fd = socket(PF_INET,SOCK_STREAM,0)) < 0) {
  23834. --- linux-atm-2.4.1.orig/src/maint/enitune.c
  23835. +++ linux-atm-2.4.1/src/maint/enitune.c
  23836. @@ -44,6 +44,7 @@
  23837. if (*end || mult.rx <= 100) usage(name);
  23838. break;
  23839. default:
  23840. + break;
  23841. }
  23842. if (argc != optind+1) usage(name);
  23843. sioc.number = strtol(argv[optind],&end,0);
  23844. --- linux-atm-2.4.1.orig/src/arpd/Makefile.in
  23845. +++ linux-atm-2.4.1/src/arpd/Makefile.in
  23846. @@ -1,4 +1,4 @@
  23847. -# Makefile.in generated automatically by automake 1.4-p5 from Makefile.am
  23848. +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
  23849. # Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
  23850. # This Makefile.in is free software; the Free Software Foundation
  23851. @@ -90,8 +90,7 @@
  23852. sbin_PROGRAMS = atmarp atmarpd
  23853. atmarp_SOURCES = atmarp.c atmarp.h atmarpd.h
  23854. -atmarpd_SOURCES = atmarpd.c atmarpd.h arp.c arp.h io.c io.h itf.c itf.h \
  23855. - table.c table.h atmarp.h
  23856. +atmarpd_SOURCES = atmarpd.c atmarpd.h arp.c arp.h io.c io.h itf.c itf.h table.c table.h atmarp.h
  23857. include_HEADERS = atmarp.h atmarpd.h
  23858. @@ -135,8 +134,10 @@
  23859. DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
  23860. -TAR = gtar
  23861. +TAR = tar
  23862. GZIP_ENV = --best
  23863. +DEP_FILES = .deps/arp.P .deps/atmarp.P .deps/atmarpd.P .deps/io.P \
  23864. +.deps/itf.P .deps/table.P
  23865. SOURCES = $(atmarp_SOURCES) $(atmarpd_SOURCES)
  23866. OBJECTS = $(atmarp_OBJECTS) $(atmarpd_OBJECTS)
  23867. @@ -144,9 +145,9 @@
  23868. .SUFFIXES:
  23869. .SUFFIXES: .S .c .lo .o .obj .s
  23870. $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
  23871. - cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps src/arpd/Makefile
  23872. + cd $(top_srcdir) && $(AUTOMAKE) --gnu src/arpd/Makefile
  23873. -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  23874. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
  23875. cd $(top_builddir) \
  23876. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
  23877. @@ -176,9 +177,6 @@
  23878. rm -f $(DESTDIR)$(sbindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
  23879. done
  23880. -.c.o:
  23881. - $(COMPILE) -c $<
  23882. -
  23883. # FIXME: We should only use cygpath when building on Windows,
  23884. # and only if it is available.
  23885. .c.obj:
  23886. @@ -201,9 +199,6 @@
  23887. maintainer-clean-compile:
  23888. -.c.lo:
  23889. - $(LIBTOOL) --mode=compile $(COMPILE) -c $<
  23890. -
  23891. .s.lo:
  23892. $(LIBTOOL) --mode=compile $(COMPILE) -c $<
  23893. @@ -300,7 +295,7 @@
  23894. awk ' { files[$$0] = 1; } \
  23895. END { for (i in files) print i; }'`; \
  23896. test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
  23897. - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
  23898. + || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags $$unique $(LISP))
  23899. mostlyclean-tags:
  23900. @@ -316,6 +311,11 @@
  23901. subdir = src/arpd
  23902. distdir: $(DISTFILES)
  23903. + here=`cd $(top_builddir) && pwd`; \
  23904. + top_distdir=`cd $(top_distdir) && pwd`; \
  23905. + distdir=`cd $(distdir) && pwd`; \
  23906. + cd $(top_srcdir) \
  23907. + && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu src/arpd/Makefile
  23908. @for file in $(DISTFILES); do \
  23909. d=$(srcdir); \
  23910. if test -d $$d/$$file; then \
  23911. @@ -326,24 +326,38 @@
  23912. || cp -p $$d/$$file $(distdir)/$$file || :; \
  23913. fi; \
  23914. done
  23915. -arp.o: arp.c ../../config.h ../../src/include/stdint.h \
  23916. - ../../src/include/atm.h ../../src/include/atmd.h atmarp.h \
  23917. - atmarpd.h table.h itf.h io.h arp.h
  23918. -atmarp.o: atmarp.c ../../config.h ../../src/include/stdint.h \
  23919. - ../../src/include/atm.h ../../src/include/atmd.h atmarpd.h
  23920. -atmarpd.o: atmarpd.c ../../config.h ../../src/include/atm.h \
  23921. - ../../src/include/stdint.h ../../src/include/atmd.h atmarpd.h \
  23922. - io.h table.h
  23923. -io.o: io.c ../../config.h ../../src/include/stdint.h \
  23924. - ../../src/include/atm.h ../../src/include/atmd.h atmarpd.h \
  23925. - table.h arp.h atmarp.h itf.h io.h
  23926. -itf.o: itf.c ../../config.h ../../src/include/stdint.h \
  23927. - ../../src/include/atmd.h ../../src/include/atm.h table.h io.h \
  23928. - itf.h arp.h atmarp.h atmarpd.h
  23929. -table.o: table.c ../../config.h ../../src/include/stdint.h \
  23930. - ../../src/include/atm.h ../../src/include/atmd.h atmarpd.h \
  23931. - table.h
  23932. +DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
  23933. +
  23934. +-include $(DEP_FILES)
  23935. +
  23936. +mostlyclean-depend:
  23937. +
  23938. +clean-depend:
  23939. +
  23940. +distclean-depend:
  23941. + -rm -rf .deps
  23942. +
  23943. +maintainer-clean-depend:
  23944. +
  23945. +%.o: %.c
  23946. + @echo '$(COMPILE) -c $<'; \
  23947. + $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
  23948. + @-cp .deps/$(*F).pp .deps/$(*F).P; \
  23949. + tr ' ' '\012' < .deps/$(*F).pp \
  23950. + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
  23951. + >> .deps/$(*F).P; \
  23952. + rm .deps/$(*F).pp
  23953. +
  23954. +%.lo: %.c
  23955. + @echo '$(LTCOMPILE) -c $<'; \
  23956. + $(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
  23957. + @-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \
  23958. + < .deps/$(*F).pp > .deps/$(*F).P; \
  23959. + tr ' ' '\012' < .deps/$(*F).pp \
  23960. + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
  23961. + >> .deps/$(*F).P; \
  23962. + rm -f .deps/$(*F).pp
  23963. info-am:
  23964. info: info-am
  23965. dvi-am:
  23966. @@ -383,27 +397,27 @@
  23967. maintainer-clean-generic:
  23968. mostlyclean-am: mostlyclean-sbinPROGRAMS mostlyclean-compile \
  23969. - mostlyclean-libtool mostlyclean-tags \
  23970. + mostlyclean-libtool mostlyclean-tags mostlyclean-depend \
  23971. mostlyclean-generic
  23972. mostlyclean: mostlyclean-am
  23973. clean-am: clean-sbinPROGRAMS clean-compile clean-libtool clean-tags \
  23974. - clean-generic mostlyclean-am
  23975. + clean-depend clean-generic mostlyclean-am
  23976. clean: clean-am
  23977. distclean-am: distclean-sbinPROGRAMS distclean-compile \
  23978. - distclean-libtool distclean-tags distclean-generic \
  23979. - clean-am
  23980. + distclean-libtool distclean-tags distclean-depend \
  23981. + distclean-generic clean-am
  23982. -rm -f libtool
  23983. distclean: distclean-am
  23984. maintainer-clean-am: maintainer-clean-sbinPROGRAMS \
  23985. maintainer-clean-compile maintainer-clean-libtool \
  23986. - maintainer-clean-tags maintainer-clean-generic \
  23987. - distclean-am
  23988. + maintainer-clean-tags maintainer-clean-depend \
  23989. + maintainer-clean-generic distclean-am
  23990. @echo "This command is intended for maintainers to use;"
  23991. @echo "it deletes files that may require special tools to rebuild."
  23992. @@ -416,8 +430,9 @@
  23993. distclean-libtool clean-libtool maintainer-clean-libtool install-man8 \
  23994. uninstall-man8 install-man uninstall-man uninstall-includeHEADERS \
  23995. install-includeHEADERS tags mostlyclean-tags distclean-tags clean-tags \
  23996. -maintainer-clean-tags distdir info-am info dvi-am dvi check check-am \
  23997. -installcheck-am installcheck install-exec-am install-exec \
  23998. +maintainer-clean-tags distdir mostlyclean-depend distclean-depend \
  23999. +clean-depend maintainer-clean-depend info-am info dvi-am dvi check \
  24000. +check-am installcheck-am installcheck install-exec-am install-exec \
  24001. install-data-am install-data install-am install uninstall-am uninstall \
  24002. all-redirect all-am all installdirs mostlyclean-generic \
  24003. distclean-generic clean-generic maintainer-clean-generic clean \
  24004. --- linux-atm-2.4.1.orig/src/arpd/atmarp.c
  24005. +++ linux-atm-2.4.1/src/arpd/atmarp.c
  24006. @@ -92,7 +92,7 @@
  24007. perror("read " ATMARP_DUMP_DIR "/" ATMARP_DUMP_FILE);
  24008. return 1;
  24009. }
  24010. - if (write(0,buffer,size) < 0) {
  24011. + if (write(1,buffer,size) < 0) {
  24012. perror("write stdout");
  24013. return 1;
  24014. }
  24015. --- linux-atm-2.4.1.orig/src/ilmid/Makefile.in
  24016. +++ linux-atm-2.4.1/src/ilmid/Makefile.in
  24017. @@ -1,4 +1,4 @@
  24018. -# Makefile.in generated automatically by automake 1.4-p5 from Makefile.am
  24019. +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
  24020. # Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
  24021. # This Makefile.in is free software; the Free Software Foundation
  24022. @@ -91,13 +91,9 @@
  24023. sbin_PROGRAMS = ilmid
  24024. -ilmid_SOURCES = rfc1157_snmp.c rfc1157_snmp.h rfc1155_smi.c rfc1155_smi.h \
  24025. - util.c util.h io.c io.h message.c message.h \
  24026. - atmf_uni.c atmf_uni.h mib.c mib.h \
  24027. - sysgroup.c sysgroup.h ilmid.c
  24028. +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
  24029. -ilmid_LDADD = $(top_builddir)/src/lib/libatm.la \
  24030. - $(top_builddir)/src/ilmid/asn1/libasn1.a
  24031. +ilmid_LDADD = $(top_builddir)/src/lib/libatm.la $(top_builddir)/src/ilmid/asn1/libasn1.a
  24032. ilmid_DEPENDENCIES = $(ilmid_LDADD)
  24033. @@ -127,8 +123,11 @@
  24034. DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
  24035. -TAR = gtar
  24036. +TAR = tar
  24037. GZIP_ENV = --best
  24038. +DEP_FILES = .deps/atmf_uni.P .deps/ilmid.P .deps/io.P .deps/message.P \
  24039. +.deps/mib.P .deps/rfc1155_smi.P .deps/rfc1157_snmp.P .deps/sysgroup.P \
  24040. +.deps/util.P
  24041. SOURCES = $(ilmid_SOURCES)
  24042. OBJECTS = $(ilmid_OBJECTS)
  24043. @@ -136,9 +135,9 @@
  24044. .SUFFIXES:
  24045. .SUFFIXES: .S .c .lo .o .obj .s
  24046. $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
  24047. - cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps src/ilmid/Makefile
  24048. + cd $(top_srcdir) && $(AUTOMAKE) --gnu src/ilmid/Makefile
  24049. -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  24050. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
  24051. cd $(top_builddir) \
  24052. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
  24053. @@ -168,9 +167,6 @@
  24054. rm -f $(DESTDIR)$(sbindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
  24055. done
  24056. -.c.o:
  24057. - $(COMPILE) -c $<
  24058. -
  24059. # FIXME: We should only use cygpath when building on Windows,
  24060. # and only if it is available.
  24061. .c.obj:
  24062. @@ -193,9 +189,6 @@
  24063. maintainer-clean-compile:
  24064. -.c.lo:
  24065. - $(LIBTOOL) --mode=compile $(COMPILE) -c $<
  24066. -
  24067. .s.lo:
  24068. $(LIBTOOL) --mode=compile $(COMPILE) -c $<
  24069. @@ -294,7 +287,7 @@
  24070. awk ' { files[$$0] = 1; } \
  24071. END { for (i in files) print i; }'`; \
  24072. test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
  24073. - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
  24074. + || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags $$unique $(LISP))
  24075. mostlyclean-tags:
  24076. @@ -310,6 +303,11 @@
  24077. subdir = src/ilmid
  24078. distdir: $(DISTFILES)
  24079. + here=`cd $(top_builddir) && pwd`; \
  24080. + top_distdir=`cd $(top_distdir) && pwd`; \
  24081. + distdir=`cd $(distdir) && pwd`; \
  24082. + cd $(top_srcdir) \
  24083. + && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu src/ilmid/Makefile
  24084. @for file in $(DISTFILES); do \
  24085. d=$(srcdir); \
  24086. if test -d $$d/$$file; then \
  24087. @@ -330,62 +328,38 @@
  24088. || exit 1; \
  24089. fi; \
  24090. done
  24091. -atmf_uni.o: atmf_uni.c ../../config.h atmf_uni.h asn1/asn_incl.h \
  24092. - asn1/asn_config.h asn1/nibble_alloc.h asn1/sbuf.h asn1/print.h \
  24093. - asn1/asn_len.h asn1/asn_tag.h asn1/asn_int.h asn1/asn_octs.h \
  24094. - asn1/asn_bits.h asn1/asn_oid.h asn1/asn_null.h asn1/asn_list.h \
  24095. - rfc1155_smi.h rfc1157_snmp.h mib.h ../../src/include/atmd.h \
  24096. - ../../src/include/stdint.h ../../src/include/atm.h util.h
  24097. -ilmid.o: ilmid.c ../../config.h asn1/asn_incl.h asn1/asn_config.h \
  24098. - asn1/nibble_alloc.h asn1/sbuf.h asn1/print.h asn1/asn_len.h \
  24099. - asn1/asn_tag.h asn1/asn_int.h asn1/asn_octs.h asn1/asn_bits.h \
  24100. - asn1/asn_oid.h asn1/asn_null.h asn1/asn_list.h rfc1155_smi.h \
  24101. - rfc1157_snmp.h message.h util.h ../../src/include/atmd.h \
  24102. - ../../src/include/stdint.h ../../src/include/atm.h io.h mib.h \
  24103. - atmf_uni.h sysgroup.h
  24104. -io.o: io.c ../../config.h ../../src/include/stdint.h \
  24105. - ../../src/include/atm.h io.h asn1/asn_incl.h asn1/asn_config.h \
  24106. - asn1/nibble_alloc.h asn1/sbuf.h asn1/print.h asn1/asn_len.h \
  24107. - asn1/asn_tag.h asn1/asn_int.h asn1/asn_octs.h asn1/asn_bits.h \
  24108. - asn1/asn_oid.h asn1/asn_null.h asn1/asn_list.h rfc1155_smi.h \
  24109. - rfc1157_snmp.h ../../src/include/atmd.h atmf_uni.h mib.h
  24110. -message.o: message.c ../../config.h message.h asn1/asn_incl.h \
  24111. - asn1/asn_config.h asn1/nibble_alloc.h asn1/sbuf.h asn1/print.h \
  24112. - asn1/asn_len.h asn1/asn_tag.h asn1/asn_int.h asn1/asn_octs.h \
  24113. - asn1/asn_bits.h asn1/asn_oid.h asn1/asn_null.h asn1/asn_list.h \
  24114. - rfc1155_smi.h rfc1157_snmp.h atmf_uni.h mib.h \
  24115. - ../../src/include/atmd.h ../../src/include/stdint.h \
  24116. - ../../src/include/atm.h util.h
  24117. -mib.o: mib.c ../../config.h mib.h ../../src/include/atmd.h \
  24118. - ../../src/include/stdint.h ../../src/include/atm.h \
  24119. - asn1/asn_incl.h asn1/asn_config.h asn1/nibble_alloc.h \
  24120. - asn1/sbuf.h asn1/print.h asn1/asn_len.h asn1/asn_tag.h \
  24121. - asn1/asn_int.h asn1/asn_octs.h asn1/asn_bits.h asn1/asn_oid.h \
  24122. - asn1/asn_null.h asn1/asn_list.h rfc1155_smi.h rfc1157_snmp.h \
  24123. - sysgroup.h atmf_uni.h util.h
  24124. -rfc1155_smi.o: rfc1155_smi.c ../../config.h asn1/asn_incl.h \
  24125. - asn1/asn_config.h asn1/nibble_alloc.h asn1/sbuf.h asn1/print.h \
  24126. - asn1/asn_len.h asn1/asn_tag.h asn1/asn_int.h asn1/asn_octs.h \
  24127. - asn1/asn_bits.h asn1/asn_oid.h asn1/asn_null.h asn1/asn_list.h \
  24128. - rfc1155_smi.h rfc1157_snmp.h
  24129. -rfc1157_snmp.o: rfc1157_snmp.c ../../config.h asn1/asn_incl.h \
  24130. - asn1/asn_config.h asn1/nibble_alloc.h asn1/sbuf.h asn1/print.h \
  24131. - asn1/asn_len.h asn1/asn_tag.h asn1/asn_int.h asn1/asn_octs.h \
  24132. - asn1/asn_bits.h asn1/asn_oid.h asn1/asn_null.h asn1/asn_list.h \
  24133. - rfc1155_smi.h rfc1157_snmp.h
  24134. -sysgroup.o: sysgroup.c ../../config.h sysgroup.h asn1/asn_incl.h \
  24135. - asn1/asn_config.h asn1/nibble_alloc.h asn1/sbuf.h asn1/print.h \
  24136. - asn1/asn_len.h asn1/asn_tag.h asn1/asn_int.h asn1/asn_octs.h \
  24137. - asn1/asn_bits.h asn1/asn_oid.h asn1/asn_null.h asn1/asn_list.h \
  24138. - rfc1155_smi.h rfc1157_snmp.h mib.h ../../src/include/atmd.h \
  24139. - ../../src/include/stdint.h ../../src/include/atm.h
  24140. -util.o: util.c ../../config.h util.h asn1/asn_incl.h asn1/asn_config.h \
  24141. - asn1/nibble_alloc.h asn1/sbuf.h asn1/print.h asn1/asn_len.h \
  24142. - asn1/asn_tag.h asn1/asn_int.h asn1/asn_octs.h asn1/asn_bits.h \
  24143. - asn1/asn_oid.h asn1/asn_null.h asn1/asn_list.h rfc1155_smi.h \
  24144. - rfc1157_snmp.h ../../src/include/atmd.h \
  24145. - ../../src/include/stdint.h ../../src/include/atm.h
  24146. +DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
  24147. +
  24148. +-include $(DEP_FILES)
  24149. +
  24150. +mostlyclean-depend:
  24151. +
  24152. +clean-depend:
  24153. +
  24154. +distclean-depend:
  24155. + -rm -rf .deps
  24156. +
  24157. +maintainer-clean-depend:
  24158. +
  24159. +%.o: %.c
  24160. + @echo '$(COMPILE) -c $<'; \
  24161. + $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
  24162. + @-cp .deps/$(*F).pp .deps/$(*F).P; \
  24163. + tr ' ' '\012' < .deps/$(*F).pp \
  24164. + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
  24165. + >> .deps/$(*F).P; \
  24166. + rm .deps/$(*F).pp
  24167. +
  24168. +%.lo: %.c
  24169. + @echo '$(LTCOMPILE) -c $<'; \
  24170. + $(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
  24171. + @-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \
  24172. + < .deps/$(*F).pp > .deps/$(*F).P; \
  24173. + tr ' ' '\012' < .deps/$(*F).pp \
  24174. + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
  24175. + >> .deps/$(*F).P; \
  24176. + rm -f .deps/$(*F).pp
  24177. info-am:
  24178. info: info-recursive
  24179. dvi-am:
  24180. @@ -424,27 +398,27 @@
  24181. maintainer-clean-generic:
  24182. mostlyclean-am: mostlyclean-sbinPROGRAMS mostlyclean-compile \
  24183. - mostlyclean-libtool mostlyclean-tags \
  24184. + mostlyclean-libtool mostlyclean-tags mostlyclean-depend \
  24185. mostlyclean-generic
  24186. mostlyclean: mostlyclean-recursive
  24187. clean-am: clean-sbinPROGRAMS clean-compile clean-libtool clean-tags \
  24188. - clean-generic mostlyclean-am
  24189. + clean-depend clean-generic mostlyclean-am
  24190. clean: clean-recursive
  24191. distclean-am: distclean-sbinPROGRAMS distclean-compile \
  24192. - distclean-libtool distclean-tags distclean-generic \
  24193. - clean-am
  24194. + distclean-libtool distclean-tags distclean-depend \
  24195. + distclean-generic clean-am
  24196. -rm -f libtool
  24197. distclean: distclean-recursive
  24198. maintainer-clean-am: maintainer-clean-sbinPROGRAMS \
  24199. maintainer-clean-compile maintainer-clean-libtool \
  24200. - maintainer-clean-tags maintainer-clean-generic \
  24201. - distclean-am
  24202. + maintainer-clean-tags maintainer-clean-depend \
  24203. + maintainer-clean-generic distclean-am
  24204. @echo "This command is intended for maintainers to use;"
  24205. @echo "it deletes files that may require special tools to rebuild."
  24206. @@ -460,12 +434,14 @@
  24207. all-recursive check-recursive installcheck-recursive info-recursive \
  24208. dvi-recursive mostlyclean-recursive distclean-recursive clean-recursive \
  24209. maintainer-clean-recursive tags tags-recursive mostlyclean-tags \
  24210. -distclean-tags clean-tags maintainer-clean-tags distdir info-am info \
  24211. -dvi-am dvi check check-am installcheck-am installcheck install-exec-am \
  24212. -install-exec install-data-am install-data install-am install \
  24213. -uninstall-am uninstall all-redirect all-am all installdirs-am \
  24214. -installdirs mostlyclean-generic distclean-generic clean-generic \
  24215. -maintainer-clean-generic clean mostlyclean distclean maintainer-clean
  24216. +distclean-tags clean-tags maintainer-clean-tags distdir \
  24217. +mostlyclean-depend distclean-depend clean-depend \
  24218. +maintainer-clean-depend info-am info dvi-am dvi check check-am \
  24219. +installcheck-am installcheck install-exec-am install-exec \
  24220. +install-data-am install-data install-am install uninstall-am uninstall \
  24221. +all-redirect all-am all installdirs-am installdirs mostlyclean-generic \
  24222. +distclean-generic clean-generic maintainer-clean-generic clean \
  24223. +mostlyclean distclean maintainer-clean
  24224. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  24225. --- linux-atm-2.4.1.orig/src/ilmid/io.c
  24226. +++ linux-atm-2.4.1/src/ilmid/io.c
  24227. @@ -32,6 +32,7 @@
  24228. #include <net/if.h>
  24229. #include <atm.h>
  24230. #include <linux/atmdev.h>
  24231. +#include <unistd.h>
  24232. #include "io.h"
  24233. #include "atmd.h"
  24234. #include "atmf_uni.h"
  24235. @@ -299,4 +300,5 @@
  24236. diag(COMPONENT,DIAG_ERROR,"ioctl ATM_GETCIRANGE: %s",strerror(errno));
  24237. return error;
  24238. }
  24239. + return 0;
  24240. }
  24241. --- linux-atm-2.4.1.orig/src/ilmid/atmf_uni.c
  24242. +++ linux-atm-2.4.1/src/ilmid/atmf_uni.c
  24243. @@ -187,7 +187,7 @@
  24244. newPrefix->name = alloc_t(AsnOid);
  24245. newPrefix->name->octs = alloc(varBindName->octetLen);
  24246. AsnOidCopy(newPrefix->name, varBindName);
  24247. - Q_INSERT_BEFORE((NetPrefixNode *) var->value, newPrefix, prefix);
  24248. + Q_INSERT_BEFORE_TYPED(var->value,(NetPrefixNode *), newPrefix, prefix);
  24249. if(atmNetPrefix.octs == NULL)
  24250. {
  24251. atmNetPrefix.octetLen = varBindName->octetLen - NETPREFIX_LEN - 2;
  24252. @@ -197,7 +197,7 @@
  24253. }
  24254. else if (varbind->value->a.simple->a.number == INVALID && cmp == AsnOidEqual)
  24255. {
  24256. - Q_REMOVE((NetPrefixNode *) var->value, prefix);
  24257. + Q_REMOVE(var->value, prefix);
  24258. }
  24259. return NOERROR;
  24260. --- linux-atm-2.4.1.orig/src/ilmid/mib.c
  24261. +++ linux-atm-2.4.1/src/ilmid/mib.c
  24262. @@ -58,13 +58,13 @@
  24263. { NULL }
  24264. };
  24265. -void MIBget(VarBindList *list, PDUInt *status, AsnInt *index)
  24266. +void MIBget(VarBindList *list, PDUInt *status, AsnInt *Mindex)
  24267. {
  24268. VarBind *varbind;
  24269. Variable *var;
  24270. AsnOidResult result;
  24271. - *index = 1;
  24272. + *Mindex = 1;
  24273. FOR_EACH_LIST_ELMT(varbind, list)
  24274. {
  24275. /* Find the first MIB object not lexigraphically less than the *
  24276. @@ -91,20 +91,20 @@
  24277. if(*status != NOERROR)
  24278. return;
  24279. - (*index)++;
  24280. + (*Mindex)++;
  24281. }
  24282. - *index = 0;
  24283. + *Mindex = 0;
  24284. return;
  24285. }
  24286. -void MIBgetnext(VarBindList *list, PDUInt *status, AsnInt *index)
  24287. +void MIBgetnext(VarBindList *list, PDUInt *status, AsnInt *Mindex)
  24288. {
  24289. VarBind *varbind;
  24290. Variable *var;
  24291. AsnOidResult result;
  24292. - *index = 1;
  24293. + *Mindex = 1;
  24294. FOR_EACH_LIST_ELMT(varbind, list)
  24295. {
  24296. /* Find the first complex MIB object not lexigraphically less than *
  24297. @@ -139,19 +139,19 @@
  24298. if(*status != NOERROR)
  24299. return;
  24300. - (*index)++;
  24301. + (*Mindex)++;
  24302. }
  24303. - *index = 0;
  24304. + *Mindex = 0;
  24305. return;
  24306. }
  24307. -void MIBset(VarBindList *list, PDUInt *status, AsnInt *index)
  24308. +void MIBset(VarBindList *list, PDUInt *status, AsnInt *Mindex)
  24309. {
  24310. VarBind *varbind;
  24311. Variable *var;
  24312. AsnOidResult result;
  24313. - *index = 1;
  24314. + *Mindex = 1;
  24315. FOR_EACH_LIST_ELMT(varbind, list)
  24316. {
  24317. /* Find the first MIB object not lexigraphically less than the *
  24318. @@ -182,9 +182,9 @@
  24319. if(*status != NOERROR)
  24320. return;
  24321. - (*index)++;
  24322. + (*Mindex)++;
  24323. }
  24324. - *index = 0;
  24325. + *Mindex = 0;
  24326. return;
  24327. }
  24328. --- linux-atm-2.4.1.orig/src/ilmid/mib.h
  24329. +++ linux-atm-2.4.1/src/ilmid/mib.h
  24330. @@ -39,9 +39,9 @@
  24331. void *value;
  24332. } Variable;
  24333. -void MIBget(VarBindList *list, PDUInt *status, AsnInt *index);
  24334. -void MIBgetnext(VarBindList *list, PDUInt *status, AsnInt *index);
  24335. -void MIBset(VarBindList *list, PDUInt *status, AsnInt *index);
  24336. +void MIBget(VarBindList *list, PDUInt *status, AsnInt *Mindex);
  24337. +void MIBgetnext(VarBindList *list, PDUInt *status, AsnInt *Mindex);
  24338. +void MIBset(VarBindList *list, PDUInt *status, AsnInt *Mindex);
  24339. void *MIBdelete(AsnOid *oid);
  24340. AsnInt getString(VarBind *varbind, Variable *var);
  24341. --- linux-atm-2.4.1.orig/src/ilmid/ilmid.c
  24342. +++ linux-atm-2.4.1/src/ilmid/ilmid.c
  24343. @@ -33,6 +33,7 @@
  24344. #include <config.h>
  24345. #endif
  24346. +#include <stdlib.h>
  24347. #include <unistd.h>
  24348. #include <sys/time.h>
  24349. #include <errno.h>
  24350. --- linux-atm-2.4.1.orig/src/ilmid/asn1/Makefile.in
  24351. +++ linux-atm-2.4.1/src/ilmid/asn1/Makefile.in
  24352. @@ -1,4 +1,4 @@
  24353. -# Makefile.in generated automatically by automake 1.4-p5 from Makefile.am
  24354. +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
  24355. # Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
  24356. # This Makefile.in is free software; the Free Software Foundation
  24357. @@ -87,13 +87,7 @@
  24358. noinst_LIBRARIES = libasn1.a
  24359. -libasn1_a_SOURCES = asn_len.c asn_len.h asn_tag.c asn_tag.h \
  24360. - asn_int.c asn_int.h asn_octs.c asn_octs.h \
  24361. - asn_bits.c asn_bits.h str_stk.c str_stk.h \
  24362. - asn_oid.c asn_oid.h asn_null.c asn_null.h \
  24363. - asn_list.c asn_list.h nibble_alloc.c nibble_alloc.h \
  24364. - print.c print.h \
  24365. - asn_config.h min_buf.h sbuf.h exp_buf.h
  24366. +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
  24367. EXTRA_libasn1_a_SOURCES = asn_incl.h exp_buf.c
  24368. @@ -125,8 +119,12 @@
  24369. DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
  24370. -TAR = gtar
  24371. +TAR = tar
  24372. GZIP_ENV = --best
  24373. +DEP_FILES = .deps/asn_bits.P .deps/asn_int.P .deps/asn_len.P \
  24374. +.deps/asn_list.P .deps/asn_null.P .deps/asn_octs.P .deps/asn_oid.P \
  24375. +.deps/asn_tag.P .deps/exp_buf.P .deps/nibble_alloc.P .deps/print.P \
  24376. +.deps/str_stk.P
  24377. SOURCES = $(libasn1_a_SOURCES) $(EXTRA_libasn1_a_SOURCES)
  24378. OBJECTS = $(libasn1_a_OBJECTS)
  24379. @@ -134,9 +132,9 @@
  24380. .SUFFIXES:
  24381. .SUFFIXES: .S .c .lo .o .obj .s
  24382. $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
  24383. - cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps src/ilmid/asn1/Makefile
  24384. + cd $(top_srcdir) && $(AUTOMAKE) --gnu src/ilmid/asn1/Makefile
  24385. -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  24386. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
  24387. cd $(top_builddir) \
  24388. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
  24389. @@ -150,9 +148,6 @@
  24390. maintainer-clean-noinstLIBRARIES:
  24391. -.c.o:
  24392. - $(COMPILE) -c $<
  24393. -
  24394. # FIXME: We should only use cygpath when building on Windows,
  24395. # and only if it is available.
  24396. .c.obj:
  24397. @@ -175,9 +170,6 @@
  24398. maintainer-clean-compile:
  24399. -.c.lo:
  24400. - $(LIBTOOL) --mode=compile $(COMPILE) -c $<
  24401. -
  24402. .s.lo:
  24403. $(LIBTOOL) --mode=compile $(COMPILE) -c $<
  24404. @@ -217,7 +209,7 @@
  24405. awk ' { files[$$0] = 1; } \
  24406. END { for (i in files) print i; }'`; \
  24407. test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
  24408. - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
  24409. + || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags $$unique $(LISP))
  24410. mostlyclean-tags:
  24411. @@ -233,6 +225,11 @@
  24412. subdir = src/ilmid/asn1
  24413. distdir: $(DISTFILES)
  24414. + here=`cd $(top_builddir) && pwd`; \
  24415. + top_distdir=`cd $(top_distdir) && pwd`; \
  24416. + distdir=`cd $(distdir) && pwd`; \
  24417. + cd $(top_srcdir) \
  24418. + && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu src/ilmid/asn1/Makefile
  24419. @for file in $(DISTFILES); do \
  24420. d=$(srcdir); \
  24421. if test -d $$d/$$file; then \
  24422. @@ -243,30 +240,38 @@
  24423. || cp -p $$d/$$file $(distdir)/$$file || :; \
  24424. fi; \
  24425. done
  24426. -asn_bits.o: asn_bits.c ../../../config.h asn_config.h nibble_alloc.h \
  24427. - sbuf.h print.h asn_len.h asn_tag.h str_stk.h asn_bits.h
  24428. -asn_int.o: asn_int.c ../../../config.h asn_config.h nibble_alloc.h \
  24429. - sbuf.h print.h asn_len.h asn_tag.h asn_int.h
  24430. -asn_len.o: asn_len.c ../../../config.h asn_config.h nibble_alloc.h \
  24431. - sbuf.h print.h asn_len.h
  24432. -asn_list.o: asn_list.c ../../../config.h asn_config.h nibble_alloc.h \
  24433. - sbuf.h print.h asn_list.h
  24434. -asn_null.o: asn_null.c ../../../config.h asn_config.h nibble_alloc.h \
  24435. - sbuf.h print.h asn_len.h asn_tag.h asn_null.h
  24436. -asn_octs.o: asn_octs.c ../../../config.h asn_config.h nibble_alloc.h \
  24437. - sbuf.h print.h asn_len.h asn_tag.h str_stk.h asn_bits.h \
  24438. - asn_octs.h
  24439. -asn_oid.o: asn_oid.c ../../../config.h asn_config.h nibble_alloc.h \
  24440. - sbuf.h print.h asn_len.h asn_tag.h asn_octs.h asn_oid.h
  24441. -asn_tag.o: asn_tag.c ../../../config.h asn_config.h nibble_alloc.h \
  24442. - sbuf.h print.h asn_len.h asn_tag.h
  24443. -nibble_alloc.o: nibble_alloc.c ../../../config.h asn_config.h \
  24444. - nibble_alloc.h sbuf.h print.h
  24445. -print.o: print.c ../../../config.h asn_config.h nibble_alloc.h sbuf.h \
  24446. - print.h
  24447. -str_stk.o: str_stk.c ../../../config.h asn_config.h nibble_alloc.h \
  24448. - sbuf.h print.h str_stk.h
  24449. +DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
  24450. +
  24451. +-include $(DEP_FILES)
  24452. +
  24453. +mostlyclean-depend:
  24454. +
  24455. +clean-depend:
  24456. +
  24457. +distclean-depend:
  24458. + -rm -rf .deps
  24459. +
  24460. +maintainer-clean-depend:
  24461. +
  24462. +%.o: %.c
  24463. + @echo '$(COMPILE) -c $<'; \
  24464. + $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
  24465. + @-cp .deps/$(*F).pp .deps/$(*F).P; \
  24466. + tr ' ' '\012' < .deps/$(*F).pp \
  24467. + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
  24468. + >> .deps/$(*F).P; \
  24469. + rm .deps/$(*F).pp
  24470. +
  24471. +%.lo: %.c
  24472. + @echo '$(LTCOMPILE) -c $<'; \
  24473. + $(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
  24474. + @-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \
  24475. + < .deps/$(*F).pp > .deps/$(*F).P; \
  24476. + tr ' ' '\012' < .deps/$(*F).pp \
  24477. + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
  24478. + >> .deps/$(*F).P; \
  24479. + rm -f .deps/$(*F).pp
  24480. info-am:
  24481. info: info-am
  24482. dvi-am:
  24483. @@ -303,27 +308,27 @@
  24484. maintainer-clean-generic:
  24485. mostlyclean-am: mostlyclean-noinstLIBRARIES mostlyclean-compile \
  24486. - mostlyclean-libtool mostlyclean-tags \
  24487. + mostlyclean-libtool mostlyclean-tags mostlyclean-depend \
  24488. mostlyclean-generic
  24489. mostlyclean: mostlyclean-am
  24490. clean-am: clean-noinstLIBRARIES clean-compile clean-libtool clean-tags \
  24491. - clean-generic mostlyclean-am
  24492. + clean-depend clean-generic mostlyclean-am
  24493. clean: clean-am
  24494. distclean-am: distclean-noinstLIBRARIES distclean-compile \
  24495. - distclean-libtool distclean-tags distclean-generic \
  24496. - clean-am
  24497. + distclean-libtool distclean-tags distclean-depend \
  24498. + distclean-generic clean-am
  24499. -rm -f libtool
  24500. distclean: distclean-am
  24501. maintainer-clean-am: maintainer-clean-noinstLIBRARIES \
  24502. maintainer-clean-compile maintainer-clean-libtool \
  24503. - maintainer-clean-tags maintainer-clean-generic \
  24504. - distclean-am
  24505. + maintainer-clean-tags maintainer-clean-depend \
  24506. + maintainer-clean-generic distclean-am
  24507. @echo "This command is intended for maintainers to use;"
  24508. @echo "it deletes files that may require special tools to rebuild."
  24509. @@ -334,12 +339,14 @@
  24510. mostlyclean-compile distclean-compile clean-compile \
  24511. maintainer-clean-compile mostlyclean-libtool distclean-libtool \
  24512. clean-libtool maintainer-clean-libtool tags mostlyclean-tags \
  24513. -distclean-tags clean-tags maintainer-clean-tags distdir info-am info \
  24514. -dvi-am dvi check check-am installcheck-am installcheck install-exec-am \
  24515. -install-exec install-data-am install-data install-am install \
  24516. -uninstall-am uninstall all-redirect all-am all installdirs \
  24517. -mostlyclean-generic distclean-generic clean-generic \
  24518. -maintainer-clean-generic clean mostlyclean distclean maintainer-clean
  24519. +distclean-tags clean-tags maintainer-clean-tags distdir \
  24520. +mostlyclean-depend distclean-depend clean-depend \
  24521. +maintainer-clean-depend info-am info dvi-am dvi check check-am \
  24522. +installcheck-am installcheck install-exec-am install-exec \
  24523. +install-data-am install-data install-am install uninstall-am uninstall \
  24524. +all-redirect all-am all installdirs mostlyclean-generic \
  24525. +distclean-generic clean-generic maintainer-clean-generic clean \
  24526. +mostlyclean distclean maintainer-clean
  24527. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  24528. --- linux-atm-2.4.1.orig/src/ilmid/asn1/asn_int.c
  24529. +++ linux-atm-2.4.1/src/ilmid/asn1/asn_int.c
  24530. @@ -185,7 +185,7 @@
  24531. AsnInt* v _AND_
  24532. unsigned short int indent)
  24533. {
  24534. - fprintf(f,"%d", *v);
  24535. + fprintf(f,"%ld", *v);
  24536. }
  24537. @@ -252,7 +252,6 @@
  24538. UAsnInt* data)
  24539. {
  24540. int len;
  24541. - int retLen;
  24542. int i;
  24543. unsigned long int mask;
  24544. unsigned long int dataCpy;
  24545. @@ -370,5 +369,5 @@
  24546. UAsnInt* v _AND_
  24547. unsigned short int indent)
  24548. {
  24549. - fprintf(f,"%u", *v);
  24550. + fprintf(f,"%lu", *v);
  24551. }
  24552. --- linux-atm-2.4.1.orig/src/ilmid/asn1/asn_octs.c
  24553. +++ linux-atm-2.4.1/src/ilmid/asn1/asn_octs.c
  24554. @@ -21,6 +21,9 @@
  24555. #include <config.h>
  24556. #endif
  24557. +#include <stdlib.h>
  24558. +#include <string.h>
  24559. +
  24560. #include "asn_config.h"
  24561. #include "asn_len.h"
  24562. #include "asn_tag.h"
  24563. --- linux-atm-2.4.1.orig/src/ilmid/asn1/asn_bits.c
  24564. +++ linux-atm-2.4.1/src/ilmid/asn1/asn_bits.c
  24565. @@ -21,6 +21,9 @@
  24566. #include <config.h>
  24567. #endif
  24568. +#include <stdlib.h>
  24569. +#include <string.h>
  24570. +
  24571. #include "asn_config.h"
  24572. #include "asn_len.h"
  24573. #include "asn_tag.h"
  24574. --- linux-atm-2.4.1.orig/src/ilmid/asn1/asn_oid.c
  24575. +++ linux-atm-2.4.1/src/ilmid/asn1/asn_oid.c
  24576. @@ -21,6 +21,9 @@
  24577. #include <config.h>
  24578. #endif
  24579. +#include <stdlib.h>
  24580. +#include <string.h>
  24581. +
  24582. #include "asn_config.h"
  24583. #include "asn_len.h"
  24584. #include "asn_tag.h"
  24585. @@ -125,7 +128,7 @@
  24586. if (firstArcNum > 2)
  24587. firstArcNum = 2;
  24588. - fprintf(f,"%u %u", firstArcNum, arcNum - (firstArcNum * 40));
  24589. + fprintf(f,"%d %lu", firstArcNum, arcNum - (firstArcNum * 40));
  24590. for (; i < v->octetLen ; )
  24591. {
  24592. @@ -134,7 +137,7 @@
  24593. arcNum = (arcNum << 7) + (v->octs[i] & 0x7f);
  24594. i++;
  24595. - fprintf(f," %u", arcNum);
  24596. + fprintf(f," %lu", arcNum);
  24597. }
  24598. fprintf(f,"}");
  24599. --- linux-atm-2.4.1.orig/src/ilmid/asn1/asn_list.c
  24600. +++ linux-atm-2.4.1/src/ilmid/asn1/asn_list.c
  24601. @@ -20,6 +20,8 @@
  24602. #include <config.h>
  24603. #endif
  24604. +#include <stdlib.h>
  24605. +
  24606. #include "asn_config.h"
  24607. #include "asn_list.h"
  24608. --- linux-atm-2.4.1.orig/src/ilmid/asn1/nibble_alloc.c
  24609. +++ linux-atm-2.4.1/src/ilmid/asn1/nibble_alloc.c
  24610. @@ -20,7 +20,9 @@
  24611. #include <config.h>
  24612. #endif
  24613. +#include <string.h>
  24614. #include <memory.h>
  24615. +#include <stdlib.h>
  24616. #include "asn_config.h"
  24617. #include "nibble_alloc.h"
  24618. --- linux-atm-2.4.1.orig/src/ilmid/asn1/nibble_alloc.h
  24619. +++ linux-atm-2.4.1/src/ilmid/asn1/nibble_alloc.h
  24620. @@ -39,13 +39,13 @@
  24621. void InitNibbleMem PROTO((unsigned long int initialSize,
  24622. unsigned long int incrementSize));
  24623. -void ShutdownNibbleMem();
  24624. +void ShutdownNibbleMem(void);
  24625. void ServiceNibbleFault PROTO((unsigned long int size));
  24626. void* NibbleAlloc PROTO((unsigned long int size));
  24627. -void ResetNibbleMem();
  24628. +void ResetNibbleMem(void);
  24629. #endif /* conditional include */
  24630. --- linux-atm-2.4.1.orig/src/man/Makefile.in
  24631. +++ linux-atm-2.4.1/src/man/Makefile.in
  24632. @@ -1,4 +1,4 @@
  24633. -# Makefile.in generated automatically by automake 1.4-p5 from Makefile.am
  24634. +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
  24635. # Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
  24636. # This Makefile.in is free software; the Free Software Foundation
  24637. @@ -100,14 +100,14 @@
  24638. DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
  24639. -TAR = gtar
  24640. +TAR = tar
  24641. GZIP_ENV = --best
  24642. all: all-redirect
  24643. .SUFFIXES:
  24644. $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
  24645. - cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps src/man/Makefile
  24646. + cd $(top_srcdir) && $(AUTOMAKE) --gnu src/man/Makefile
  24647. -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  24648. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
  24649. cd $(top_builddir) \
  24650. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
  24651. @@ -159,6 +159,11 @@
  24652. subdir = src/man
  24653. distdir: $(DISTFILES)
  24654. + here=`cd $(top_builddir) && pwd`; \
  24655. + top_distdir=`cd $(top_distdir) && pwd`; \
  24656. + distdir=`cd $(distdir) && pwd`; \
  24657. + cd $(top_srcdir) \
  24658. + && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu src/man/Makefile
  24659. @for file in $(DISTFILES); do \
  24660. d=$(srcdir); \
  24661. if test -d $$d/$$file; then \
  24662. --- linux-atm-2.4.1.orig/src/led/Makefile.in
  24663. +++ linux-atm-2.4.1/src/led/Makefile.in
  24664. @@ -1,4 +1,4 @@
  24665. -# Makefile.in generated automatically by automake 1.4-p5 from Makefile.am
  24666. +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
  24667. # Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
  24668. # This Makefile.in is free software; the Free Software Foundation
  24669. @@ -87,9 +87,7 @@
  24670. sbin_PROGRAMS = zeppelin
  24671. -zeppelin_SOURCES = join.c join.h conn.c conn.h main.c address.c address.h \
  24672. - frames.c frames.h display.c display.h \
  24673. - kernel.c kernel.h frame_defs.h lec.h
  24674. +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
  24675. zeppelin_LDADD = $(top_builddir)/src/lib/libatm.la
  24676. zeppelin_DEPENDENCIES = $(zeppelin_LDADD)
  24677. @@ -125,8 +123,10 @@
  24678. DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
  24679. -TAR = gtar
  24680. +TAR = tar
  24681. GZIP_ENV = --best
  24682. +DEP_FILES = .deps/address.P .deps/conn.P .deps/display.P .deps/frames.P \
  24683. +.deps/join.P .deps/kernel.P .deps/main.P
  24684. SOURCES = $(zeppelin_SOURCES)
  24685. OBJECTS = $(zeppelin_OBJECTS)
  24686. @@ -134,9 +134,9 @@
  24687. .SUFFIXES:
  24688. .SUFFIXES: .S .c .lo .o .obj .s
  24689. $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
  24690. - cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps src/led/Makefile
  24691. + cd $(top_srcdir) && $(AUTOMAKE) --gnu src/led/Makefile
  24692. -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  24693. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
  24694. cd $(top_builddir) \
  24695. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
  24696. @@ -166,9 +166,6 @@
  24697. rm -f $(DESTDIR)$(sbindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
  24698. done
  24699. -.c.o:
  24700. - $(COMPILE) -c $<
  24701. -
  24702. # FIXME: We should only use cygpath when building on Windows,
  24703. # and only if it is available.
  24704. .c.obj:
  24705. @@ -191,9 +188,6 @@
  24706. maintainer-clean-compile:
  24707. -.c.lo:
  24708. - $(LIBTOOL) --mode=compile $(COMPILE) -c $<
  24709. -
  24710. .s.lo:
  24711. $(LIBTOOL) --mode=compile $(COMPILE) -c $<
  24712. @@ -271,7 +265,7 @@
  24713. awk ' { files[$$0] = 1; } \
  24714. END { for (i in files) print i; }'`; \
  24715. test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
  24716. - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
  24717. + || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags $$unique $(LISP))
  24718. mostlyclean-tags:
  24719. @@ -287,6 +281,11 @@
  24720. subdir = src/led
  24721. distdir: $(DISTFILES)
  24722. + here=`cd $(top_builddir) && pwd`; \
  24723. + top_distdir=`cd $(top_distdir) && pwd`; \
  24724. + distdir=`cd $(distdir) && pwd`; \
  24725. + cd $(top_srcdir) \
  24726. + && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu src/led/Makefile
  24727. @for file in $(DISTFILES); do \
  24728. d=$(srcdir); \
  24729. if test -d $$d/$$file; then \
  24730. @@ -297,28 +296,38 @@
  24731. || cp -p $$d/$$file $(distdir)/$$file || :; \
  24732. fi; \
  24733. done
  24734. -address.o: address.c ../../config.h ../../src/include/atm.h \
  24735. - ../../src/include/stdint.h ../../src/include/atmd.h address.h
  24736. -conn.o: conn.c ../../config.h ../../src/include/atm.h \
  24737. - ../../src/include/stdint.h ../../src/include/atmsap.h \
  24738. - ../../src/include/atmd.h conn.h display.h lec.h frames.h \
  24739. - frame_defs.h kernel.h
  24740. -display.o: display.c ../../config.h ../../src/include/atm.h \
  24741. - ../../src/include/stdint.h ../../src/include/atmd.h display.h \
  24742. - frame_defs.h
  24743. -frames.o: frames.c ../../config.h ../../src/include/atm.h \
  24744. - ../../src/include/stdint.h ../../src/include/atmd.h conn.h \
  24745. - lec.h frames.h frame_defs.h display.h kernel.h
  24746. -join.o: join.c ../../config.h ../../src/include/atm.h \
  24747. - ../../src/include/stdint.h ../../src/include/atmd.h conn.h \
  24748. - lec.h join.h frames.h frame_defs.h display.h
  24749. -kernel.o: kernel.c ../../config.h ../../src/include/atm.h \
  24750. - ../../src/include/stdint.h ../../src/include/atmd.h kernel.h \
  24751. - lec.h conn.h frames.h frame_defs.h
  24752. -main.o: main.c ../../config.h ../../src/include/atm.h \
  24753. - ../../src/include/stdint.h ../../src/include/atmd.h join.h \
  24754. - lec.h conn.h address.h display.h kernel.h
  24755. +DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
  24756. +
  24757. +-include $(DEP_FILES)
  24758. +
  24759. +mostlyclean-depend:
  24760. +
  24761. +clean-depend:
  24762. +
  24763. +distclean-depend:
  24764. + -rm -rf .deps
  24765. +
  24766. +maintainer-clean-depend:
  24767. +
  24768. +%.o: %.c
  24769. + @echo '$(COMPILE) -c $<'; \
  24770. + $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
  24771. + @-cp .deps/$(*F).pp .deps/$(*F).P; \
  24772. + tr ' ' '\012' < .deps/$(*F).pp \
  24773. + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
  24774. + >> .deps/$(*F).P; \
  24775. + rm .deps/$(*F).pp
  24776. +
  24777. +%.lo: %.c
  24778. + @echo '$(LTCOMPILE) -c $<'; \
  24779. + $(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
  24780. + @-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \
  24781. + < .deps/$(*F).pp > .deps/$(*F).P; \
  24782. + tr ' ' '\012' < .deps/$(*F).pp \
  24783. + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
  24784. + >> .deps/$(*F).P; \
  24785. + rm -f .deps/$(*F).pp
  24786. info-am:
  24787. info: info-am
  24788. dvi-am:
  24789. @@ -356,27 +365,27 @@
  24790. maintainer-clean-generic:
  24791. mostlyclean-am: mostlyclean-sbinPROGRAMS mostlyclean-compile \
  24792. - mostlyclean-libtool mostlyclean-tags \
  24793. + mostlyclean-libtool mostlyclean-tags mostlyclean-depend \
  24794. mostlyclean-generic
  24795. mostlyclean: mostlyclean-am
  24796. clean-am: clean-sbinPROGRAMS clean-compile clean-libtool clean-tags \
  24797. - clean-generic mostlyclean-am
  24798. + clean-depend clean-generic mostlyclean-am
  24799. clean: clean-am
  24800. distclean-am: distclean-sbinPROGRAMS distclean-compile \
  24801. - distclean-libtool distclean-tags distclean-generic \
  24802. - clean-am
  24803. + distclean-libtool distclean-tags distclean-depend \
  24804. + distclean-generic clean-am
  24805. -rm -f libtool
  24806. distclean: distclean-am
  24807. maintainer-clean-am: maintainer-clean-sbinPROGRAMS \
  24808. maintainer-clean-compile maintainer-clean-libtool \
  24809. - maintainer-clean-tags maintainer-clean-generic \
  24810. - distclean-am
  24811. + maintainer-clean-tags maintainer-clean-depend \
  24812. + maintainer-clean-generic distclean-am
  24813. @echo "This command is intended for maintainers to use;"
  24814. @echo "it deletes files that may require special tools to rebuild."
  24815. @@ -388,12 +397,14 @@
  24816. clean-compile maintainer-clean-compile mostlyclean-libtool \
  24817. distclean-libtool clean-libtool maintainer-clean-libtool install-man8 \
  24818. uninstall-man8 install-man uninstall-man tags mostlyclean-tags \
  24819. -distclean-tags clean-tags maintainer-clean-tags distdir info-am info \
  24820. -dvi-am dvi check check-am installcheck-am installcheck install-exec-am \
  24821. -install-exec install-data-am install-data install-am install \
  24822. -uninstall-am uninstall all-redirect all-am all installdirs \
  24823. -mostlyclean-generic distclean-generic clean-generic \
  24824. -maintainer-clean-generic clean mostlyclean distclean maintainer-clean
  24825. +distclean-tags clean-tags maintainer-clean-tags distdir \
  24826. +mostlyclean-depend distclean-depend clean-depend \
  24827. +maintainer-clean-depend info-am info dvi-am dvi check check-am \
  24828. +installcheck-am installcheck install-exec-am install-exec \
  24829. +install-data-am install-data install-am install uninstall-am uninstall \
  24830. +all-redirect all-am all installdirs mostlyclean-generic \
  24831. +distclean-generic clean-generic maintainer-clean-generic clean \
  24832. +mostlyclean distclean maintainer-clean
  24833. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  24834. --- linux-atm-2.4.1.orig/src/lane/Makefile.in
  24835. +++ linux-atm-2.4.1/src/lane/Makefile.in
  24836. @@ -1,4 +1,4 @@
  24837. -# Makefile.in generated automatically by automake 1.4-p5 from Makefile.am
  24838. +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
  24839. # Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
  24840. # This Makefile.in is free software; the Free Software Foundation
  24841. @@ -89,14 +89,11 @@
  24842. LDADD = $(top_builddir)/src/lib/libatm.la
  24843. -LES_BUS_SRCS = mem.c mem.h load.c load.h units.c units.h load_lex.l load_lex.h \
  24844. - timers.c timers.h dump.c dump.h lane_atm.c lane_atm.h \
  24845. - events.c events.h lane.c lane.h
  24846. +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
  24847. les_SOURCES = $(LES_BUS_SRCS) packet.c packet.h connect.c connect.h db.c db.h
  24848. bus_SOURCES = $(LES_BUS_SRCS) connect_bus.c
  24849. -lecs_SOURCES = lecs_db.l lecs_db.h lecs_load.c lecs_load.h lecs.c lecs.h \
  24850. - ldb.c ldb.h mem_lecs.c mem_lecs.h atm_lecs.c atm_lecs.h
  24851. +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
  24852. man_MANS = les.8 lecs.8 bus.8
  24853. @@ -148,8 +145,13 @@
  24854. DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
  24855. -TAR = gtar
  24856. +TAR = tar
  24857. GZIP_ENV = --best
  24858. +DEP_FILES = .deps/atm_lecs.P .deps/connect.P .deps/connect_bus.P \
  24859. +.deps/db.P .deps/dump.P .deps/events.P .deps/lane.P .deps/lane_atm.P \
  24860. +.deps/ldb.P .deps/lecs.P .deps/lecs_db.P .deps/lecs_load.P .deps/load.P \
  24861. +.deps/load_lex.P .deps/mem.P .deps/mem_lecs.P .deps/packet.P \
  24862. +.deps/timers.P .deps/units.P
  24863. SOURCES = $(les_SOURCES) $(bus_SOURCES) $(lecs_SOURCES)
  24864. OBJECTS = $(les_OBJECTS) $(bus_OBJECTS) $(lecs_OBJECTS)
  24865. @@ -157,9 +159,9 @@
  24866. .SUFFIXES:
  24867. .SUFFIXES: .S .c .l .lo .o .obj .s
  24868. $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
  24869. - cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps src/lane/Makefile
  24870. + cd $(top_srcdir) && $(AUTOMAKE) --gnu src/lane/Makefile
  24871. -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  24872. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
  24873. cd $(top_builddir) \
  24874. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
  24875. @@ -189,9 +191,6 @@
  24876. rm -f $(DESTDIR)$(sbindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
  24877. done
  24878. -.c.o:
  24879. - $(COMPILE) -c $<
  24880. -
  24881. # FIXME: We should only use cygpath when building on Windows,
  24882. # and only if it is available.
  24883. .c.obj:
  24884. @@ -214,9 +213,6 @@
  24885. maintainer-clean-compile:
  24886. -.c.lo:
  24887. - $(LIBTOOL) --mode=compile $(COMPILE) -c $<
  24888. -
  24889. .s.lo:
  24890. $(LIBTOOL) --mode=compile $(COMPILE) -c $<
  24891. @@ -304,7 +300,7 @@
  24892. awk ' { files[$$0] = 1; } \
  24893. END { for (i in files) print i; }'`; \
  24894. test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
  24895. - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
  24896. + || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags $$unique $(LISP))
  24897. mostlyclean-tags:
  24898. @@ -320,6 +316,11 @@
  24899. subdir = src/lane
  24900. distdir: $(DISTFILES)
  24901. + here=`cd $(top_builddir) && pwd`; \
  24902. + top_distdir=`cd $(top_distdir) && pwd`; \
  24903. + distdir=`cd $(distdir) && pwd`; \
  24904. + cd $(top_srcdir) \
  24905. + && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu src/lane/Makefile
  24906. @for file in $(DISTFILES); do \
  24907. d=$(srcdir); \
  24908. if test -d $$d/$$file; then \
  24909. @@ -330,62 +331,38 @@
  24910. || cp -p $$d/$$file $(distdir)/$$file || :; \
  24911. fi; \
  24912. done
  24913. -atm_lecs.o: atm_lecs.c ../../config.h ../../src/include/atm.h \
  24914. - ../../src/include/stdint.h ../../src/include/atmsap.h \
  24915. - atm_lecs.h
  24916. -connect.o: connect.c ../../config.h ../../src/include/stdint.h mem.h \
  24917. - units.h lane.h dump.h ../../src/include/atm.h \
  24918. - ../../src/include/atmsap.h load.h connect.h timers.h events.h \
  24919. - db.h packet.h lane_atm.h
  24920. -connect_bus.o: connect_bus.c ../../config.h ../../src/include/stdint.h \
  24921. - mem.h units.h lane.h dump.h ../../src/include/atm.h \
  24922. - ../../src/include/atmsap.h load.h connect.h timers.h events.h \
  24923. - lane_atm.h
  24924. -db.o: db.c ../../config.h ../../src/include/stdint.h mem.h units.h \
  24925. - lane.h dump.h ../../src/include/atm.h \
  24926. - ../../src/include/atmsap.h load.h connect.h timers.h events.h \
  24927. - db.h
  24928. -dump.o: dump.c ../../config.h ../../src/include/stdint.h \
  24929. - ../../src/include/atm.h ../../src/include/atmsap.h dump.h \
  24930. - units.h lane.h load.h
  24931. -events.o: events.c ../../config.h events.h units.h load.h lane.h dump.h \
  24932. - ../../src/include/atm.h ../../src/include/stdint.h \
  24933. - ../../src/include/atmsap.h mem.h timers.h connect.h
  24934. -lane.o: lane.c ../../config.h units.h load.h lane.h dump.h \
  24935. - ../../src/include/atm.h ../../src/include/stdint.h \
  24936. - ../../src/include/atmsap.h mem.h connect.h timers.h events.h
  24937. -lane_atm.o: lane_atm.c ../../config.h lane_atm.h units.h lane.h \
  24938. - connect.h timers.h load.h events.h ../../src/include/atmsap.h \
  24939. - ../../src/include/stdint.h dump.h ../../src/include/atm.h mem.h
  24940. -ldb.o: ldb.c ../../config.h ../../src/include/atm.h \
  24941. - ../../src/include/stdint.h lecs.h ldb.h mem_lecs.h
  24942. -lecs.o: lecs.c ../../config.h ../../src/include/stdint.h \
  24943. - ../../src/include/atm.h lecs_load.h ldb.h mem_lecs.h lecs.h \
  24944. - atm_lecs.h
  24945. -lecs_db.o: lecs_db.c ../../config.h lecs_load.h lecs_db.h
  24946. -lecs_load.o: lecs_load.c ../../config.h lecs_load.h lecs_db.h ldb.h \
  24947. - lecs.h
  24948. -load.o: load.c ../../config.h load.h units.h lane.h dump.h \
  24949. - ../../src/include/atm.h ../../src/include/stdint.h \
  24950. - ../../src/include/atmsap.h mem.h load_lex.h
  24951. -load_lex.o: load_lex.c ../../config.h ../../src/include/stdint.h \
  24952. - load_lex.h lane.h units.h load.h mem.h
  24953. -mem.o: mem.c ../../config.h mem.h units.h dump.h ../../src/include/atm.h \
  24954. - ../../src/include/stdint.h ../../src/include/atmsap.h lane.h \
  24955. - load.h
  24956. -mem_lecs.o: mem_lecs.c ../../config.h mem_lecs.h
  24957. -packet.o: packet.c ../../config.h ../../src/include/stdint.h mem.h \
  24958. - units.h lane.h dump.h ../../src/include/atm.h \
  24959. - ../../src/include/atmsap.h load.h connect.h timers.h events.h \
  24960. - db.h packet.h
  24961. -timers.o: timers.c ../../config.h timers.h units.h load.h lane.h dump.h \
  24962. - ../../src/include/atm.h ../../src/include/stdint.h \
  24963. - ../../src/include/atmsap.h mem.h
  24964. -units.o: units.c ../../config.h units.h mem.h lane.h load.h dump.h \
  24965. - ../../src/include/atm.h ../../src/include/stdint.h \
  24966. - ../../src/include/atmsap.h connect.h timers.h events.h \
  24967. - lane_atm.h
  24968. +DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
  24969. +
  24970. +-include $(DEP_FILES)
  24971. +
  24972. +mostlyclean-depend:
  24973. +
  24974. +clean-depend:
  24975. +
  24976. +distclean-depend:
  24977. + -rm -rf .deps
  24978. +
  24979. +maintainer-clean-depend:
  24980. +
  24981. +%.o: %.c
  24982. + @echo '$(COMPILE) -c $<'; \
  24983. + $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
  24984. + @-cp .deps/$(*F).pp .deps/$(*F).P; \
  24985. + tr ' ' '\012' < .deps/$(*F).pp \
  24986. + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
  24987. + >> .deps/$(*F).P; \
  24988. + rm .deps/$(*F).pp
  24989. +
  24990. +%.lo: %.c
  24991. + @echo '$(LTCOMPILE) -c $<'; \
  24992. + $(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
  24993. + @-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \
  24994. + < .deps/$(*F).pp > .deps/$(*F).P; \
  24995. + tr ' ' '\012' < .deps/$(*F).pp \
  24996. + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
  24997. + >> .deps/$(*F).P; \
  24998. + rm -f .deps/$(*F).pp
  24999. info-am:
  25000. info: info-am
  25001. dvi-am:
  25002. @@ -422,29 +399,29 @@
  25003. -rm -f config.cache config.log stamp-h stamp-h[0-9]*
  25004. maintainer-clean-generic:
  25005. - -test -z "lecs_dblload_lexl" || rm -f lecs_dbl load_lexl
  25006. + -test -z "lecs_dbcload_lexc" || rm -f lecs_dbc load_lexc
  25007. mostlyclean-am: mostlyclean-sbinPROGRAMS mostlyclean-compile \
  25008. - mostlyclean-libtool mostlyclean-tags \
  25009. + mostlyclean-libtool mostlyclean-tags mostlyclean-depend \
  25010. mostlyclean-generic
  25011. mostlyclean: mostlyclean-am
  25012. clean-am: clean-sbinPROGRAMS clean-compile clean-libtool clean-tags \
  25013. - clean-generic mostlyclean-am
  25014. + clean-depend clean-generic mostlyclean-am
  25015. clean: clean-am
  25016. distclean-am: distclean-sbinPROGRAMS distclean-compile \
  25017. - distclean-libtool distclean-tags distclean-generic \
  25018. - clean-am
  25019. + distclean-libtool distclean-tags distclean-depend \
  25020. + distclean-generic clean-am
  25021. -rm -f libtool
  25022. distclean: distclean-am
  25023. maintainer-clean-am: maintainer-clean-sbinPROGRAMS \
  25024. maintainer-clean-compile maintainer-clean-libtool \
  25025. - maintainer-clean-tags maintainer-clean-generic \
  25026. - distclean-am
  25027. + maintainer-clean-tags maintainer-clean-depend \
  25028. + maintainer-clean-generic distclean-am
  25029. @echo "This command is intended for maintainers to use;"
  25030. @echo "it deletes files that may require special tools to rebuild."
  25031. @@ -456,12 +433,14 @@
  25032. clean-compile maintainer-clean-compile mostlyclean-libtool \
  25033. distclean-libtool clean-libtool maintainer-clean-libtool install-man8 \
  25034. uninstall-man8 install-man uninstall-man tags mostlyclean-tags \
  25035. -distclean-tags clean-tags maintainer-clean-tags distdir info-am info \
  25036. -dvi-am dvi check check-am installcheck-am installcheck install-exec-am \
  25037. -install-exec install-data-am install-data install-am install \
  25038. -uninstall-am uninstall all-redirect all-am all installdirs \
  25039. -mostlyclean-generic distclean-generic clean-generic \
  25040. -maintainer-clean-generic clean mostlyclean distclean maintainer-clean
  25041. +distclean-tags clean-tags maintainer-clean-tags distdir \
  25042. +mostlyclean-depend distclean-depend clean-depend \
  25043. +maintainer-clean-depend info-am info dvi-am dvi check check-am \
  25044. +installcheck-am installcheck install-exec-am install-exec \
  25045. +install-data-am install-data install-am install uninstall-am uninstall \
  25046. +all-redirect all-am all installdirs mostlyclean-generic \
  25047. +distclean-generic clean-generic maintainer-clean-generic clean \
  25048. +mostlyclean distclean maintainer-clean
  25049. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  25050. --- linux-atm-2.4.1.orig/src/mpoad/Makefile.in
  25051. +++ linux-atm-2.4.1/src/mpoad/Makefile.in
  25052. @@ -1,4 +1,4 @@
  25053. -# Makefile.in generated automatically by automake 1.4-p5 from Makefile.am
  25054. +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
  25055. # Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
  25056. # This Makefile.in is free software; the Free Software Foundation
  25057. @@ -89,9 +89,7 @@
  25058. LDADD = $(top_builddir)/src/lib/libatm.la
  25059. -mpcd_SOURCES = get_vars.c get_vars.h io.c io.h k_interf.c k_interf.h main.c \
  25060. - p_factory.c p_recogn.c id_list.c tag_list.c \
  25061. - poll2select.c poll2select.h lecs.c lecs.h packets.h
  25062. +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
  25063. man_MANS = mpcd.8
  25064. @@ -128,8 +126,11 @@
  25065. DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
  25066. -TAR = gtar
  25067. +TAR = tar
  25068. GZIP_ENV = --best
  25069. +DEP_FILES = .deps/get_vars.P .deps/id_list.P .deps/io.P \
  25070. +.deps/k_interf.P .deps/lecs.P .deps/main.P .deps/p_factory.P \
  25071. +.deps/p_recogn.P .deps/poll2select.P .deps/tag_list.P
  25072. SOURCES = $(mpcd_SOURCES)
  25073. OBJECTS = $(mpcd_OBJECTS)
  25074. @@ -137,9 +138,9 @@
  25075. .SUFFIXES:
  25076. .SUFFIXES: .S .c .lo .o .obj .s
  25077. $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
  25078. - cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps src/mpoad/Makefile
  25079. + cd $(top_srcdir) && $(AUTOMAKE) --gnu src/mpoad/Makefile
  25080. -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  25081. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
  25082. cd $(top_builddir) \
  25083. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
  25084. @@ -169,9 +170,6 @@
  25085. rm -f $(DESTDIR)$(sbindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
  25086. done
  25087. -.c.o:
  25088. - $(COMPILE) -c $<
  25089. -
  25090. # FIXME: We should only use cygpath when building on Windows,
  25091. # and only if it is available.
  25092. .c.obj:
  25093. @@ -194,9 +192,6 @@
  25094. maintainer-clean-compile:
  25095. -.c.lo:
  25096. - $(LIBTOOL) --mode=compile $(COMPILE) -c $<
  25097. -
  25098. .s.lo:
  25099. $(LIBTOOL) --mode=compile $(COMPILE) -c $<
  25100. @@ -274,7 +269,7 @@
  25101. awk ' { files[$$0] = 1; } \
  25102. END { for (i in files) print i; }'`; \
  25103. test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
  25104. - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
  25105. + || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags $$unique $(LISP))
  25106. mostlyclean-tags:
  25107. @@ -290,6 +285,11 @@
  25108. subdir = src/mpoad
  25109. distdir: $(DISTFILES)
  25110. + here=`cd $(top_builddir) && pwd`; \
  25111. + top_distdir=`cd $(top_distdir) && pwd`; \
  25112. + distdir=`cd $(distdir) && pwd`; \
  25113. + cd $(top_srcdir) \
  25114. + && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu src/mpoad/Makefile
  25115. @for file in $(DISTFILES); do \
  25116. d=$(srcdir); \
  25117. if test -d $$d/$$file; then \
  25118. @@ -300,29 +300,38 @@
  25119. || cp -p $$d/$$file $(distdir)/$$file || :; \
  25120. fi; \
  25121. done
  25122. -get_vars.o: get_vars.c ../../config.h ../../src/include/stdint.h \
  25123. - ../../src/include/atm.h packets.h get_vars.h io.h
  25124. -id_list.o: id_list.c ../../config.h ../../src/include/atm.h \
  25125. - ../../src/include/stdint.h packets.h
  25126. -io.o: io.c ../../config.h ../../src/include/atm.h \
  25127. - ../../src/include/stdint.h packets.h k_interf.h io.h get_vars.h \
  25128. - poll2select.h
  25129. -k_interf.o: k_interf.c ../../config.h ../../src/include/stdint.h \
  25130. - ../../src/include/atm.h k_interf.h packets.h io.h get_vars.h
  25131. -lecs.o: lecs.c ../../config.h ../../src/include/stdint.h \
  25132. - ../../src/include/atm.h ../../src/include/atmsap.h lecs.h \
  25133. - k_interf.h
  25134. -main.o: main.c ../../config.h ../../src/include/atm.h \
  25135. - ../../src/include/stdint.h packets.h io.h k_interf.h get_vars.h \
  25136. - lecs.h
  25137. -p_factory.o: p_factory.c ../../config.h ../../src/include/stdint.h \
  25138. - ../../src/include/atm.h packets.h get_vars.h io.h
  25139. -p_recogn.o: p_recogn.c ../../config.h ../../src/include/atm.h \
  25140. - ../../src/include/stdint.h io.h k_interf.h packets.h
  25141. -poll2select.o: poll2select.c ../../config.h
  25142. -tag_list.o: tag_list.c ../../config.h packets.h ../../src/include/atm.h \
  25143. - ../../src/include/stdint.h
  25144. +DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
  25145. +
  25146. +-include $(DEP_FILES)
  25147. +
  25148. +mostlyclean-depend:
  25149. +
  25150. +clean-depend:
  25151. +
  25152. +distclean-depend:
  25153. + -rm -rf .deps
  25154. +
  25155. +maintainer-clean-depend:
  25156. +
  25157. +%.o: %.c
  25158. + @echo '$(COMPILE) -c $<'; \
  25159. + $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
  25160. + @-cp .deps/$(*F).pp .deps/$(*F).P; \
  25161. + tr ' ' '\012' < .deps/$(*F).pp \
  25162. + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
  25163. + >> .deps/$(*F).P; \
  25164. + rm .deps/$(*F).pp
  25165. +
  25166. +%.lo: %.c
  25167. + @echo '$(LTCOMPILE) -c $<'; \
  25168. + $(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
  25169. + @-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \
  25170. + < .deps/$(*F).pp > .deps/$(*F).P; \
  25171. + tr ' ' '\012' < .deps/$(*F).pp \
  25172. + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
  25173. + >> .deps/$(*F).P; \
  25174. + rm -f .deps/$(*F).pp
  25175. info-am:
  25176. info: info-am
  25177. dvi-am:
  25178. @@ -360,27 +369,27 @@
  25179. maintainer-clean-generic:
  25180. mostlyclean-am: mostlyclean-sbinPROGRAMS mostlyclean-compile \
  25181. - mostlyclean-libtool mostlyclean-tags \
  25182. + mostlyclean-libtool mostlyclean-tags mostlyclean-depend \
  25183. mostlyclean-generic
  25184. mostlyclean: mostlyclean-am
  25185. clean-am: clean-sbinPROGRAMS clean-compile clean-libtool clean-tags \
  25186. - clean-generic mostlyclean-am
  25187. + clean-depend clean-generic mostlyclean-am
  25188. clean: clean-am
  25189. distclean-am: distclean-sbinPROGRAMS distclean-compile \
  25190. - distclean-libtool distclean-tags distclean-generic \
  25191. - clean-am
  25192. + distclean-libtool distclean-tags distclean-depend \
  25193. + distclean-generic clean-am
  25194. -rm -f libtool
  25195. distclean: distclean-am
  25196. maintainer-clean-am: maintainer-clean-sbinPROGRAMS \
  25197. maintainer-clean-compile maintainer-clean-libtool \
  25198. - maintainer-clean-tags maintainer-clean-generic \
  25199. - distclean-am
  25200. + maintainer-clean-tags maintainer-clean-depend \
  25201. + maintainer-clean-generic distclean-am
  25202. @echo "This command is intended for maintainers to use;"
  25203. @echo "it deletes files that may require special tools to rebuild."
  25204. @@ -392,12 +401,14 @@
  25205. clean-compile maintainer-clean-compile mostlyclean-libtool \
  25206. distclean-libtool clean-libtool maintainer-clean-libtool install-man8 \
  25207. uninstall-man8 install-man uninstall-man tags mostlyclean-tags \
  25208. -distclean-tags clean-tags maintainer-clean-tags distdir info-am info \
  25209. -dvi-am dvi check check-am installcheck-am installcheck install-exec-am \
  25210. -install-exec install-data-am install-data install-am install \
  25211. -uninstall-am uninstall all-redirect all-am all installdirs \
  25212. -mostlyclean-generic distclean-generic clean-generic \
  25213. -maintainer-clean-generic clean mostlyclean distclean maintainer-clean
  25214. +distclean-tags clean-tags maintainer-clean-tags distdir \
  25215. +mostlyclean-depend distclean-depend clean-depend \
  25216. +maintainer-clean-depend info-am info dvi-am dvi check check-am \
  25217. +installcheck-am installcheck install-exec-am install-exec \
  25218. +install-data-am install-data install-am install uninstall-am uninstall \
  25219. +all-redirect all-am all installdirs mostlyclean-generic \
  25220. +distclean-generic clean-generic maintainer-clean-generic clean \
  25221. +mostlyclean distclean maintainer-clean
  25222. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  25223. --- linux-atm-2.4.1.orig/src/mpoad/p_factory.c
  25224. +++ linux-atm-2.4.1/src/mpoad/p_factory.c
  25225. @@ -34,7 +34,7 @@
  25226. while( count > 1 ) {
  25227. /* This is the inner loop */
  25228. - sum += * ((uint16_t *) addr)++;
  25229. + sum += * ((uint16_t *) addr); addr += sizeof(uint16_t);
  25230. count -= 2;
  25231. }
  25232. --- linux-atm-2.4.1.orig/src/switch/Makefile.in
  25233. +++ linux-atm-2.4.1/src/switch/Makefile.in
  25234. @@ -1,4 +1,4 @@
  25235. -# Makefile.in generated automatically by automake 1.4-p5 from Makefile.am
  25236. +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
  25237. # Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
  25238. # This Makefile.in is free software; the Free Software Foundation
  25239. @@ -92,11 +92,9 @@
  25240. swc_SOURCES = swc.c swc.h
  25241. swc_LDADD = $(top_builddir)/src/lib/libatm.la
  25242. -swc_DEPENDENCIES = $(swc_LDADD) $(top_builddir)/src/include/atm.h \
  25243. - $(top_builddir)/src/include/atmd.h
  25244. +swc_DEPENDENCIES = $(swc_LDADD) $(top_builddir)/src/include/atm.h $(top_builddir)/src/include/atmd.h
  25245. -libsw_a_SOURCES = control.c dispatch.c dispatch.h proto.c proto.h relay.c \
  25246. - route.c route.h sig.c sig.h cfg_y.y cfg_l.l fab.h
  25247. +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
  25248. EXTRA_DIST = cfg_y.h README
  25249. @@ -132,8 +130,11 @@
  25250. DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
  25251. -TAR = gtar
  25252. +TAR = tar
  25253. GZIP_ENV = --best
  25254. +DEP_FILES = .deps/cfg_l.P .deps/cfg_y.P .deps/control.P \
  25255. +.deps/dispatch.P .deps/proto.P .deps/relay.P .deps/route.P .deps/sig.P \
  25256. +.deps/swc.P
  25257. SOURCES = $(libsw_a_SOURCES) $(swc_SOURCES)
  25258. OBJECTS = $(libsw_a_OBJECTS) $(swc_OBJECTS)
  25259. @@ -141,9 +142,9 @@
  25260. .SUFFIXES:
  25261. .SUFFIXES: .S .c .l .lo .o .obj .s .y
  25262. $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
  25263. - cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps src/switch/Makefile
  25264. + cd $(top_srcdir) && $(AUTOMAKE) --gnu src/switch/Makefile
  25265. -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  25266. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
  25267. cd $(top_builddir) \
  25268. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
  25269. @@ -157,9 +158,6 @@
  25270. maintainer-clean-noinstLIBRARIES:
  25271. -.c.o:
  25272. - $(COMPILE) -c $<
  25273. -
  25274. # FIXME: We should only use cygpath when building on Windows,
  25275. # and only if it is available.
  25276. .c.obj:
  25277. @@ -182,9 +180,6 @@
  25278. maintainer-clean-compile:
  25279. -.c.lo:
  25280. - $(LIBTOOL) --mode=compile $(COMPILE) -c $<
  25281. -
  25282. .s.lo:
  25283. $(LIBTOOL) --mode=compile $(COMPILE) -c $<
  25284. @@ -306,7 +301,7 @@
  25285. awk ' { files[$$0] = 1; } \
  25286. END { for (i in files) print i; }'`; \
  25287. test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
  25288. - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
  25289. + || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags $$unique $(LISP))
  25290. mostlyclean-tags:
  25291. @@ -322,6 +317,11 @@
  25292. subdir = src/switch
  25293. distdir: $(DISTFILES)
  25294. + here=`cd $(top_builddir) && pwd`; \
  25295. + top_distdir=`cd $(top_distdir) && pwd`; \
  25296. + distdir=`cd $(distdir) && pwd`; \
  25297. + cd $(top_srcdir) \
  25298. + && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu src/switch/Makefile
  25299. @for file in $(DISTFILES); do \
  25300. d=$(srcdir); \
  25301. if test -d $$d/$$file; then \
  25302. @@ -342,32 +342,38 @@
  25303. || exit 1; \
  25304. fi; \
  25305. done
  25306. -cfg_l.o: cfg_l.c ../../config.h ../../src/include/atm.h \
  25307. - ../../src/include/stdint.h cfg_y.h
  25308. -cfg_y.o: cfg_y.c ../../config.h ../../src/include/atm.h \
  25309. - ../../src/include/stdint.h fab.h proto.h \
  25310. - ../../src/include/atmsap.h ../../src/include/atmd.h sig.h \
  25311. - route.h swc.h
  25312. -control.o: control.c ../../config.h ../../src/include/atm.h \
  25313. - ../../src/include/stdint.h ../../src/include/atmd.h fab.h \
  25314. - proto.h ../../src/include/atmsap.h sig.h dispatch.h swc.h
  25315. -dispatch.o: dispatch.c ../../config.h ../../src/include/atmd.h \
  25316. - ../../src/include/stdint.h ../../src/include/atm.h dispatch.h
  25317. -proto.o: proto.c ../../config.h ../../src/include/atm.h \
  25318. - ../../src/include/stdint.h ../../src/include/atmd.h sig.h fab.h \
  25319. - proto.h ../../src/include/atmsap.h
  25320. -relay.o: relay.c ../../config.h ../../src/include/atm.h \
  25321. - ../../src/include/stdint.h ../../src/include/atmd.h fab.h \
  25322. - proto.h ../../src/include/atmsap.h sig.h dispatch.h route.h
  25323. -route.o: route.c ../../config.h ../../src/include/atm.h \
  25324. - ../../src/include/stdint.h ../../src/include/atmd.h route.h \
  25325. - sig.h
  25326. -sig.o: sig.c ../../config.h ../../src/include/stdint.h \
  25327. - ../../src/include/atmd.h ../../src/include/atm.h dispatch.h \
  25328. - proto.h ../../src/include/atmsap.h sig.h route.h fab.h
  25329. -swc.o: swc.c ../../config.h ../../src/include/atm.h \
  25330. - ../../src/include/stdint.h ../../src/include/atmd.h swc.h
  25331. +DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
  25332. +
  25333. +-include $(DEP_FILES)
  25334. +
  25335. +mostlyclean-depend:
  25336. +
  25337. +clean-depend:
  25338. +
  25339. +distclean-depend:
  25340. + -rm -rf .deps
  25341. +
  25342. +maintainer-clean-depend:
  25343. +
  25344. +%.o: %.c
  25345. + @echo '$(COMPILE) -c $<'; \
  25346. + $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
  25347. + @-cp .deps/$(*F).pp .deps/$(*F).P; \
  25348. + tr ' ' '\012' < .deps/$(*F).pp \
  25349. + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
  25350. + >> .deps/$(*F).P; \
  25351. + rm .deps/$(*F).pp
  25352. +
  25353. +%.lo: %.c
  25354. + @echo '$(LTCOMPILE) -c $<'; \
  25355. + $(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
  25356. + @-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \
  25357. + < .deps/$(*F).pp > .deps/$(*F).P; \
  25358. + tr ' ' '\012' < .deps/$(*F).pp \
  25359. + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
  25360. + >> .deps/$(*F).P; \
  25361. + rm -f .deps/$(*F).pp
  25362. info-am:
  25363. info: info-recursive
  25364. dvi-am:
  25365. @@ -404,22 +410,23 @@
  25366. -rm -f config.cache config.log stamp-h stamp-h[0-9]*
  25367. maintainer-clean-generic:
  25368. - -test -z "cfg_llcfg_yhcfg_yc" || rm -f cfg_ll cfg_yh cfg_yc
  25369. + -test -z "cfg_lccfg_yhcfg_yc" || rm -f cfg_lc cfg_yh cfg_yc
  25370. mostlyclean-am: mostlyclean-noinstLIBRARIES mostlyclean-compile \
  25371. mostlyclean-libtool mostlyclean-noinstPROGRAMS \
  25372. - mostlyclean-tags mostlyclean-generic
  25373. + mostlyclean-tags mostlyclean-depend mostlyclean-generic
  25374. mostlyclean: mostlyclean-recursive
  25375. clean-am: clean-noinstLIBRARIES clean-compile clean-libtool \
  25376. - clean-noinstPROGRAMS clean-tags clean-generic \
  25377. - mostlyclean-am
  25378. + clean-noinstPROGRAMS clean-tags clean-depend \
  25379. + clean-generic mostlyclean-am
  25380. clean: clean-recursive
  25381. distclean-am: distclean-noinstLIBRARIES distclean-compile \
  25382. distclean-libtool distclean-noinstPROGRAMS \
  25383. - distclean-tags distclean-generic clean-am
  25384. + distclean-tags distclean-depend distclean-generic \
  25385. + clean-am
  25386. -rm -f libtool
  25387. distclean: distclean-recursive
  25388. @@ -427,7 +434,8 @@
  25389. maintainer-clean-am: maintainer-clean-noinstLIBRARIES \
  25390. maintainer-clean-compile maintainer-clean-libtool \
  25391. maintainer-clean-noinstPROGRAMS maintainer-clean-tags \
  25392. - maintainer-clean-generic distclean-am
  25393. + maintainer-clean-depend maintainer-clean-generic \
  25394. + distclean-am
  25395. @echo "This command is intended for maintainers to use;"
  25396. @echo "it deletes files that may require special tools to rebuild."
  25397. @@ -445,12 +453,14 @@
  25398. all-recursive check-recursive installcheck-recursive info-recursive \
  25399. dvi-recursive mostlyclean-recursive distclean-recursive clean-recursive \
  25400. maintainer-clean-recursive tags tags-recursive mostlyclean-tags \
  25401. -distclean-tags clean-tags maintainer-clean-tags distdir info-am info \
  25402. -dvi-am dvi check check-am installcheck-am installcheck install-exec-am \
  25403. -install-exec install-data-am install-data install-am install \
  25404. -uninstall-am uninstall all-redirect all-am all installdirs-am \
  25405. -installdirs mostlyclean-generic distclean-generic clean-generic \
  25406. -maintainer-clean-generic clean mostlyclean distclean maintainer-clean
  25407. +distclean-tags clean-tags maintainer-clean-tags distdir \
  25408. +mostlyclean-depend distclean-depend clean-depend \
  25409. +maintainer-clean-depend info-am info dvi-am dvi check check-am \
  25410. +installcheck-am installcheck install-exec-am install-exec \
  25411. +install-data-am install-data install-am install uninstall-am uninstall \
  25412. +all-redirect all-am all installdirs-am installdirs mostlyclean-generic \
  25413. +distclean-generic clean-generic maintainer-clean-generic clean \
  25414. +mostlyclean distclean maintainer-clean
  25415. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  25416. --- linux-atm-2.4.1.orig/src/switch/cfg_y.c
  25417. +++ linux-atm-2.4.1/src/switch/cfg_y.c
  25418. @@ -1,21 +1,87 @@
  25419. +/* A Bison parser, made by GNU Bison 1.875d. */
  25420. -/* A Bison parser, made from cfg_y.y
  25421. - by GNU Bison version 1.28 */
  25422. +/* Skeleton parser for Yacc-like parsing with Bison,
  25423. + Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
  25424. -#define YYBISON 1 /* Identify Bison output. */
  25425. + This program is free software; you can redistribute it and/or modify
  25426. + it under the terms of the GNU General Public License as published by
  25427. + the Free Software Foundation; either version 2, or (at your option)
  25428. + any later version.
  25429. +
  25430. + This program is distributed in the hope that it will be useful,
  25431. + but WITHOUT ANY WARRANTY; without even the implied warranty of
  25432. + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  25433. + GNU General Public License for more details.
  25434. +
  25435. + You should have received a copy of the GNU General Public License
  25436. + along with this program; if not, write to the Free Software
  25437. + Foundation, Inc., 59 Temple Place - Suite 330,
  25438. + Boston, MA 02111-1307, USA. */
  25439. +
  25440. +/* As a special exception, when this file is copied by Bison into a
  25441. + Bison output file, you may use that output file without restriction.
  25442. + This special exception was added by the Free Software Foundation
  25443. + in version 1.24 of Bison. */
  25444. +
  25445. +/* Written by Richard Stallman by simplifying the original so called
  25446. + ``semantic'' parser. */
  25447. +
  25448. +/* All symbols defined below should begin with yy or YY, to avoid
  25449. + infringing on user name space. This should be done even for local
  25450. + variables, as they might otherwise be expanded by user macros.
  25451. + There are some unavoidable exceptions within include files to
  25452. + define necessary library symbols; they are noted "INFRINGES ON
  25453. + USER NAME SPACE" below. */
  25454. +
  25455. +/* Identify Bison output. */
  25456. +#define YYBISON 1
  25457. +
  25458. +/* Skeleton name. */
  25459. +#define YYSKELETON_NAME "yacc.c"
  25460. +
  25461. +/* Pure parsers. */
  25462. +#define YYPURE 0
  25463. +
  25464. +/* Using locations. */
  25465. +#define YYLSP_NEEDED 0
  25466. -#define TOK_COMMAND 257
  25467. -#define TOK_VPCI 258
  25468. -#define TOK_ITF 259
  25469. -#define TOK_DEFAULT 260
  25470. -#define TOK_ROUTE 261
  25471. -#define TOK_STR 262
  25472. -#define TOK_SOCKET 263
  25473. -#define TOK_OPTION 264
  25474. -#define TOK_CONTROL 265
  25475. -#define TOK_NUM 266
  25476. -#define TOK_PVC 267
  25477. +
  25478. +/* Tokens. */
  25479. +#ifndef YYTOKENTYPE
  25480. +# define YYTOKENTYPE
  25481. + /* Put the tokens into the symbol table, so that GDB and other debuggers
  25482. + know about them. */
  25483. + enum yytokentype {
  25484. + TOK_COMMAND = 258,
  25485. + TOK_VPCI = 259,
  25486. + TOK_ITF = 260,
  25487. + TOK_DEFAULT = 261,
  25488. + TOK_ROUTE = 262,
  25489. + TOK_STR = 263,
  25490. + TOK_SOCKET = 264,
  25491. + TOK_OPTION = 265,
  25492. + TOK_CONTROL = 266,
  25493. + TOK_NUM = 267,
  25494. + TOK_PVC = 268
  25495. + };
  25496. +#endif
  25497. +#define TOK_COMMAND 258
  25498. +#define TOK_VPCI 259
  25499. +#define TOK_ITF 260
  25500. +#define TOK_DEFAULT 261
  25501. +#define TOK_ROUTE 262
  25502. +#define TOK_STR 263
  25503. +#define TOK_SOCKET 264
  25504. +#define TOK_OPTION 265
  25505. +#define TOK_CONTROL 266
  25506. +#define TOK_NUM 267
  25507. +#define TOK_PVC 268
  25508. +
  25509. +
  25510. +
  25511. +
  25512. +/* Copy the first part of user declarations. */
  25513. #line 1 "cfg_y.y"
  25514. /* cfg.y - switch configuration language */
  25515. @@ -29,6 +95,7 @@
  25516. #include <string.h>
  25517. #include <errno.h>
  25518. #include <limits.h>
  25519. +#include <stdlib.h>
  25520. #include "atm.h"
  25521. @@ -38,436 +105,743 @@
  25522. #include "swc.h"
  25523. +extern void yyerror(const char *s);
  25524. +
  25525. static int itf;
  25526. static SIGNALING_ENTITY *sig;
  25527. -#line 27 "cfg_y.y"
  25528. -typedef union {
  25529. +
  25530. +/* Enabling traces. */
  25531. +#ifndef YYDEBUG
  25532. +# define YYDEBUG 0
  25533. +#endif
  25534. +
  25535. +/* Enabling verbose error messages. */
  25536. +#ifdef YYERROR_VERBOSE
  25537. +# undef YYERROR_VERBOSE
  25538. +# define YYERROR_VERBOSE 1
  25539. +#else
  25540. +# define YYERROR_VERBOSE 0
  25541. +#endif
  25542. +
  25543. +#if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
  25544. +#line 30 "cfg_y.y"
  25545. +typedef union YYSTYPE {
  25546. int num;
  25547. char *str;
  25548. struct sockaddr_atmpvc pvc;
  25549. } YYSTYPE;
  25550. -#include <stdio.h>
  25551. -
  25552. -#ifndef __cplusplus
  25553. -#ifndef __STDC__
  25554. -#define const
  25555. -#endif
  25556. +/* Line 191 of yacc.c. */
  25557. +#line 137 "y.tab.c"
  25558. +# define yystype YYSTYPE /* obsolescent; will be withdrawn */
  25559. +# define YYSTYPE_IS_DECLARED 1
  25560. +# define YYSTYPE_IS_TRIVIAL 1
  25561. #endif
  25562. -#define YYFINAL 31
  25563. -#define YYFLAG -32768
  25564. -#define YYNTBASE 16
  25565. -
  25566. -#define YYTRANSLATE(x) ((unsigned)(x) <= 267 ? yytranslate[x] : 27)
  25567. -
  25568. -static const char yytranslate[] = { 0,
  25569. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25570. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25571. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25572. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25573. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25574. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25575. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25576. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25577. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25578. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25579. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25580. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25581. - 2, 2, 14, 2, 15, 2, 2, 2, 2, 2,
  25582. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25583. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25584. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25585. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25586. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25587. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25588. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25589. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25590. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25591. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25592. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25593. - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25594. - 2, 2, 2, 2, 2, 1, 3, 4, 5, 6,
  25595. - 7, 8, 9, 10, 11, 12, 13
  25596. -};
  25597. -
  25598. -#if YYDEBUG != 0
  25599. -static const short yyprhs[] = { 0,
  25600. - 0, 1, 4, 7, 10, 13, 14, 15, 25, 26,
  25601. - 29, 30, 33, 34, 36, 37, 40, 41, 45
  25602. -};
  25603. +/* Copy the second part of user declarations. */
  25604. +
  25605. +
  25606. +/* Line 214 of yacc.c. */
  25607. +#line 149 "y.tab.c"
  25608. +
  25609. +#if ! defined (yyoverflow) || YYERROR_VERBOSE
  25610. +
  25611. +# ifndef YYFREE
  25612. +# define YYFREE free
  25613. +# endif
  25614. +# ifndef YYMALLOC
  25615. +# define YYMALLOC malloc
  25616. +# endif
  25617. +
  25618. +/* The parser invokes alloca or malloc; define the necessary symbols. */
  25619. +
  25620. +# ifdef YYSTACK_USE_ALLOCA
  25621. +# if YYSTACK_USE_ALLOCA
  25622. +# define YYSTACK_ALLOC alloca
  25623. +# endif
  25624. +# else
  25625. +# if defined (alloca) || defined (_ALLOCA_H)
  25626. +# define YYSTACK_ALLOC alloca
  25627. +# else
  25628. +# ifdef __GNUC__
  25629. +# define YYSTACK_ALLOC __builtin_alloca
  25630. +# endif
  25631. +# endif
  25632. +# endif
  25633. +
  25634. +# ifdef YYSTACK_ALLOC
  25635. + /* Pacify GCC's `empty if-body' warning. */
  25636. +# define YYSTACK_FREE(Ptr) do { /* empty */; } while (0)
  25637. +# else
  25638. +# if defined (__STDC__) || defined (__cplusplus)
  25639. +# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
  25640. +# define YYSIZE_T size_t
  25641. +# endif
  25642. +# define YYSTACK_ALLOC YYMALLOC
  25643. +# define YYSTACK_FREE YYFREE
  25644. +# endif
  25645. +#endif /* ! defined (yyoverflow) || YYERROR_VERBOSE */
  25646. +
  25647. +
  25648. +#if (! defined (yyoverflow) \
  25649. + && (! defined (__cplusplus) \
  25650. + || (defined (YYSTYPE_IS_TRIVIAL) && YYSTYPE_IS_TRIVIAL)))
  25651. -static const short yyrhs[] = { -1,
  25652. - 17, 16, 0, 18, 16, 0, 11, 16, 0, 10,
  25653. - 8, 0, 0, 0, 21, 9, 14, 19, 22, 20,
  25654. - 23, 24, 15, 0, 0, 3, 8, 0, 0, 5,
  25655. - 12, 0, 0, 13, 0, 0, 26, 24, 0, 0,
  25656. - 6, 25, 24, 0, 7, 0
  25657. -};
  25658. +/* A type that is properly aligned for any stack member. */
  25659. +union yyalloc
  25660. +{
  25661. + short int yyss;
  25662. + YYSTYPE yyvs;
  25663. + };
  25664. +
  25665. +/* The size of the maximum gap between one aligned stack and the next. */
  25666. +# define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1)
  25667. +
  25668. +/* The size of an array large to enough to hold all stacks, each with
  25669. + N elements. */
  25670. +# define YYSTACK_BYTES(N) \
  25671. + ((N) * (sizeof (short int) + sizeof (YYSTYPE)) \
  25672. + + YYSTACK_GAP_MAXIMUM)
  25673. +
  25674. +/* Copy COUNT objects from FROM to TO. The source and destination do
  25675. + not overlap. */
  25676. +# ifndef YYCOPY
  25677. +# if defined (__GNUC__) && 1 < __GNUC__
  25678. +# define YYCOPY(To, From, Count) \
  25679. + __builtin_memcpy (To, From, (Count) * sizeof (*(From)))
  25680. +# else
  25681. +# define YYCOPY(To, From, Count) \
  25682. + do \
  25683. + { \
  25684. + register YYSIZE_T yyi; \
  25685. + for (yyi = 0; yyi < (Count); yyi++) \
  25686. + (To)[yyi] = (From)[yyi]; \
  25687. + } \
  25688. + while (0)
  25689. +# endif
  25690. +# endif
  25691. +
  25692. +/* Relocate STACK from its old location to the new one. The
  25693. + local variables YYSIZE and YYSTACKSIZE give the old and new number of
  25694. + elements in the stack, and YYPTR gives the new location of the
  25695. + stack. Advance YYPTR to a properly aligned location for the next
  25696. + stack. */
  25697. +# define YYSTACK_RELOCATE(Stack) \
  25698. + do \
  25699. + { \
  25700. + YYSIZE_T yynewbytes; \
  25701. + YYCOPY (&yyptr->Stack, Stack, yysize); \
  25702. + Stack = &yyptr->Stack; \
  25703. + yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
  25704. + yyptr += yynewbytes / sizeof (*yyptr); \
  25705. + } \
  25706. + while (0)
  25707. #endif
  25708. -#if YYDEBUG != 0
  25709. -static const short yyrline[] = { 0,
  25710. - 43, 44, 45, 46, 52, 59, 65, 73, 76, 80,
  25711. - 87, 88, 94, 95, 101, 102, 103, 108, 110
  25712. -};
  25713. +#if defined (__STDC__) || defined (__cplusplus)
  25714. + typedef signed char yysigned_char;
  25715. +#else
  25716. + typedef short int yysigned_char;
  25717. #endif
  25718. +/* YYFINAL -- State number of the termination state. */
  25719. +#define YYFINAL 11
  25720. +/* YYLAST -- Last index in YYTABLE. */
  25721. +#define YYLAST 22
  25722. +
  25723. +/* YYNTOKENS -- Number of terminals. */
  25724. +#define YYNTOKENS 16
  25725. +/* YYNNTS -- Number of nonterminals. */
  25726. +#define YYNNTS 12
  25727. +/* YYNRULES -- Number of rules. */
  25728. +#define YYNRULES 20
  25729. +/* YYNRULES -- Number of states. */
  25730. +#define YYNSTATES 31
  25731. +
  25732. +/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */
  25733. +#define YYUNDEFTOK 2
  25734. +#define YYMAXUTOK 268
  25735. -#if YYDEBUG != 0 || defined (YYERROR_VERBOSE)
  25736. +#define YYTRANSLATE(YYX) \
  25737. + ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
  25738. -static const char * const yytname[] = { "$","error","$undefined.","TOK_COMMAND",
  25739. -"TOK_VPCI","TOK_ITF","TOK_DEFAULT","TOK_ROUTE","TOK_STR","TOK_SOCKET","TOK_OPTION",
  25740. -"TOK_CONTROL","TOK_NUM","TOK_PVC","'{'","'}'","all","option","sig","@1","@2",
  25741. -"opt_command","opt_itf","opt_via","routes","@3","route", NULL
  25742. +/* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */
  25743. +static const unsigned char yytranslate[] =
  25744. +{
  25745. + 0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25746. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25747. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25748. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25749. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25750. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25751. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25752. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25753. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25754. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25755. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25756. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25757. + 2, 2, 2, 14, 2, 15, 2, 2, 2, 2,
  25758. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25759. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25760. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25761. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25762. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25763. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25764. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25765. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25766. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25767. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25768. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25769. + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  25770. + 2, 2, 2, 2, 2, 2, 1, 2, 3, 4,
  25771. + 5, 6, 7, 8, 9, 10, 11, 12, 13
  25772. };
  25773. -#endif
  25774. -static const short yyr1[] = { 0,
  25775. - 16, 16, 16, 16, 17, 19, 20, 18, 21, 21,
  25776. - 22, 22, 23, 23, 24, 24, 25, 24, 26
  25777. +#if YYDEBUG
  25778. +/* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
  25779. + YYRHS. */
  25780. +static const unsigned char yyprhs[] =
  25781. +{
  25782. + 0, 0, 3, 4, 7, 10, 13, 16, 17, 18,
  25783. + 28, 29, 32, 33, 36, 37, 39, 40, 43, 44,
  25784. + 48
  25785. };
  25786. -static const short yyr2[] = { 0,
  25787. - 0, 2, 2, 2, 2, 0, 0, 9, 0, 2,
  25788. - 0, 2, 0, 1, 0, 2, 0, 3, 1
  25789. +/* YYRHS -- A `-1'-separated list of the rules' RHS. */
  25790. +static const yysigned_char yyrhs[] =
  25791. +{
  25792. + 17, 0, -1, -1, 18, 17, -1, 19, 17, -1,
  25793. + 11, 17, -1, 10, 8, -1, -1, -1, 22, 9,
  25794. + 14, 20, 23, 21, 24, 25, 15, -1, -1, 3,
  25795. + 8, -1, -1, 5, 12, -1, -1, 13, -1, -1,
  25796. + 27, 25, -1, -1, 6, 26, 25, -1, 7, -1
  25797. };
  25798. -static const short yydefact[] = { 1,
  25799. - 0, 0, 1, 1, 1, 0, 10, 5, 4, 2,
  25800. - 3, 0, 6, 11, 0, 7, 12, 13, 14, 15,
  25801. - 17, 19, 0, 15, 15, 8, 16, 18, 0, 0,
  25802. - 0
  25803. +/* YYRLINE[YYN] -- source line where rule number YYN was defined. */
  25804. +static const unsigned char yyrline[] =
  25805. +{
  25806. + 0, 46, 46, 47, 48, 49, 56, 64, 68, 63,
  25807. + 80, 83, 90, 91, 97, 98, 104, 105, 107, 106,
  25808. + 114
  25809. };
  25810. +#endif
  25811. -static const short yydefgoto[] = { 9,
  25812. - 4, 5, 14, 18, 6, 16, 20, 23, 25, 24
  25813. +#if YYDEBUG || YYERROR_VERBOSE
  25814. +/* YYTNME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
  25815. + First, the terminals, then, starting at YYNTOKENS, nonterminals. */
  25816. +static const char *const yytname[] =
  25817. +{
  25818. + "$end", "error", "$undefined", "TOK_COMMAND", "TOK_VPCI", "TOK_ITF",
  25819. + "TOK_DEFAULT", "TOK_ROUTE", "TOK_STR", "TOK_SOCKET", "TOK_OPTION",
  25820. + "TOK_CONTROL", "TOK_NUM", "TOK_PVC", "'{'", "'}'", "$accept", "all",
  25821. + "option", "sig", "@1", "@2", "opt_command", "opt_itf", "opt_via",
  25822. + "routes", "@3", "route", 0
  25823. };
  25824. +#endif
  25825. -static const short yypact[] = { -3,
  25826. - 3, 4, -3, -3, -3, 6,-32768,-32768,-32768,-32768,
  25827. --32768, -1,-32768, 9, 7,-32768,-32768, 8,-32768, -5,
  25828. --32768,-32768, 1, -5, -5,-32768,-32768,-32768, 17, 18,
  25829. --32768
  25830. +# ifdef YYPRINT
  25831. +/* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to
  25832. + token YYLEX-NUM. */
  25833. +static const unsigned short int yytoknum[] =
  25834. +{
  25835. + 0, 256, 257, 258, 259, 260, 261, 262, 263, 264,
  25836. + 265, 266, 267, 268, 123, 125
  25837. };
  25838. +# endif
  25839. -static const short yypgoto[] = { 5,
  25840. --32768,-32768,-32768,-32768,-32768,-32768,-32768, -21,-32768,-32768
  25841. +/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
  25842. +static const unsigned char yyr1[] =
  25843. +{
  25844. + 0, 16, 17, 17, 17, 17, 18, 20, 21, 19,
  25845. + 22, 22, 23, 23, 24, 24, 25, 25, 26, 25,
  25846. + 27
  25847. };
  25848. -
  25849. -#define YYLAST 21
  25850. -
  25851. -
  25852. -static const short yytable[] = { 1,
  25853. - 21, 22, 27, 28, 29, -9, 2, 3, 10, 11,
  25854. - 7, 8, 13, 15, 12, 26, 30, 31, 17, 0,
  25855. - 19
  25856. +/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */
  25857. +static const unsigned char yyr2[] =
  25858. +{
  25859. + 0, 2, 0, 2, 2, 2, 2, 0, 0, 9,
  25860. + 0, 2, 0, 2, 0, 1, 0, 2, 0, 3,
  25861. + 1
  25862. };
  25863. -static const short yycheck[] = { 3,
  25864. - 6, 7, 24, 25, 0, 9, 10, 11, 4, 5,
  25865. - 8, 8, 14, 5, 9, 15, 0, 0, 12, -1,
  25866. - 13
  25867. +/* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state
  25868. + STATE-NUM when YYTABLE doesn't specify something else to do. Zero
  25869. + means the default is an error. */
  25870. +static const unsigned char yydefact[] =
  25871. +{
  25872. + 2, 0, 0, 2, 0, 2, 2, 0, 11, 6,
  25873. + 5, 1, 3, 4, 0, 7, 12, 0, 8, 13,
  25874. + 14, 15, 16, 18, 20, 0, 16, 16, 9, 17,
  25875. + 19
  25876. };
  25877. -/* -*-C-*- Note some compilers choke on comments on `#line' lines. */
  25878. -#line 3 "/usr/lib/bison.simple"
  25879. -/* This file comes from bison-1.28. */
  25880. -/* Skeleton output parser for bison,
  25881. - Copyright (C) 1984, 1989, 1990 Free Software Foundation, Inc.
  25882. +/* YYDEFGOTO[NTERM-NUM]. */
  25883. +static const yysigned_char yydefgoto[] =
  25884. +{
  25885. + -1, 4, 5, 6, 16, 20, 7, 18, 22, 25,
  25886. + 27, 26
  25887. +};
  25888. - This program is free software; you can redistribute it and/or modify
  25889. - it under the terms of the GNU General Public License as published by
  25890. - the Free Software Foundation; either version 2, or (at your option)
  25891. - any later version.
  25892. +/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
  25893. + STATE-NUM. */
  25894. +#define YYPACT_NINF -16
  25895. +static const yysigned_char yypact[] =
  25896. +{
  25897. + -3, -6, 5, -3, 14, -3, -3, -4, -16, -16,
  25898. + -16, -16, -16, -16, 1, -16, 11, 6, -16, -16,
  25899. + 4, -16, 3, -16, -16, 7, 3, 3, -16, -16,
  25900. + -16
  25901. +};
  25902. - This program is distributed in the hope that it will be useful,
  25903. - but WITHOUT ANY WARRANTY; without even the implied warranty of
  25904. - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  25905. - GNU General Public License for more details.
  25906. +/* YYPGOTO[NTERM-NUM]. */
  25907. +static const yysigned_char yypgoto[] =
  25908. +{
  25909. + -16, -2, -16, -16, -16, -16, -16, -16, -16, -15,
  25910. + -16, -16
  25911. +};
  25912. - You should have received a copy of the GNU General Public License
  25913. - along with this program; if not, write to the Free Software
  25914. - Foundation, Inc., 59 Temple Place - Suite 330,
  25915. - Boston, MA 02111-1307, USA. */
  25916. +/* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If
  25917. + positive, shift that token. If negative, reduce the rule which
  25918. + number is the opposite. If zero, do what YYDEFACT says.
  25919. + If YYTABLE_NINF, syntax error. */
  25920. +#define YYTABLE_NINF -11
  25921. +static const yysigned_char yytable[] =
  25922. +{
  25923. + 1, 10, 8, 12, 13, 14, -10, 2, 3, 23,
  25924. + 24, 29, 30, 9, 11, 15, 17, 21, 19, 0,
  25925. + 0, 0, 28
  25926. +};
  25927. -/* As a special exception, when this file is copied by Bison into a
  25928. - Bison output file, you may use that output file without restriction.
  25929. - This special exception was added by the Free Software Foundation
  25930. - in version 1.24 of Bison. */
  25931. +static const yysigned_char yycheck[] =
  25932. +{
  25933. + 3, 3, 8, 5, 6, 9, 9, 10, 11, 6,
  25934. + 7, 26, 27, 8, 0, 14, 5, 13, 12, -1,
  25935. + -1, -1, 15
  25936. +};
  25937. -/* This is the parser code that is written into each bison parser
  25938. - when the %semantic_parser declaration is not specified in the grammar.
  25939. - It was written by Richard Stallman by simplifying the hairy parser
  25940. - used when %semantic_parser is specified. */
  25941. -
  25942. -#ifndef YYSTACK_USE_ALLOCA
  25943. -#ifdef alloca
  25944. -#define YYSTACK_USE_ALLOCA
  25945. -#else /* alloca not defined */
  25946. -#ifdef __GNUC__
  25947. -#define YYSTACK_USE_ALLOCA
  25948. -#define alloca __builtin_alloca
  25949. -#else /* not GNU C. */
  25950. -#if (!defined (__STDC__) && defined (sparc)) || defined (__sparc__) || defined (__sparc) || defined (__sgi) || (defined (__sun) && defined (__i386))
  25951. -#define YYSTACK_USE_ALLOCA
  25952. -#include <alloca.h>
  25953. -#else /* not sparc */
  25954. -/* We think this test detects Watcom and Microsoft C. */
  25955. -/* This used to test MSDOS, but that is a bad idea
  25956. - since that symbol is in the user namespace. */
  25957. -#if (defined (_MSDOS) || defined (_MSDOS_)) && !defined (__TURBOC__)
  25958. -#if 0 /* No need for malloc.h, which pollutes the namespace;
  25959. - instead, just don't use alloca. */
  25960. -#include <malloc.h>
  25961. -#endif
  25962. -#else /* not MSDOS, or __TURBOC__ */
  25963. -#if defined(_AIX)
  25964. -/* I don't know what this was needed for, but it pollutes the namespace.
  25965. - So I turned it off. rms, 2 May 1997. */
  25966. -/* #include <malloc.h> */
  25967. - #pragma alloca
  25968. -#define YYSTACK_USE_ALLOCA
  25969. -#else /* not MSDOS, or __TURBOC__, or _AIX */
  25970. -#if 0
  25971. -#ifdef __hpux /* haible@ilog.fr says this works for HPUX 9.05 and up,
  25972. - and on HPUX 10. Eventually we can turn this on. */
  25973. -#define YYSTACK_USE_ALLOCA
  25974. -#define alloca __builtin_alloca
  25975. -#endif /* __hpux */
  25976. -#endif
  25977. -#endif /* not _AIX */
  25978. -#endif /* not MSDOS, or __TURBOC__ */
  25979. -#endif /* not sparc */
  25980. -#endif /* not GNU C */
  25981. -#endif /* alloca not defined */
  25982. -#endif /* YYSTACK_USE_ALLOCA not defined */
  25983. +/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
  25984. + symbol of state STATE-NUM. */
  25985. +static const unsigned char yystos[] =
  25986. +{
  25987. + 0, 3, 10, 11, 17, 18, 19, 22, 8, 8,
  25988. + 17, 0, 17, 17, 9, 14, 20, 5, 23, 12,
  25989. + 21, 13, 24, 6, 7, 25, 27, 26, 15, 25,
  25990. + 25
  25991. +};
  25992. -#ifdef YYSTACK_USE_ALLOCA
  25993. -#define YYSTACK_ALLOC alloca
  25994. -#else
  25995. -#define YYSTACK_ALLOC malloc
  25996. +#if ! defined (YYSIZE_T) && defined (__SIZE_TYPE__)
  25997. +# define YYSIZE_T __SIZE_TYPE__
  25998. +#endif
  25999. +#if ! defined (YYSIZE_T) && defined (size_t)
  26000. +# define YYSIZE_T size_t
  26001. +#endif
  26002. +#if ! defined (YYSIZE_T)
  26003. +# if defined (__STDC__) || defined (__cplusplus)
  26004. +# include <stddef.h> /* INFRINGES ON USER NAME SPACE */
  26005. +# define YYSIZE_T size_t
  26006. +# endif
  26007. +#endif
  26008. +#if ! defined (YYSIZE_T)
  26009. +# define YYSIZE_T unsigned int
  26010. #endif
  26011. -
  26012. -/* Note: there must be only one dollar sign in this file.
  26013. - It is replaced by the list of actions, each action
  26014. - as one case of the switch. */
  26015. #define yyerrok (yyerrstatus = 0)
  26016. #define yyclearin (yychar = YYEMPTY)
  26017. -#define YYEMPTY -2
  26018. +#define YYEMPTY (-2)
  26019. #define YYEOF 0
  26020. +
  26021. #define YYACCEPT goto yyacceptlab
  26022. -#define YYABORT goto yyabortlab
  26023. -#define YYERROR goto yyerrlab1
  26024. -/* Like YYERROR except do call yyerror.
  26025. - This remains here temporarily to ease the
  26026. - transition to the new meaning of YYERROR, for GCC.
  26027. +#define YYABORT goto yyabortlab
  26028. +#define YYERROR goto yyerrorlab
  26029. +
  26030. +
  26031. +/* Like YYERROR except do call yyerror. This remains here temporarily
  26032. + to ease the transition to the new meaning of YYERROR, for GCC.
  26033. Once GCC version 2 has supplanted version 1, this can go. */
  26034. +
  26035. #define YYFAIL goto yyerrlab
  26036. +
  26037. #define YYRECOVERING() (!!yyerrstatus)
  26038. -#define YYBACKUP(token, value) \
  26039. +
  26040. +#define YYBACKUP(Token, Value) \
  26041. do \
  26042. if (yychar == YYEMPTY && yylen == 1) \
  26043. - { yychar = (token), yylval = (value); \
  26044. - yychar1 = YYTRANSLATE (yychar); \
  26045. + { \
  26046. + yychar = (Token); \
  26047. + yylval = (Value); \
  26048. + yytoken = YYTRANSLATE (yychar); \
  26049. YYPOPSTACK; \
  26050. goto yybackup; \
  26051. } \
  26052. else \
  26053. - { yyerror ("syntax error: cannot back up"); YYERROR; } \
  26054. + { \
  26055. + yyerror ("syntax error: cannot back up");\
  26056. + YYERROR; \
  26057. + } \
  26058. while (0)
  26059. #define YYTERROR 1
  26060. #define YYERRCODE 256
  26061. -#ifndef YYPURE
  26062. -#define YYLEX yylex()
  26063. -#endif
  26064. +/* YYLLOC_DEFAULT -- Compute the default location (before the actions
  26065. + are run). */
  26066. -#ifdef YYPURE
  26067. -#ifdef YYLSP_NEEDED
  26068. -#ifdef YYLEX_PARAM
  26069. -#define YYLEX yylex(&yylval, &yylloc, YYLEX_PARAM)
  26070. -#else
  26071. -#define YYLEX yylex(&yylval, &yylloc)
  26072. +#ifndef YYLLOC_DEFAULT
  26073. +# define YYLLOC_DEFAULT(Current, Rhs, N) \
  26074. + ((Current).first_line = (Rhs)[1].first_line, \
  26075. + (Current).first_column = (Rhs)[1].first_column, \
  26076. + (Current).last_line = (Rhs)[N].last_line, \
  26077. + (Current).last_column = (Rhs)[N].last_column)
  26078. #endif
  26079. -#else /* not YYLSP_NEEDED */
  26080. +
  26081. +/* YYLEX -- calling `yylex' with the right arguments. */
  26082. +
  26083. #ifdef YYLEX_PARAM
  26084. -#define YYLEX yylex(&yylval, YYLEX_PARAM)
  26085. +# define YYLEX yylex (YYLEX_PARAM)
  26086. #else
  26087. -#define YYLEX yylex(&yylval)
  26088. -#endif
  26089. -#endif /* not YYLSP_NEEDED */
  26090. +# define YYLEX yylex ()
  26091. #endif
  26092. -/* If nonreentrant, generate the variables here */
  26093. +/* Enable debugging if requested. */
  26094. +#if YYDEBUG
  26095. -#ifndef YYPURE
  26096. +# ifndef YYFPRINTF
  26097. +# include <stdio.h> /* INFRINGES ON USER NAME SPACE */
  26098. +# define YYFPRINTF fprintf
  26099. +# endif
  26100. +
  26101. +# define YYDPRINTF(Args) \
  26102. +do { \
  26103. + if (yydebug) \
  26104. + YYFPRINTF Args; \
  26105. +} while (0)
  26106. +
  26107. +# define YYDSYMPRINT(Args) \
  26108. +do { \
  26109. + if (yydebug) \
  26110. + yysymprint Args; \
  26111. +} while (0)
  26112. +
  26113. +# define YYDSYMPRINTF(Title, Token, Value, Location) \
  26114. +do { \
  26115. + if (yydebug) \
  26116. + { \
  26117. + YYFPRINTF (stderr, "%s ", Title); \
  26118. + yysymprint (stderr, \
  26119. + Token, Value); \
  26120. + YYFPRINTF (stderr, "\n"); \
  26121. + } \
  26122. +} while (0)
  26123. -int yychar; /* the lookahead symbol */
  26124. -YYSTYPE yylval; /* the semantic value of the */
  26125. - /* lookahead symbol */
  26126. +/*------------------------------------------------------------------.
  26127. +| yy_stack_print -- Print the state stack from its BOTTOM up to its |
  26128. +| TOP (included). |
  26129. +`------------------------------------------------------------------*/
  26130. -#ifdef YYLSP_NEEDED
  26131. -YYLTYPE yylloc; /* location data for the lookahead */
  26132. - /* symbol */
  26133. +#if defined (__STDC__) || defined (__cplusplus)
  26134. +static void
  26135. +yy_stack_print (short int *bottom, short int *top)
  26136. +#else
  26137. +static void
  26138. +yy_stack_print (bottom, top)
  26139. + short int *bottom;
  26140. + short int *top;
  26141. #endif
  26142. +{
  26143. + YYFPRINTF (stderr, "Stack now");
  26144. + for (/* Nothing. */; bottom <= top; ++bottom)
  26145. + YYFPRINTF (stderr, " %d", *bottom);
  26146. + YYFPRINTF (stderr, "\n");
  26147. +}
  26148. -int yynerrs; /* number of parse errors so far */
  26149. -#endif /* not YYPURE */
  26150. +# define YY_STACK_PRINT(Bottom, Top) \
  26151. +do { \
  26152. + if (yydebug) \
  26153. + yy_stack_print ((Bottom), (Top)); \
  26154. +} while (0)
  26155. -#if YYDEBUG != 0
  26156. -int yydebug; /* nonzero means print parse trace */
  26157. -/* Since this is uninitialized, it does not stop multiple parsers
  26158. - from coexisting. */
  26159. +
  26160. +/*------------------------------------------------.
  26161. +| Report that the YYRULE is going to be reduced. |
  26162. +`------------------------------------------------*/
  26163. +
  26164. +#if defined (__STDC__) || defined (__cplusplus)
  26165. +static void
  26166. +yy_reduce_print (int yyrule)
  26167. +#else
  26168. +static void
  26169. +yy_reduce_print (yyrule)
  26170. + int yyrule;
  26171. #endif
  26172. +{
  26173. + int yyi;
  26174. + unsigned int yylno = yyrline[yyrule];
  26175. + YYFPRINTF (stderr, "Reducing stack by rule %d (line %u), ",
  26176. + yyrule - 1, yylno);
  26177. + /* Print the symbols being reduced, and their result. */
  26178. + for (yyi = yyprhs[yyrule]; 0 <= yyrhs[yyi]; yyi++)
  26179. + YYFPRINTF (stderr, "%s ", yytname [yyrhs[yyi]]);
  26180. + YYFPRINTF (stderr, "-> %s\n", yytname [yyr1[yyrule]]);
  26181. +}
  26182. +
  26183. +# define YY_REDUCE_PRINT(Rule) \
  26184. +do { \
  26185. + if (yydebug) \
  26186. + yy_reduce_print (Rule); \
  26187. +} while (0)
  26188. +
  26189. +/* Nonzero means print parse trace. It is left uninitialized so that
  26190. + multiple parsers can coexist. */
  26191. +int yydebug;
  26192. +#else /* !YYDEBUG */
  26193. +# define YYDPRINTF(Args)
  26194. +# define YYDSYMPRINT(Args)
  26195. +# define YYDSYMPRINTF(Title, Token, Value, Location)
  26196. +# define YY_STACK_PRINT(Bottom, Top)
  26197. +# define YY_REDUCE_PRINT(Rule)
  26198. +#endif /* !YYDEBUG */
  26199. -/* YYINITDEPTH indicates the initial size of the parser's stacks */
  26200. +/* YYINITDEPTH -- initial size of the parser's stacks. */
  26201. #ifndef YYINITDEPTH
  26202. -#define YYINITDEPTH 200
  26203. +# define YYINITDEPTH 200
  26204. #endif
  26205. -/* YYMAXDEPTH is the maximum size the stacks can grow to
  26206. - (effective only if the built-in stack extension method is used). */
  26207. +/* YYMAXDEPTH -- maximum size the stacks can grow to (effective only
  26208. + if the built-in stack extension method is used).
  26209. -#if YYMAXDEPTH == 0
  26210. -#undef YYMAXDEPTH
  26211. + Do not make this value too large; the results are undefined if
  26212. + SIZE_MAX < YYSTACK_BYTES (YYMAXDEPTH)
  26213. + evaluated with infinite-precision integer arithmetic. */
  26214. +
  26215. +#if defined (YYMAXDEPTH) && YYMAXDEPTH == 0
  26216. +# undef YYMAXDEPTH
  26217. #endif
  26218. #ifndef YYMAXDEPTH
  26219. -#define YYMAXDEPTH 10000
  26220. +# define YYMAXDEPTH 10000
  26221. #endif
  26222. +
  26223. -/* Define __yy_memcpy. Note that the size argument
  26224. - should be passed with type unsigned int, because that is what the non-GCC
  26225. - definitions require. With GCC, __builtin_memcpy takes an arg
  26226. - of type size_t, but it can handle unsigned int. */
  26227. -
  26228. -#if __GNUC__ > 1 /* GNU C and GNU C++ define this. */
  26229. -#define __yy_memcpy(TO,FROM,COUNT) __builtin_memcpy(TO,FROM,COUNT)
  26230. -#else /* not GNU C or C++ */
  26231. -#ifndef __cplusplus
  26232. -/* This is the most reliable way to avoid incompatibilities
  26233. - in available built-in functions on various systems. */
  26234. -static void
  26235. -__yy_memcpy (to, from, count)
  26236. - char *to;
  26237. - char *from;
  26238. - unsigned int count;
  26239. -{
  26240. - register char *f = from;
  26241. - register char *t = to;
  26242. - register int i = count;
  26243. +#if YYERROR_VERBOSE
  26244. +
  26245. +# ifndef yystrlen
  26246. +# if defined (__GLIBC__) && defined (_STRING_H)
  26247. +# define yystrlen strlen
  26248. +# else
  26249. +/* Return the length of YYSTR. */
  26250. +static YYSIZE_T
  26251. +# if defined (__STDC__) || defined (__cplusplus)
  26252. +yystrlen (const char *yystr)
  26253. +# else
  26254. +yystrlen (yystr)
  26255. + const char *yystr;
  26256. +# endif
  26257. +{
  26258. + register const char *yys = yystr;
  26259. +
  26260. + while (*yys++ != '\0')
  26261. + continue;
  26262. +
  26263. + return yys - yystr - 1;
  26264. +}
  26265. +# endif
  26266. +# endif
  26267. +
  26268. +# ifndef yystpcpy
  26269. +# if defined (__GLIBC__) && defined (_STRING_H) && defined (_GNU_SOURCE)
  26270. +# define yystpcpy stpcpy
  26271. +# else
  26272. +/* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in
  26273. + YYDEST. */
  26274. +static char *
  26275. +# if defined (__STDC__) || defined (__cplusplus)
  26276. +yystpcpy (char *yydest, const char *yysrc)
  26277. +# else
  26278. +yystpcpy (yydest, yysrc)
  26279. + char *yydest;
  26280. + const char *yysrc;
  26281. +# endif
  26282. +{
  26283. + register char *yyd = yydest;
  26284. + register const char *yys = yysrc;
  26285. - while (i-- > 0)
  26286. - *t++ = *f++;
  26287. + while ((*yyd++ = *yys++) != '\0')
  26288. + continue;
  26289. +
  26290. + return yyd - 1;
  26291. }
  26292. +# endif
  26293. +# endif
  26294. +
  26295. +#endif /* !YYERROR_VERBOSE */
  26296. -#else /* __cplusplus */
  26297. +
  26298. +
  26299. +#if YYDEBUG
  26300. +/*--------------------------------.
  26301. +| Print this symbol on YYOUTPUT. |
  26302. +`--------------------------------*/
  26303. -/* This is the most reliable way to avoid incompatibilities
  26304. - in available built-in functions on various systems. */
  26305. +#if defined (__STDC__) || defined (__cplusplus)
  26306. static void
  26307. -__yy_memcpy (char *to, char *from, unsigned int count)
  26308. +yysymprint (FILE *yyoutput, int yytype, YYSTYPE *yyvaluep)
  26309. +#else
  26310. +static void
  26311. +yysymprint (yyoutput, yytype, yyvaluep)
  26312. + FILE *yyoutput;
  26313. + int yytype;
  26314. + YYSTYPE *yyvaluep;
  26315. +#endif
  26316. {
  26317. - register char *t = to;
  26318. - register char *f = from;
  26319. - register int i = count;
  26320. + /* Pacify ``unused variable'' warnings. */
  26321. + (void) yyvaluep;
  26322. - while (i-- > 0)
  26323. - *t++ = *f++;
  26324. + if (yytype < YYNTOKENS)
  26325. + {
  26326. + YYFPRINTF (yyoutput, "token %s (", yytname[yytype]);
  26327. +# ifdef YYPRINT
  26328. + YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
  26329. +# endif
  26330. + }
  26331. + else
  26332. + YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]);
  26333. +
  26334. + switch (yytype)
  26335. + {
  26336. + default:
  26337. + break;
  26338. + }
  26339. + YYFPRINTF (yyoutput, ")");
  26340. }
  26341. +#endif /* ! YYDEBUG */
  26342. +/*-----------------------------------------------.
  26343. +| Release the memory associated to this symbol. |
  26344. +`-----------------------------------------------*/
  26345. +
  26346. +#if defined (__STDC__) || defined (__cplusplus)
  26347. +static void
  26348. +yydestruct (int yytype, YYSTYPE *yyvaluep)
  26349. +#else
  26350. +static void
  26351. +yydestruct (yytype, yyvaluep)
  26352. + int yytype;
  26353. + YYSTYPE *yyvaluep;
  26354. #endif
  26355. -#endif
  26356. +{
  26357. + /* Pacify ``unused variable'' warnings. */
  26358. + (void) yyvaluep;
  26359. +
  26360. + switch (yytype)
  26361. + {
  26362. +
  26363. + default:
  26364. + break;
  26365. + }
  26366. +}
  26367. -#line 217 "/usr/lib/bison.simple"
  26368. -/* The user can define YYPARSE_PARAM as the name of an argument to be passed
  26369. - into yyparse. The argument should have type void *.
  26370. - It should actually point to an object.
  26371. - Grammar actions can access the variable by casting it
  26372. - to the proper pointer type. */
  26373. +/* Prevent warnings from -Wmissing-prototypes. */
  26374. #ifdef YYPARSE_PARAM
  26375. -#ifdef __cplusplus
  26376. -#define YYPARSE_PARAM_ARG void *YYPARSE_PARAM
  26377. -#define YYPARSE_PARAM_DECL
  26378. -#else /* not __cplusplus */
  26379. -#define YYPARSE_PARAM_ARG YYPARSE_PARAM
  26380. -#define YYPARSE_PARAM_DECL void *YYPARSE_PARAM;
  26381. -#endif /* not __cplusplus */
  26382. -#else /* not YYPARSE_PARAM */
  26383. -#define YYPARSE_PARAM_ARG
  26384. -#define YYPARSE_PARAM_DECL
  26385. -#endif /* not YYPARSE_PARAM */
  26386. +# if defined (__STDC__) || defined (__cplusplus)
  26387. +int yyparse (void *YYPARSE_PARAM);
  26388. +# else
  26389. +int yyparse ();
  26390. +# endif
  26391. +#else /* ! YYPARSE_PARAM */
  26392. +#if defined (__STDC__) || defined (__cplusplus)
  26393. +int yyparse (void);
  26394. +#else
  26395. +int yyparse ();
  26396. +#endif
  26397. +#endif /* ! YYPARSE_PARAM */
  26398. +
  26399. +
  26400. +
  26401. +/* The lookahead symbol. */
  26402. +int yychar;
  26403. +
  26404. +/* The semantic value of the lookahead symbol. */
  26405. +YYSTYPE yylval;
  26406. +
  26407. +/* Number of syntax errors so far. */
  26408. +int yynerrs;
  26409. +
  26410. +
  26411. +
  26412. +/*----------.
  26413. +| yyparse. |
  26414. +`----------*/
  26415. -/* Prevent warning if -Wstrict-prototypes. */
  26416. -#ifdef __GNUC__
  26417. #ifdef YYPARSE_PARAM
  26418. -int yyparse (void *);
  26419. +# if defined (__STDC__) || defined (__cplusplus)
  26420. +int yyparse (void *YYPARSE_PARAM)
  26421. +# else
  26422. +int yyparse (YYPARSE_PARAM)
  26423. + void *YYPARSE_PARAM;
  26424. +# endif
  26425. +#else /* ! YYPARSE_PARAM */
  26426. +#if defined (__STDC__) || defined (__cplusplus)
  26427. +int
  26428. +yyparse (void)
  26429. #else
  26430. -int yyparse (void);
  26431. +int
  26432. +yyparse ()
  26433. +
  26434. #endif
  26435. #endif
  26436. -
  26437. -int
  26438. -yyparse(YYPARSE_PARAM_ARG)
  26439. - YYPARSE_PARAM_DECL
  26440. {
  26441. +
  26442. register int yystate;
  26443. register int yyn;
  26444. - register short *yyssp;
  26445. + int yyresult;
  26446. + /* Number of tokens to shift before error messages enabled. */
  26447. + int yyerrstatus;
  26448. + /* Lookahead token as an internal (translated) token number. */
  26449. + int yytoken = 0;
  26450. +
  26451. + /* Three stacks and their tools:
  26452. + `yyss': related to states,
  26453. + `yyvs': related to semantic values,
  26454. + `yyls': related to locations.
  26455. +
  26456. + Refer to the stacks thru separate pointers, to allow yyoverflow
  26457. + to reallocate them elsewhere. */
  26458. +
  26459. + /* The state stack. */
  26460. + short int yyssa[YYINITDEPTH];
  26461. + short int *yyss = yyssa;
  26462. + register short int *yyssp;
  26463. +
  26464. + /* The semantic value stack. */
  26465. + YYSTYPE yyvsa[YYINITDEPTH];
  26466. + YYSTYPE *yyvs = yyvsa;
  26467. register YYSTYPE *yyvsp;
  26468. - int yyerrstatus; /* number of tokens to shift before error messages enabled */
  26469. - int yychar1 = 0; /* lookahead token as an internal (translated) token number */
  26470. -
  26471. - short yyssa[YYINITDEPTH]; /* the state stack */
  26472. - YYSTYPE yyvsa[YYINITDEPTH]; /* the semantic value stack */
  26473. - short *yyss = yyssa; /* refer to the stacks thru separate pointers */
  26474. - YYSTYPE *yyvs = yyvsa; /* to allow yyoverflow to reallocate them elsewhere */
  26475. -#ifdef YYLSP_NEEDED
  26476. - YYLTYPE yylsa[YYINITDEPTH]; /* the location stack */
  26477. - YYLTYPE *yyls = yylsa;
  26478. - YYLTYPE *yylsp;
  26479. -#define YYPOPSTACK (yyvsp--, yyssp--, yylsp--)
  26480. -#else
  26481. #define YYPOPSTACK (yyvsp--, yyssp--)
  26482. -#endif
  26483. - int yystacksize = YYINITDEPTH;
  26484. - int yyfree_stacks = 0;
  26485. + YYSIZE_T yystacksize = YYINITDEPTH;
  26486. -#ifdef YYPURE
  26487. - int yychar;
  26488. - YYSTYPE yylval;
  26489. - int yynerrs;
  26490. -#ifdef YYLSP_NEEDED
  26491. - YYLTYPE yylloc;
  26492. -#endif
  26493. -#endif
  26494. + /* The variables used to return semantic value and location from the
  26495. + action routines. */
  26496. + YYSTYPE yyval;
  26497. - YYSTYPE yyval; /* the variable used to return */
  26498. - /* semantic values from the action */
  26499. - /* routines */
  26500. + /* When reducing, the number of symbols on the RHS of the reduced
  26501. + rule. */
  26502. int yylen;
  26503. -#if YYDEBUG != 0
  26504. - if (yydebug)
  26505. - fprintf(stderr, "Starting parse\n");
  26506. -#endif
  26507. + YYDPRINTF ((stderr, "Starting parse\n"));
  26508. yystate = 0;
  26509. yyerrstatus = 0;
  26510. @@ -479,110 +853,97 @@
  26511. so that they stay on the same level as the state stack.
  26512. The wasted elements are never initialized. */
  26513. - yyssp = yyss - 1;
  26514. + yyssp = yyss;
  26515. yyvsp = yyvs;
  26516. -#ifdef YYLSP_NEEDED
  26517. - yylsp = yyls;
  26518. -#endif
  26519. -/* Push a new state, which is found in yystate . */
  26520. -/* In all cases, when you get here, the value and location stacks
  26521. - have just been pushed. so pushing a state here evens the stacks. */
  26522. -yynewstate:
  26523. - *++yyssp = yystate;
  26524. + goto yysetstate;
  26525. - if (yyssp >= yyss + yystacksize - 1)
  26526. - {
  26527. - /* Give user a chance to reallocate the stack */
  26528. - /* Use copies of these so that the &'s don't force the real ones into memory. */
  26529. - YYSTYPE *yyvs1 = yyvs;
  26530. - short *yyss1 = yyss;
  26531. -#ifdef YYLSP_NEEDED
  26532. - YYLTYPE *yyls1 = yyls;
  26533. -#endif
  26534. +/*------------------------------------------------------------.
  26535. +| yynewstate -- Push a new state, which is found in yystate. |
  26536. +`------------------------------------------------------------*/
  26537. + yynewstate:
  26538. + /* In all cases, when you get here, the value and location stacks
  26539. + have just been pushed. so pushing a state here evens the stacks.
  26540. + */
  26541. + yyssp++;
  26542. + yysetstate:
  26543. + *yyssp = yystate;
  26544. +
  26545. + if (yyss + yystacksize - 1 <= yyssp)
  26546. + {
  26547. /* Get the current used size of the three stacks, in elements. */
  26548. - int size = yyssp - yyss + 1;
  26549. + YYSIZE_T yysize = yyssp - yyss + 1;
  26550. #ifdef yyoverflow
  26551. - /* Each stack pointer address is followed by the size of
  26552. - the data in use in that stack, in bytes. */
  26553. -#ifdef YYLSP_NEEDED
  26554. - /* This used to be a conditional around just the two extra args,
  26555. - but that might be undefined if yyoverflow is a macro. */
  26556. - yyoverflow("parser stack overflow",
  26557. - &yyss1, size * sizeof (*yyssp),
  26558. - &yyvs1, size * sizeof (*yyvsp),
  26559. - &yyls1, size * sizeof (*yylsp),
  26560. - &yystacksize);
  26561. -#else
  26562. - yyoverflow("parser stack overflow",
  26563. - &yyss1, size * sizeof (*yyssp),
  26564. - &yyvs1, size * sizeof (*yyvsp),
  26565. - &yystacksize);
  26566. -#endif
  26567. -
  26568. - yyss = yyss1; yyvs = yyvs1;
  26569. -#ifdef YYLSP_NEEDED
  26570. - yyls = yyls1;
  26571. -#endif
  26572. + {
  26573. + /* Give user a chance to reallocate the stack. Use copies of
  26574. + these so that the &'s don't force the real ones into
  26575. + memory. */
  26576. + YYSTYPE *yyvs1 = yyvs;
  26577. + short int *yyss1 = yyss;
  26578. +
  26579. +
  26580. + /* Each stack pointer address is followed by the size of the
  26581. + data in use in that stack, in bytes. This used to be a
  26582. + conditional around just the two extra args, but that might
  26583. + be undefined if yyoverflow is a macro. */
  26584. + yyoverflow ("parser stack overflow",
  26585. + &yyss1, yysize * sizeof (*yyssp),
  26586. + &yyvs1, yysize * sizeof (*yyvsp),
  26587. +
  26588. + &yystacksize);
  26589. +
  26590. + yyss = yyss1;
  26591. + yyvs = yyvs1;
  26592. + }
  26593. #else /* no yyoverflow */
  26594. +# ifndef YYSTACK_RELOCATE
  26595. + goto yyoverflowlab;
  26596. +# else
  26597. /* Extend the stack our own way. */
  26598. - if (yystacksize >= YYMAXDEPTH)
  26599. - {
  26600. - yyerror("parser stack overflow");
  26601. - if (yyfree_stacks)
  26602. - {
  26603. - free (yyss);
  26604. - free (yyvs);
  26605. -#ifdef YYLSP_NEEDED
  26606. - free (yyls);
  26607. -#endif
  26608. - }
  26609. - return 2;
  26610. - }
  26611. + if (YYMAXDEPTH <= yystacksize)
  26612. + goto yyoverflowlab;
  26613. yystacksize *= 2;
  26614. - if (yystacksize > YYMAXDEPTH)
  26615. + if (YYMAXDEPTH < yystacksize)
  26616. yystacksize = YYMAXDEPTH;
  26617. -#ifndef YYSTACK_USE_ALLOCA
  26618. - yyfree_stacks = 1;
  26619. -#endif
  26620. - yyss = (short *) YYSTACK_ALLOC (yystacksize * sizeof (*yyssp));
  26621. - __yy_memcpy ((char *)yyss, (char *)yyss1,
  26622. - size * (unsigned int) sizeof (*yyssp));
  26623. - yyvs = (YYSTYPE *) YYSTACK_ALLOC (yystacksize * sizeof (*yyvsp));
  26624. - __yy_memcpy ((char *)yyvs, (char *)yyvs1,
  26625. - size * (unsigned int) sizeof (*yyvsp));
  26626. -#ifdef YYLSP_NEEDED
  26627. - yyls = (YYLTYPE *) YYSTACK_ALLOC (yystacksize * sizeof (*yylsp));
  26628. - __yy_memcpy ((char *)yyls, (char *)yyls1,
  26629. - size * (unsigned int) sizeof (*yylsp));
  26630. -#endif
  26631. +
  26632. + {
  26633. + short int *yyss1 = yyss;
  26634. + union yyalloc *yyptr =
  26635. + (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));
  26636. + if (! yyptr)
  26637. + goto yyoverflowlab;
  26638. + YYSTACK_RELOCATE (yyss);
  26639. + YYSTACK_RELOCATE (yyvs);
  26640. +
  26641. +# undef YYSTACK_RELOCATE
  26642. + if (yyss1 != yyssa)
  26643. + YYSTACK_FREE (yyss1);
  26644. + }
  26645. +# endif
  26646. #endif /* no yyoverflow */
  26647. - yyssp = yyss + size - 1;
  26648. - yyvsp = yyvs + size - 1;
  26649. -#ifdef YYLSP_NEEDED
  26650. - yylsp = yyls + size - 1;
  26651. -#endif
  26652. + yyssp = yyss + yysize - 1;
  26653. + yyvsp = yyvs + yysize - 1;
  26654. -#if YYDEBUG != 0
  26655. - if (yydebug)
  26656. - fprintf(stderr, "Stack size increased to %d\n", yystacksize);
  26657. -#endif
  26658. - if (yyssp >= yyss + yystacksize - 1)
  26659. + YYDPRINTF ((stderr, "Stack size increased to %lu\n",
  26660. + (unsigned long int) yystacksize));
  26661. +
  26662. + if (yyss + yystacksize - 1 <= yyssp)
  26663. YYABORT;
  26664. }
  26665. -#if YYDEBUG != 0
  26666. - if (yydebug)
  26667. - fprintf(stderr, "Entering state %d\n", yystate);
  26668. -#endif
  26669. + YYDPRINTF ((stderr, "Entering state %d\n", yystate));
  26670. goto yybackup;
  26671. - yybackup:
  26672. +
  26673. +/*-----------.
  26674. +| yybackup. |
  26675. +`-----------*/
  26676. +yybackup:
  26677. /* Do appropriate processing given the current state. */
  26678. /* Read a lookahead token if we need one and don't already have one. */
  26679. @@ -591,194 +952,167 @@
  26680. /* First try to decide what to do without reference to lookahead token. */
  26681. yyn = yypact[yystate];
  26682. - if (yyn == YYFLAG)
  26683. + if (yyn == YYPACT_NINF)
  26684. goto yydefault;
  26685. /* Not known => get a lookahead token if don't already have one. */
  26686. - /* yychar is either YYEMPTY or YYEOF
  26687. - or a valid token in external form. */
  26688. -
  26689. + /* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol. */
  26690. if (yychar == YYEMPTY)
  26691. {
  26692. -#if YYDEBUG != 0
  26693. - if (yydebug)
  26694. - fprintf(stderr, "Reading a token: ");
  26695. -#endif
  26696. + YYDPRINTF ((stderr, "Reading a token: "));
  26697. yychar = YYLEX;
  26698. }
  26699. - /* Convert token to internal form (in yychar1) for indexing tables with */
  26700. -
  26701. - if (yychar <= 0) /* This means end of input. */
  26702. + if (yychar <= YYEOF)
  26703. {
  26704. - yychar1 = 0;
  26705. - yychar = YYEOF; /* Don't call YYLEX any more */
  26706. -
  26707. -#if YYDEBUG != 0
  26708. - if (yydebug)
  26709. - fprintf(stderr, "Now at end of input.\n");
  26710. -#endif
  26711. + yychar = yytoken = YYEOF;
  26712. + YYDPRINTF ((stderr, "Now at end of input.\n"));
  26713. }
  26714. else
  26715. {
  26716. - yychar1 = YYTRANSLATE(yychar);
  26717. -
  26718. -#if YYDEBUG != 0
  26719. - if (yydebug)
  26720. - {
  26721. - fprintf (stderr, "Next token is %d (%s", yychar, yytname[yychar1]);
  26722. - /* Give the individual parser a way to print the precise meaning
  26723. - of a token, for further debugging info. */
  26724. -#ifdef YYPRINT
  26725. - YYPRINT (stderr, yychar, yylval);
  26726. -#endif
  26727. - fprintf (stderr, ")\n");
  26728. - }
  26729. -#endif
  26730. + yytoken = YYTRANSLATE (yychar);
  26731. + YYDSYMPRINTF ("Next token is", yytoken, &yylval, &yylloc);
  26732. }
  26733. - yyn += yychar1;
  26734. - if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != yychar1)
  26735. + /* If the proper action on seeing token YYTOKEN is to reduce or to
  26736. + detect an error, take that action. */
  26737. + yyn += yytoken;
  26738. + if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken)
  26739. goto yydefault;
  26740. -
  26741. yyn = yytable[yyn];
  26742. -
  26743. - /* yyn is what to do for this token type in this state.
  26744. - Negative => reduce, -yyn is rule number.
  26745. - Positive => shift, yyn is new state.
  26746. - New state is final state => don't bother to shift,
  26747. - just return success.
  26748. - 0, or most negative number => error. */
  26749. -
  26750. - if (yyn < 0)
  26751. + if (yyn <= 0)
  26752. {
  26753. - if (yyn == YYFLAG)
  26754. + if (yyn == 0 || yyn == YYTABLE_NINF)
  26755. goto yyerrlab;
  26756. yyn = -yyn;
  26757. goto yyreduce;
  26758. }
  26759. - else if (yyn == 0)
  26760. - goto yyerrlab;
  26761. if (yyn == YYFINAL)
  26762. YYACCEPT;
  26763. /* Shift the lookahead token. */
  26764. -
  26765. -#if YYDEBUG != 0
  26766. - if (yydebug)
  26767. - fprintf(stderr, "Shifting token %d (%s), ", yychar, yytname[yychar1]);
  26768. -#endif
  26769. + YYDPRINTF ((stderr, "Shifting token %s, ", yytname[yytoken]));
  26770. /* Discard the token being shifted unless it is eof. */
  26771. if (yychar != YYEOF)
  26772. yychar = YYEMPTY;
  26773. *++yyvsp = yylval;
  26774. -#ifdef YYLSP_NEEDED
  26775. - *++yylsp = yylloc;
  26776. -#endif
  26777. - /* count tokens shifted since error; after three, turn off error status. */
  26778. - if (yyerrstatus) yyerrstatus--;
  26779. +
  26780. + /* Count tokens shifted since error; after three, turn off error
  26781. + status. */
  26782. + if (yyerrstatus)
  26783. + yyerrstatus--;
  26784. yystate = yyn;
  26785. goto yynewstate;
  26786. -/* Do the default action for the current state. */
  26787. -yydefault:
  26788. +/*-----------------------------------------------------------.
  26789. +| yydefault -- do the default action for the current state. |
  26790. +`-----------------------------------------------------------*/
  26791. +yydefault:
  26792. yyn = yydefact[yystate];
  26793. if (yyn == 0)
  26794. goto yyerrlab;
  26795. + goto yyreduce;
  26796. +
  26797. -/* Do a reduction. yyn is the number of a rule to reduce with. */
  26798. +/*-----------------------------.
  26799. +| yyreduce -- Do a reduction. |
  26800. +`-----------------------------*/
  26801. yyreduce:
  26802. + /* yyn is the number of a rule to reduce with. */
  26803. yylen = yyr2[yyn];
  26804. - if (yylen > 0)
  26805. - yyval = yyvsp[1-yylen]; /* implement default value of the action */
  26806. -#if YYDEBUG != 0
  26807. - if (yydebug)
  26808. - {
  26809. - int i;
  26810. + /* If YYLEN is nonzero, implement the default value of the action:
  26811. + `$$ = $1'.
  26812. - fprintf (stderr, "Reducing via rule %d (line %d), ",
  26813. - yyn, yyrline[yyn]);
  26814. + Otherwise, the following line sets YYVAL to garbage.
  26815. + This behavior is undocumented and Bison
  26816. + users should not rely upon it. Assigning to YYVAL
  26817. + unconditionally makes the parser a bit smaller, and it avoids a
  26818. + GCC warning that YYVAL may be used uninitialized. */
  26819. + yyval = yyvsp[1-yylen];
  26820. - /* Print the symbols being reduced, and their result. */
  26821. - for (i = yyprhs[yyn]; yyrhs[i] > 0; i++)
  26822. - fprintf (stderr, "%s ", yytname[yyrhs[i]]);
  26823. - fprintf (stderr, " -> %s\n", yytname[yyr1[yyn]]);
  26824. - }
  26825. -#endif
  26826. -
  26827. - switch (yyn) {
  26828. -
  26829. -case 4:
  26830. -#line 47 "cfg_y.y"
  26831. -{
  26832. + YY_REDUCE_PRINT (yyn);
  26833. + switch (yyn)
  26834. + {
  26835. + case 5:
  26836. +#line 50 "cfg_y.y"
  26837. + {
  26838. control_init(yyvsp[-1].str);
  26839. - ;
  26840. - break;}
  26841. -case 5:
  26842. -#line 54 "cfg_y.y"
  26843. -{
  26844. + }
  26845. + break;
  26846. +
  26847. + case 6:
  26848. +#line 57 "cfg_y.y"
  26849. + {
  26850. fab_option(yyvsp[-1].str,yyvsp[0].str);
  26851. - ;
  26852. - break;}
  26853. -case 6:
  26854. -#line 61 "cfg_y.y"
  26855. -{
  26856. + }
  26857. + break;
  26858. +
  26859. + case 7:
  26860. +#line 64 "cfg_y.y"
  26861. + {
  26862. itf = 0;
  26863. - ;
  26864. - break;}
  26865. -case 7:
  26866. -#line 65 "cfg_y.y"
  26867. -{
  26868. + }
  26869. + break;
  26870. +
  26871. + case 8:
  26872. +#line 68 "cfg_y.y"
  26873. + {
  26874. char *tmp;
  26875. tmp = strdup(yyvsp[-3].str);
  26876. if (!tmp) yyerror(strerror(errno));
  26877. sig = sig_vc(yyvsp[-4].str,tmp,itf);
  26878. - ;
  26879. - break;}
  26880. -case 9:
  26881. -#line 77 "cfg_y.y"
  26882. -{
  26883. + }
  26884. + break;
  26885. +
  26886. + case 10:
  26887. +#line 80 "cfg_y.y"
  26888. + {
  26889. yyval.str = NULL;
  26890. - ;
  26891. - break;}
  26892. -case 10:
  26893. -#line 81 "cfg_y.y"
  26894. -{
  26895. + }
  26896. + break;
  26897. +
  26898. + case 11:
  26899. +#line 84 "cfg_y.y"
  26900. + {
  26901. yyval.str = strdup(yyvsp[0].str);
  26902. if (!yyval.str) yyerror(strerror(errno));
  26903. - ;
  26904. - break;}
  26905. -case 12:
  26906. -#line 89 "cfg_y.y"
  26907. -{
  26908. + }
  26909. + break;
  26910. +
  26911. + case 13:
  26912. +#line 92 "cfg_y.y"
  26913. + {
  26914. itf = yyvsp[0].num;
  26915. - ;
  26916. - break;}
  26917. -case 14:
  26918. -#line 96 "cfg_y.y"
  26919. -{
  26920. + }
  26921. + break;
  26922. +
  26923. + case 15:
  26924. +#line 99 "cfg_y.y"
  26925. + {
  26926. sig->pvc = yyvsp[0].pvc;
  26927. - ;
  26928. - break;}
  26929. -case 17:
  26930. -#line 104 "cfg_y.y"
  26931. -{
  26932. + }
  26933. + break;
  26934. +
  26935. + case 18:
  26936. +#line 107 "cfg_y.y"
  26937. + {
  26938. put_route(NULL,0,sig);
  26939. - ;
  26940. - break;}
  26941. -case 19:
  26942. -#line 112 "cfg_y.y"
  26943. -{
  26944. + }
  26945. + break;
  26946. +
  26947. + case 20:
  26948. +#line 115 "cfg_y.y"
  26949. + {
  26950. struct sockaddr_atmsvc addr;
  26951. char *mask;
  26952. @@ -790,228 +1124,236 @@
  26953. return;
  26954. }
  26955. put_route(&addr,mask ? strtol(mask,NULL,10) : INT_MAX,sig);
  26956. - ;
  26957. - break;}
  26958. -}
  26959. - /* the action file gets copied in in place of this dollarsign */
  26960. -#line 543 "/usr/lib/bison.simple"
  26961. + }
  26962. + break;
  26963. +
  26964. +
  26965. + }
  26966. +
  26967. +/* Line 1010 of yacc.c. */
  26968. +#line 1135 "y.tab.c"
  26969. yyvsp -= yylen;
  26970. yyssp -= yylen;
  26971. -#ifdef YYLSP_NEEDED
  26972. - yylsp -= yylen;
  26973. -#endif
  26974. -#if YYDEBUG != 0
  26975. - if (yydebug)
  26976. - {
  26977. - short *ssp1 = yyss - 1;
  26978. - fprintf (stderr, "state stack now");
  26979. - while (ssp1 != yyssp)
  26980. - fprintf (stderr, " %d", *++ssp1);
  26981. - fprintf (stderr, "\n");
  26982. - }
  26983. -#endif
  26984. +
  26985. + YY_STACK_PRINT (yyss, yyssp);
  26986. *++yyvsp = yyval;
  26987. -#ifdef YYLSP_NEEDED
  26988. - yylsp++;
  26989. - if (yylen == 0)
  26990. - {
  26991. - yylsp->first_line = yylloc.first_line;
  26992. - yylsp->first_column = yylloc.first_column;
  26993. - yylsp->last_line = (yylsp-1)->last_line;
  26994. - yylsp->last_column = (yylsp-1)->last_column;
  26995. - yylsp->text = 0;
  26996. - }
  26997. - else
  26998. - {
  26999. - yylsp->last_line = (yylsp+yylen-1)->last_line;
  27000. - yylsp->last_column = (yylsp+yylen-1)->last_column;
  27001. - }
  27002. -#endif
  27003. - /* Now "shift" the result of the reduction.
  27004. - Determine what state that goes to,
  27005. - based on the state we popped back to
  27006. - and the rule number reduced by. */
  27007. + /* Now `shift' the result of the reduction. Determine what state
  27008. + that goes to, based on the state we popped back to and the rule
  27009. + number reduced by. */
  27010. yyn = yyr1[yyn];
  27011. - yystate = yypgoto[yyn - YYNTBASE] + *yyssp;
  27012. - if (yystate >= 0 && yystate <= YYLAST && yycheck[yystate] == *yyssp)
  27013. + yystate = yypgoto[yyn - YYNTOKENS] + *yyssp;
  27014. + if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp)
  27015. yystate = yytable[yystate];
  27016. else
  27017. - yystate = yydefgoto[yyn - YYNTBASE];
  27018. + yystate = yydefgoto[yyn - YYNTOKENS];
  27019. goto yynewstate;
  27020. -yyerrlab: /* here on detecting error */
  27021. - if (! yyerrstatus)
  27022. - /* If not already recovering from an error, report this error. */
  27023. +/*------------------------------------.
  27024. +| yyerrlab -- here on detecting error |
  27025. +`------------------------------------*/
  27026. +yyerrlab:
  27027. + /* If not already recovering from an error, report this error. */
  27028. + if (!yyerrstatus)
  27029. {
  27030. ++yynerrs;
  27031. -
  27032. -#ifdef YYERROR_VERBOSE
  27033. +#if YYERROR_VERBOSE
  27034. yyn = yypact[yystate];
  27035. - if (yyn > YYFLAG && yyn < YYLAST)
  27036. + if (YYPACT_NINF < yyn && yyn < YYLAST)
  27037. {
  27038. - int size = 0;
  27039. - char *msg;
  27040. - int x, count;
  27041. -
  27042. - count = 0;
  27043. - /* Start X at -yyn if nec to avoid negative indexes in yycheck. */
  27044. - for (x = (yyn < 0 ? -yyn : 0);
  27045. - x < (sizeof(yytname) / sizeof(char *)); x++)
  27046. - if (yycheck[x + yyn] == x)
  27047. - size += strlen(yytname[x]) + 15, count++;
  27048. - msg = (char *) malloc(size + 15);
  27049. - if (msg != 0)
  27050. + YYSIZE_T yysize = 0;
  27051. + int yytype = YYTRANSLATE (yychar);
  27052. + const char* yyprefix;
  27053. + char *yymsg;
  27054. + int yyx;
  27055. +
  27056. + /* Start YYX at -YYN if negative to avoid negative indexes in
  27057. + YYCHECK. */
  27058. + int yyxbegin = yyn < 0 ? -yyn : 0;
  27059. +
  27060. + /* Stay within bounds of both yycheck and yytname. */
  27061. + int yychecklim = YYLAST - yyn;
  27062. + int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;
  27063. + int yycount = 0;
  27064. +
  27065. + yyprefix = ", expecting ";
  27066. + for (yyx = yyxbegin; yyx < yyxend; ++yyx)
  27067. + if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR)
  27068. + {
  27069. + yysize += yystrlen (yyprefix) + yystrlen (yytname [yyx]);
  27070. + yycount += 1;
  27071. + if (yycount == 5)
  27072. + {
  27073. + yysize = 0;
  27074. + break;
  27075. + }
  27076. + }
  27077. + yysize += (sizeof ("syntax error, unexpected ")
  27078. + + yystrlen (yytname[yytype]));
  27079. + yymsg = (char *) YYSTACK_ALLOC (yysize);
  27080. + if (yymsg != 0)
  27081. {
  27082. - strcpy(msg, "parse error");
  27083. + char *yyp = yystpcpy (yymsg, "syntax error, unexpected ");
  27084. + yyp = yystpcpy (yyp, yytname[yytype]);
  27085. - if (count < 5)
  27086. + if (yycount < 5)
  27087. {
  27088. - count = 0;
  27089. - for (x = (yyn < 0 ? -yyn : 0);
  27090. - x < (sizeof(yytname) / sizeof(char *)); x++)
  27091. - if (yycheck[x + yyn] == x)
  27092. + yyprefix = ", expecting ";
  27093. + for (yyx = yyxbegin; yyx < yyxend; ++yyx)
  27094. + if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR)
  27095. {
  27096. - strcat(msg, count == 0 ? ", expecting `" : " or `");
  27097. - strcat(msg, yytname[x]);
  27098. - strcat(msg, "'");
  27099. - count++;
  27100. + yyp = yystpcpy (yyp, yyprefix);
  27101. + yyp = yystpcpy (yyp, yytname[yyx]);
  27102. + yyprefix = " or ";
  27103. }
  27104. }
  27105. - yyerror(msg);
  27106. - free(msg);
  27107. + yyerror (yymsg);
  27108. + YYSTACK_FREE (yymsg);
  27109. }
  27110. else
  27111. - yyerror ("parse error; also virtual memory exceeded");
  27112. + yyerror ("syntax error; also virtual memory exhausted");
  27113. }
  27114. else
  27115. #endif /* YYERROR_VERBOSE */
  27116. - yyerror("parse error");
  27117. + yyerror ("syntax error");
  27118. }
  27119. - goto yyerrlab1;
  27120. -yyerrlab1: /* here on error raised explicitly by an action */
  27121. +
  27122. if (yyerrstatus == 3)
  27123. {
  27124. - /* if just tried and failed to reuse lookahead token after an error, discard it. */
  27125. + /* If just tried and failed to reuse lookahead token after an
  27126. + error, discard it. */
  27127. - /* return failure if at end of input */
  27128. - if (yychar == YYEOF)
  27129. - YYABORT;
  27130. -
  27131. -#if YYDEBUG != 0
  27132. - if (yydebug)
  27133. - fprintf(stderr, "Discarding token %d (%s).\n", yychar, yytname[yychar1]);
  27134. -#endif
  27135. + if (yychar <= YYEOF)
  27136. + {
  27137. + /* If at end of input, pop the error token,
  27138. + then the rest of the stack, then return failure. */
  27139. + if (yychar == YYEOF)
  27140. + for (;;)
  27141. + {
  27142. + YYPOPSTACK;
  27143. + if (yyssp == yyss)
  27144. + YYABORT;
  27145. + YYDSYMPRINTF ("Error: popping", yystos[*yyssp], yyvsp, yylsp);
  27146. + yydestruct (yystos[*yyssp], yyvsp);
  27147. + }
  27148. + }
  27149. + else
  27150. + {
  27151. + YYDSYMPRINTF ("Error: discarding", yytoken, &yylval, &yylloc);
  27152. + yydestruct (yytoken, &yylval);
  27153. + yychar = YYEMPTY;
  27154. - yychar = YYEMPTY;
  27155. + }
  27156. }
  27157. - /* Else will try to reuse lookahead token
  27158. - after shifting the error token. */
  27159. -
  27160. - yyerrstatus = 3; /* Each real token shifted decrements this */
  27161. + /* Else will try to reuse lookahead token after shifting the error
  27162. + token. */
  27163. + goto yyerrlab1;
  27164. - goto yyerrhandle;
  27165. -yyerrdefault: /* current state does not do anything special for the error token. */
  27166. +/*---------------------------------------------------.
  27167. +| yyerrorlab -- error raised explicitly by YYERROR. |
  27168. +`---------------------------------------------------*/
  27169. +yyerrorlab:
  27170. -#if 0
  27171. - /* This is wrong; only states that explicitly want error tokens
  27172. - should shift them. */
  27173. - yyn = yydefact[yystate]; /* If its default is to accept any token, ok. Otherwise pop it.*/
  27174. - if (yyn) goto yydefault;
  27175. +#ifdef __GNUC__
  27176. + /* Pacify GCC when the user code never invokes YYERROR and the label
  27177. + yyerrorlab therefore never appears in user code. */
  27178. + if (0)
  27179. + goto yyerrorlab;
  27180. #endif
  27181. -yyerrpop: /* pop the current state because it cannot handle the error token */
  27182. -
  27183. - if (yyssp == yyss) YYABORT;
  27184. - yyvsp--;
  27185. - yystate = *--yyssp;
  27186. -#ifdef YYLSP_NEEDED
  27187. - yylsp--;
  27188. -#endif
  27189. + yyvsp -= yylen;
  27190. + yyssp -= yylen;
  27191. + yystate = *yyssp;
  27192. + goto yyerrlab1;
  27193. -#if YYDEBUG != 0
  27194. - if (yydebug)
  27195. - {
  27196. - short *ssp1 = yyss - 1;
  27197. - fprintf (stderr, "Error: state stack now");
  27198. - while (ssp1 != yyssp)
  27199. - fprintf (stderr, " %d", *++ssp1);
  27200. - fprintf (stderr, "\n");
  27201. - }
  27202. -#endif
  27203. -yyerrhandle:
  27204. +/*-------------------------------------------------------------.
  27205. +| yyerrlab1 -- common code for both syntax error and YYERROR. |
  27206. +`-------------------------------------------------------------*/
  27207. +yyerrlab1:
  27208. + yyerrstatus = 3; /* Each real token shifted decrements this. */
  27209. - yyn = yypact[yystate];
  27210. - if (yyn == YYFLAG)
  27211. - goto yyerrdefault;
  27212. + for (;;)
  27213. + {
  27214. + yyn = yypact[yystate];
  27215. + if (yyn != YYPACT_NINF)
  27216. + {
  27217. + yyn += YYTERROR;
  27218. + if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR)
  27219. + {
  27220. + yyn = yytable[yyn];
  27221. + if (0 < yyn)
  27222. + break;
  27223. + }
  27224. + }
  27225. - yyn += YYTERROR;
  27226. - if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != YYTERROR)
  27227. - goto yyerrdefault;
  27228. + /* Pop the current state because it cannot handle the error token. */
  27229. + if (yyssp == yyss)
  27230. + YYABORT;
  27231. - yyn = yytable[yyn];
  27232. - if (yyn < 0)
  27233. - {
  27234. - if (yyn == YYFLAG)
  27235. - goto yyerrpop;
  27236. - yyn = -yyn;
  27237. - goto yyreduce;
  27238. + YYDSYMPRINTF ("Error: popping", yystos[*yyssp], yyvsp, yylsp);
  27239. + yydestruct (yystos[yystate], yyvsp);
  27240. + YYPOPSTACK;
  27241. + yystate = *yyssp;
  27242. + YY_STACK_PRINT (yyss, yyssp);
  27243. }
  27244. - else if (yyn == 0)
  27245. - goto yyerrpop;
  27246. if (yyn == YYFINAL)
  27247. YYACCEPT;
  27248. -#if YYDEBUG != 0
  27249. - if (yydebug)
  27250. - fprintf(stderr, "Shifting error token, ");
  27251. -#endif
  27252. + YYDPRINTF ((stderr, "Shifting error token, "));
  27253. *++yyvsp = yylval;
  27254. -#ifdef YYLSP_NEEDED
  27255. - *++yylsp = yylloc;
  27256. -#endif
  27257. +
  27258. yystate = yyn;
  27259. goto yynewstate;
  27260. - yyacceptlab:
  27261. - /* YYACCEPT comes here. */
  27262. - if (yyfree_stacks)
  27263. - {
  27264. - free (yyss);
  27265. - free (yyvs);
  27266. -#ifdef YYLSP_NEEDED
  27267. - free (yyls);
  27268. -#endif
  27269. - }
  27270. - return 0;
  27271. - yyabortlab:
  27272. - /* YYABORT comes here. */
  27273. - if (yyfree_stacks)
  27274. - {
  27275. - free (yyss);
  27276. - free (yyvs);
  27277. -#ifdef YYLSP_NEEDED
  27278. - free (yyls);
  27279. +/*-------------------------------------.
  27280. +| yyacceptlab -- YYACCEPT comes here. |
  27281. +`-------------------------------------*/
  27282. +yyacceptlab:
  27283. + yyresult = 0;
  27284. + goto yyreturn;
  27285. +
  27286. +/*-----------------------------------.
  27287. +| yyabortlab -- YYABORT comes here. |
  27288. +`-----------------------------------*/
  27289. +yyabortlab:
  27290. + yyresult = 1;
  27291. + goto yyreturn;
  27292. +
  27293. +#ifndef yyoverflow
  27294. +/*----------------------------------------------.
  27295. +| yyoverflowlab -- parser overflow comes here. |
  27296. +`----------------------------------------------*/
  27297. +yyoverflowlab:
  27298. + yyerror ("parser stack overflow");
  27299. + yyresult = 2;
  27300. + /* Fall through. */
  27301. +#endif
  27302. +
  27303. +yyreturn:
  27304. +#ifndef yyoverflow
  27305. + if (yyss != yyssa)
  27306. + YYSTACK_FREE (yyss);
  27307. #endif
  27308. - }
  27309. - return 1;
  27310. + return yyresult;
  27311. }
  27312. -#line 126 "cfg_y.y"
  27313. +
  27314. +
  27315. +
  27316. --- linux-atm-2.4.1.orig/src/switch/cfg_y.y
  27317. +++ linux-atm-2.4.1/src/switch/cfg_y.y
  27318. @@ -10,6 +10,7 @@
  27319. #include <string.h>
  27320. #include <errno.h>
  27321. #include <limits.h>
  27322. +#include <stdlib.h>
  27323. #include "atm.h"
  27324. @@ -19,6 +20,8 @@
  27325. #include "swc.h"
  27326. +extern void yyerror(const char *s);
  27327. +
  27328. static int itf;
  27329. static SIGNALING_ENTITY *sig;
  27330. --- linux-atm-2.4.1.orig/src/switch/cfg_y.h
  27331. +++ linux-atm-2.4.1/src/switch/cfg_y.h
  27332. @@ -1,19 +1,77 @@
  27333. -typedef union {
  27334. +/* A Bison parser, made by GNU Bison 1.875d. */
  27335. +
  27336. +/* Skeleton parser for Yacc-like parsing with Bison,
  27337. + Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
  27338. +
  27339. + This program is free software; you can redistribute it and/or modify
  27340. + it under the terms of the GNU General Public License as published by
  27341. + the Free Software Foundation; either version 2, or (at your option)
  27342. + any later version.
  27343. +
  27344. + This program is distributed in the hope that it will be useful,
  27345. + but WITHOUT ANY WARRANTY; without even the implied warranty of
  27346. + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  27347. + GNU General Public License for more details.
  27348. +
  27349. + You should have received a copy of the GNU General Public License
  27350. + along with this program; if not, write to the Free Software
  27351. + Foundation, Inc., 59 Temple Place - Suite 330,
  27352. + Boston, MA 02111-1307, USA. */
  27353. +
  27354. +/* As a special exception, when this file is copied by Bison into a
  27355. + Bison output file, you may use that output file without restriction.
  27356. + This special exception was added by the Free Software Foundation
  27357. + in version 1.24 of Bison. */
  27358. +
  27359. +/* Tokens. */
  27360. +#ifndef YYTOKENTYPE
  27361. +# define YYTOKENTYPE
  27362. + /* Put the tokens into the symbol table, so that GDB and other debuggers
  27363. + know about them. */
  27364. + enum yytokentype {
  27365. + TOK_COMMAND = 258,
  27366. + TOK_VPCI = 259,
  27367. + TOK_ITF = 260,
  27368. + TOK_DEFAULT = 261,
  27369. + TOK_ROUTE = 262,
  27370. + TOK_STR = 263,
  27371. + TOK_SOCKET = 264,
  27372. + TOK_OPTION = 265,
  27373. + TOK_CONTROL = 266,
  27374. + TOK_NUM = 267,
  27375. + TOK_PVC = 268
  27376. + };
  27377. +#endif
  27378. +#define TOK_COMMAND 258
  27379. +#define TOK_VPCI 259
  27380. +#define TOK_ITF 260
  27381. +#define TOK_DEFAULT 261
  27382. +#define TOK_ROUTE 262
  27383. +#define TOK_STR 263
  27384. +#define TOK_SOCKET 264
  27385. +#define TOK_OPTION 265
  27386. +#define TOK_CONTROL 266
  27387. +#define TOK_NUM 267
  27388. +#define TOK_PVC 268
  27389. +
  27390. +
  27391. +
  27392. +
  27393. +#if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
  27394. +#line 30 "cfg_y.y"
  27395. +typedef union YYSTYPE {
  27396. int num;
  27397. char *str;
  27398. struct sockaddr_atmpvc pvc;
  27399. } YYSTYPE;
  27400. -#define TOK_COMMAND 257
  27401. -#define TOK_VPCI 258
  27402. -#define TOK_ITF 259
  27403. -#define TOK_DEFAULT 260
  27404. -#define TOK_ROUTE 261
  27405. -#define TOK_STR 262
  27406. -#define TOK_SOCKET 263
  27407. -#define TOK_OPTION 264
  27408. -#define TOK_CONTROL 265
  27409. -#define TOK_NUM 266
  27410. -#define TOK_PVC 267
  27411. -
  27412. +/* Line 1285 of yacc.c. */
  27413. +#line 69 "y.tab.h"
  27414. +# define yystype YYSTYPE /* obsolescent; will be withdrawn */
  27415. +# define YYSTYPE_IS_DECLARED 1
  27416. +# define YYSTYPE_IS_TRIVIAL 1
  27417. +#endif
  27418. extern YYSTYPE yylval;
  27419. +
  27420. +
  27421. +
  27422. --- linux-atm-2.4.1.orig/src/switch/debug/Makefile.in
  27423. +++ linux-atm-2.4.1/src/switch/debug/Makefile.in
  27424. @@ -1,4 +1,4 @@
  27425. -# Makefile.in generated automatically by automake 1.4-p5 from Makefile.am
  27426. +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
  27427. # Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
  27428. # This Makefile.in is free software; the Free Software Foundation
  27429. @@ -90,8 +90,7 @@
  27430. INCLUDES = -I$(top_builddir)/src/qgen
  27431. sw_debug_SOURCES = debug.c
  27432. -sw_debug_XTRAS = $(top_builddir)/src/switch/libsw.a \
  27433. - $(top_builddir)/src/lib/libatm.la
  27434. +sw_debug_XTRAS = $(top_builddir)/src/switch/libsw.a $(top_builddir)/src/lib/libatm.la
  27435. sw_debug_LDADD = $(sw_debug_XTRAS) -lfl
  27436. @@ -121,8 +120,9 @@
  27437. DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
  27438. -TAR = gtar
  27439. +TAR = tar
  27440. GZIP_ENV = --best
  27441. +DEP_FILES = .deps/debug.P
  27442. SOURCES = $(sw_debug_SOURCES)
  27443. OBJECTS = $(sw_debug_OBJECTS)
  27444. @@ -130,9 +130,9 @@
  27445. .SUFFIXES:
  27446. .SUFFIXES: .S .c .lo .o .obj .s
  27447. $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
  27448. - cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps src/switch/debug/Makefile
  27449. + cd $(top_srcdir) && $(AUTOMAKE) --gnu src/switch/debug/Makefile
  27450. -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  27451. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
  27452. cd $(top_builddir) \
  27453. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
  27454. @@ -146,9 +146,6 @@
  27455. maintainer-clean-noinstPROGRAMS:
  27456. -.c.o:
  27457. - $(COMPILE) -c $<
  27458. -
  27459. # FIXME: We should only use cygpath when building on Windows,
  27460. # and only if it is available.
  27461. .c.obj:
  27462. @@ -171,9 +168,6 @@
  27463. maintainer-clean-compile:
  27464. -.c.lo:
  27465. - $(LIBTOOL) --mode=compile $(COMPILE) -c $<
  27466. -
  27467. .s.lo:
  27468. $(LIBTOOL) --mode=compile $(COMPILE) -c $<
  27469. @@ -212,7 +206,7 @@
  27470. awk ' { files[$$0] = 1; } \
  27471. END { for (i in files) print i; }'`; \
  27472. test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
  27473. - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
  27474. + || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags $$unique $(LISP))
  27475. mostlyclean-tags:
  27476. @@ -228,6 +222,11 @@
  27477. subdir = src/switch/debug
  27478. distdir: $(DISTFILES)
  27479. + here=`cd $(top_builddir) && pwd`; \
  27480. + top_distdir=`cd $(top_distdir) && pwd`; \
  27481. + distdir=`cd $(distdir) && pwd`; \
  27482. + cd $(top_srcdir) \
  27483. + && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu src/switch/debug/Makefile
  27484. @for file in $(DISTFILES); do \
  27485. d=$(srcdir); \
  27486. if test -d $$d/$$file; then \
  27487. @@ -238,11 +237,38 @@
  27488. || cp -p $$d/$$file $(distdir)/$$file || :; \
  27489. fi; \
  27490. done
  27491. -debug.o: debug.c ../../../config.h ../../../src/include/atm.h \
  27492. - ../../../src/include/stdint.h ../../../src/include/atmd.h \
  27493. - ../../../src/qgen/uni.h ../fab.h ../proto.h \
  27494. - ../../../src/include/atmsap.h ../sig.h
  27495. +DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
  27496. +
  27497. +-include $(DEP_FILES)
  27498. +
  27499. +mostlyclean-depend:
  27500. +
  27501. +clean-depend:
  27502. +
  27503. +distclean-depend:
  27504. + -rm -rf .deps
  27505. +
  27506. +maintainer-clean-depend:
  27507. +
  27508. +%.o: %.c
  27509. + @echo '$(COMPILE) -c $<'; \
  27510. + $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
  27511. + @-cp .deps/$(*F).pp .deps/$(*F).P; \
  27512. + tr ' ' '\012' < .deps/$(*F).pp \
  27513. + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
  27514. + >> .deps/$(*F).P; \
  27515. + rm .deps/$(*F).pp
  27516. +
  27517. +%.lo: %.c
  27518. + @echo '$(LTCOMPILE) -c $<'; \
  27519. + $(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
  27520. + @-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \
  27521. + < .deps/$(*F).pp > .deps/$(*F).P; \
  27522. + tr ' ' '\012' < .deps/$(*F).pp \
  27523. + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
  27524. + >> .deps/$(*F).P; \
  27525. + rm -f .deps/$(*F).pp
  27526. info-am:
  27527. info: info-am
  27528. dvi-am:
  27529. @@ -279,27 +305,27 @@
  27530. maintainer-clean-generic:
  27531. mostlyclean-am: mostlyclean-noinstPROGRAMS mostlyclean-compile \
  27532. - mostlyclean-libtool mostlyclean-tags \
  27533. + mostlyclean-libtool mostlyclean-tags mostlyclean-depend \
  27534. mostlyclean-generic
  27535. mostlyclean: mostlyclean-am
  27536. clean-am: clean-noinstPROGRAMS clean-compile clean-libtool clean-tags \
  27537. - clean-generic mostlyclean-am
  27538. + clean-depend clean-generic mostlyclean-am
  27539. clean: clean-am
  27540. distclean-am: distclean-noinstPROGRAMS distclean-compile \
  27541. - distclean-libtool distclean-tags distclean-generic \
  27542. - clean-am
  27543. + distclean-libtool distclean-tags distclean-depend \
  27544. + distclean-generic clean-am
  27545. -rm -f libtool
  27546. distclean: distclean-am
  27547. maintainer-clean-am: maintainer-clean-noinstPROGRAMS \
  27548. maintainer-clean-compile maintainer-clean-libtool \
  27549. - maintainer-clean-tags maintainer-clean-generic \
  27550. - distclean-am
  27551. + maintainer-clean-tags maintainer-clean-depend \
  27552. + maintainer-clean-generic distclean-am
  27553. @echo "This command is intended for maintainers to use;"
  27554. @echo "it deletes files that may require special tools to rebuild."
  27555. @@ -310,12 +336,14 @@
  27556. mostlyclean-compile distclean-compile clean-compile \
  27557. maintainer-clean-compile mostlyclean-libtool distclean-libtool \
  27558. clean-libtool maintainer-clean-libtool tags mostlyclean-tags \
  27559. -distclean-tags clean-tags maintainer-clean-tags distdir info-am info \
  27560. -dvi-am dvi check check-am installcheck-am installcheck install-exec-am \
  27561. -install-exec install-data-am install-data install-am install \
  27562. -uninstall-am uninstall all-redirect all-am all installdirs \
  27563. -mostlyclean-generic distclean-generic clean-generic \
  27564. -maintainer-clean-generic clean mostlyclean distclean maintainer-clean
  27565. +distclean-tags clean-tags maintainer-clean-tags distdir \
  27566. +mostlyclean-depend distclean-depend clean-depend \
  27567. +maintainer-clean-depend info-am info dvi-am dvi check check-am \
  27568. +installcheck-am installcheck install-exec-am install-exec \
  27569. +install-data-am install-data install-am install uninstall-am uninstall \
  27570. +all-redirect all-am all installdirs mostlyclean-generic \
  27571. +distclean-generic clean-generic maintainer-clean-generic clean \
  27572. +mostlyclean distclean maintainer-clean
  27573. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  27574. --- linux-atm-2.4.1.orig/src/switch/debug/debug.c
  27575. +++ linux-atm-2.4.1/src/switch/debug/debug.c
  27576. @@ -43,7 +43,7 @@
  27577. void fab_init(CALL *call)
  27578. {
  27579. - PRV(call) = alloc_t(FAB);
  27580. + call->fab = alloc_t(FAB);
  27581. PRV(call)->next = calls;
  27582. calls = call;
  27583. }
  27584. @@ -59,7 +59,7 @@
  27585. diag(COMPONENT,DIAG_FATAL,"fab_destroy: call %p not found",call);
  27586. *walk = PRV(call)->next;
  27587. free(PRV(call));
  27588. - PRV(call) = NULL;
  27589. + call->fab = NULL;
  27590. }
  27591. --- linux-atm-2.4.1.orig/src/switch/tcp/Makefile.in
  27592. +++ linux-atm-2.4.1/src/switch/tcp/Makefile.in
  27593. @@ -1,4 +1,4 @@
  27594. -# Makefile.in generated automatically by automake 1.4-p5 from Makefile.am
  27595. +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
  27596. # Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
  27597. # This Makefile.in is free software; the Free Software Foundation
  27598. @@ -90,8 +90,7 @@
  27599. INCLUDES = -I$(top_builddir)/src/qgen
  27600. sw_tcp_SOURCES = tcpsw.c
  27601. -sw_tcp_XTRAS = $(top_builddir)/src/switch/libsw.a \
  27602. - $(top_builddir)/src/lib/libatm.la
  27603. +sw_tcp_XTRAS = $(top_builddir)/src/switch/libsw.a $(top_builddir)/src/lib/libatm.la
  27604. sw_tcp_LDADD = $(sw_tcp_XTRAS) -lfl
  27605. sw_tcp_DEPENDENCIES = $(sw_tcp_XTRAS)
  27606. @@ -120,8 +119,9 @@
  27607. DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
  27608. -TAR = gtar
  27609. +TAR = tar
  27610. GZIP_ENV = --best
  27611. +DEP_FILES = .deps/tcpsw.P
  27612. SOURCES = $(sw_tcp_SOURCES)
  27613. OBJECTS = $(sw_tcp_OBJECTS)
  27614. @@ -129,9 +129,9 @@
  27615. .SUFFIXES:
  27616. .SUFFIXES: .S .c .lo .o .obj .s
  27617. $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
  27618. - cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps src/switch/tcp/Makefile
  27619. + cd $(top_srcdir) && $(AUTOMAKE) --gnu src/switch/tcp/Makefile
  27620. -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  27621. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
  27622. cd $(top_builddir) \
  27623. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
  27624. @@ -145,9 +145,6 @@
  27625. maintainer-clean-noinstPROGRAMS:
  27626. -.c.o:
  27627. - $(COMPILE) -c $<
  27628. -
  27629. # FIXME: We should only use cygpath when building on Windows,
  27630. # and only if it is available.
  27631. .c.obj:
  27632. @@ -170,9 +167,6 @@
  27633. maintainer-clean-compile:
  27634. -.c.lo:
  27635. - $(LIBTOOL) --mode=compile $(COMPILE) -c $<
  27636. -
  27637. .s.lo:
  27638. $(LIBTOOL) --mode=compile $(COMPILE) -c $<
  27639. @@ -211,7 +205,7 @@
  27640. awk ' { files[$$0] = 1; } \
  27641. END { for (i in files) print i; }'`; \
  27642. test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
  27643. - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
  27644. + || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags $$unique $(LISP))
  27645. mostlyclean-tags:
  27646. @@ -227,6 +221,11 @@
  27647. subdir = src/switch/tcp
  27648. distdir: $(DISTFILES)
  27649. + here=`cd $(top_builddir) && pwd`; \
  27650. + top_distdir=`cd $(top_distdir) && pwd`; \
  27651. + distdir=`cd $(distdir) && pwd`; \
  27652. + cd $(top_srcdir) \
  27653. + && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu src/switch/tcp/Makefile
  27654. @for file in $(DISTFILES); do \
  27655. d=$(srcdir); \
  27656. if test -d $$d/$$file; then \
  27657. @@ -237,11 +236,38 @@
  27658. || cp -p $$d/$$file $(distdir)/$$file || :; \
  27659. fi; \
  27660. done
  27661. -tcpsw.o: tcpsw.c ../../../config.h ../../../src/include/stdint.h \
  27662. - ../../../src/include/atm.h ../../../src/include/atmd.h \
  27663. - ../../../src/qgen/uni.h ../fab.h ../proto.h \
  27664. - ../../../src/include/atmsap.h ../sig.h ../dispatch.h ../swc.h
  27665. +DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
  27666. +
  27667. +-include $(DEP_FILES)
  27668. +
  27669. +mostlyclean-depend:
  27670. +
  27671. +clean-depend:
  27672. +
  27673. +distclean-depend:
  27674. + -rm -rf .deps
  27675. +
  27676. +maintainer-clean-depend:
  27677. +
  27678. +%.o: %.c
  27679. + @echo '$(COMPILE) -c $<'; \
  27680. + $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
  27681. + @-cp .deps/$(*F).pp .deps/$(*F).P; \
  27682. + tr ' ' '\012' < .deps/$(*F).pp \
  27683. + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
  27684. + >> .deps/$(*F).P; \
  27685. + rm .deps/$(*F).pp
  27686. +
  27687. +%.lo: %.c
  27688. + @echo '$(LTCOMPILE) -c $<'; \
  27689. + $(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
  27690. + @-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \
  27691. + < .deps/$(*F).pp > .deps/$(*F).P; \
  27692. + tr ' ' '\012' < .deps/$(*F).pp \
  27693. + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
  27694. + >> .deps/$(*F).P; \
  27695. + rm -f .deps/$(*F).pp
  27696. info-am:
  27697. info: info-am
  27698. dvi-am:
  27699. @@ -278,27 +304,27 @@
  27700. maintainer-clean-generic:
  27701. mostlyclean-am: mostlyclean-noinstPROGRAMS mostlyclean-compile \
  27702. - mostlyclean-libtool mostlyclean-tags \
  27703. + mostlyclean-libtool mostlyclean-tags mostlyclean-depend \
  27704. mostlyclean-generic
  27705. mostlyclean: mostlyclean-am
  27706. clean-am: clean-noinstPROGRAMS clean-compile clean-libtool clean-tags \
  27707. - clean-generic mostlyclean-am
  27708. + clean-depend clean-generic mostlyclean-am
  27709. clean: clean-am
  27710. distclean-am: distclean-noinstPROGRAMS distclean-compile \
  27711. - distclean-libtool distclean-tags distclean-generic \
  27712. - clean-am
  27713. + distclean-libtool distclean-tags distclean-depend \
  27714. + distclean-generic clean-am
  27715. -rm -f libtool
  27716. distclean: distclean-am
  27717. maintainer-clean-am: maintainer-clean-noinstPROGRAMS \
  27718. maintainer-clean-compile maintainer-clean-libtool \
  27719. - maintainer-clean-tags maintainer-clean-generic \
  27720. - distclean-am
  27721. + maintainer-clean-tags maintainer-clean-depend \
  27722. + maintainer-clean-generic distclean-am
  27723. @echo "This command is intended for maintainers to use;"
  27724. @echo "it deletes files that may require special tools to rebuild."
  27725. @@ -309,12 +335,14 @@
  27726. mostlyclean-compile distclean-compile clean-compile \
  27727. maintainer-clean-compile mostlyclean-libtool distclean-libtool \
  27728. clean-libtool maintainer-clean-libtool tags mostlyclean-tags \
  27729. -distclean-tags clean-tags maintainer-clean-tags distdir info-am info \
  27730. -dvi-am dvi check check-am installcheck-am installcheck install-exec-am \
  27731. -install-exec install-data-am install-data install-am install \
  27732. -uninstall-am uninstall all-redirect all-am all installdirs \
  27733. -mostlyclean-generic distclean-generic clean-generic \
  27734. -maintainer-clean-generic clean mostlyclean distclean maintainer-clean
  27735. +distclean-tags clean-tags maintainer-clean-tags distdir \
  27736. +mostlyclean-depend distclean-depend clean-depend \
  27737. +maintainer-clean-depend info-am info dvi-am dvi check check-am \
  27738. +installcheck-am installcheck install-exec-am install-exec \
  27739. +install-data-am install-data install-am install uninstall-am uninstall \
  27740. +all-redirect all-am all installdirs mostlyclean-generic \
  27741. +distclean-generic clean-generic maintainer-clean-generic clean \
  27742. +mostlyclean distclean maintainer-clean
  27743. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  27744. --- linux-atm-2.4.1.orig/src/switch/tcp/tcpsw.c
  27745. +++ linux-atm-2.4.1/src/switch/tcp/tcpsw.c
  27746. @@ -345,7 +345,7 @@
  27747. void fab_init(CALL *call)
  27748. {
  27749. - PRV(call) = alloc_t(FAB);
  27750. + call->fab = alloc_t(FAB);
  27751. PRV(call)->active = 0;
  27752. PRV(call)->next = calls;
  27753. calls = call;
  27754. @@ -362,7 +362,7 @@
  27755. diag(COMPONENT,DIAG_FATAL,"fab_destroy: call %p not found",call);
  27756. *walk = PRV(call)->next;
  27757. free(PRV(call));
  27758. - PRV(call) = NULL;
  27759. + call->fab = NULL;
  27760. }
  27761. --- linux-atm-2.4.1.orig/src/config/Makefile.in
  27762. +++ linux-atm-2.4.1/src/config/Makefile.in
  27763. @@ -1,4 +1,4 @@
  27764. -# Makefile.in generated automatically by automake 1.4-p5 from Makefile.am
  27765. +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
  27766. # Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
  27767. # This Makefile.in is free software; the Free Software Foundation
  27768. @@ -96,14 +96,14 @@
  27769. DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
  27770. -TAR = gtar
  27771. +TAR = tar
  27772. GZIP_ENV = --best
  27773. all: all-redirect
  27774. .SUFFIXES:
  27775. $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
  27776. - cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps src/config/Makefile
  27777. + cd $(top_srcdir) && $(AUTOMAKE) --gnu src/config/Makefile
  27778. -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  27779. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
  27780. cd $(top_builddir) \
  27781. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
  27782. @@ -186,7 +186,7 @@
  27783. awk ' { files[$$0] = 1; } \
  27784. END { for (i in files) print i; }'`; \
  27785. test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
  27786. - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
  27787. + || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags $$unique $(LISP))
  27788. mostlyclean-tags:
  27789. @@ -202,6 +202,11 @@
  27790. subdir = src/config
  27791. distdir: $(DISTFILES)
  27792. + here=`cd $(top_builddir) && pwd`; \
  27793. + top_distdir=`cd $(top_distdir) && pwd`; \
  27794. + distdir=`cd $(distdir) && pwd`; \
  27795. + cd $(top_srcdir) \
  27796. + && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu src/config/Makefile
  27797. @for file in $(DISTFILES); do \
  27798. d=$(srcdir); \
  27799. if test -d $$d/$$file; then \
  27800. --- linux-atm-2.4.1.orig/src/config/init-redhat/Makefile.in
  27801. +++ linux-atm-2.4.1/src/config/init-redhat/Makefile.in
  27802. @@ -1,4 +1,4 @@
  27803. -# Makefile.in generated automatically by automake 1.4-p5 from Makefile.am
  27804. +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
  27805. # Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
  27806. # This Makefile.in is free software; the Free Software Foundation
  27807. @@ -94,14 +94,14 @@
  27808. DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
  27809. -TAR = gtar
  27810. +TAR = tar
  27811. GZIP_ENV = --best
  27812. all: all-redirect
  27813. .SUFFIXES:
  27814. $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
  27815. - cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps src/config/init-redhat/Makefile
  27816. + cd $(top_srcdir) && $(AUTOMAKE) --gnu src/config/init-redhat/Makefile
  27817. -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  27818. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
  27819. cd $(top_builddir) \
  27820. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
  27821. @@ -114,6 +114,11 @@
  27822. subdir = src/config/init-redhat
  27823. distdir: $(DISTFILES)
  27824. + here=`cd $(top_builddir) && pwd`; \
  27825. + top_distdir=`cd $(top_distdir) && pwd`; \
  27826. + distdir=`cd $(distdir) && pwd`; \
  27827. + cd $(top_srcdir) \
  27828. + && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu src/config/init-redhat/Makefile
  27829. @for file in $(DISTFILES); do \
  27830. d=$(srcdir); \
  27831. if test -d $$d/$$file; then \
  27832. --- linux-atm-2.4.1.orig/src/extra/Makefile.in
  27833. +++ linux-atm-2.4.1/src/extra/Makefile.in
  27834. @@ -1,4 +1,4 @@
  27835. -# Makefile.in generated automatically by automake 1.4-p5 from Makefile.am
  27836. +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
  27837. # Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
  27838. # This Makefile.in is free software; the Free Software Foundation
  27839. @@ -96,14 +96,14 @@
  27840. DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
  27841. -TAR = gtar
  27842. +TAR = tar
  27843. GZIP_ENV = --best
  27844. all: all-redirect
  27845. .SUFFIXES:
  27846. $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
  27847. - cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps src/extra/Makefile
  27848. + cd $(top_srcdir) && $(AUTOMAKE) --gnu src/extra/Makefile
  27849. -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  27850. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
  27851. cd $(top_builddir) \
  27852. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
  27853. @@ -188,7 +188,7 @@
  27854. awk ' { files[$$0] = 1; } \
  27855. END { for (i in files) print i; }'`; \
  27856. test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
  27857. - || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
  27858. + || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags $$unique $(LISP))
  27859. mostlyclean-tags:
  27860. @@ -204,6 +204,11 @@
  27861. subdir = src/extra
  27862. distdir: $(DISTFILES)
  27863. + here=`cd $(top_builddir) && pwd`; \
  27864. + top_distdir=`cd $(top_distdir) && pwd`; \
  27865. + distdir=`cd $(distdir) && pwd`; \
  27866. + cd $(top_srcdir) \
  27867. + && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu src/extra/Makefile
  27868. @for file in $(DISTFILES); do \
  27869. d=$(srcdir); \
  27870. if test -d $$d/$$file; then \
  27871. --- linux-atm-2.4.1.orig/src/extra/ANS/Makefile.in
  27872. +++ linux-atm-2.4.1/src/extra/ANS/Makefile.in
  27873. @@ -1,4 +1,4 @@
  27874. -# Makefile.in generated automatically by automake 1.4-p5 from Makefile.am
  27875. +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
  27876. # Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
  27877. # This Makefile.in is free software; the Free Software Foundation
  27878. @@ -94,14 +94,14 @@
  27879. DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
  27880. -TAR = gtar
  27881. +TAR = tar
  27882. GZIP_ENV = --best
  27883. all: all-redirect
  27884. .SUFFIXES:
  27885. $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
  27886. - cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps src/extra/ANS/Makefile
  27887. + cd $(top_srcdir) && $(AUTOMAKE) --gnu src/extra/ANS/Makefile
  27888. -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  27889. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
  27890. cd $(top_builddir) \
  27891. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
  27892. @@ -114,6 +114,11 @@
  27893. subdir = src/extra/ANS
  27894. distdir: $(DISTFILES)
  27895. + here=`cd $(top_builddir) && pwd`; \
  27896. + top_distdir=`cd $(top_distdir) && pwd`; \
  27897. + distdir=`cd $(distdir) && pwd`; \
  27898. + cd $(top_srcdir) \
  27899. + && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu src/extra/ANS/Makefile
  27900. @for file in $(DISTFILES); do \
  27901. d=$(srcdir); \
  27902. if test -d $$d/$$file; then \
  27903. --- linux-atm-2.4.1.orig/src/br2684/Makefile.am
  27904. +++ linux-atm-2.4.1/src/br2684/Makefile.am
  27905. @@ -0,0 +1,10 @@
  27906. +sbin_PROGRAMS = br2684ctl
  27907. +
  27908. +LDADD = $(top_builddir)/src/lib/libatm.la
  27909. +
  27910. +br2684ctl_SOURCES = br2684ctl.c
  27911. +
  27912. +man_MANS = br2684ctl.8
  27913. +
  27914. +EXTRA_DIST = $(man_MANS) USAGE.br2684
  27915. +
  27916. --- linux-atm-2.4.1.orig/src/br2684/Makefile.in
  27917. +++ linux-atm-2.4.1/src/br2684/Makefile.in
  27918. @@ -0,0 +1,418 @@
  27919. +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
  27920. +
  27921. +# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
  27922. +# This Makefile.in is free software; the Free Software Foundation
  27923. +# gives unlimited permission to copy and/or distribute it,
  27924. +# with or without modifications, as long as this notice is preserved.
  27925. +
  27926. +# This program is distributed in the hope that it will be useful,
  27927. +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
  27928. +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  27929. +# PARTICULAR PURPOSE.
  27930. +
  27931. +
  27932. +SHELL = @SHELL@
  27933. +
  27934. +srcdir = @srcdir@
  27935. +top_srcdir = @top_srcdir@
  27936. +VPATH = @srcdir@
  27937. +prefix = @prefix@
  27938. +exec_prefix = @exec_prefix@
  27939. +
  27940. +bindir = @bindir@
  27941. +sbindir = @sbindir@
  27942. +libexecdir = @libexecdir@
  27943. +datadir = @datadir@
  27944. +sysconfdir = @sysconfdir@
  27945. +sharedstatedir = @sharedstatedir@
  27946. +localstatedir = @localstatedir@
  27947. +libdir = @libdir@
  27948. +infodir = @infodir@
  27949. +mandir = @mandir@
  27950. +includedir = @includedir@
  27951. +oldincludedir = /usr/include
  27952. +
  27953. +DESTDIR =
  27954. +
  27955. +pkgdatadir = $(datadir)/@PACKAGE@
  27956. +pkglibdir = $(libdir)/@PACKAGE@
  27957. +pkgincludedir = $(includedir)/@PACKAGE@
  27958. +
  27959. +top_builddir = ../..
  27960. +
  27961. +ACLOCAL = @ACLOCAL@
  27962. +AUTOCONF = @AUTOCONF@
  27963. +AUTOMAKE = @AUTOMAKE@
  27964. +AUTOHEADER = @AUTOHEADER@
  27965. +
  27966. +INSTALL = @INSTALL@
  27967. +INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
  27968. +INSTALL_DATA = @INSTALL_DATA@
  27969. +INSTALL_SCRIPT = @INSTALL_SCRIPT@
  27970. +transform = @program_transform_name@
  27971. +
  27972. +NORMAL_INSTALL = :
  27973. +PRE_INSTALL = :
  27974. +POST_INSTALL = :
  27975. +NORMAL_UNINSTALL = :
  27976. +PRE_UNINSTALL = :
  27977. +POST_UNINSTALL = :
  27978. +host_alias = @host_alias@
  27979. +host_triplet = @host@
  27980. +AR = @AR@
  27981. +AS = @AS@
  27982. +CC = /usr/src/openwrt/staging_dir_mipsel/bin/mipsel-linux-gcc
  27983. +CXX = @CXX@
  27984. +CXXCPP = @CXXCPP@
  27985. +DLLTOOL = @DLLTOOL@
  27986. +ECHO = @ECHO@
  27987. +EGREP = @EGREP@
  27988. +EXEEXT = @EXEEXT@
  27989. +F77 = @F77@
  27990. +GCJ = @GCJ@
  27991. +GCJFLAGS = @GCJFLAGS@
  27992. +HAVE_LIB = @HAVE_LIB@
  27993. +LEX = @LEX@
  27994. +LIB = @LIB@
  27995. +LIBTOOL = @LIBTOOL@
  27996. +LIBTOOL_DEPS = @LIBTOOL_DEPS@
  27997. +LIBVER_AGE = @LIBVER_AGE@
  27998. +LIBVER_CURRENT = @LIBVER_CURRENT@
  27999. +LIBVER_REVISION = @LIBVER_REVISION@
  28000. +LN_S = @LN_S@
  28001. +LTLIB = @LTLIB@
  28002. +MAKEINFO = @MAKEINFO@
  28003. +OBJDUMP = @OBJDUMP@
  28004. +OBJEXT = @OBJEXT@
  28005. +PACKAGE = @PACKAGE@
  28006. +PERL = @PERL@
  28007. +RANLIB = @RANLIB@
  28008. +RC = @RC@
  28009. +STRIP = @STRIP@
  28010. +VERSION = @VERSION@
  28011. +YACC = @YACC@
  28012. +
  28013. +sbin_PROGRAMS = br2684ctl
  28014. +
  28015. +LDADD = $(top_builddir)/src/lib/libatm.la
  28016. +
  28017. +br2684ctl_SOURCES = br2684ctl.c
  28018. +
  28019. +man_MANS = br2684ctl.8
  28020. +
  28021. +EXTRA_DIST = $(man_MANS) USAGE.br2684
  28022. +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  28023. +CONFIG_HEADER = ../../config.h
  28024. +CONFIG_CLEAN_FILES =
  28025. +sbin_PROGRAMS = br2684ctl$(EXEEXT)
  28026. +PROGRAMS = $(sbin_PROGRAMS)
  28027. +
  28028. +
  28029. +DEFS = @DEFS@ -I. -I$(srcdir) -I../..
  28030. +CPPFLAGS = @CPPFLAGS@
  28031. +LDFLAGS = @LDFLAGS@
  28032. +LIBS = @LIBS@
  28033. +br2684ctl_OBJECTS = br2684ctl.$(OBJEXT)
  28034. +br2684ctl_LDADD = $(LDADD)
  28035. +br2684ctl_DEPENDENCIES = $(top_builddir)/src/lib/libatm.la
  28036. +br2684ctl_LDFLAGS =
  28037. +CFLAGS = @CFLAGS@
  28038. +COMPILE = $(TARGET_CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  28039. +LTCOMPILE = $(LIBTOOL) --mode=compile $(TARGET_CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  28040. +CCLD = $(TARGET_CC)
  28041. +LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
  28042. +man8dir = $(mandir)/man8
  28043. +MANS = $(man_MANS)
  28044. +
  28045. +NROFF = nroff
  28046. +DIST_COMMON = Makefile.am Makefile.in
  28047. +
  28048. +
  28049. +DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
  28050. +
  28051. +TAR = tar
  28052. +GZIP_ENV = --best
  28053. +DEP_FILES = .deps/br2684ctl.P
  28054. +SOURCES = $(br2684ctl_SOURCES)
  28055. +OBJECTS = $(br2684ctl_OBJECTS)
  28056. +
  28057. +all: all-redirect
  28058. +.SUFFIXES:
  28059. +.SUFFIXES: .S .c .lo .o .obj .s
  28060. +$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
  28061. + cd $(top_srcdir) && $(AUTOMAKE) --gnu src/br2684/Makefile
  28062. +
  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. +
  28067. +
  28068. +mostlyclean-sbinPROGRAMS:
  28069. +
  28070. +clean-sbinPROGRAMS:
  28071. + -test -z "$(sbin_PROGRAMS)" || rm -f $(sbin_PROGRAMS)
  28072. +
  28073. +distclean-sbinPROGRAMS:
  28074. +
  28075. +maintainer-clean-sbinPROGRAMS:
  28076. +
  28077. +install-sbinPROGRAMS: $(sbin_PROGRAMS)
  28078. + @$(NORMAL_INSTALL)
  28079. + $(mkinstalldirs) $(DESTDIR)$(sbindir)
  28080. + @list='$(sbin_PROGRAMS)'; for p in $$list; do \
  28081. + if test -f $$p; then \
  28082. + echo " $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(DESTDIR)$(sbindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \
  28083. + $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(DESTDIR)$(sbindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
  28084. + else :; fi; \
  28085. + done
  28086. +
  28087. +uninstall-sbinPROGRAMS:
  28088. + @$(NORMAL_UNINSTALL)
  28089. + list='$(sbin_PROGRAMS)'; for p in $$list; do \
  28090. + rm -f $(DESTDIR)$(sbindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
  28091. + done
  28092. +
  28093. +# FIXME: We should only use cygpath when building on Windows,
  28094. +# and only if it is available.
  28095. +.c.obj:
  28096. + $(COMPILE) -c `cygpath -w $<`
  28097. +
  28098. +.s.o:
  28099. + $(COMPILE) -c $<
  28100. +
  28101. +.S.o:
  28102. + $(COMPILE) -c $<
  28103. +
  28104. +mostlyclean-compile:
  28105. + -rm -f *.o core *.core
  28106. + -rm -f *.$(OBJEXT)
  28107. +
  28108. +clean-compile:
  28109. +
  28110. +distclean-compile:
  28111. + -rm -f *.tab.c
  28112. +
  28113. +maintainer-clean-compile:
  28114. +
  28115. +.s.lo:
  28116. + $(LIBTOOL) --mode=compile $(COMPILE) -c $<
  28117. +
  28118. +.S.lo:
  28119. + $(LIBTOOL) --mode=compile $(COMPILE) -c $<
  28120. +
  28121. +mostlyclean-libtool:
  28122. + -rm -f *.lo
  28123. +
  28124. +clean-libtool:
  28125. + -rm -rf .libs _libs
  28126. +
  28127. +distclean-libtool:
  28128. +
  28129. +maintainer-clean-libtool:
  28130. +
  28131. +br2684ctl$(EXEEXT): $(br2684ctl_OBJECTS) $(br2684ctl_DEPENDENCIES)
  28132. + @rm -f br2684ctl$(EXEEXT)
  28133. + $(LINK) $(br2684ctl_LDFLAGS) $(br2684ctl_OBJECTS) $(br2684ctl_LDADD) $(LIBS)
  28134. +
  28135. +install-man8:
  28136. + $(mkinstalldirs) $(DESTDIR)$(man8dir)
  28137. + @list='$(man8_MANS)'; \
  28138. + l2='$(man_MANS)'; for i in $$l2; do \
  28139. + case "$$i" in \
  28140. + *.8*) list="$$list $$i" ;; \
  28141. + esac; \
  28142. + done; \
  28143. + for i in $$list; do \
  28144. + if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
  28145. + else file=$$i; fi; \
  28146. + ext=`echo $$i | sed -e 's/^.*\\.//'`; \
  28147. + inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
  28148. + inst=`echo $$inst | sed '$(transform)'`.$$ext; \
  28149. + echo " $(INSTALL_DATA) $$file $(DESTDIR)$(man8dir)/$$inst"; \
  28150. + $(INSTALL_DATA) $$file $(DESTDIR)$(man8dir)/$$inst; \
  28151. + done
  28152. +
  28153. +uninstall-man8:
  28154. + @list='$(man8_MANS)'; \
  28155. + l2='$(man_MANS)'; for i in $$l2; do \
  28156. + case "$$i" in \
  28157. + *.8*) list="$$list $$i" ;; \
  28158. + esac; \
  28159. + done; \
  28160. + for i in $$list; do \
  28161. + ext=`echo $$i | sed -e 's/^.*\\.//'`; \
  28162. + inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
  28163. + inst=`echo $$inst | sed '$(transform)'`.$$ext; \
  28164. + echo " rm -f $(DESTDIR)$(man8dir)/$$inst"; \
  28165. + rm -f $(DESTDIR)$(man8dir)/$$inst; \
  28166. + done
  28167. +install-man: $(MANS)
  28168. + @$(NORMAL_INSTALL)
  28169. + $(MAKE) $(AM_MAKEFLAGS) install-man8
  28170. +uninstall-man:
  28171. + @$(NORMAL_UNINSTALL)
  28172. + $(MAKE) $(AM_MAKEFLAGS) uninstall-man8
  28173. +
  28174. +tags: TAGS
  28175. +
  28176. +ID: $(HEADERS) $(SOURCES) $(LISP)
  28177. + list='$(SOURCES) $(HEADERS)'; \
  28178. + unique=`for i in $$list; do echo $$i; done | \
  28179. + awk ' { files[$$0] = 1; } \
  28180. + END { for (i in files) print i; }'`; \
  28181. + here=`pwd` && cd $(srcdir) \
  28182. + && mkid -f$$here/ID $$unique $(LISP)
  28183. +
  28184. +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP)
  28185. + tags=; \
  28186. + here=`pwd`; \
  28187. + list='$(SOURCES) $(HEADERS)'; \
  28188. + unique=`for i in $$list; do echo $$i; done | \
  28189. + awk ' { files[$$0] = 1; } \
  28190. + END { for (i in files) print i; }'`; \
  28191. + test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
  28192. + || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags $$unique $(LISP))
  28193. +
  28194. +mostlyclean-tags:
  28195. +
  28196. +clean-tags:
  28197. +
  28198. +distclean-tags:
  28199. + -rm -f TAGS ID
  28200. +
  28201. +maintainer-clean-tags:
  28202. +
  28203. +distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
  28204. +
  28205. +subdir = src/br2684
  28206. +
  28207. +distdir: $(DISTFILES)
  28208. + here=`cd $(top_builddir) && pwd`; \
  28209. + top_distdir=`cd $(top_distdir) && pwd`; \
  28210. + distdir=`cd $(distdir) && pwd`; \
  28211. + cd $(top_srcdir) \
  28212. + && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu src/br2684/Makefile
  28213. + @for file in $(DISTFILES); do \
  28214. + d=$(srcdir); \
  28215. + if test -d $$d/$$file; then \
  28216. + cp -pr $$d/$$file $(distdir)/$$file; \
  28217. + else \
  28218. + test -f $(distdir)/$$file \
  28219. + || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
  28220. + || cp -p $$d/$$file $(distdir)/$$file || :; \
  28221. + fi; \
  28222. + done
  28223. +
  28224. +DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
  28225. +
  28226. +-include $(DEP_FILES)
  28227. +
  28228. +mostlyclean-depend:
  28229. +
  28230. +clean-depend:
  28231. +
  28232. +distclean-depend:
  28233. + -rm -rf .deps
  28234. +
  28235. +maintainer-clean-depend:
  28236. +
  28237. +%.o: %.c
  28238. + @echo '$(COMPILE) -c $<'; \
  28239. + $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
  28240. + @-cp .deps/$(*F).pp .deps/$(*F).P; \
  28241. + tr ' ' '\012' < .deps/$(*F).pp \
  28242. + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
  28243. + >> .deps/$(*F).P; \
  28244. + rm .deps/$(*F).pp
  28245. +
  28246. +%.lo: %.c
  28247. + @echo '$(LTCOMPILE) -c $<'; \
  28248. + $(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
  28249. + @-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \
  28250. + < .deps/$(*F).pp > .deps/$(*F).P; \
  28251. + tr ' ' '\012' < .deps/$(*F).pp \
  28252. + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
  28253. + >> .deps/$(*F).P; \
  28254. + rm -f .deps/$(*F).pp
  28255. +info-am:
  28256. +info: info-am
  28257. +dvi-am:
  28258. +dvi: dvi-am
  28259. +check-am: all-am
  28260. +check: check-am
  28261. +installcheck-am:
  28262. +installcheck: installcheck-am
  28263. +install-exec-am: install-sbinPROGRAMS
  28264. +install-exec: install-exec-am
  28265. +
  28266. +install-data-am: install-man
  28267. +install-data: install-data-am
  28268. +
  28269. +install-am: all-am
  28270. + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
  28271. +install: install-am
  28272. +uninstall-am: uninstall-sbinPROGRAMS uninstall-man
  28273. +uninstall: uninstall-am
  28274. +all-am: Makefile $(PROGRAMS) $(MANS)
  28275. +all-redirect: all-am
  28276. +install-strip:
  28277. + $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
  28278. +installdirs:
  28279. + $(mkinstalldirs) $(DESTDIR)$(sbindir) $(DESTDIR)$(mandir)/man8
  28280. +
  28281. +
  28282. +mostlyclean-generic:
  28283. +
  28284. +clean-generic:
  28285. +
  28286. +distclean-generic:
  28287. + -rm -f Makefile $(CONFIG_CLEAN_FILES)
  28288. + -rm -f config.cache config.log stamp-h stamp-h[0-9]*
  28289. +
  28290. +maintainer-clean-generic:
  28291. +mostlyclean-am: mostlyclean-sbinPROGRAMS mostlyclean-compile \
  28292. + mostlyclean-libtool mostlyclean-tags mostlyclean-depend \
  28293. + mostlyclean-generic
  28294. +
  28295. +mostlyclean: mostlyclean-am
  28296. +
  28297. +clean-am: clean-sbinPROGRAMS clean-compile clean-libtool clean-tags \
  28298. + clean-depend clean-generic mostlyclean-am
  28299. +
  28300. +clean: clean-am
  28301. +
  28302. +distclean-am: distclean-sbinPROGRAMS distclean-compile \
  28303. + distclean-libtool distclean-tags distclean-depend \
  28304. + distclean-generic clean-am
  28305. + -rm -f libtool
  28306. +
  28307. +distclean: distclean-am
  28308. +
  28309. +maintainer-clean-am: maintainer-clean-sbinPROGRAMS \
  28310. + maintainer-clean-compile maintainer-clean-libtool \
  28311. + maintainer-clean-tags maintainer-clean-depend \
  28312. + maintainer-clean-generic distclean-am
  28313. + @echo "This command is intended for maintainers to use;"
  28314. + @echo "it deletes files that may require special tools to rebuild."
  28315. +
  28316. +maintainer-clean: maintainer-clean-am
  28317. +
  28318. +.PHONY: mostlyclean-sbinPROGRAMS distclean-sbinPROGRAMS \
  28319. +clean-sbinPROGRAMS maintainer-clean-sbinPROGRAMS uninstall-sbinPROGRAMS \
  28320. +install-sbinPROGRAMS mostlyclean-compile distclean-compile \
  28321. +clean-compile maintainer-clean-compile mostlyclean-libtool \
  28322. +distclean-libtool clean-libtool maintainer-clean-libtool install-man8 \
  28323. +uninstall-man8 install-man uninstall-man tags mostlyclean-tags \
  28324. +distclean-tags clean-tags maintainer-clean-tags distdir \
  28325. +mostlyclean-depend distclean-depend clean-depend \
  28326. +maintainer-clean-depend info-am info dvi-am dvi check check-am \
  28327. +installcheck-am installcheck install-exec-am install-exec \
  28328. +install-data-am install-data install-am install uninstall-am uninstall \
  28329. +all-redirect all-am all installdirs mostlyclean-generic \
  28330. +distclean-generic clean-generic maintainer-clean-generic clean \
  28331. +mostlyclean distclean maintainer-clean
  28332. +
  28333. +
  28334. +# Tell versions [3.59,3.63) of GNU make to not export all variables.
  28335. +# Otherwise a system limit (for SysV at least) may be exceeded.
  28336. +.NOEXPORT:
  28337. --- linux-atm-2.4.1.orig/src/br2684/br2684ctl.8
  28338. +++ linux-atm-2.4.1/src/br2684/br2684ctl.8
  28339. @@ -0,0 +1,74 @@
  28340. +.\"
  28341. +.TH br2684ctl 1 "7 Jul 2003"
  28342. +.SH NAME
  28343. +br2684ctl \- RFC1483/2684 Bridge Daemon
  28344. +.SH SYNOPSIS
  28345. +.B br2684ctl
  28346. +[
  28347. +.BI \-b
  28348. +] [[
  28349. +.BI \-c\ n
  28350. +] [
  28351. +.BI \-e\ 0|1
  28352. +] [
  28353. +.BI \-s\ sndbuf
  28354. +] [
  28355. +.BI \-a\ [itf].vpi.vci
  28356. +]] ...
  28357. +.SH PARAMETERS
  28358. +.TP 15
  28359. +.BI \-a\ [itf].vpi.vci
  28360. +ATM PVC number, VPI and VCI. (Required)
  28361. +.BI \-b
  28362. +Puts the process in the background.
  28363. +.TP 15
  28364. +.BI \-c\ n
  28365. +br2684 interface number such as 0, 1, ... (Required)
  28366. +.TP 15
  28367. +.BI \-e\ 0|1
  28368. +Encapsulation method: 0=LLC, 1=VC mux (the default is 0 or LLC)
  28369. +.TP 15
  28370. +.TP 15
  28371. +.BI \-s\ sndbuf
  28372. +Send buffer size. Default is 8192.
  28373. +.SH DESCRIPTION
  28374. +br2684ctl handles RFC1483/2684 bridged PDUs.
  28375. +This is most often used in ADSL scenarios where
  28376. +.I usually
  28377. +the subscribers'
  28378. +ethernet traffic is encapsulated in ATM AAL5 (by bridging ADSL modems)
  28379. +according to RFC2684.
  28380. +The subscriber-side ADSL modem can be external with an ethernet connector
  28381. +or an internal ADSL card in a PC.
  28382. +RFC1483 has been obsoleted by RFC2684.
  28383. +
  28384. +For example it is possible to set up your Linux box to handle several
  28385. +ATM PVC's with bridged-1483 (sometimes referred as SNAP) encapsulation.
  28386. +The Linux network stack might provide DHCP, IP masquerading, IP firewall services or
  28387. +bridge the Ethernet frames just like it had several ethernet interfaces.
  28388. +In fact it can have several (logical) ethernet interfaces, where
  28389. +ATM is just used as a carrier.
  28390. +.SH USAGE
  28391. +br2684ctl creates a new network interface named nas[n]
  28392. +which is bound to an specific ATM PVC. It requires two mandatory
  28393. +arguments: -c, the interface number, and -a, the ATM PVC. It should be
  28394. +noted that the order of the command arguments matter; -c should be
  28395. +followed by -a. You can create as many interfaces as necessary
  28396. +in one go, just make a long command line ;)
  28397. +
  28398. +For example, following command will create a nas0 interface which uses
  28399. +the ATM PVC with VPI=0 and VCI=401. You need to configure the PVC connection
  28400. +0.401 on the ATM switch manually.
  28401. +
  28402. +% br2684ctl -c 0 -a 0.401
  28403. +
  28404. +The command will only create a new interface nas0.
  28405. +Next step is to assign an IP address and netmask to
  28406. +the interface nas0 using the ifconfig command. Using ifconfig, you can
  28407. +also assign a Ethernet MAC address to the interface nas0, if necessary.
  28408. +
  28409. +% ifconfig nas0 192.168.2.1 netmask 255.255.255.0
  28410. +.SH NOTES
  28411. +This man page is based on a tutorial by by Joonbum Byun <jbyun@megaxess.com>
  28412. +.SH SEE ALSO
  28413. +.BR qos (7)
  28414. --- linux-atm-2.4.1.orig/doc/Makefile.in
  28415. +++ linux-atm-2.4.1/doc/Makefile.in
  28416. @@ -1,4 +1,4 @@
  28417. -# Makefile.in generated automatically by automake 1.4-p5 from Makefile.am
  28418. +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
  28419. # Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
  28420. # This Makefile.in is free software; the Free Software Foundation
  28421. @@ -96,14 +96,14 @@
  28422. DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
  28423. -TAR = gtar
  28424. +TAR = tar
  28425. GZIP_ENV = --best
  28426. all: all-redirect
  28427. .SUFFIXES:
  28428. $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
  28429. - cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps doc/Makefile
  28430. + cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/Makefile
  28431. -Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  28432. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
  28433. cd $(top_builddir) \
  28434. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
  28435. @@ -116,6 +116,11 @@
  28436. subdir = doc
  28437. distdir: $(DISTFILES)
  28438. + here=`cd $(top_builddir) && pwd`; \
  28439. + top_distdir=`cd $(top_distdir) && pwd`; \
  28440. + distdir=`cd $(distdir) && pwd`; \
  28441. + cd $(top_srcdir) \
  28442. + && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu doc/Makefile
  28443. @for file in $(DISTFILES); do \
  28444. d=$(srcdir); \
  28445. if test -d $$d/$$file; then \
  28446. --- linux-atm-2.4.1.orig/debian/patches/00list
  28447. +++ linux-atm-2.4.1/debian/patches/00list
  28448. @@ -0,0 +1 @@
  28449. +10_atmbr2684.h
  28450. --- linux-atm-2.4.1.orig/debian/patches/10_atmbr2684.h.dpatch
  28451. +++ linux-atm-2.4.1/debian/patches/10_atmbr2684.h.dpatch
  28452. @@ -0,0 +1,598 @@
  28453. +#! /bin/sh -e
  28454. +## 01_kernel-header.dpatch by <bengen+debian@hilluzination.de>
  28455. +##
  28456. +## All lines beginning with ## DP:' are a description of the patch.
  28457. +## DP: add header file atmbr2684.h
  28458. +
  28459. +if [ -e /usr/include/linux/atmbr2684.h ]; then exit 0; fi
  28460. +
  28461. +if [ $# -ne 1 ]; then
  28462. + echo "basename $0: script expects -patch|-unpatch as argument" >&2
  28463. + exit 1
  28464. +fi
  28465. +case "$1" in
  28466. + -patch) patch -f --no-backup-if-mismatch -p1 < $0;;
  28467. + -unpatch) patch -f --no-backup-if-mismatch -E -R -p1 < $0;;
  28468. + *)
  28469. + echo "basename $0: script expects -patch|-unpatch as argument" >&2
  28470. + exit 1;;
  28471. +esac
  28472. +
  28473. +exit 0
  28474. +@DPATCH@
  28475. +
  28476. +--- linux-atm.orig/src/include/linux/atmbr2684.h
  28477. ++++ linux-atm/src/include/linux/atmbr2684.h
  28478. +@@ -0,0 +1,101 @@
  28479. ++#ifndef _LINUX_ATMBR2684_H
  28480. ++#define _LINUX_ATMBR2684_H
  28481. ++
  28482. ++#include <linux/atm.h>
  28483. ++#include <linux/if.h> /* For IFNAMSIZ */
  28484. ++
  28485. ++/*
  28486. ++ * Type of media we're bridging (ethernet, token ring, etc) Currently only
  28487. ++ * ethernet is supported
  28488. ++ */
  28489. ++#define BR2684_MEDIA_ETHERNET (0) /* 802.3 */
  28490. ++#define BR2684_MEDIA_802_4 (1) /* 802.4 */
  28491. ++#define BR2684_MEDIA_TR (2) /* 802.5 - token ring */
  28492. ++#define BR2684_MEDIA_FDDI (3)
  28493. ++#define BR2684_MEDIA_802_6 (4) /* 802.6 */
  28494. ++
  28495. ++/*
  28496. ++ * Is there FCS inbound on this VC? This currently isn't supported.
  28497. ++ */
  28498. ++#define BR2684_FCSIN_NO (0)
  28499. ++#define BR2684_FCSIN_IGNORE (1)
  28500. ++#define BR2684_FCSIN_VERIFY (2)
  28501. ++
  28502. ++/*
  28503. ++ * Is there FCS outbound on this VC? This currently isn't supported.
  28504. ++ */
  28505. ++#define BR2684_FCSOUT_NO (0)
  28506. ++#define BR2684_FCSOUT_SENDZERO (1)
  28507. ++#define BR2684_FCSOUT_GENERATE (2)
  28508. ++
  28509. ++/*
  28510. ++ * Does this VC include LLC encapsulation?
  28511. ++ */
  28512. ++#define BR2684_ENCAPS_VC (0) /* VC-mux */
  28513. ++#define BR2684_ENCAPS_LLC (1)
  28514. ++#define BR2684_ENCAPS_AUTODETECT (2) /* Unsuported */
  28515. ++
  28516. ++/*
  28517. ++ * This is for the ATM_NEWBACKENDIF call - these are like socket families:
  28518. ++ * the first element of the structure is the backend number and the rest
  28519. ++ * is per-backend specific
  28520. ++ */
  28521. ++struct atm_newif_br2684 {
  28522. ++ atm_backend_t backend_num; /* ATM_BACKEND_BR2684 */
  28523. ++ int media; /* BR2684_MEDIA_* */
  28524. ++ char ifname[IFNAMSIZ];
  28525. ++ int mtu;
  28526. ++};
  28527. ++
  28528. ++/*
  28529. ++ * This structure is used to specify a br2684 interface - either by a
  28530. ++ * positive integer (returned by ATM_NEWBACKENDIF) or the interfaces name
  28531. ++ */
  28532. ++#define BR2684_FIND_BYNOTHING (0)
  28533. ++#define BR2684_FIND_BYNUM (1)
  28534. ++#define BR2684_FIND_BYIFNAME (2)
  28535. ++struct br2684_if_spec {
  28536. ++ int method; /* BR2684_FIND_* */
  28537. ++ union {
  28538. ++ char ifname[IFNAMSIZ];
  28539. ++ int devnum;
  28540. ++ } spec;
  28541. ++};
  28542. ++
  28543. ++/*
  28544. ++ * This is for the ATM_SETBACKEND call - these are like socket families:
  28545. ++ * the first element of the structure is the backend number and the rest
  28546. ++ * is per-backend specific
  28547. ++ */
  28548. ++struct atm_backend_br2684 {
  28549. ++ atm_backend_t backend_num; /* ATM_BACKEND_BR2684 */
  28550. ++ struct br2684_if_spec ifspec;
  28551. ++ int fcs_in; /* BR2684_FCSIN_* */
  28552. ++ int fcs_out; /* BR2684_FCSOUT_* */
  28553. ++ int fcs_auto; /* 1: fcs_{in,out} disabled if no FCS rx'ed */
  28554. ++ int encaps; /* BR2684_ENCAPS_* */
  28555. ++ int has_vpiid; /* 1: use vpn_id - Unsupported */
  28556. ++ __u8 vpn_id[7];
  28557. ++ int send_padding; /* unsupported */
  28558. ++ int min_size; /* we will pad smaller packets than this */
  28559. ++};
  28560. ++
  28561. ++/*
  28562. ++ * The BR2684_SETFILT ioctl is an experimental mechanism for folks
  28563. ++ * terminating a large number of IP-only vcc's. When netfilter allows
  28564. ++ * efficient per-if in/out filters, this support will be removed
  28565. ++ */
  28566. ++struct br2684_filter {
  28567. ++ __u32 prefix; /* network byte order */
  28568. ++ __u32 netmask; /* 0 = disable filter */
  28569. ++};
  28570. ++
  28571. ++struct br2684_filter_set {
  28572. ++ struct br2684_if_spec ifspec;
  28573. ++ struct br2684_filter filter;
  28574. ++};
  28575. ++
  28576. ++#define BR2684_SETFILT _IOW( 'a', ATMIOC_BACKEND + 0, \
  28577. ++ struct br2684_filter_set)
  28578. ++
  28579. ++#endif /* _LINUX_ATMBR2684_H */
  28580. +--- linux-atm.orig/src/include/linux/atmdev.h
  28581. ++++ linux-atm/src/include/linux/atmdev.h
  28582. +@@ -0,0 +1,468 @@
  28583. ++/* atmdev.h - ATM device driver declarations and various related items */
  28584. ++
  28585. ++/* Written 1995-2000 by Werner Almesberger, EPFL LRC/ICA */
  28586. ++
  28587. ++
  28588. ++#ifndef LINUX_ATMDEV_H
  28589. ++#define LINUX_ATMDEV_H
  28590. ++
  28591. ++
  28592. ++#include <linux/config.h>
  28593. ++#include <linux/atmapi.h>
  28594. ++#include <linux/atm.h>
  28595. ++#include <linux/atmioc.h>
  28596. ++
  28597. ++
  28598. ++#define ESI_LEN 6
  28599. ++
  28600. ++#define ATM_OC3_PCR (155520000/270*260/8/53)
  28601. ++ /* OC3 link rate: 155520000 bps
  28602. ++ SONET overhead: /270*260 (9 section, 1 path)
  28603. ++ bits per cell: /8/53
  28604. ++ max cell rate: 353207.547 cells/sec */
  28605. ++#define ATM_25_PCR ((25600000/8-8000)/54)
  28606. ++ /* 25 Mbps ATM cell rate (59111) */
  28607. ++#define ATM_OC12_PCR (622080000/1080*1040/8/53)
  28608. ++ /* OC12 link rate: 622080000 bps
  28609. ++ SONET overhead: /1080*1040
  28610. ++ bits per cell: /8/53
  28611. ++ max cell rate: 1412830.188 cells/sec */
  28612. ++#define ATM_DS3_PCR (8000*12)
  28613. ++ /* DS3: 12 cells in a 125 usec time slot */
  28614. ++
  28615. ++#define ATM_SD(s) ((s)->sk->protinfo.af_atm)
  28616. ++
  28617. ++
  28618. ++#define __AAL_STAT_ITEMS \
  28619. ++ __HANDLE_ITEM(tx); /* TX okay */ \
  28620. ++ __HANDLE_ITEM(tx_err); /* TX errors */ \
  28621. ++ __HANDLE_ITEM(rx); /* RX okay */ \
  28622. ++ __HANDLE_ITEM(rx_err); /* RX errors */ \
  28623. ++ __HANDLE_ITEM(rx_drop); /* RX out of memory */
  28624. ++
  28625. ++struct atm_aal_stats {
  28626. ++#define __HANDLE_ITEM(i) int i
  28627. ++ __AAL_STAT_ITEMS
  28628. ++#undef __HANDLE_ITEM
  28629. ++};
  28630. ++
  28631. ++
  28632. ++struct atm_dev_stats {
  28633. ++ struct atm_aal_stats aal0;
  28634. ++ struct atm_aal_stats aal34;
  28635. ++ struct atm_aal_stats aal5;
  28636. ++} __ATM_API_ALIGN;
  28637. ++
  28638. ++
  28639. ++#define ATM_GETLINKRATE _IOW('a',ATMIOC_ITF+1,struct atmif_sioc)
  28640. ++ /* get link rate */
  28641. ++#define ATM_GETNAMES _IOW('a',ATMIOC_ITF+3,struct atm_iobuf)
  28642. ++ /* get interface names (numbers) */
  28643. ++#define ATM_GETTYPE _IOW('a',ATMIOC_ITF+4,struct atmif_sioc)
  28644. ++ /* get interface type name */
  28645. ++#define ATM_GETESI _IOW('a',ATMIOC_ITF+5,struct atmif_sioc)
  28646. ++ /* get interface ESI */
  28647. ++#define ATM_GETADDR _IOW('a',ATMIOC_ITF+6,struct atmif_sioc)
  28648. ++ /* get itf's local ATM addr. list */
  28649. ++#define ATM_RSTADDR _IOW('a',ATMIOC_ITF+7,struct atmif_sioc)
  28650. ++ /* reset itf's ATM address list */
  28651. ++#define ATM_ADDADDR _IOW('a',ATMIOC_ITF+8,struct atmif_sioc)
  28652. ++ /* add a local ATM address */
  28653. ++#define ATM_DELADDR _IOW('a',ATMIOC_ITF+9,struct atmif_sioc)
  28654. ++ /* remove a local ATM address */
  28655. ++#define ATM_GETCIRANGE _IOW('a',ATMIOC_ITF+10,struct atmif_sioc)
  28656. ++ /* get connection identifier range */
  28657. ++#define ATM_SETCIRANGE _IOW('a',ATMIOC_ITF+11,struct atmif_sioc)
  28658. ++ /* set connection identifier range */
  28659. ++#define ATM_SETESI _IOW('a',ATMIOC_ITF+12,struct atmif_sioc)
  28660. ++ /* set interface ESI */
  28661. ++#define ATM_SETESIF _IOW('a',ATMIOC_ITF+13,struct atmif_sioc)
  28662. ++ /* force interface ESI */
  28663. ++#define ATM_GETSTAT _IOW('a',ATMIOC_SARCOM+0,struct atmif_sioc)
  28664. ++ /* get AAL layer statistics */
  28665. ++#define ATM_GETSTATZ _IOW('a',ATMIOC_SARCOM+1,struct atmif_sioc)
  28666. ++ /* get AAL layer statistics and zero */
  28667. ++#define ATM_GETLOOP _IOW('a',ATMIOC_SARCOM+2,struct atmif_sioc)
  28668. ++ /* get loopback mode */
  28669. ++#define ATM_SETLOOP _IOW('a',ATMIOC_SARCOM+3,struct atmif_sioc)
  28670. ++ /* set loopback mode */
  28671. ++#define ATM_QUERYLOOP _IOW('a',ATMIOC_SARCOM+4,struct atmif_sioc)
  28672. ++ /* query supported loopback modes */
  28673. ++#define ATM_SETSC _IOW('a',ATMIOC_SPECIAL+1,int)
  28674. ++ /* enable or disable single-copy */
  28675. ++#define ATM_SETBACKEND _IOW('a',ATMIOC_SPECIAL+2,atm_backend_t)
  28676. ++ /* set backend handler */
  28677. ++#define ATM_NEWBACKENDIF _IOW('a',ATMIOC_SPECIAL+3,atm_backend_t)
  28678. ++ /* use backend to make new if */
  28679. ++
  28680. ++/*
  28681. ++ * These are backend handkers that can be set via the ATM_SETBACKEND call
  28682. ++ * above. In the future we may support dynamic loading of these - for now,
  28683. ++ * they're just being used to share the ATMIOC_BACKEND ioctls
  28684. ++ */
  28685. ++#define ATM_BACKEND_RAW 0
  28686. ++#define ATM_BACKEND_PPP 1 /* PPPoATM - RFC2364 */
  28687. ++#define ATM_BACKEND_BR2684 2 /* Bridged RFC1483/2684 */
  28688. ++
  28689. ++/* for ATM_GETTYPE */
  28690. ++#define ATM_ITFTYP_LEN 8 /* maximum length of interface type name */
  28691. ++
  28692. ++/*
  28693. ++ * Loopback modes for ATM_{PHY,SAR}_{GET,SET}LOOP
  28694. ++ */
  28695. ++
  28696. ++/* Point of loopback CPU-->SAR-->PHY-->line--> ... */
  28697. ++#define __ATM_LM_NONE 0 /* no loop back ^ ^ ^ ^ */
  28698. ++#define __ATM_LM_AAL 1 /* loop back PDUs --' | | | */
  28699. ++#define __ATM_LM_ATM 2 /* loop back ATM cells ---' | | */
  28700. ++/* RESERVED 4 loop back on PHY side ---' */
  28701. ++#define __ATM_LM_PHY 8 /* loop back bits (digital) ----' | */
  28702. ++#define __ATM_LM_ANALOG 16 /* loop back the analog signal --------' */
  28703. ++
  28704. ++/* Direction of loopback */
  28705. ++#define __ATM_LM_MKLOC(n) ((n)) /* Local (i.e. loop TX to RX) */
  28706. ++#define __ATM_LM_MKRMT(n) ((n) << 8) /* Remote (i.e. loop RX to TX) */
  28707. ++
  28708. ++#define __ATM_LM_XTLOC(n) ((n) & 0xff)
  28709. ++#define __ATM_LM_XTRMT(n) (((n) >> 8) & 0xff)
  28710. ++
  28711. ++#define ATM_LM_NONE 0 /* no loopback */
  28712. ++
  28713. ++#define ATM_LM_LOC_AAL __ATM_LM_MKLOC(__ATM_LM_AAL)
  28714. ++#define ATM_LM_LOC_ATM __ATM_LM_MKLOC(__ATM_LM_ATM)
  28715. ++#define ATM_LM_LOC_PHY __ATM_LM_MKLOC(__ATM_LM_PHY)
  28716. ++#define ATM_LM_LOC_ANALOG __ATM_LM_MKLOC(__ATM_LM_ANALOG)
  28717. ++
  28718. ++#define ATM_LM_RMT_AAL __ATM_LM_MKRMT(__ATM_LM_AAL)
  28719. ++#define ATM_LM_RMT_ATM __ATM_LM_MKRMT(__ATM_LM_ATM)
  28720. ++#define ATM_LM_RMT_PHY __ATM_LM_MKRMT(__ATM_LM_PHY)
  28721. ++#define ATM_LM_RMT_ANALOG __ATM_LM_MKRMT(__ATM_LM_ANALOG)
  28722. ++
  28723. ++/*
  28724. ++ * Note: ATM_LM_LOC_* and ATM_LM_RMT_* can be combined, provided that
  28725. ++ * __ATM_LM_XTLOC(x) <= __ATM_LM_XTRMT(x)
  28726. ++ */
  28727. ++
  28728. ++
  28729. ++struct atm_iobuf {
  28730. ++ int length;
  28731. ++ void *buffer;
  28732. ++};
  28733. ++
  28734. ++/* for ATM_GETCIRANGE / ATM_SETCIRANGE */
  28735. ++
  28736. ++#define ATM_CI_MAX -1 /* use maximum range of VPI/VCI */
  28737. ++
  28738. ++struct atm_cirange {
  28739. ++ char vpi_bits; /* 1..8, ATM_CI_MAX (-1) for maximum */
  28740. ++ char vci_bits; /* 1..16, ATM_CI_MAX (-1) for maximum */
  28741. ++};
  28742. ++
  28743. ++/* for ATM_SETSC; actually taken from the ATM_VF number space */
  28744. ++
  28745. ++#define ATM_SC_RX 1024 /* enable RX single-copy */
  28746. ++#define ATM_SC_TX 2048 /* enable TX single-copy */
  28747. ++
  28748. ++#define ATM_BACKLOG_DEFAULT 32 /* if we get more, we're likely to time out
  28749. ++ anyway */
  28750. ++
  28751. ++/* MF: change_qos (Modify) flags */
  28752. ++
  28753. ++#define ATM_MF_IMMED 1 /* Block until change is effective */
  28754. ++#define ATM_MF_INC_RSV 2 /* Change reservation on increase */
  28755. ++#define ATM_MF_INC_SHP 4 /* Change shaping on increase */
  28756. ++#define ATM_MF_DEC_RSV 8 /* Change reservation on decrease */
  28757. ++#define ATM_MF_DEC_SHP 16 /* Change shaping on decrease */
  28758. ++#define ATM_MF_BWD 32 /* Set the backward direction parameters */
  28759. ++
  28760. ++#define ATM_MF_SET (ATM_MF_INC_RSV | ATM_MF_INC_SHP | ATM_MF_DEC_RSV | \
  28761. ++ ATM_MF_DEC_SHP | ATM_MF_BWD)
  28762. ++
  28763. ++/*
  28764. ++ * ATM_VS_* are used to express VC state in a human-friendly way.
  28765. ++ */
  28766. ++
  28767. ++#define ATM_VS_IDLE 0 /* VC is not used */
  28768. ++#define ATM_VS_CONNECTED 1 /* VC is connected */
  28769. ++#define ATM_VS_CLOSING 2 /* VC is closing */
  28770. ++#define ATM_VS_LISTEN 3 /* VC is listening for incoming setups */
  28771. ++#define ATM_VS_INUSE 4 /* VC is in use (registered with atmsigd) */
  28772. ++#define ATM_VS_BOUND 5 /* VC is bound */
  28773. ++
  28774. ++#define ATM_VS2TXT_MAP \
  28775. ++ "IDLE", "CONNECTED", "CLOSING", "LISTEN", "INUSE", "BOUND"
  28776. ++
  28777. ++#define ATM_VF2TXT_MAP \
  28778. ++ "ADDR", "READY", "PARTIAL", "REGIS", \
  28779. ++ "RELEASED", "HASQOS", "LISTEN", "META", \
  28780. ++ "256", "512", "1024", "2048", \
  28781. ++ "SESSION", "HASSAP", "BOUND", "CLOSE"
  28782. ++
  28783. ++
  28784. ++#ifndef __KERNEL__
  28785. ++#undef __AAL_STAT_ITEMS
  28786. ++#else
  28787. ++
  28788. ++#include <linux/sched.h> /* wait_queue_head_t */
  28789. ++#include <linux/time.h> /* struct timeval */
  28790. ++#include <linux/net.h>
  28791. ++#include <linux/skbuff.h> /* struct sk_buff */
  28792. ++#include <linux/uio.h>
  28793. ++#include <net/sock.h>
  28794. ++#include <asm/atomic.h>
  28795. ++
  28796. ++#ifdef CONFIG_PROC_FS
  28797. ++#include <linux/proc_fs.h>
  28798. ++#endif
  28799. ++
  28800. ++
  28801. ++struct k_atm_aal_stats {
  28802. ++#define __HANDLE_ITEM(i) atomic_t i
  28803. ++ __AAL_STAT_ITEMS
  28804. ++#undef __HANDLE_ITEM
  28805. ++};
  28806. ++
  28807. ++
  28808. ++struct k_atm_dev_stats {
  28809. ++ struct k_atm_aal_stats aal0;
  28810. ++ struct k_atm_aal_stats aal34;
  28811. ++ struct k_atm_aal_stats aal5;
  28812. ++};
  28813. ++
  28814. ++
  28815. ++enum {
  28816. ++ ATM_VF_ADDR, /* Address is in use. Set by anybody, cleared
  28817. ++ by device driver. */
  28818. ++ ATM_VF_READY, /* VC is ready to transfer data. Set by device
  28819. ++ driver, cleared by anybody. */
  28820. ++ ATM_VF_PARTIAL, /* resources are bound to PVC (partial PVC
  28821. ++ setup), controlled by socket layer */
  28822. ++ ATM_VF_REGIS, /* registered with demon, controlled by SVC
  28823. ++ socket layer */
  28824. ++ ATM_VF_BOUND, /* local SAP is set, controlled by SVC socket
  28825. ++ layer */
  28826. ++ ATM_VF_RELEASED, /* demon has indicated/requested release,
  28827. ++ controlled by SVC socket layer */
  28828. ++ ATM_VF_HASQOS, /* QOS parameters have been set */
  28829. ++ ATM_VF_LISTEN, /* socket is used for listening */
  28830. ++ ATM_VF_META, /* SVC socket isn't used for normal data
  28831. ++ traffic and doesn't depend on signaling
  28832. ++ to be available */
  28833. ++ ATM_VF_SESSION, /* VCC is p2mp session control descriptor */
  28834. ++ ATM_VF_HASSAP, /* SAP has been set */
  28835. ++ ATM_VF_CLOSE, /* asynchronous close - treat like VF_RELEASED*/
  28836. ++};
  28837. ++
  28838. ++
  28839. ++#define ATM_VF2VS(flags) \
  28840. ++ (test_bit(ATM_VF_READY,&(flags)) ? ATM_VS_CONNECTED : \
  28841. ++ test_bit(ATM_VF_RELEASED,&(flags)) ? ATM_VS_CLOSING : \
  28842. ++ test_bit(ATM_VF_LISTEN,&(flags)) ? ATM_VS_LISTEN : \
  28843. ++ test_bit(ATM_VF_REGIS,&(flags)) ? ATM_VS_INUSE : \
  28844. ++ test_bit(ATM_VF_BOUND,&(flags)) ? ATM_VS_BOUND : ATM_VS_IDLE)
  28845. ++
  28846. ++
  28847. ++enum {
  28848. ++ ATM_DF_CLOSE, /* close device when last VCC is closed */
  28849. ++};
  28850. ++
  28851. ++
  28852. ++#define ATM_PHY_SIG_LOST 0 /* no carrier/light */
  28853. ++#define ATM_PHY_SIG_UNKNOWN 1 /* carrier/light status is unknown */
  28854. ++#define ATM_PHY_SIG_FOUND 2 /* carrier/light okay */
  28855. ++
  28856. ++#define ATM_ATMOPT_CLP 1 /* set CLP bit */
  28857. ++
  28858. ++
  28859. ++typedef struct { unsigned long bits; } atm_vcc_flags_t;
  28860. ++
  28861. ++
  28862. ++struct atm_vcc {
  28863. ++ atm_vcc_flags_t flags; /* VCC flags (ATM_VF_*) */
  28864. ++ short vpi; /* VPI and VCI (types must be equal */
  28865. ++ /* with sockaddr) */
  28866. ++ int vci;
  28867. ++ unsigned long aal_options; /* AAL layer options */
  28868. ++ unsigned long atm_options; /* ATM layer options */
  28869. ++ struct atm_dev *dev; /* device back pointer */
  28870. ++ struct atm_qos qos; /* QOS */
  28871. ++ struct atm_sap sap; /* SAP */
  28872. ++ void (*push)(struct atm_vcc *vcc,struct sk_buff *skb);
  28873. ++ void (*pop)(struct atm_vcc *vcc,struct sk_buff *skb); /* optional */
  28874. ++ int (*push_oam)(struct atm_vcc *vcc,void *cell);
  28875. ++ int (*send)(struct atm_vcc *vcc,struct sk_buff *skb);
  28876. ++ void *dev_data; /* per-device data */
  28877. ++ void *proto_data; /* per-protocol data */
  28878. ++ struct k_atm_aal_stats *stats; /* pointer to AAL stats group */
  28879. ++ wait_queue_head_t sleep; /* if socket is busy */
  28880. ++ struct sock *sk; /* socket backpointer */
  28881. ++ struct atm_vcc *prev,*next;
  28882. ++ /* SVC part --- may move later ------------------------------------- */
  28883. ++ short itf; /* interface number */
  28884. ++ struct sockaddr_atmsvc local;
  28885. ++ struct sockaddr_atmsvc remote;
  28886. ++ void (*callback)(struct atm_vcc *vcc);
  28887. ++ struct sk_buff_head listenq;
  28888. ++ int backlog_quota; /* number of connection requests we */
  28889. ++ /* can still accept */
  28890. ++ int reply; /* also used by ATMTCP */
  28891. ++ /* Multipoint part ------------------------------------------------- */
  28892. ++ struct atm_vcc *session; /* session VCC descriptor */
  28893. ++ /* Other stuff ----------------------------------------------------- */
  28894. ++ void *user_back; /* user backlink - not touched by */
  28895. ++ /* native ATM stack. Currently used */
  28896. ++ /* by CLIP and sch_atm. */
  28897. ++};
  28898. ++
  28899. ++
  28900. ++struct atm_dev_addr {
  28901. ++ struct sockaddr_atmsvc addr; /* ATM address */
  28902. ++ struct atm_dev_addr *next; /* next address */
  28903. ++};
  28904. ++
  28905. ++
  28906. ++typedef struct { unsigned int bits; } atm_dev_flags_t;
  28907. ++
  28908. ++
  28909. ++struct atm_dev {
  28910. ++ const struct atmdev_ops *ops; /* device operations; NULL if unused */
  28911. ++ const struct atmphy_ops *phy; /* PHY operations, may be undefined */
  28912. ++ /* (NULL) */
  28913. ++ const char *type; /* device type name */
  28914. ++ int number; /* device index */
  28915. ++ struct atm_vcc *vccs; /* VCC table (or NULL) */
  28916. ++ struct atm_vcc *last; /* last VCC (or undefined) */
  28917. ++ void *dev_data; /* per-device data */
  28918. ++ void *phy_data; /* private PHY date */
  28919. ++ atm_dev_flags_t flags; /* device flags (ATM_DF_*) */
  28920. ++ struct atm_dev_addr *local; /* local ATM addresses */
  28921. ++ unsigned char esi[ESI_LEN]; /* ESI ("MAC" addr) */
  28922. ++ struct atm_cirange ci_range; /* VPI/VCI range */
  28923. ++ struct k_atm_dev_stats stats; /* statistics */
  28924. ++ char signal; /* signal status (ATM_PHY_SIG_*) */
  28925. ++ int link_rate; /* link rate (default: OC3) */
  28926. ++ atomic_t refcnt; /* reference count */
  28927. ++ spinlock_t lock; /* protect internal members */
  28928. ++#ifdef CONFIG_PROC_FS
  28929. ++ struct proc_dir_entry *proc_entry; /* proc entry */
  28930. ++ char *proc_name; /* proc entry name */
  28931. ++#endif
  28932. ++ struct list_head dev_list; /* linkage */
  28933. ++};
  28934. ++
  28935. ++
  28936. ++/*
  28937. ++ * ioctl, getsockopt, setsockopt, and sg_send are optional and can be set to
  28938. ++ * NULL. */
  28939. ++
  28940. ++/* OF: send_Oam Flags */
  28941. ++
  28942. ++#define ATM_OF_IMMED 1 /* Attempt immediate delivery */
  28943. ++#define ATM_OF_INRATE 2 /* Attempt in-rate delivery */
  28944. ++
  28945. ++struct atmdev_ops { /* only send is required */
  28946. ++ void (*dev_close)(struct atm_dev *dev);
  28947. ++ int (*open)(struct atm_vcc *vcc,short vpi,int vci);
  28948. ++ void (*close)(struct atm_vcc *vcc);
  28949. ++ int (*ioctl)(struct atm_dev *dev,unsigned int cmd,void *arg);
  28950. ++ int (*getsockopt)(struct atm_vcc *vcc,int level,int optname,
  28951. ++ void *optval,int optlen);
  28952. ++ int (*setsockopt)(struct atm_vcc *vcc,int level,int optname,
  28953. ++ void *optval,int optlen);
  28954. ++ int (*send)(struct atm_vcc *vcc,struct sk_buff *skb);
  28955. ++ int (*sg_send)(struct atm_vcc *vcc,unsigned long start,
  28956. ++ unsigned long size);
  28957. ++#if 0 /* keep the current hack for now */
  28958. ++ int (*send_iovec)(struct atm_vcc *vcc,struct iovec *iov,int size,
  28959. ++ void (*discard)(struct atm_vcc *vcc,void *user),void *user);
  28960. ++#endif
  28961. ++ int (*send_oam)(struct atm_vcc *vcc,void *cell,int flags);
  28962. ++ void (*phy_put)(struct atm_dev *dev,unsigned char value,
  28963. ++ unsigned long addr);
  28964. ++ unsigned char (*phy_get)(struct atm_dev *dev,unsigned long addr);
  28965. ++ void (*feedback)(struct atm_vcc *vcc,struct sk_buff *skb,
  28966. ++ unsigned long start,unsigned long dest,int len);
  28967. ++ int (*change_qos)(struct atm_vcc *vcc,struct atm_qos *qos,int flags);
  28968. ++ int (*proc_read)(struct atm_dev *dev,loff_t *pos,char *page);
  28969. ++ struct module *owner;
  28970. ++};
  28971. ++
  28972. ++
  28973. ++struct atmphy_ops {
  28974. ++ int (*start)(struct atm_dev *dev);
  28975. ++ int (*ioctl)(struct atm_dev *dev,unsigned int cmd,void *arg);
  28976. ++ void (*interrupt)(struct atm_dev *dev);
  28977. ++ int (*stop)(struct atm_dev *dev);
  28978. ++};
  28979. ++
  28980. ++struct atm_skb_data {
  28981. ++ struct atm_vcc *vcc; /* ATM VCC */
  28982. ++ unsigned long atm_options; /* ATM layer options */
  28983. ++};
  28984. ++
  28985. ++#define ATM_SKB(skb) (((struct atm_skb_data *) (skb)->cb))
  28986. ++
  28987. ++struct atm_dev *atm_dev_register(const char *type,const struct atmdev_ops *ops,
  28988. ++ int number,atm_dev_flags_t *flags); /* number == -1: pick first available */
  28989. ++struct atm_dev *atm_dev_lookup(int number);
  28990. ++void atm_dev_deregister(struct atm_dev *dev);
  28991. ++void shutdown_atm_dev(struct atm_dev *dev);
  28992. ++void bind_vcc(struct atm_vcc *vcc,struct atm_dev *dev);
  28993. ++
  28994. ++
  28995. ++/*
  28996. ++ * This is approximately the algorithm used by alloc_skb.
  28997. ++ *
  28998. ++ */
  28999. ++
  29000. ++static inline int atm_guess_pdu2truesize(int pdu_size)
  29001. ++{
  29002. ++ return ((pdu_size+15) & ~15) + sizeof(struct sk_buff);
  29003. ++}
  29004. ++
  29005. ++
  29006. ++static inline void atm_force_charge(struct atm_vcc *vcc,int truesize)
  29007. ++{
  29008. ++ atomic_add(truesize, &vcc->sk->rmem_alloc);
  29009. ++}
  29010. ++
  29011. ++
  29012. ++static inline void atm_return(struct atm_vcc *vcc,int truesize)
  29013. ++{
  29014. ++ atomic_sub(truesize, &vcc->sk->rmem_alloc);
  29015. ++}
  29016. ++
  29017. ++
  29018. ++static inline int atm_may_send(struct atm_vcc *vcc,unsigned int size)
  29019. ++{
  29020. ++ return (size + atomic_read(&vcc->sk->wmem_alloc)) < vcc->sk->sndbuf;
  29021. ++}
  29022. ++
  29023. ++
  29024. ++static inline void atm_dev_hold(struct atm_dev *dev)
  29025. ++{
  29026. ++ atomic_inc(&dev->refcnt);
  29027. ++}
  29028. ++
  29029. ++
  29030. ++static inline void atm_dev_release(struct atm_dev *dev)
  29031. ++{
  29032. ++ atomic_dec(&dev->refcnt);
  29033. ++
  29034. ++ if ((atomic_read(&dev->refcnt) == 1) &&
  29035. ++ test_bit(ATM_DF_CLOSE,&dev->flags))
  29036. ++ shutdown_atm_dev(dev);
  29037. ++}
  29038. ++
  29039. ++
  29040. ++int atm_charge(struct atm_vcc *vcc,int truesize);
  29041. ++struct sk_buff *atm_alloc_charge(struct atm_vcc *vcc,int pdu_size,
  29042. ++ int gfp_flags);
  29043. ++int atm_find_ci(struct atm_vcc *vcc,short *vpi,int *vci);
  29044. ++int atm_pcr_goal(struct atm_trafprm *tp);
  29045. ++
  29046. ++void atm_async_release_vcc(struct atm_vcc *vcc,int reply);
  29047. ++
  29048. ++#endif /* __KERNEL__ */
  29049. ++
  29050. ++#endif
  29051. --- linux-atm-2.4.1.orig/debian/README.br2684
  29052. +++ linux-atm-2.4.1/debian/README.br2684
  29053. @@ -0,0 +1,79 @@
  29054. +README.br2684
  29055. +~~~~~~~~~~~~~
  29056. +
  29057. +The linux-atm CVS includes a program called br2684 which can be used
  29058. +to configure br2684 ATM bridging. On request (#216663), the Debian
  29059. +maintainer included br2684 in the source package.
  29060. +
  29061. +This was done in a way that separates the - unreleased CVS snapshot -
  29062. +br2684 program into its own binary package so avoid shipping
  29063. +released and unreleased software in the same binary package.
  29064. +
  29065. +The modified source package (2.4.1-10) was rejected by Debian
  29066. +ftpmaster because he found the package too small to warrant its own
  29067. +.deb.
  29068. +
  29069. +Hence, atm-tools-br2684 is not built any more.
  29070. +
  29071. +You can, however, build your own atm-tools-br2684 package from the
  29072. +official Debian source package by following this "script".
  29073. +
  29074. +(0)
  29075. +Install all build dependencies plus autoconf, libtool, automake. If
  29076. +#219936 is still unfixed, copy /usr/bin/autoreconf to a local
  29077. +directory and apply the following patch after changing "+@@" to "@@"
  29078. +in the first line (this was inserted to be able to feed this readme to
  29079. +patch to apply the patch given in (1).
  29080. +
  29081. +--- /usr/bin/autoreconf
  29082. ++++ autoreconf
  29083. ++@@ -183,7 +183,7 @@
  29084. + {
  29085. + $autoconf .= ' --force';
  29086. + $autoheader .= ' --force';
  29087. +- $automake .= ' --force-missing';
  29088. ++ $automake .= '';
  29089. + $autopoint .= ' --force';
  29090. + $libtoolize .= ' --force';
  29091. + }
  29092. +
  29093. +(1) Apply the following patch
  29094. +--- configure.in.orig
  29095. ++++ configure.in
  29096. +@@ -152,6 +152,7 @@
  29097. + m4/Makefile \
  29098. + src/Makefile \
  29099. + src/include/Makefile \
  29100. ++ src/br2684/Makefile \
  29101. + src/lib/Makefile \
  29102. + src/test/Makefile \
  29103. + src/debug/Makefile \
  29104. +--- debian/rules.orig
  29105. ++++ debian/rules
  29106. +@@ -11,7 +11,7 @@
  29107. + export PACKAGE=linux-atm
  29108. +
  29109. + buildindeppackages=atm-dev
  29110. +-buildarchpackages=atm-tools libatm1 libatm1-dev
  29111. ++buildarchpackages=atm-tools atm-tools-br2684 libatm1 libatm1-dev
  29112. +
  29113. + # generate -ppackage1 -ppackage2 ... commandline for debhelper
  29114. + dhbuildarchpackages=$(addprefix -p,$(buildarchpackages))
  29115. +--- src/Makefile.am.orig
  29116. ++++ src/Makefile.am
  29117. +@@ -1,3 +1,3 @@
  29118. + SUBDIRS = include lib test debug qgen saal sigd maint arpd ilmid man led lane \
  29119. +- mpoad switch config extra
  29120. ++ mpoad switch config extra br2684
  29121. +
  29122. +
  29123. +(2)
  29124. +Invoke autoreconf -f -i
  29125. +
  29126. +(3)
  29127. +create your own changelog entry and your own local version number
  29128. +
  29129. +(4)
  29130. +Build the package as usual
  29131. +
  29132. +Marc Haber, 2003-11-05
  29133. --- linux-atm-2.4.1.orig/debian/control
  29134. +++ linux-atm-2.4.1/debian/control
  29135. @@ -0,0 +1,57 @@
  29136. +Source: linux-atm
  29137. +Section: net
  29138. +Priority: optional
  29139. +Maintainer: Peter De Schrijver (p2) <p2@mind.be>
  29140. +Build-Depends: debhelper (>> 4.0.0), bison, flex, perl, dpatch, automake1.4
  29141. +Standards-Version: 3.6.1
  29142. +
  29143. +Package: atm-tools
  29144. +Architecture: any
  29145. +Depends: ${shlibs:Depends}
  29146. +Description: Base programs for ATM in Linux, the net-tools for ATM
  29147. + This package provides all the basic programs needed for setting up,
  29148. + monitoring and tuning ATM networks. Such as:
  29149. + * atmsigd, an ATM signal daemon that implements the ATM UNI protocol.
  29150. + * atmtcp, a tool to setup ATM over TCP connections.
  29151. + * atmarpd, an implementation of the ATMARP protocol (RFC1577, RFC1755)
  29152. + * zeppelin, an ATM LAN Emulation client daemon
  29153. + * les and bus, ATM LAN Emulation service daemons
  29154. + .
  29155. + Notice that upstream still flags these tools as experimental software and
  29156. + says that there is still a number of known bugs and issues. The
  29157. + software is, however, in productive use at a number of sites and is
  29158. + working reliably.
  29159. + .
  29160. + Homepage: http://linux-atm.sourceforge.net/
  29161. +
  29162. +Package: atm-dev
  29163. +Depends: libatm1-dev
  29164. +Architecture: all
  29165. +Section: oldlibs
  29166. +Description: Development files for compiling ATM programs (dummy package)
  29167. + This dummy package provides a transition from the previous atm packages.
  29168. + It is provided for backwards compatibility only and may be removedafter
  29169. + the upgrade has completed or when when no other package depend on it.
  29170. +
  29171. +Package: libatm1
  29172. +Section: libs
  29173. +Architecture: any
  29174. +Depends: ${shlibs:Depends}
  29175. +Conflicts: atm-tools (<< 2.4.1-6)
  29176. +Description: shared library for ATM (Asynchronous Transfer Mode)
  29177. + Shared libraries needed by ATM (Asynchronous Transfer Mode) related programs
  29178. + .
  29179. + Homepage: http://linux-atm.sourceforge.net/
  29180. +
  29181. +Package: libatm1-dev
  29182. +Section: libdevel
  29183. +Architecture: any
  29184. +Depends: libc6-dev, libatm1
  29185. +Replaces: atm-dev (<< 2.4.1-7)
  29186. +Conflicts: atm-dev (<< 2.4.1-7)
  29187. +Provides: libatm-dev
  29188. +Description: Development files for compiling ATM programs
  29189. + Header files and development libraries for compiling ATM (Asynchronous
  29190. + Transfer Mode) related programs.
  29191. + .
  29192. + Homepage: http://linux-atm.sourceforge.net/
  29193. --- linux-atm-2.4.1.orig/debian/atm-tools-br2684.dirs
  29194. +++ linux-atm-2.4.1/debian/atm-tools-br2684.dirs
  29195. @@ -0,0 +1,2 @@
  29196. +usr/sbin
  29197. +usr/share/man/man8
  29198. --- linux-atm-2.4.1.orig/debian/rules
  29199. +++ linux-atm-2.4.1/debian/rules
  29200. @@ -0,0 +1,136 @@
  29201. +#!/usr/bin/make -f
  29202. +# Sample debian/rules that uses debhelper.
  29203. +# GNU copyright 1997 to 1999 by Joey Hess.
  29204. +
  29205. +# Uncomment this to turn on verbose mode.
  29206. +#export DH_VERBOSE=1
  29207. +
  29208. +# This is the debhelper compatability version to use.
  29209. +export DH_COMPAT=4
  29210. +
  29211. +export PACKAGE=linux-atm
  29212. +
  29213. +buildindeppackages=atm-dev
  29214. +buildarchpackages=atm-tools libatm1 libatm1-dev
  29215. +
  29216. +# generate -ppackage1 -ppackage2 ... commandline for debhelper
  29217. +dhbuildarchpackages=$(addprefix -p,$(buildarchpackages))
  29218. +dhbuildindeppackages=$(addprefix -p,$(buildindeppackages))
  29219. +
  29220. +include /usr/share/dpatch/dpatch.make
  29221. +
  29222. +configure: configure-stamp
  29223. +configure-stamp:
  29224. + dh_testdir
  29225. + ./configure --prefix /usr --mandir /usr/share/man --sysconfdir /etc
  29226. + touch configure-stamp
  29227. +
  29228. +build: configure-stamp build-stamp
  29229. +build-stamp: patch-stamp
  29230. + dh_testdir
  29231. +
  29232. + # Add here commands to compile the package.
  29233. + $(MAKE) $(EXTRA_VARS)
  29234. + cat debian/copyright.header COPYING > debian/copyright
  29235. +
  29236. + touch build-stamp
  29237. +
  29238. +clean: clean1 unpatch
  29239. +clean1:
  29240. + dh_testdir
  29241. + dh_testroot
  29242. + rm -f build-stamp configure-stamp
  29243. +
  29244. + # Add here commands to clean up after the build process.
  29245. + -$(MAKE) distclean
  29246. +
  29247. + dh_clean
  29248. + rm -rf debian/atm-tools.8 debian/copyright
  29249. +
  29250. +install: build
  29251. + dh_testdir
  29252. + dh_testroot
  29253. + dh_clean -k
  29254. + dh_installdirs
  29255. +
  29256. + # Add here commands to install the package into debian/atm-tools
  29257. + $(MAKE) DESTDIR=`pwd`/debian/tmp install
  29258. +
  29259. + # manpages
  29260. + /usr/bin/pod2man --section=8 --release="atm-tools $(PKG_VER)" --lax \
  29261. + --center="Debian GNU/Linux" debian/atm-tools.pod > debian/atm-tools.8
  29262. +
  29263. + ln -s atm-tools.8 debian/tmp/usr/share/man/man8/aread.8
  29264. + ln -s atm-tools.8 debian/tmp/usr/share/man/man8/awrite.8
  29265. + ln -s atm-tools.8 debian/tmp/usr/share/man/man8/enitune.8
  29266. + ln -s atm-tools.8 debian/tmp/usr/share/man/man8/ilmid.8
  29267. + ln -s atm-tools.8 debian/tmp/usr/share/man/man8/saaldump.8
  29268. + ln -s atm-tools.8 debian/tmp/usr/share/man/man8/sonetdiag.8
  29269. + ln -s atm-tools.8 debian/tmp/usr/share/man/man8/ttcp_atm.8
  29270. + ln -s atm-tools.8 debian/tmp/usr/share/man/man8/zntune.8
  29271. +
  29272. +# Build architecture-independent files here.
  29273. +binary-indep: build install
  29274. + dh_testdir $(dhbuildindeppackages)
  29275. + dh_testroot $(dhbuildindeppackages)
  29276. + dh_install $(dhbuildindeppackages)
  29277. +
  29278. +# dh_installdebconf $(dhbuildindeppackages)
  29279. + dh_installdocs $(dhbuildindeppackages)
  29280. + dh_installmenu $(dhbuildindeppackages)
  29281. +# dh_installlogrotate $(dhbuildindeppackages)
  29282. +# dh_installemacsen $(dhbuildindeppackages)
  29283. +# dh_installpam $(dhbuildindeppackages)
  29284. +# dh_installmime $(dhbuildindeppackages)
  29285. + dh_installinit $(dhbuildindeppackages) --init-script=atm -- start 34 0 6 . start 39 S .
  29286. + dh_installcron $(dhbuildindeppackages)
  29287. + dh_installman $(dhbuildindeppackages)
  29288. + dh_installinfo $(dhbuildindeppackages)
  29289. +# dh_undocumented $(dhbuildindeppackages)
  29290. + dh_installchangelogs -i ChangeLog $(dhbuildpackages)
  29291. + dh_link $(dhbuildindeppackages)
  29292. + dh_strip $(dhbuildindeppackages)
  29293. + dh_compress $(dhbuildindeppackages)
  29294. + dh_fixperms $(dhbuildindeppackages)
  29295. + dh_makeshlibs $(dhbuildindeppackages)
  29296. + dh_installdeb $(dhbuildindeppackages)
  29297. +# dh_perl $(dhbuildindeppackages)
  29298. + dh_shlibdeps $(dhbuildindeppackages)
  29299. + dh_gencontrol $(dhbuildindeppackages)
  29300. + dh_md5sums $(dhbuildindeppackages)
  29301. + dh_builddeb $(dhbuildindeppackages)
  29302. +
  29303. +# Build architecture-dependent files here.
  29304. +binary-arch: build install
  29305. + dh_testdir $(dhbuildarchpackages)
  29306. + dh_testroot $(dhbuildarchpackages)
  29307. + dh_install $(dhbuildarchpackages)
  29308. +
  29309. +# dh_installdebconf $(dhbuildarchpackages)
  29310. + dh_installdocs $(dhbuildarchpackages)
  29311. + dh_installmenu $(dhbuildarchpackages)
  29312. +# dh_installlogrotate $(dhbuildarchpackages)
  29313. +# dh_installemacsen $(dhbuildarchpackages)
  29314. +# dh_installpam $(dhbuildarchpackages)
  29315. +# dh_installmime $(dhbuildarchpackages)
  29316. + dh_installinit $(dhbuildarchpackages) --init-script=atm -- start 34 0 6 . start 39 S .
  29317. + dh_installcron $(dhbuildarchpackages)
  29318. + dh_installman $(dhbuildarchpackages)
  29319. + dh_installinfo $(dhbuildarchpackages)
  29320. +# dh_undocumented $(dhbuildarchpackages)
  29321. + dh_installchangelogs -a ChangeLog $(dhbuildarchpackages)
  29322. + dh_link $(dhbuildarchpackages)
  29323. + dh_strip $(dhbuildarchpackages)
  29324. + dh_compress $(dhbuildarchpackages)
  29325. + dh_fixperms $(dhbuildarchpackages)
  29326. + dh_makeshlibs $(dhbuildarchpackages)
  29327. + dh_installdeb $(dhbuildarchpackages)
  29328. +# dh_perl $(dhbuildarchpackages)
  29329. + dh_shlibdeps -a -L libatm1 -l debian/libatm1/lib $(dhbuildarchpackages)
  29330. + dh_gencontrol $(dhbuildarchpackages)
  29331. + dh_md5sums $(dhbuildarchpackages)
  29332. + dh_builddeb $(dhbuildarchpackages)
  29333. +
  29334. +binary: binary-indep binary-arch
  29335. +.PHONY: build binary-indep binary-arch binary install configure
  29336. + get-2684 patch unpatch clean1
  29337. --- linux-atm-2.4.1.orig/debian/atm-tools-br2684.install
  29338. +++ linux-atm-2.4.1/debian/atm-tools-br2684.install
  29339. @@ -0,0 +1 @@
  29340. +debian/tmp/usr/sbin/br2684ctl usr/sbin
  29341. --- linux-atm-2.4.1.orig/debian/atm-tools-br2684/usr/share/doc/atm-tools-br2684/changelog.Debian
  29342. +++ linux-atm-2.4.1/debian/atm-tools-br2684/usr/share/doc/atm-tools-br2684/changelog.Debian
  29343. @@ -0,0 +1,206 @@
  29344. +linux-atm (2.4.1-16) unstable; urgency=low
  29345. +
  29346. + * Fix build problem with gcc 3.4 (Closes: #259422)
  29347. +
  29348. + -- Peter De Schrijver (p2) <p2@mind.be> Thu, 15 Jul 2004 14:28:10 +0200
  29349. +
  29350. +linux-atm (2.4.1-15) unstable; urgency=low
  29351. +
  29352. + * Updated descriptions (Closes: #239161)
  29353. +
  29354. + -- Peter De Schrijver (p2) <p2@mind.be> Sun, 4 Apr 2004 21:10:20 +0200
  29355. +
  29356. +linux-atm (2.4.1-14) unstable; urgency=low
  29357. +
  29358. + * Fix symlink for /usr/lib/libatm.so (Closes: #221011)
  29359. +
  29360. + -- Peter De Schrijver (p2) <p2@mind.be> Sun, 7 Dec 2003 21:53:19 +0100
  29361. +
  29362. +linux-atm (2.4.1-13) unstable; urgency=low
  29363. +
  29364. + * Previous version fixed #217259, but no changelog entry (Closes: #217259)
  29365. + * Previous version fixed #216662, but no changelog entry (Closes: #216662)
  29366. + * Added missing build dependency on automake1.4 (Closes: #221120, #221284)
  29367. + * New Maintainer (Closes: #206982)
  29368. +
  29369. + -- Peter De Schrijver (p2) <p2@mind.be> Mon, 17 Nov 2003 23:03:58 +0100
  29370. +
  29371. +linux-atm (2.4.1-12) unstable; urgency=low
  29372. +
  29373. + * don't build atm-tools-br2684 by default. Thanks to ftpmaster for
  29374. + not allowing the package to be in Debian.
  29375. + * Since we don't build atm-tools-br2684 any more, revert back to
  29376. + autotools output from 2.4.1-9
  29377. + * Add README.br2684 documenting a way to build the package locally.
  29378. +
  29379. + -- Marc Haber <mh+debian-packages@zugschlus.de> Wed, 5 Nov 2003 21:31:42 +0000
  29380. +
  29381. +linux-atm (2.4.1-11) experimental; urgency=low
  29382. +
  29383. + * Build-Depend on dpatch
  29384. + * dpatch br2684 header files from later libc for old libc (woody)
  29385. +
  29386. + -- Marc Haber <mh+debian-packages@zugschlus.de> Wed, 29 Oct 2003 19:05:07 +0000
  29387. +
  29388. +linux-atm (2.4.1-10) experimental; urgency=low
  29389. +
  29390. + * add br2684 to package (closes: #216663)
  29391. + * autoreconf to actually build br2684
  29392. + * have libatm1-dev provide libatm-dev (closes: #216662)
  29393. + * move lib symlink to libatm1-dev as well (closes: #217259)
  29394. +
  29395. + -- Marc Haber <mh+debian-packages@zugschlus.de> Thu, 23 Oct 2003 17:55:43 +0000
  29396. +
  29397. +linux-atm (2.4.1-9) unstable; urgency=low
  29398. +
  29399. + * put libatm1-dev in libdevel (closes: #213170)
  29400. + * make sure that new descriptions actually make it into the package
  29401. +
  29402. + -- Marc Haber <mh+debian-packages@zugschlus.de> Thu, 9 Oct 2003 17:08:10 +0000
  29403. +
  29404. +linux-atm (2.4.1-8) unstable; urgency=low
  29405. +
  29406. + * build arch-indep package as targets of binary-indep (closes: #212124)
  29407. + * use dh_installdocs to install files to libatm1-dev/docs
  29408. + * symlink shared lib to usr/bin (closes: #213146)
  29409. + * Use better long descriptions. Thanks to Javier (closes: #209427)
  29410. + Fernandez-Sanguino (closes: #209612)
  29411. +
  29412. + -- Marc Haber <mh+debian-packages@zugschlus.de> Sun, 28 Sep 2003 19:29:08 +0000
  29413. +
  29414. +linux-atm (2.4.1-7) unstable; urgency=low
  29415. +
  29416. + * libatm1 now conflicts with atm-tools (<< 2.4.1-6) (closes: #208170)
  29417. + * armarp now writes output to stdout.
  29418. + * add atm-dev as empty transitional package to help upgrades
  29419. +
  29420. + -- Marc Haber <mh+debian-packages@zugschlus.de> Tue, 2 Sep 2003 09:20:33 +0000
  29421. +
  29422. +linux-atm (2.4.1-6) unstable; urgency=low
  29423. +
  29424. + * split off shared libraries to libatm1
  29425. + * rename atm-dev to libatm1-dev
  29426. + * Standards-Version: 3.6.1
  29427. +
  29428. + -- Marc Haber <mh+debian-packages@zugschlus.de> Tue, 26 Aug 2003 15:46:27 +0000
  29429. +
  29430. +linux-atm (2.4.1-5) unstable; urgency=low
  29431. +
  29432. + * move *.a and *.la to usr/lib (closes: #199506).
  29433. + * let atm-dev depend on atm-tools to avoid dangling /lib/libatm.so
  29434. + symlink.
  29435. + * Standards-Version: 3.5.6
  29436. +
  29437. + -- Marc Haber <mh+debian-packages@zugschlus.de> Wed, 30 Jul 2003 11:46:19 +0000
  29438. +
  29439. +linux-atm (2.4.1-4) unstable; urgency=low
  29440. +
  29441. + * add Build-Depends: on automake1.4
  29442. +
  29443. + -- Marc Haber <mh+debian-packages@zugschlus.de> Wed, 11 Jun 2003 16:58:21 +0000
  29444. +
  29445. +linux-atm (2.4.1-3) unstable; urgency=low
  29446. +
  29447. + * rebuilding libtool broke src/test/Makefile.in. Applied fix to
  29448. + Makefile.am and re-built again.
  29449. +
  29450. + -- Marc Haber <mh+debian-packages@zugschlus.de> Wed, 11 Jun 2003 11:05:26 +0000
  29451. +
  29452. +linux-atm (2.4.1-2) unstable; urgency=low
  29453. +
  29454. + * rebuild configure script with new libtool (closes: #196909)
  29455. +
  29456. + -- Marc Haber <mh+debian-packages@zugschlus.de> Tue, 10 Jun 2003 21:01:50 +0000
  29457. +
  29458. +linux-atm (2.4.1-1) unstable; urgency=low
  29459. +
  29460. + * new upstream source
  29461. + * remove atmarp and atmarpd from /usr/sbin as they are already in
  29462. + /sbin (closes: #196216)
  29463. + * lintian fixes
  29464. +
  29465. + -- Marc Haber <mh+debian-packages@zugschlus.de> Mon, 9 Jun 2003 16:03:45 +0000
  29466. +
  29467. +linux-atm (2.4.0-5) unstable; urgency=low
  29468. +
  29469. + * Fix for src/test/Makefile.in to allow building on hppa and ia64
  29470. + which the fix introduced to 2.4.0-4 broke. Thanks to Goswin
  29471. + Brederlow.
  29472. + * Move init.d priority to that atmarpd is started before network
  29473. + interfaces are started.
  29474. + * Move atmarpd and libatm to /sbin and /lib to allow atmarpd to be
  29475. + started before /usr is mounted.
  29476. + * use dh_install instead of dh_movefiles.
  29477. +
  29478. + -- Marc Haber <mh+debian-packages@zugschlus.de> Sat, 24 Aug 2002 15:13:48 +0000
  29479. +
  29480. +linux-atm (2.4.0-4) unstable; urgency=low
  29481. +
  29482. + * new maintainer
  29483. + * Fix for src/test/Makefile.in to allow building on sparc.
  29484. + Thanks to Patrick Mauritz. (closes: #144225).
  29485. + * added pseudo-manpage for manpage-less binaries.
  29486. + * removed rpath by changing configure and make install paramaters
  29487. +
  29488. + -- Marc Haber <mh+debian-packages@zugschlus.de> Fri, 16 Aug 2002 20:39:05 +0000
  29489. +
  29490. +linux-atm (2.4.0-3) unstable; urgency=HIGH
  29491. +
  29492. + * Re-ran libtoolize.
  29493. + Closes: #143522
  29494. +
  29495. + * Previous version Closes: #135328
  29496. +
  29497. + -- Russell Coker <russell@coker.com.au> Fri, 19 Apr 2002 01:55:00 +0200
  29498. +
  29499. +linux-atm (2.4.0-2) unstable; urgency=HIGH
  29500. +
  29501. + * Put a "grep -v EMAXERRNO" into the build process to deal with mipsel and
  29502. + the "#ifdef __KERNEL__" it has in it's /usr/include/asm/errno.h .
  29503. +
  29504. + -- Russell Coker <russell@coker.com.au> Thu, 18 Apr 2002 19:56:00 +0200
  29505. +
  29506. +linux-atm (2.4.0-1) unstable; urgency=HIGH
  29507. +
  29508. + * New upstream version which changes source package name.
  29509. + Closes: #138911
  29510. +
  29511. + -- Russell Coker <russell@coker.com.au> Mon, 18 Mar 2002 17:42:00 +0100
  29512. +
  29513. +atm (0.79-4) unstable; urgency=low
  29514. +
  29515. + * Added build-depends on flex.
  29516. + Closes: #111072
  29517. +
  29518. + * Made the atm tools use a shared object to save space.
  29519. +
  29520. + * Fixed the copyright file and put all copyright details in both packages.
  29521. +
  29522. + * Added support for easy building with different kernel headers.
  29523. + Closes: #110249
  29524. +
  29525. + -- Russell Coker <russell@coker.com.au> Sun, 7 Oct 2001 14:11:33 +0200
  29526. +
  29527. +atm (0.79-3) unstable; urgency=low
  29528. +
  29529. + * Created /etc/init.d/atm to start and stop atmarpd.
  29530. + Closes: #110252
  29531. +
  29532. + * Added build-depends on bison.
  29533. + Closes: #110576
  29534. +
  29535. + -- Russell Coker <russell@coker.com.au> Fri, 31 Aug 2001 15:21:44 +0200
  29536. +
  29537. +atm (0.79-2) unstable; urgency=low
  29538. +
  29539. + * Changed the main package name to atm-tools to indicate that it doesn't
  29540. + provide ATM (gotta have the kernel support), it just has the daemons and
  29541. + utilities.
  29542. +
  29543. + -- Russell Coker <russell@coker.com.au> Sat, 25 Aug 2001 17:55:00 +0200
  29544. +
  29545. +atm (0.79-1) unstable; urgency=low
  29546. +
  29547. + * Initial Release.
  29548. +
  29549. + -- Russell Coker <russell@coker.com.au> Fri, 24 Aug 2001 17:31:00 +0200
  29550. --- linux-atm-2.4.1.orig/debian/atm-tools-br2684/usr/share/doc/atm-tools-br2684/changelog
  29551. +++ linux-atm-2.4.1/debian/atm-tools-br2684/usr/share/doc/atm-tools-br2684/changelog
  29552. @@ -0,0 +1,3299 @@
  29553. +Version 2.4.0 to 2.4.1 (25-APR-2003)
  29554. +=====================
  29555. +
  29556. +Bug fixes
  29557. +---------
  29558. +
  29559. + - vsprintf's changed to vsnprintf's to prevent possible stack overflows
  29560. +
  29561. +
  29562. +Version 0.79 to 2.4.0 (18-OCT-2001)
  29563. +=====================
  29564. +
  29565. +Bug fixes
  29566. +---------
  29567. +
  29568. + - defined 'now' in src/lib/timer.c
  29569. + - ia64 build fix for ASN (Chas Williams)
  29570. +
  29571. +Other changes
  29572. +-------------
  29573. +
  29574. + - In general, the source tree was rearranged and the old cruft was removed
  29575. + - Old ad hoc build system replaced in favor of a standardized autoconfiscation
  29576. + - Build configuration options are now controlled by 'configure' script instead
  29577. + of changes to the previous 'Rules.make' file
  29578. + - libatm and libatmd merged into one lib: libatm
  29579. + - Both static and shared libraries are built by default. Binaries now built
  29580. + with shared library by default.
  29581. + - Sample atmsigd.conf and hosts.atm are now installed when doing 'make install'
  29582. + - RPM spec file is now available in src/extra/
  29583. + - New RedHat init scripts available in src/config/init-redhat/ (John Strange)
  29584. + (old RedHat 4.0 scripts removed)
  29585. + - ATM on Linux HOWTO now included in doc/ (much derived from usage.tex). We
  29586. + will publish this on the home page as well as linuxdoc.org
  29587. + - tcpdump and libpcap ATM patches/build removed (they have been integrated into
  29588. + their respective packages; see www.tcpdump.org)
  29589. + - ATM Name Service (ANS) files coalesced into src/extra/ANS
  29590. + - ANS bind patch upgraded to bind-4.9.8 (untested)
  29591. + - rtf2e164_cc.pl removed in favor of src/extra/ANS/pdf2e164_cc.pl. The ITU no
  29592. + longer provides E.164 country codes in RTF format. PDF used instead.
  29593. +
  29594. +
  29595. +Version 0.78 to 0.79 (15-AUG-2001)
  29596. +====================
  29597. +
  29598. +Bug fixes
  29599. +---------
  29600. +
  29601. +- uni.c fix for newer versions of gcc
  29602. +- mpoad/io.c quick fix for undefined OPEN_MAX
  29603. +
  29604. +
  29605. +Version 0.77 to 0.78 (7-JUL-2000)
  29606. +====================
  29607. +
  29608. +Bug fixes
  29609. +---------
  29610. +
  29611. + - skb_migrate wasn't protected against functions accessing the list via
  29612. + skb->list
  29613. + - removal of MOD_xxx races in FORE 200E and atmtcp (by Jeff Garzik)
  29614. + - CONFIG_ATM_NICSTAR_USE_IDT77105 set NEED_SUNI_MX instead of
  29615. + NEED_IDT77105_MX (fix from mainstream)
  29616. + - ambassador.c: changed string concatenation and offset calculation breaking
  29617. + compilation with gcc 2.96 (by Jakub Jelinek)
  29618. + - nicstar.c: various locking fixes for SMP (by Rui Prior)
  29619. + - LANE vs. bridging build conflict solved (from mainstream)
  29620. + - %%u instead of %u in mpc.c
  29621. + - fixed formatting of /proc/net/atm/svc
  29622. + - /proc/net/atm/clip always added + after public address, not only if followed
  29623. + by private address
  29624. + - atmsigd now returns EINVAL if attempting to change max_sdu
  29625. + - atm_change_qos now calls adjust_to for additional parameter checking
  29626. + - sendmsg now returns error if size > max_sdu (reported by Alan Kennington)
  29627. + - removed explicit defaults in Config.in (by Christoph Hellwig)
  29628. + - Fore200E: removed #ifdef MODULE
  29629. + - ipcommon.c didn't export skb_migrate to modules (by Mitchell Blank)
  29630. + - ENI: /proc/net/atm/eni:* claimed backlog was in bytes instead of packets
  29631. + - br, bw, window: changed variables receiving possibly negative return values
  29632. + from size_t to ssize_t (reported by Alan Kennington)
  29633. + - LANE: fixed stray errors on lack of ATM address, ATM address change, or ESI
  29634. + change (by Heikki Vatiainen)
  29635. + - LANE: could loop forwever when trying to connect to LECS (by Heikki
  29636. + Vatiainen)
  29637. +
  29638. +New features
  29639. +------------
  29640. +
  29641. + - upgraded to the 2.4.0-test3-pre4 kernel
  29642. +
  29643. +Other changes
  29644. +-------------
  29645. +
  29646. + - as_reject now returns the errno value in msg->reply
  29647. + - removed save_qos hack in svc_change_qos
  29648. + - atmsigd: sap_encode now always includes both max_sdu fields, even if one
  29649. + contains the null value for some reason (by Mohsen Souissi)
  29650. + - PCI updates for Ambassador, FORE 200E, Horizon, Iphase, nicstar, ENI, and
  29651. + ZATM (by Jeff Garzik)
  29652. + - removal of unnecessary #ifdef MODULE for nicstar, idt77105, and FORE 200E
  29653. + (by Jeff Garzik)
  29654. + - generalized skb_migrate to append to an arbitrary sk_buff list
  29655. + - iphase.c: timer initialization cleanup (from mainstream)
  29656. + - clip: dev->name initialization change (from mainstream)
  29657. + - idt77105: cleaned up timer initialization
  29658. + - clip.c: some general cleanup
  29659. + - removed redundant return in clip.c (by Heikki Vatiainen)
  29660. + - changed atm_change_qos to static
  29661. + - fore200e.c: re-enabled anti-unloading code
  29662. + - lec.c: now drops packets on overrun instead of growing infinite queue (by
  29663. + Heikki Vatiainen)
  29664. + - COPYING still mentioned the old led code with partial DEC copyright
  29665. + (reported by Chris Pimlott)
  29666. + - Horizon: removed const warning by casting to (hrz_flags *)
  29667. + - Iphase: tried to print unsigned long with %x when errors are enabled
  29668. + - ENI: eni_send tries to use do_tx instead of tasklet_schedule to reduce delay
  29669. + - ENI: removed eni_dev->backlog_len (information is already in backlog->qlen)
  29670. + - changed the kernel source tree references from .gz to .bz2 compression
  29671. + - changed mkdiff to allow more flexible selection of additional patch
  29672. +
  29673. +
  29674. +Version 0.76 to 0.77 (29-APR-2000)
  29675. +====================
  29676. +
  29677. +Bug fixes
  29678. +---------
  29679. +
  29680. + - atmaddr.8, atmarp.8, atmdump.8, atmloop.8, esi.8 didn't print all options
  29681. + in bold
  29682. + - atmsigd crashed if an interface had more than one local ATM address
  29683. + - atmarpd continued to use VCs after closing if they were closed because
  29684. + ATMARP_SETENTRY failed (reported by Joseph Gooch)
  29685. +
  29686. +New features
  29687. +------------
  29688. +
  29689. + - upgraded to the 2.3.99-pre6 kernel
  29690. +
  29691. +Other changes
  29692. +-------------
  29693. +
  29694. + - CLIP now uses NETDEV_GOING_DOWN instead of NETDEV_DOWN; also avoids
  29695. + "clip_device_event: unknown event 9" warning
  29696. + - added ubr:pcr example to qos(7)
  29697. + - added -V option to atmaddr, atmarp, atmarpd, atmloop, atmsigd, atmtcp, esi,
  29698. + ilmid
  29699. + - sock->sk->sleep now points to vcc->sleep (by Alexander Viro)
  29700. + - CLIP: ATMARP server now reponds to query for local IP address (suggested by
  29701. + Joseph Gooch)
  29702. + - updated t2a.pl
  29703. +
  29704. +
  29705. +Version 0.75 to 0.76 (13-APR-2000)
  29706. +====================
  29707. +
  29708. +Bug fixes
  29709. +---------
  29710. +
  29711. + - ttcp_atm declared port as "short" instead of "unsigned short", yielding
  29712. + confusing diagnostic output
  29713. +
  29714. +New features
  29715. +------------
  29716. +
  29717. + - upgraded to the 2.3.99-pre5 kernel
  29718. +
  29719. +Other changes
  29720. +-------------
  29721. +
  29722. + - eliminated eni_send-tasklet synchronization
  29723. + - PCA200: merged unconditional #inclusion of linux/pci.h from pre5
  29724. +
  29725. +
  29726. +Version 0.74 to 0.75 (7-APR-2000)
  29727. +====================
  29728. +
  29729. +Bug fixes
  29730. +---------
  29731. +
  29732. + - ENI: moved send operation into tasklet to correct synchronization (reported
  29733. + by Heikki Vatiainen)
  29734. + - MPOA: possible deadlock fix (by Heikki Vatiainen)
  29735. + - atm_vcc_flags_t was too small on PPC, causing an overlap with vcc->family
  29736. + (fixed by Chas Williams)
  29737. + - CLIP: needs spin_lock_irqsave instead of only spin_lock (by Rui Prior)
  29738. + - CLIP: clip_push may be called from an interrupt, so the kfree_skb has to
  29739. + become dev_kfree_skb_any (by Heikki Vatiainen)
  29740. +
  29741. +Other changes
  29742. +-------------
  29743. +
  29744. + - removed INCLUDES from atm/ilmid/asn1/Makefile (suggested by Jean Marc
  29745. + Lacroix)
  29746. + - atm/maint/Makefile no longer special-cases atmdiag.c (suggested by Jean Marc
  29747. + Lacroix)
  29748. +
  29749. +
  29750. +Version 0.73 to 0.74 (2-APR-2000)
  29751. +====================
  29752. +
  29753. +Bug fixes
  29754. +---------
  29755. +
  29756. + - atm_poll tried to sleep on two wait queues, which is no longer possible.
  29757. + Removed vcc->wsleep to solve this. (Reported by Joseph Gooch)
  29758. + - lec.c:lec_arp_clear_vccs changed the VCC flags of the wrong VCC, fortunately
  29759. + only in commented-out code
  29760. + - major revision of MPOA ingress and egress cache locking (Heikki Vatiainen)
  29761. +
  29762. +Other changes
  29763. +-------------
  29764. +
  29765. + - removed last remnants of bogus bridging lock from lane_mpoa_init.c
  29766. + (reported by Heikki Vatiainen)
  29767. + - removed last traces of TNET1570A driver
  29768. + - atmdev_init still knew about ENI, but ENI now uses new-style initialization
  29769. + - improved Fore 200E configuration to catch useless settings already at
  29770. + configuration time (by Christophe Lizzi)
  29771. +
  29772. +
  29773. +Version 0.72 to 0.73 (29-MAR-2000)
  29774. +====================
  29775. +
  29776. +Bug fixes
  29777. +---------
  29778. +
  29779. + - ambassador.c and horizon.c had module loading races (fixed by Giuliano
  29780. + Procida)
  29781. + - fore200e: one set_bit was accidently converted to clear_bit, preventing VCs
  29782. + from being opened (fixed by Christophe Lizzi)
  29783. +
  29784. +Other changes
  29785. +-------------
  29786. +
  29787. + - fore200e: moved interrupt handler work to tasklet (by Christophe Lizzi)
  29788. + - fore200e: fixed SBUS DMA direction flags (by Christophe Lizzi)
  29789. + - fore200e: the compile no longer fails when the driver is compiled without
  29790. + any hardware support (and displays a warning; by Christophe Lizzi)
  29791. + - oops, atm/README was lagging behind a few versions
  29792. +
  29793. +
  29794. +Version 0.71 to 0.72 (25-MAR-2000)
  29795. +====================
  29796. +
  29797. +Bug fixes
  29798. +---------
  29799. +
  29800. + - fore200e.h and lec.h didn't #include <linux/config.h> (fixed by David S.
  29801. + Miller ?)
  29802. + - atmloop.c always assumed -q to be present
  29803. +
  29804. +New features
  29805. +------------
  29806. +
  29807. + - upgraded to the 2.3.99-pre3 kernel
  29808. +
  29809. +Other changes
  29810. +-------------
  29811. +
  29812. + - kernel patch still included wd.c hack (reported by David S. Miller)
  29813. + - removed bogus initialization of skb->rx_dev (spotted by Alexey Kuznetsov)
  29814. + - removed bogus lane_bridge_hook_lock (by Heikki Vatiainen)
  29815. + - added sparc64 support for ATM_QUERYLOOP (by Christophe Lizzi)
  29816. + - minor Fore driver cleanup (by Christophe Lizzi)
  29817. + - eni.c: moved interrupt handler work to tasklet
  29818. +
  29819. +
  29820. +Version 0.70 to 0.71 (21-MAR-2000)
  29821. +====================
  29822. +
  29823. +Bug fixes
  29824. +---------
  29825. +
  29826. + - eni.c: fixed potential SMP deadlock on tx_wait
  29827. + - clip.c and lec.c didn't initialize skb->rx_dev
  29828. + - net/atm/svc.c:svc_connect left wait entry in queue on return in some cases
  29829. + - idiot bug in skb_migrate caused weird crashes
  29830. + - atmloop usage erroneously claimed -s was optional
  29831. +
  29832. +New features
  29833. +------------
  29834. +
  29835. + - upgraded to the 2.3.99-pre2 kernel
  29836. + - added atmloop.8 man page
  29837. + - added enqueuing result NET_XMIT_BYPASS for qdiscs that send packets on a
  29838. + path without dequeue (e.g. sch_atm)
  29839. +
  29840. +Other changes
  29841. +-------------
  29842. +
  29843. + - ambassador.c: removed warnings when compiling with CONFIG_SMP (by Giuliano
  29844. + Procida)
  29845. + - changed drivers/atm target from atm.a to atm.o, to make initcalls work
  29846. + - converted eni.c to use pci_register_driver and initcall
  29847. + - cleaned up #ifdef hell in net/atm/signaling.c:sigd_put_skb
  29848. +
  29849. +
  29850. +Version 0.69 to 0.70 (20-MAR-2000)
  29851. +====================
  29852. +
  29853. +Bug fixes
  29854. +---------
  29855. +
  29856. + - LEC compilation as a module still left it in the kernel
  29857. +
  29858. +Other changes
  29859. +-------------
  29860. +
  29861. + - moved LANE-bridging interface code from lec.c to lane_mpoa_init.c (by
  29862. + Heikki Vatiainen)
  29863. + - made SONET and ATM statistics counters atomic to avoid cli() when reading
  29864. + (not updated: similar mechanism in idt77105.c and private shadow statistics
  29865. + of ambassador.c)
  29866. + - changed access to VCC and device flags (ATM_VF_* and ATM_DF_*) to bit set
  29867. + operations
  29868. + - changed flag types to structs to fail compilation of old code
  29869. + - changed last argument of atm_dev_register to a pointer to a bit set for
  29870. + easier migration
  29871. + - net/atm/*.c: eliminated all sleep_on and cli (except in lec.c)
  29872. + - ditto for eni.c and suni.c
  29873. + - corrected indentation of some "permanent" debugging code in zatm.c
  29874. + - made skb_migrate partially atomic, obsoleting yet another cli() in clip.c
  29875. +
  29876. +
  29877. +Version 0.68 to 0.69 (19-MAR-2000)
  29878. +====================
  29879. +
  29880. +Bug fixes
  29881. +---------
  29882. +
  29883. + - ambassador.c: corrected location of initial PLX window for use on Alpha (by
  29884. + Giuliano Procida)
  29885. + - zeppelin: fixed address initialization (found by Christophe Lizzi)
  29886. + - atmsigd.conf man page erroneously described the option "q.2963.1" as
  29887. + "q2963_1"
  29888. + - LANE didn't compile when bridging was enabled (fixed by Heikki Vatiainen;
  29889. + note that bridging also needs an update which is being merged via the
  29890. + mainstream kernel)
  29891. +
  29892. +New features
  29893. +------------
  29894. +
  29895. + - atmsigd: added command-line option -u to set the UNI mode
  29896. + - added ioctl ATM_QUERYLOOP to determine supported loopback modes
  29897. + - added atmloop(8) option -q
  29898. +
  29899. +Other changes
  29900. +-------------
  29901. +
  29902. + - added CREDITS entry of Giuliano Procida
  29903. + - various cosmetic changes to horizon.c (by Giuliano Procida)
  29904. + - ambassador.c: various bits of cleanup (by Giuliano Procida)
  29905. + - added -S <tos> option to ttcp_atm to set the IPv4 TOS byte (this is not
  29906. + really related to ATM)
  29907. + - changed loopback mode values to a bit set
  29908. + - idt77105_ioctl: returned sizeof(int) instead of 0 on ATM_GETLOOP
  29909. + - added phy_ops->stop to suni.c and uPD98402_stop, cleaned up suni.c in the
  29910. + process
  29911. + - removed (very obsolete) mmuio.o from net/atm/Makefile
  29912. +
  29913. +
  29914. +Version 0.67 to 0.68 (28-FEB-2000)
  29915. +====================
  29916. +
  29917. +Bug fixes
  29918. +---------
  29919. +
  29920. + - removed potential dev_kfree_skb(NULL) from *_send of eni.c, zatm.c, iphase.c
  29921. + - eni.c, zatm.c, iphase.c sometimes returned PCI error codes instead of errno
  29922. + codes
  29923. + - arpd/io.c could try to de-reference entry->addr with addr == NULL (fixed by
  29924. + Thomas Dietz)
  29925. + - LANE copied more than dev->addr_len address bytes (fixed by Heikki
  29926. + Vatiainen)
  29927. + - sch_atm didn't remove filters on destroy
  29928. + - fixed typo in esi.c error message
  29929. + - esi.8 claimed to be the man page of atmarp, and it wasn't installed
  29930. + - added checking for VPI/VCI when sending AAL0 cells (by Mitchell Blank)
  29931. + - atmtcp allowed sending on receive-only VCs
  29932. + - various ioctl permission checks were missing (fixed by Mitchell Blank)
  29933. + - fore200e.c and horizon.c didn't always free skbs on send error (fixed by
  29934. + Mitchell Blank)
  29935. + - included an ugly hack to fix the wd.c driver that was broken around 2.3.47
  29936. + (not related to ATM at all...)
  29937. +
  29938. +New features
  29939. +------------
  29940. +
  29941. + - upgraded to the 2.3.48 kernel
  29942. + - added device-independent SAR/PHY loopback setting interface (with many good
  29943. + ideas from Greg Banks and Mitchell Blank), and removed old loopback ioctls
  29944. + - new utility atmloop to set loopback mode
  29945. + - added "stop" to atmphy_ops (requested by Mitchell Blank)
  29946. +
  29947. +Other changes
  29948. +-------------
  29949. +
  29950. + - mkdiff can now also use pre-release kernels
  29951. + - changed *kfree_skb to dev_kfree_skb_{irq,any} in eni.c, zatm.c, and raw.c,
  29952. + where necessary (with help from Heikki Vatiainen)
  29953. + - changed {dev_,}kfree_skb to dev_kfree_skb_any in ambassador.c, horizon.c,
  29954. + iphase.c, and nicstar.c (needs further cleanup)
  29955. + - softnet updates for LANE (by Heikki Vatiainen)
  29956. + - fixed firmeware license of Fore 200E driver and general 0.46/0.47 updates
  29957. + (Christophe Lizzi)
  29958. + - more CREDITS file additions
  29959. + - softnet updates for sch_atm
  29960. + - softnet updates for CLIP (also cleaned up flow control for > 1 VCC/itf;
  29961. + reported by Alexey Kuznetsov)
  29962. + - updated documentation for iproute2-2.2.4-now-ss000225 and streamlined the
  29963. + build procedure
  29964. + - PCI DMA updates for ENI driver
  29965. + - changed the default install location of executables and man pages from
  29966. + /usr/local to /usr
  29967. + - make install no longer installs align, aping, br, bw, delay, isp, svctor,
  29968. + sw_debug, sw_tcp, swc, and window
  29969. + - eni.c: made highly controversial aal5 = ... line more readable
  29970. + - moved /proc/atm to /proc/net/atm
  29971. + - added vcc->send function to allow for AAL-specific processing (may be set
  29972. + to dev->ops->send)
  29973. + - atm_do_connect_dev now calls bind_vcc before AAL initialization to make
  29974. + vcc->dev available
  29975. + - change_qos no longer allows changing of AAL or traffic class (by Mitchell
  29976. + Blank)
  29977. + - changes for new loopback support to fore200e driver and sparc64 code (by
  29978. + Christophe Lizzi)
  29979. +
  29980. +
  29981. +Version 0.66 to 0.67 (2-FEB-2000)
  29982. +====================
  29983. +
  29984. +New features
  29985. +------------
  29986. +
  29987. + - upgraded to 2.3.42
  29988. + - added sunimode utility to set SUNI loopback mode (by Christophe Lizzi)
  29989. +
  29990. +Other changes
  29991. +-------------
  29992. +
  29993. + - removed unused variable warning in net/sched/sch_atm.c
  29994. + - changed ENI_SETMULT from ATMIOC_SARPRV+1 to ATMIOC_SARPRV+7
  29995. + - changed atmarpd's complaint about VCC-less non-ATMARP-server entries from
  29996. + DIAG_ERROR to DIAG_INFO (the condition is okay for an ATMARP server)
  29997. +
  29998. +
  29999. +Version 0.65 to 0.66 (31-JAN-2000)
  30000. +====================
  30001. +
  30002. +Bug fixes
  30003. +---------
  30004. +
  30005. + - atmsigd crashed on reception of as_accept, etc., because of inverted NULL
  30006. + pointer test (reported by Kevin Vargo, Rui Prior, fixed by Julian Cable)
  30007. + - fixed various SPARC build problems (by Christophe Lizzi)
  30008. + - atmsigd insisted that calling party number is local in switch mode
  30009. + - debug switch didn't initialize any ports
  30010. + - net/atm/signaling.c:sigd_enq didn't properly zero the message, yielding
  30011. + kernel pointers partially containing junk
  30012. + - accept(2) didn't copy local ATM address to VCC descriptor (reported by
  30013. + Pedro Brandao)
  30014. + - ilmid/io.c didn't compile on SPARC (reported by Christophe Lizzi)
  30015. + - usage.txt didn't define the %: macro, leaving garbage in usage.txt
  30016. +
  30017. +New features
  30018. +------------
  30019. +
  30020. + - upgraded to 2.3.41
  30021. + - Fore 200E driver now also works for SBA-200E (by Christophe Lizzi)
  30022. +
  30023. +Other changes
  30024. +-------------
  30025. +
  30026. + - added various CREDITS entries
  30027. + - changed TIOC{IN,OUT}Q to SIOC{IN,OUT}Q (no user space rebuild required;
  30028. + the values are identical)
  30029. + - added script atm/switch/tcp/mkfiles for automatic extraction of
  30030. + configuration files
  30031. + - atmsigd called ATM_GETLINKRATE "ATM_GETLINERATE" in complaints
  30032. + - atmsigd tried to obtain link speed in switch mode, although it's not used
  30033. + - Ambassador NIC: various files still had the wrong copyright/licensing text
  30034. + (patch by Giuliano Procida)
  30035. +
  30036. +
  30037. +Version 0.64 to 0.65 (21-JAN-2000)
  30038. +====================
  30039. +
  30040. +Bug fixes
  30041. +---------
  30042. +
  30043. + - fixed 32/64 bit %p formatting problem in /proc/atm/vc
  30044. + - atmtcp: fixed RX/TX statistics (by Jens Axboe)
  30045. + - sparc64-specific ioctl 32/64 bit marshalling fixes (by Christophe Lizzi,
  30046. + with further improvements by Jens Axboe)
  30047. + - zeppelin -l option handling (reported by Mike Prudence, fixed by Heikki
  30048. + Vatiainen)
  30049. + - mkpatch didn't include drivers/atm/eni.h
  30050. + - updated eni.h (tx->backlog_len was missing)
  30051. + - fixed various uint32_t build problems of user space tools by including
  30052. + atm.h before anything other ATM headers (first reported by Rashmi Dravid)
  30053. + - "natmtcp virtual" didn't parse the command line properly
  30054. + - natmtcp's TCP link changed VPI/VCI to 0.0 on close
  30055. + - CLIP: fixed crash after sending ARP (reported by Rui Prior)
  30056. +
  30057. +New features
  30058. +------------
  30059. +
  30060. + - upgraded to 2.3.40 (with help from Jens Axboe)
  30061. + - added sparc64 changes for ENI driver (by Heikki Vatiainen)
  30062. + - added the Fore PCA-200E(/SBA-200E) driver (by Uwe Dannowski and Christophe
  30063. + Lizzi)
  30064. + - added the Interphase ATM PCI (i)Chip (x575, x525, x531, etc.) driver (by
  30065. + Monalisa Agrawal and Peter Wang)
  30066. + - added ABR fields to struct atm_trafprm (by Peter Wang)
  30067. + - nicstar driver now supports setting of the CLP bit (by Rui Prior)
  30068. + - added ENI_SETMULT ioctl and enitune utility to change ENI buffer size
  30069. + multipliers at run time
  30070. +
  30071. +Other changes
  30072. +-------------
  30073. +
  30074. + - atmsigd: changed default UNI version from 3.0 to dynamic (which defaults
  30075. + to 3.0)
  30076. + - atmtcp: removed ugly ../../net/atm/protocols.h include
  30077. + - ioctls now internally return -ENOIOCTLCMD if ioctl command number is not
  30078. + recognized
  30079. + - removed ATM_CREATE_LEAF ioctl (wasn't used and suggested the wrong design
  30080. + approach anyway)
  30081. + - updated README.DRIVERS
  30082. + - natmtcp now uses port 2812 (assigned by IANA)
  30083. + - moved Documentation/atm.txt to Documentation/networking
  30084. + - improved atm_kptr_int_t for non-Sparc architectures (by Christophe Lizzi)
  30085. + - removed two compiler warnings from nicstar.c
  30086. + - some minor nicstar cleanup (by Rui Prior)
  30087. + - added "vbr" and "abr" to text2qos/qos2text ("vbr" not used for anything
  30088. + right now)
  30089. + - natmtcp: added commands "create", "remove", "switch", corresponding to
  30090. + options -p, -r, and -s of atmtcp
  30091. + - natmtcp: added link type "print" (write PDU content to stdout)
  30092. + - natmtcp: now uses atm_kptr_int_t for VCC kernel pointer instead of unsigned
  30093. + long
  30094. + - added apologetic man page for natmtcp
  30095. + - renamed natmtcp to atmtcp and removed the old atmtcp
  30096. + - changed some user-space code to avoid patronizing "ambiguous `else'"
  30097. + warnings from egcs, adding as few ugly redundant curly braces as possible
  30098. + - fixed some other compiler warnings
  30099. + - kernel part: trimmed operations structure initializers which consisted
  30100. + mainly of NULL pointers
  30101. + - kernel pointers sent as opaque references to user space are now of type
  30102. + atm_kptr_t. Added support functions kptr_eq and kptr_print. (With help from
  30103. + Richard Johnson and Mitchell Blank)
  30104. + - removed various "overriding commands" warnings in user-space build process
  30105. + - mkdist now creates arcvie in current directory if ~/l/arch doesn't exist
  30106. + - make clean && make now works also if dependencies are present (make clean
  30107. + used to remove sigd/q.out.h, which the dependencies required)
  30108. + - atmtcp uses command bg instead of -b for backgrounding. Also, listen-bg
  30109. + listens and backgrounds before calling accept.
  30110. +
  30111. +
  30112. +Version 0.63 to 0.64 (1-DEC-1999)
  30113. +====================
  30114. +
  30115. +Bug fixes
  30116. +---------
  30117. +
  30118. + - atmapi.h logic was still wrong (fixed by Christophe Lizzi)
  30119. + - LANE: fixed BUS filtering and net/atm/lec.c cleanup (by Heikki Vatiainen)
  30120. + - arpd/io.c assumed that diag() preserves errno
  30121. + - atmarpd didn't include QOS in output if getsockopt failed
  30122. +
  30123. +New features
  30124. +------------
  30125. +
  30126. + - /proc/atm/eni:* now also shows transmit queue and backlog length
  30127. + - added option "sndbuf" to atmarp
  30128. + - added option "sndbuf" to tc ... atm ...
  30129. + - /proc/atm/vc lists internal details for all VCs (flags, buffers, etc.);
  30130. + added ATM_VF2TXT_MAP to atmdev.h to allow translation of flag values
  30131. +
  30132. +Other changes
  30133. +-------------
  30134. +
  30135. + - ATM now uses sk->sndbuf/rvcbuf instead of atm_vcc->tx_quota/rx_quota
  30136. + - removed rx_quota hack from zatm.c
  30137. + - removed net/atm/tunable.h
  30138. + - CLIP and sch_atm now only send packets if the VC's send queue allows them to
  30139. + - implemented correct "requeue" function in sch_atm
  30140. + - updated zeppelin(8) man page (Heikki Vatiainen)
  30141. + - atmarp: atmarp -q qos_spec usage is obsolete; use atmarp -q qos qos_spec
  30142. + instead
  30143. + - /proc/atm/svc now prints "N/A@xxxxxxxx" instead of "Unassigned", with the
  30144. + address of the descriptor in xxxxxxxx
  30145. + - removed all traces of CONFIG_MMU_HACKS
  30146. + - obsoleted ATM_SETSC (single-copy control)
  30147. +
  30148. +
  30149. +Version 0.62 to 0.63 (22-NOV-1999)
  30150. +====================
  30151. +
  30152. +Bug fixes
  30153. +---------
  30154. +
  30155. + - horizon.c: cleared weird rate_lock/rates_lock patch conflict
  30156. + - saaldump output formatting was completely wrecked; added option -q for
  30157. + "quiet" output (no Q.2931 printing)
  30158. + - fixed LANE Ethernet interface MTU mapping (patch by Rob Scott)
  30159. + - atmsigd incorrectly rejected CONNECTION AVAILABLE (Q.2963.1)
  30160. + - SVC address was wrong in /proc/atm/arp if using private and public part
  30161. + - RESTART ACKNOWLEDGE was not sent with the correct global call reference
  30162. + value (reported by Peter Ryan)
  30163. + - zatm: usec timestamps need 64 division of x86, so this option must be
  30164. + unavailable on other architectures (reported by Matti Aarnio)
  30165. + - nicstar: added "fix3" and "fix4" (by Rui Prior)
  30166. + - LANE: non-proxy didn't filter packets coming from BUS (fix by Marko Kiiskila
  30167. + and Heikki Vatiainen)
  30168. +
  30169. +New features
  30170. +------------
  30171. +
  30172. + - upgraded to kernel version 2.3.28
  30173. + - atmtcp now reports VC open/close and generates timestamps (Note: the
  30174. + protocol used between the kernel and the atmtcp utility has changed)
  30175. + - new utility "natmtcp" which combines the ATMTCP protocol, ATMTCP ("virtual")
  30176. + interfaces, "real" ATM interfaces, and log files (experimental)
  30177. + - added ILMI 4.0 MIB variables atmfPortMyIdentifier and atmfMySystemIdentifier
  30178. + (by Thomas Seidel)
  30179. + - zeppelin: new command line option -I to select interface, allowing the use
  30180. + of LANE with multiple physical interfaces (by Heikki Vatiainen)
  30181. + - UltraSparc (sparc64) support (by Christophe Lizzi)
  30182. + - nicstar: added IDT77105 PHY support (by Greg Banks)
  30183. + - added utility loop25 to control ForeRunner LE loopback mode (by Greg Banks)
  30184. + - added support for DNS lookup of NSAP addresses (by Rui Prior)
  30185. + - added utility debug/dnstest (by Rui Prior)
  30186. +
  30187. +Other changes
  30188. +-------------
  30189. +
  30190. + - net/atm/tunable.h cleanup
  30191. + - removed SO_BCTXOPT, SO_BCRXOPT, and struct atm_buffconst
  30192. + - removed obsolete field "next" from struct atm_blli
  30193. + - changed potentially unaligned 32 bit accesses in SAAL to use read_netl
  30194. + (spotted by Christophe Lizzi)
  30195. + - added __attribute__ ((aligned(8))) to many structures containing structures
  30196. + which are shared by kernel and user space to enfore uniform packing on
  30197. + sparc64 (with help from Christophe Lizzi)
  30198. + - changed unsigned long to unsigned int at API for compatibility with
  30199. + architecture where sizeof(long) differs between user and kernel space
  30200. + (e.g. sparc64; suggested by Christophe Lizzi)
  30201. + - changed struct atmsvc_msg.{vcc,listen_vcc} from unsigned long to new type
  30202. + atm_kptr_int_t; changed atmsigd accordingly (NB: debugging output may strip
  30203. + upper bits)
  30204. + - changed various casts pointer->int to pointer->long->int (where the pointer
  30205. + does indeed only contain an int, e.g. in ioctl) for Alpha (reported by
  30206. + Matti Aarnio)
  30207. + - nicstar: changes card->membase from u32 to unsigned long
  30208. + - added __attribute__ ((unused)) to mpc.c and mpoa_caches.c to remove
  30209. + warnings about variables used only for debugging
  30210. + - drivers/atm/Config.in: changed ! "$foo" = "x" to "$foo" != "x"
  30211. +
  30212. +
  30213. +Version 0.61 to 0.62 (27-AUG-1999)
  30214. +====================
  30215. +
  30216. +Bug fixes
  30217. +---------
  30218. +
  30219. + - lib/diag.c:set_logfile didn't set log_to_initialized (reported by Lars
  30220. + Burgstahler)
  30221. + - sch_atm did not use classifiers attached to the x:0 class (reported by Lars
  30222. + Burgstahler)
  30223. + - net/atm/atm_misc.c EXPORT'ed atm_return, which is an inline function (fixed
  30224. + by Mitchell Blank)
  30225. + - work-around for SO_LEVEL range problems (by Mitchell Blank)
  30226. + - nicstar oops fix (by Rui Prior and John Brosnan)
  30227. + - nicstar should now work also as non-module (by Rui Prior)
  30228. + - nicstar fix for chip bug showing up on 64-bit CPCI bus systems (by Jay
  30229. + Talbott)
  30230. + - cleared confusion about inclusion of suni.o when building both nicstar and
  30231. + ENI
  30232. + - suni.c now always exports suni_init
  30233. + - various fixes and cleanups in the Madge drivers (by Giuliano Procida)
  30234. + - fixed new set of atm_pdu2truesize problems by introducing atm_alloc_charge
  30235. + which handles the allocation too (problem report and work-around by Alexey
  30236. + Kuznetsov)
  30237. + - getsockname on unbound PVC socket caused an oops
  30238. + - LANE: Token Ring source route bridge support fix (by Heikki Vatiainen)
  30239. +
  30240. +New features
  30241. +------------
  30242. +
  30243. + - upgraded to kernel version 2.3.15 (mainly by Alexey Kuznetsov and Mitchell
  30244. + Blank)
  30245. + - new socket option SO_ATMPVC to retrieve the "PVC" address (PVC & SVC) (based
  30246. + on a patch by Jay Talbott)
  30247. + - zeppelin -l now also accepts only the selector byte (by Robert Slaski)
  30248. +
  30249. +Other changes
  30250. +-------------
  30251. +
  30252. + - removed obsolete drivers/atm/nicstar.c.old_skb
  30253. + - removed all references to Arequipa (obsolete)
  30254. + - SO_BCTXOPT/SO_BCRXOPT are now obsolete, given that the final verdict on page
  30255. + flipping has been spoken in linux-kernel
  30256. + - interface statistics are now counted in struct net_device_stats instead of
  30257. + struct enet_statistics (by Mitchell Blank)
  30258. + - added pointer to mailing list to Documentation/atm.txt
  30259. + - Documentation/Configure.help now points to Documentation/atm.txt instead of
  30260. + directly to the Web page.
  30261. + - usage.tex: clarified the consequences of interrupting atmtcp
  30262. + - changed the highly misleading "atmarpd:ITF: no such interface" message to
  30263. + DIAG_DEBUG
  30264. +
  30265. +
  30266. +Version 0.60 to 0.61 (11-JUN-1999)
  30267. +====================
  30268. +
  30269. +Bug fixes
  30270. +---------
  30271. +
  30272. + - nicstar: driver sometimes crashed when starting for 25 Mbps cards (Rui
  30273. + Prior)
  30274. + - Zeitnet driver: uPD98402.c wasn't compiled with -DEXPORT_SYMTAB when
  30275. + building as a module
  30276. + - net/atm/raw.c didn't export atm_init_aal5, so ATMTCP didn't load as a module
  30277. + - atmtcp could still be accessed after loading and then unloading, yielding an
  30278. + Oops
  30279. +
  30280. +Other changes
  30281. +-------------
  30282. +
  30283. + - PPC configuration now also includes ATM (Jay Talbott)
  30284. + - lots of cleanup in the Madge drivers (Giuliano Procida)
  30285. + - tamed down a bit the tone in README
  30286. +
  30287. +
  30288. +Version 0.59 to 0.60 (3-JUN-1999)
  30289. +====================
  30290. +
  30291. +New features
  30292. +------------
  30293. +
  30294. + - upgraded to kernel version 2.3.3 (main change is slightly different wait
  30295. + queue handling; affects all drivers)
  30296. +
  30297. +Other changes
  30298. +-------------
  30299. +
  30300. + - mkdiff script now takes .bz2 kernel if no .gz can be found
  30301. + - made a few changes to the Madge drivers to reduce the number of warnings
  30302. +
  30303. +
  30304. +Version 0.58 to 0.59 (3-JUN-1999)
  30305. +====================
  30306. +
  30307. +New features
  30308. +------------
  30309. +
  30310. + - upgrade to kernel version 2.2.9
  30311. + - zeppelin now adjusts MTU when joining ELAN (Heikki Vatiainen)
  30312. +
  30313. +Other changes
  30314. +-------------
  30315. +
  30316. + - adjusted tr interface name limit to 8 characters (down from a wasteful 9)
  30317. +
  30318. +
  30319. +Version 0.57 to 0.58 (3-JUN-1999)
  30320. +====================
  30321. +
  30322. +Bug fixes
  30323. +---------
  30324. +
  30325. + - ENI drivers sometimes directly dereferenced pointers instead of using readl/
  30326. + writel (fixed by Mitchell Blank)
  30327. + - nicstar driver no longer uses floating point (fixed by Rui Prior)
  30328. + - nicstar driver may have refused CBR VC in some cases even with enough
  30329. + bandwidth available (fixed by Rui Prior)
  30330. + - usage.tex failed to build (fixed by Bill Brooks)
  30331. + - zeppelin got byte order in BLLI wrong (reported by Chas Williams; fixed by
  30332. + Mitchell Blank and Heikki Vatiainen)
  30333. + - zeppelin did not work when the host had multiple ATM addresses (reported by
  30334. + Benoit Steiner; fixed by Heikki Vatiainen)
  30335. + - zeppelin incorrectly parsed -i command line option (reported by Benoit
  30336. + Steiner; fixed by Heikki Vatiainen)
  30337. + - atm_connect_vcc and /proc/atm/pvc report AAL0 now properly (reported by Zhu
  30338. + Qun Ying and Uwe Dannowski)
  30339. +
  30340. +New features
  30341. +------------
  30342. +
  30343. + - nicstar driver now support SONET diagnostics (by Rui Prior)
  30344. + - nicstar driver now works on PowerPC (by Jay Talbott)
  30345. + - LANE now also supports Token Ring (Heikki Vatiainen, with testing by
  30346. + Holger Smolinski)
  30347. +
  30348. +Other changes
  30349. +-------------
  30350. +
  30351. + - major non-i386 architecture and other cleanup in ENI driver (by Mitchell
  30352. + Blank)
  30353. + - number of lec devices is 40+8 (lec0-lec39 are Ethernet and lec40-lec47 are
  30354. + Token Ring; Heikki Vatiainen)
  30355. + - lec.c and mpc.c now use atm_force_charge (Heikki Vatiainen)
  30356. + - net/802/tr.c limited interface names to 4 characters (fixed by Heikki
  30357. + Vatiainen)
  30358. + - zeppelin man page updated (Heikki Vatiainen)
  30359. + - "zeppelin.new" is now "zeppelin", the old "zeppelin" is gone
  30360. + - set "atm_connect" printk to KERN_DEBUG
  30361. + - removed ATM_SAAL from include/linux/atm.h (there never was any support for
  30362. + SAAL in the kernel)
  30363. +
  30364. +
  30365. +Version 0.56 to 0.57 (18-MAY-1999)
  30366. +====================
  30367. +
  30368. +Bug fixes
  30369. +---------
  30370. +
  30371. + - atmarpd complained "invalid control msg type" when changing interface
  30372. + characteristics (reported by Soo-Khim Ho)
  30373. + - sch_atm didn't compile without CLIP (reported by Zhu Qun Ying)
  30374. + - LANE & MPOA: plugged a few memory leaks after failure to atm_charge (Heikki
  30375. + Vatiainen)
  30376. + - mpcd could not be killed if MPS's address was not known (fixed by Heikki
  30377. + Vatiainen)
  30378. + - nicstar: fixed the sleeping in interrupt issue (Rui Prior)
  30379. +
  30380. +New features
  30381. +------------
  30382. +
  30383. + - drivers for the Madge "Ambassador" and "Horizon [Ultra]" NICs, also known
  30384. + as Collage PCI 155 Server, 25, and 155 Client (by Giuliano Procida)
  30385. +
  30386. +Other changes
  30387. +-------------
  30388. +
  30389. + - MPOA code cleanup and debugging printks are now conditional (Heikki
  30390. + Vatiainen)
  30391. + - removed both led/USAGE files
  30392. + - removed the old atmsigd (was in atm/sig.old/)
  30393. + - nicstar driver now works around TSQ bug on older chips (77201) (by Rui
  30394. + Prior, with the detective work by Jay Talbott)
  30395. +
  30396. +
  30397. +Version 0.55 to 0.56 (22-APR-1999)
  30398. +====================
  30399. +
  30400. +Bug fixes
  30401. +---------
  30402. +
  30403. + - atm/doc/Makefile assumed . to be included in PATH when invoking rlatex
  30404. + (fix by Heikki Vatiainen)
  30405. + - usage.txt leaked Arequipa configuration examples (fix by Heikki Vatiainen)
  30406. + - plugged a small memory leak in led.new which occurred when using the LANE
  30407. + client as a proxy (Heikki Vatiainen)
  30408. + - atmarpd crashed when printing ATMARP table entries with flag 0x8000 set
  30409. + (reported by Vinay Kulkarni)
  30410. + - CLIP interfaces now follow netmask changes
  30411. + - Nicstar: 25.6 Mbps cell rate corrected (by Rui Prior)
  30412. + - atm_equal could loop forever when comparing NSAP-encoded E.164 addresses
  30413. + (reported by Valley Zhizhkun)
  30414. + - [AP]F_ATM[PS]VC definitions in lib/atm.h conflicted with glibc 2.1
  30415. + (reported by Heikki Vatiainen and Jens Vagelpohl)
  30416. + - changed a few non-int main to int main (reported by Heikki Vatiainen)
  30417. + - changed lib/diag.c work with glibc 2.1, where stderr is no longer a constant
  30418. + (based on a patch by Heikki Vatiainen, also reported by Giuliano Procida)
  30419. + - make clean didn't remove qgen/q.test.c, qgen/qd.out.h, qgen/qd.test.c,
  30420. + sigd/q.out.h and sigd.old/q.out.h (reported by Giuliano Procida)
  30421. + - optional headers were installed even with system headers present if
  30422. + INSTROOT was different from / (reported by Giuliano Procida)
  30423. + - lib/stdint.h was used even on systems that had a "real" stdlib.h (based on a
  30424. + patch by Heikki Vatiainen, also reported by Giuliano Procida)
  30425. + - renamed net/atm/misc.c to atm_misc.c to avoid name clash with
  30426. + drivers/char/misc.c on include/linux/modules/misc.* (reported by Borek
  30427. + Lupomesky)
  30428. +
  30429. +New features
  30430. +------------
  30431. +
  30432. + - new ioctl ATM_GETLINKRATE to query link rate of an interface (suggested by
  30433. + Vitaly Lavrov)
  30434. + - new atmsigd.conf option io max_rate to specify rate to signal if
  30435. + application requests the "maximum"
  30436. + - added decription of CONFIG_ATM_LANE and CONFIG_ATM_MPOA to the kernel
  30437. + configuration help (Heikki Vatiainen)
  30438. + - added description of LANE to usage.tex (Heikki Vatiainen)
  30439. + - new function atm_force_charge to unconditionally add data to a receive
  30440. + buffer
  30441. +
  30442. +Other changes
  30443. +-------------
  30444. +
  30445. + - atmsigd now determines maximum link rate by querying interfaces (suggested
  30446. + by Vitaly Lavrov)
  30447. + - moved local address registry from a global table to VPCI structures
  30448. + - changed unknown net device notification severity from KERN_ERR to
  30449. + KERN_WARNING
  30450. + - atmarpd now overwrites old atmarpd.table on startup (it used to keep it
  30451. + until the first configuration change)
  30452. + - shutdown(2) of native ATM VCs now returns 0 instead of -EOPNOTSUPP
  30453. + (suggested by Mitchell Blank)
  30454. + - Nicstar: IRQ sharing is now allowed (by Rui Prior)
  30455. + - Nicstar: default maximum number of cards is now 4 (by Rui Prior)
  30456. + - Nicstar: when compiled as a module, the driver may no longer be removed
  30457. + while in use (by Rui Prior)
  30458. + - Nicstar: loss of cells is no longer reported as a plain CRC error (by Rui
  30459. + Prior)
  30460. + - atmsigd now always clears the endpoint reference flag if in UNI 3.0 mode
  30461. + (based on a patch by Heikki Vatiainen)
  30462. +
  30463. +
  30464. +Version 0.54 to 0.55 (1-MAR-1999)
  30465. +====================
  30466. +
  30467. +Bug fixes
  30468. +---------
  30469. +
  30470. + - SELECT_TOP_PCR didn't take intro account the "pcr" field, causing SVC with
  30471. + QoS pcr=xxx to be set up at link speed
  30472. + - qos_equal didn't detect differences in the "pcr" fields
  30473. + - sch_atm only accepted parent == root or absent (reported by John Loughney)
  30474. + - sch_atm:atm_tc_put accessed flow structure after kfree'ing it
  30475. + - sch_atm:atm_tc_change didn't put excess traffic class if class creation
  30476. + failed
  30477. + - sch_atm:atm_tc_dump_class didn't return class ID in tcm->tcm_handle
  30478. + - sch_atm:atm_tc_delete refused to delete classes because it expected
  30479. + ref == 1, but ref == 2 (reported by John Loughney)
  30480. +
  30481. +
  30482. +Version 0.53 to 0.54 (19-FEB-1999)
  30483. +====================
  30484. +
  30485. +Bug fixes
  30486. +---------
  30487. +
  30488. + - led.new: fixed build problem and warning (Heikki Vatiainen)
  30489. + - fixed LANE arp cache timeouts (Heikki Vatiainen)
  30490. + - ilmid -i option fell through into -l, causing logging to go into a file
  30491. + named after the local address
  30492. + - flipping the highest bit of ep_ref made it negative which was erroneously
  30493. + interpreted to mean "absent" (reported by Giuliano Procida and Chas
  30494. + Williams)
  30495. + - ilmid used the result of AsnOidCompare inconsistently, causing network
  30496. + prefix registration to fail with some switches (based on a patch by Giuliano
  30497. + Procida)
  30498. +
  30499. +New features
  30500. +------------
  30501. +
  30502. + - tc:q_atm: new option "clip" to select Classical IP processing of inbound
  30503. + traffic
  30504. + - new sch_atm class attribute TCA_ATM_STATE to retrieve VC state
  30505. +
  30506. +Other changes
  30507. +-------------
  30508. +
  30509. + - led.new: improved handling of LANE flush protocol (Heikki Vatiainen)
  30510. + - copied USAGE from led/ to led.new/
  30511. + - added description of ilmid options -i and -u to USAGE (Heikki Vatiainen)
  30512. + - ilmid -u now also works without -DDYNAMIC_UNI (all values but the default
  30513. + are refused)
  30514. + - tcpdump patch updated to tcpdump version 3.4 (Heikki Vatiainen)
  30515. + - updated "tc" patch to iproute2 version 2.1.99-now-ss990203
  30516. +
  30517. +
  30518. +Version 0.52 to 0.53 (9-FEB-1999)
  30519. +====================
  30520. +
  30521. +Bug fixes
  30522. +---------
  30523. +
  30524. + - atmsigd: selecting the UNI version via compile-time options didn't yield
  30525. + the desired result in some cases (reported by Vinay Kulkarni and others)
  30526. + - ATM VCCs now use struct sock, as required by protocol-independent layer
  30527. + starting with recent 2.1 kernels (by Mitchell Blank)
  30528. + - led fixes: htons/htonl bugs in LANEv2 code, one duplicate close() removed
  30529. + (by Heikki Vatiainen)
  30530. +
  30531. +New features
  30532. +------------
  30533. +
  30534. + - upgraded to the 2.2.1 kernel (by Mitchell Blank)
  30535. + - LANE: added bridging support (by Heikki Vatiainen)
  30536. + - complete rewrite of led (in led.new), which is now leaner and no longer
  30537. + contains code (c) Digital (by Heikki Vatiainen)
  30538. + - added macros for local AESA format and group addresses, and support in
  30539. + atm2text (by Heikki Vatiainen)
  30540. +
  30541. +Other changes
  30542. +-------------
  30543. +
  30544. + - ENI: buffer sizes are now limited to MID_MAX_BUF_SIZE even if max_sdu >
  30545. + MID_MAX_BUF_SIZE/3 (reported by Andrew Lunn)
  30546. + - plenty of NICStAR changes (Rui Prior and Mitchell Blank)
  30547. + - LANE interface to upper layer looks more like Ethernet, so adding bridge and
  30548. + 802.1Q support is easier, and tcpdump does not need any extra patches (by
  30549. + Heikki Vatiainen)
  30550. +
  30551. +
  30552. +Version 0.51 to 0.52 (5-DEC-1998)
  30553. +====================
  30554. +
  30555. +Bug fixes
  30556. +---------
  30557. +
  30558. + - atmsigd crashed when receiving STATUS ENQUIRY for call in Null state
  30559. + (reported by Heikki Vatiainen)
  30560. + - outbound endpoint reference didin't have the 16th bit toggled (fixed by
  30561. + Andrew Lunn)
  30562. + - lec.c: fixed a bug in kernel which could cause kernel part to deadlock when
  30563. + signalling was not started successfully (by Heikki Vatiainen)
  30564. + - MPOA: bug fixes and other changes, see atm/mpoa/CHANGELOG (by Heikki
  30565. + Vatiainen)
  30566. +
  30567. +New features
  30568. +------------
  30569. +
  30570. + - LANE: both kernel & daemon: support for ELANs which have MTUs greater than
  30571. + 1516 (by Eric H. Kinzie)
  30572. + - MPOA: can now ask LECS for configuratino information (by Heikki Vatiainen)
  30573. +
  30574. +Other changes
  30575. +-------------
  30576. +
  30577. + - zeppelin.8: updated (Heikki Vatiainen)
  30578. +
  30579. +
  30580. +Version 0.50 to 0.51 (6-NOV-1998)
  30581. +====================
  30582. +
  30583. +Bug fixes
  30584. +---------
  30585. +
  30586. + - atmsigd: typo prevented kernel.c from compiling with UNI30 disabled (fix by
  30587. + Andrew Lunn and Uwe Dannowski)
  30588. + - option -u crashed ilmid (reported by Michael Wolf)
  30589. +
  30590. +Other changes
  30591. +-------------
  30592. +
  30593. + - bearer capability is now set to "CBR" for CBR (suggested by Heikki
  30594. + Vatiainen)
  30595. +
  30596. +
  30597. +Version 0.49 to 0.50 (3-NOV-1998)
  30598. +====================
  30599. +
  30600. +Bug fixes
  30601. +---------
  30602. +
  30603. + - atmsigd didn't compile for -DUNI31 -DALLOW_UNI30 (fixed by Richard Gooch)
  30604. + - atmsigd crashed on as_bind and also had problems with as_connect after
  30605. + as_bind (reported by Heiko Krupp, Heikki Vatiainen, and many others)
  30606. +
  30607. +Other changes
  30608. +-------------
  30609. +
  30610. + - atmsigd now enables tracing by default (use -t 0 to turn it off)
  30611. + - added "terminate" message to test/isp
  30612. + - mpoad defaults to UBR if service category is absent (by Heikki Vatiainen)
  30613. + - LANE now avoids blocking intact connections when other connections have
  30614. + problems by queuing packets independently per destination while waiting for
  30615. + a connection (by Heikki Vatiainen)
  30616. +
  30617. +
  30618. +Version 0.48 to 0.49 (1-NOV-1998)
  30619. +====================
  30620. +
  30621. +Bug fixes
  30622. +---------
  30623. +
  30624. + - q_atm.c passed TCA_ATM_EXCESS even if zero, while the kernel expected it
  30625. + to be absent in this case (changed q_atm.c)
  30626. + - q_atm: tc class show didn't separate fields properly with blanks
  30627. + - removed double inclusion of atm/config from mkdist
  30628. +
  30629. +New features
  30630. +------------
  30631. +
  30632. + - upgraded to the 2.1.126 kernel
  30633. +
  30634. +Other changes
  30635. +-------------
  30636. +
  30637. + - "new" atmsigd is now the default (atm/sigd got renamed to atm/sigd.old,
  30638. + atm/sigd.new to atm/sigd)
  30639. + - updated extra/tc/README
  30640. +
  30641. +
  30642. +Version 0.47 to 0.48 (30-OCT-1998)
  30643. +====================
  30644. +
  30645. +Bug fixes
  30646. +---------
  30647. +
  30648. + - ilmid didn't recognize the -u option
  30649. + - ATM_GETCIRANGE copied wrong amount of data (fix by Heikki Vatiainen)
  30650. + - sch_atm didn't compile without policing enabled (reported by Calin Poenaru)
  30651. + - BHLI octets: qgen/msg.fmt allowed nine instead of eight bytes for ISO and
  30652. + user specified, include/linux/atmsap.h:ATM_MAX_HLI was 7 instead of 8 (by
  30653. + Damian Gilmurray and Paisit Thamsakorn)
  30654. + - MPOA: bug fixes and other changes, see atm/mpoa/CHANGELOG (by Heikki
  30655. + Vatiainen)
  30656. +
  30657. +New features
  30658. +------------
  30659. +
  30660. + - ilmid: new option -i to set local IP address (suggested by Andrew May)
  30661. + - ilmid now also supports the MIB variables atmfAtmLayerMaxVpiBits and
  30662. + atmfAtmLayerMaxVciBits (based on a patch by Uwe Dannowski)
  30663. +
  30664. +Other changes
  30665. +-------------
  30666. +
  30667. + - ilmid: search for local IP address didn't consider LANE interfaces (lec*)
  30668. + - consolidated most of the various calls to gethostbyname and friends into
  30669. + text2ip (libatmd)
  30670. + - corrected some glitches in net/sched/sch_atm.c (untested)
  30671. + - removed debug/encopy, debug/endump, and debug/zndump from the distribution.
  30672. + They were almost useless and caused problems with make depend
  30673. + - SYMFILES in qgen/Makefile now determines location of atmsap.h at run time to
  30674. + avoid problems when kernel headers are not in /usr/include/linux (reported
  30675. + by Uwe Dannowski)
  30676. +
  30677. +
  30678. +Version 0.46 to 0.47 (6-OCT-1998)
  30679. +====================
  30680. +
  30681. +Bug fixes
  30682. +---------
  30683. +
  30684. + - qgen didn't build for all UNI versions (fixed by Richard Gooch)
  30685. +
  30686. +New features
  30687. +------------
  30688. +
  30689. + - ilmid: new option -u to set UNI version (3.0, 3.1, or 4.0). Only available
  30690. + if compiled with -DDYNAMIC_UNI.
  30691. +
  30692. +Other changes
  30693. +-------------
  30694. +
  30695. + - ilmid: getIpAddr: improved robustness and added debugging output
  30696. +
  30697. +
  30698. +Version 0.45 to 0.46 (5-OCT-1998)
  30699. +====================
  30700. +
  30701. +Bug fixes
  30702. +---------
  30703. +
  30704. + - ENI and ZATM driver used to read IRQ directly from PCI configuration,
  30705. + bypassing any fixups (reported by Richard Gooch)
  30706. + - atmsigd.new: removed "Known bug" memory leak (when tracing)
  30707. + - led/lec_ctrl.c: signalling bug fixed, max_sdu now has correct value instead
  30708. + of 1 (by Heikki Vatiainen, reported by Josh Baratz <jbaratz@lucentctc.com>
  30709. + and Wolfgang Platzer <wplatzer@iaik.tu-graz.ac.at>)
  30710. + - lots of MPOA bug fixes and other changes, see atm/mpoa/CHANGELOG (by Heikki
  30711. + Vatiainen)
  30712. + - atmsigd reported "Q.2931.1" when configured to support Q.2963.1
  30713. +
  30714. +New features
  30715. +------------
  30716. +
  30717. + - atmsigd.new now supports run-time configuration of the signaling protocol
  30718. + version (via atmsigd.conf)
  30719. +
  30720. +Other changes
  30721. +-------------
  30722. +
  30723. + - added 16W bursts to ENI burst size configuration (NB: 16W may actually be
  30724. + *slower* than 8W)
  30725. + - lec_ctrl.c: zeppelin now uses LE_REGISTER protocol when TLVs are associated
  30726. + with client's MAC address (by Heikki Vatiainen)
  30727. +
  30728. +
  30729. +Version 0.44 to 0.45 (1-OCT-1998)
  30730. +====================
  30731. +
  30732. +Bug fixes
  30733. +---------
  30734. +
  30735. + - ENI driver didn't do four-word bursts on RX for sizes < 8 words
  30736. + - arequipad, atmarpd, bus, lecs, les, mpcd, sw_*, and zeppelin silently
  30737. + ignored extra command-line arguments instead of complaining
  30738. +
  30739. +New features
  30740. +------------
  30741. +
  30742. + - ENI: added configuration options to fine-tune burst sizes (in reponse to
  30743. + incompatibility found by Dave Airlie)
  30744. +
  30745. +Other changes
  30746. +-------------
  30747. +
  30748. + - changed the way how ATM-specific data is stored in skbs. Tentatively updated
  30749. + the the stack, including drivers. Use CONFIG_ATM_SKB to enable the new-style
  30750. + skbs.
  30751. + - Rules.make no longer discards the previous value of LDLIBS
  30752. + - sw_tcp now only establishes bi-directional VCs if both directions are really
  30753. + requested in the QoS structure
  30754. + - moved manual switch control from sw_tcp to the generic switch code; "tcpswc"
  30755. + is now called "swc", the corresponding switch.conf clause is now
  30756. + 'control <path>' instead of 'option control "<path>"'
  30757. +
  30758. +
  30759. +Version 0.43 to 0.44 (24-SEP-1998)
  30760. +====================
  30761. +
  30762. +Bug fixes
  30763. +---------
  30764. +
  30765. + - CONNECT messages no longer contain the AAL type IE if EP ref is present and
  30766. + non-zero (reported by Heikki Vatiainen)
  30767. + - SSCOP: added mode for partial compatibility with Q.SAAL1 (to get rid of
  30768. + warnings reported by Heikki Vatiainen and of interoperability problems with
  30769. + Virata switches reported by Damian Gilmurray)
  30770. + - ilmid now returns a valid response for atmfMyIpNmAddress (by Uwe Dannowski)
  30771. + - configuration on-line help for CLIP didn't work because tag was different
  30772. + from configuration variable
  30773. + - atmsigd crashed when adding multiple local addresses on an interface
  30774. + (reported by Heiko Krupp)
  30775. + - atmaddr.8 said "ATMARP" in the header (reported by Hans Einsiedler)
  30776. + - net/atm/misc.c didn't include linux/config.h and linux/module.h, causing
  30777. + symbols to be missing when rebuilding the kernel after enabling modules
  30778. + (reported by Thomas Parvais)
  30779. +
  30780. +New features
  30781. +------------
  30782. +
  30783. + - new maintenance utility tcpswc to control sw_tcp "switches" (description at
  30784. + the end of switch/tcp/README)
  30785. + - added support for setting the CLP bit (untested; see doc/README.CLP)
  30786. + - added support for policing to the ATM qdisc (untested; see extra/tc/README)
  30787. + - ilmid: added support for atmfAtmLayerUniVersion (by Uwe Dannowski)
  30788. +
  30789. +Other changes
  30790. +-------------
  30791. +
  30792. + - updated the NICStAR driver to version 008b (by Rui Prior)
  30793. + - new switch fabric function fab_option to pass configuration options
  30794. + - atm2text now also supports unspecified and wildcard components in PVC
  30795. + addresses
  30796. + - added configuration option CONFIG_ATM_CLIP_NO_ICMP to discard packets for
  30797. + which no ATMARP entry exists silently instead of sending an ICMP (this is an
  30798. + ugly hack-around for the revalidation problem reported by Gerald Hanusch)
  30799. + - various minor documentation updates
  30800. + - atmarpd now sends InARP requests when active VC setup completes in order to
  30801. + tell the peer our IP address(es)
  30802. +
  30803. +
  30804. +Version 0.42 to 0.43 (21-AUG-1998)
  30805. +====================
  30806. +
  30807. +Bug fixes
  30808. +---------
  30809. +
  30810. + - trying to use atmtcp when compiled as a module with the module not loaded
  30811. + crashed the kernel
  30812. +
  30813. +New features
  30814. +------------
  30815. +
  30816. + - upgraded to the 2.1.117 kernel
  30817. + - included NICStAR driver by Rui Prior at INESC (this driver also includes
  30818. + parts of an earlier driver written by Matt Welsh, then enhanced by R. D.
  30819. + Rechenmacher and Jawaid Bazyar)
  30820. + - new atmsigd with support for multiple signaling entities (experimental)
  30821. +
  30822. +Other changes
  30823. +-------------
  30824. +
  30825. + - removed register dumping code from suni.c (leaked out into the distribution)
  30826. +
  30827. +
  30828. +Version 0.41 to 0.42 (19-AUG-1998)
  30829. +====================
  30830. +
  30831. +Bug fixes
  30832. +---------
  30833. +
  30834. + - atm.patch was out of sync again :-(
  30835. +
  30836. +
  30837. +Version 0.40 to 0.41 (19-AUG-1998)
  30838. +====================
  30839. +
  30840. +Bug fixes
  30841. +---------
  30842. +
  30843. + - 0.40 contained an older atm.patch than the one that was supposed to go with
  30844. + it (some changes to sch_atm and MPOA were missing)
  30845. + - kernel didn't build with LANE enabled and MPOA disabled (fix by Mitchell
  30846. + Blank Jr)
  30847. +
  30848. +New features
  30849. +------------
  30850. +
  30851. + - MPOA now also supports CBR SVCs (by Heikki Vatiainen and Sampo Saaristo)
  30852. +
  30853. +Other changes
  30854. +-------------
  30855. +
  30856. + - atmtcp may work as a module (untested)
  30857. + - kernel code now uses capabilities instead of suser()
  30858. + - removed obsolete recycle_buffer code
  30859. + - distribution now also includes mkpatch, the script that's used to create
  30860. + atm.patch
  30861. +
  30862. +
  30863. +Version 0.39 to 0.40 (13-AUG-1998)
  30864. +====================
  30865. +
  30866. +Bug fixes
  30867. +---------
  30868. +
  30869. + - ilmid defined the value of "invalid" as 0 instead of 2 (fix by Timo
  30870. + Parnanen)
  30871. + - bash-2 doesn't like for n in $(SUBDIR); ... if SUBDIR is undefined (fix
  30872. + by Heikki Vatiainen)
  30873. + - LANE still cleared ATM_VF_RELEASED instead of calling atm_async_release_vcc,
  30874. + which apparently led to stray kernel crashes in signaling (found with a lot
  30875. + of help from John McPherson)
  30876. + - ATM qdisc now properly re-allocates skb memory to grow headers, if necessary
  30877. + - atm/switch/Makefile didn't build SUBDIRS
  30878. + - atmarpd sent garbage ATM addresses in InARP responses over PVCs (reported by
  30879. + Stefan Keller-Tuberg)
  30880. +
  30881. +New features
  30882. +------------
  30883. +
  30884. + - MPOA (Multi-Protocol Over ATM) client support written by Heikki Vatiainen
  30885. + and Sampo Saaristo
  30886. + - LANE client (zeppelin) now also supports LANE2 (by Heikki Vatiainen)
  30887. +
  30888. +Other changes
  30889. +-------------
  30890. +
  30891. + - accept() now also returns on ATM_VF_CLOSE
  30892. + - ATM qdisc now uses the same data format on rtnetlink as other qdiscs; new
  30893. + option for user-provided headers
  30894. + - atm/switch can now use "external" routing (e.g. provided by the fab control)
  30895. +
  30896. +
  30897. +Version 0.38 to 0.39 (4-AUG-1998)
  30898. +====================
  30899. +
  30900. +Bug fixes
  30901. +---------
  30902. +
  30903. + - added missing #include <atm.h> in tcpsw.c (fixed by Heikki Vatiainen)
  30904. + - atmsigd allowed both sides to initiate PCR modification; Q.2963.1 only
  30905. + allows the connection owner (i.e. the caller) to do this
  30906. + - atmarpd no longer tries to use incoming SVCs with zero backward bandwidth
  30907. + for ATMARP
  30908. + - ENI and ZATM drivers didn't invoke vcc->pop on dev->ops->send failure
  30909. + - make install didn't probe correctly for presence of /usr/include/stdint.h
  30910. + (needed on GLIBC 1 systems)
  30911. + - net/atm/resources.c didn't export bind_vcc to modules (fix by Oliver
  30912. + Frommel)
  30913. + - net/arpd/atmarp didn't build without make depend (reported by Stefano
  30914. + Giacometti)
  30915. + - clip_mkip zeroed vcc->rx_inuse and didn't take into account that clip_push
  30916. + calls atm_return, which subtracts from vcc->rx_inuse too
  30917. + - fixed typos in qgen/uni.h (and msg.fmt) for causes 38, 41, and 43
  30918. + - atmsigd wrote exit trace to stderr when it had a dump directory and vice
  30919. + versa
  30920. + - documentation still claimed that atmtcp yields messages at boot time
  30921. +
  30922. +New features
  30923. +------------
  30924. +
  30925. + - added flow to ATM VCC mapping queuing discipline (experimental)
  30926. + - module for setting up ATM PVC/SVC mappings with "tc" in extra/tc (see
  30927. + extra/tc/README)
  30928. + - atmarpd: new request type art_query to request resolution without VC setup
  30929. + - atmarp: new undocumented option -Q to test art_query
  30930. + - added ATMTCP interfaces that survive disconnects (persistent; new atmtcp(8)
  30931. + options -p and -r; new ioctls ATMTCP_CREATE and ATMTCP_REMOVE)
  30932. +
  30933. +Other changes
  30934. +-------------
  30935. +
  30936. + - zeppelin didn't explicitly set the AAL type for outbound connections (by
  30937. + Heikki Vatiainen)
  30938. + - CLIP also allows SVCs to have no idle timeout at all (timeout = 0)
  30939. + - moved SUNI private ioctls (SUNI_GETLOOP and SUNI_SETLOOP) from
  30940. + drivers/atm/suni.h to include/linux/atm_suni.h
  30941. + - atmarpd now shows QoS information for VCs where it differs from the default
  30942. + or where no default is applicable
  30943. + - removed the file atm/WARNING, which gave an overly pessimistic perspective
  30944. + of the state of things
  30945. + - switch: fab_op now returns the cause value plus (optionally) a pointer to
  30946. + diagnostics in the callback instead of a simple okay/not okay indication
  30947. + - updated and corrected the atmtcp man page
  30948. + - further cleanup of the build procedure
  30949. + - README now mainly refers to http://lrcwww.epfl.ch/linux-atm/info.html
  30950. + - updated and trimmed BUGS
  30951. + - added a note to CREDITS indicating its obsolescence
  30952. +
  30953. +
  30954. +Version 0.37 to 0.38 (25-JUN-1998)
  30955. +====================
  30956. +
  30957. +Bug fixes
  30958. +---------
  30959. +
  30960. + - fixed the remaining few #include <linux/atm.h>
  30961. + - invoking fcntl() or socketpair() on an ATM socket caused an "Oops" (reported
  30962. + by Jonathan Chan)
  30963. + - CLIP PVCs caused an "Oops" when cat'ing /proc/atm/pvc (reported by Marko
  30964. + Kiiskila and Robert Olsson)
  30965. + - atm/qgen/default.nl wasn't removed after build failure
  30966. + - debugging switch (sw_debug) did not stop operations after the first error
  30967. + - svc_accept returned apparent success instead of -EAGAIN, usually leading to
  30968. + a later -ENOTCONN
  30969. + - ttcp.c didn't initialize port_name, leading to erratic behaviour when making
  30970. + slight changes to the build process
  30971. + - atm_pdu2truesize diverged from alloc_skb, leading to sudden failure of VCs
  30972. + or of ATMARP (reported by Robert Olsson)
  30973. + - corrected use of '~' when applied to unsigned longs representing memory
  30974. + addresses in aread, ENI, and ZATM (reported by Wai-Sun Chia)
  30975. + - atmtcp and LANE didn't use bind_vcc when setting up control VCs
  30976. + - atmtcp got ENOMEM/EBUSY wrong when failing to create an interface
  30977. + - sig level <level> in atmsigd.conf didn't affect UNI diagnostics
  30978. +
  30979. +New features
  30980. +------------
  30981. +
  30982. + - upgraded to the 2.1.105 kernel
  30983. + - added ATMTCP "switch" in atm/switch/tcp
  30984. + - atmtcp: new mode -s to connect to an ATMTCP "switch"
  30985. + - atmtcp: new option -d for debugging output
  30986. + - added -b option (the usual "background") to switch/relay.c
  30987. +
  30988. +Other changes
  30989. +-------------
  30990. +
  30991. + - changed "PDU" to "SDU" in the atmtcp(8) man page
  30992. + - atmarpd now includes the interface netmask in ATMARP table dumps
  30993. + - added ATM devices also to the Alpha architecture, because at least ATMTCP
  30994. + works (by Wai-Sun Chia)
  30995. + - added the removal of -Wmissing-prototypes to the 0.37 changes
  30996. + - removed -Wcast-align from Rules.make because of a conflict with
  30997. + /usr/include/socketbits.h of glibc 2 on Alphas (reported by Wai-Sun Chia)
  30998. + - atmsigd.conf.4: documented that debug log stderr works too
  30999. + - sap_equal now also allows wildcard matches for BHLI (with SXE_COMPATIBLE)
  31000. + - atmsigd now uses -m <mode> instead of -N and -A
  31001. + - atmsigd.conf now uses sig mode <mode> instead of sig net
  31002. +
  31003. +
  31004. +Version 0.36 to 0.37 (6-JUN-1998)
  31005. +====================
  31006. +
  31007. +Bug fixes
  31008. +---------
  31009. +
  31010. + - lib/atm.h defined AF_ATMPVC to 20, but the correct value is 8. Likewise,
  31011. + AF_ATMSVC should be 20, not 21. (Reported by Luke Diamand)
  31012. + - fixed bad ASN encoding in ilmid (by Vesa-Matti Puro)
  31013. + - make install and make instdirs didn't stop on error
  31014. +
  31015. +New features
  31016. +------------
  31017. +
  31018. + - upgraded to the 2.1.104 kernel
  31019. + - included a script to demonstrate the debug switch (see switch/debug/README)
  31020. +
  31021. +Other changes
  31022. +-------------
  31023. +
  31024. + - moved definitions not used by the kernel from linux/atmarp.h to atmarp.h
  31025. + - removed linux/atm_stdint.h (linux/types.h has now caught up)
  31026. + - changed ENI and ZATM driver to use new PCI interface
  31027. + - net/atm/clip.c no longer uses ether_setup (suggested by Alexey Kuznetsov)
  31028. + - more header file cleanup (main change: applications should now
  31029. + #include <atm.h> instead of #include <linux/atm.h>)
  31030. + - removed -Wmissing-prototypes from Rules.make because of a conflict with
  31031. + include/linux/byteorder/swab.h
  31032. +
  31033. +
  31034. +Version 0.35 to 0.36 (23-APR-1998)
  31035. +====================
  31036. +
  31037. +Bug fixes
  31038. +---------
  31039. +
  31040. + - changed the numeric values of PF/AF_ATMPVC/SVC and SOL_ATM/AAL to avoid
  31041. + conflicts with other allocations. This breaks binary compatibility with
  31042. + ATM programs compiled under older kernels
  31043. + - RESTART ACK was sent with the wrong class when acknowledging the restart of
  31044. + the indicated virtual channel (fix by Mohsen Souissi)
  31045. + - RELEASE was retransmitted forever (to avoid having to perform a RESTART),
  31046. + although it's sufficient to retransmit once and then drop the connection
  31047. + - esi.c checked the kernel version code without including linux/version.h
  31048. + - CLIP changes magically fixed hangs on SICGIFCONF (reported by Wayne Salamon)
  31049. + - atmsigd usually didn't set pvc.sap_family in ISP messages
  31050. +
  31051. +New features
  31052. +------------
  31053. +
  31054. + - added build-time option -DTHOMFLEX to send RESTART when SAAL comes up, which
  31055. + works around a bug in some Thomson Thomflex 5000 switches (by Mohsen
  31056. + Souissi)
  31057. + - atmtcp: new option "-i itf" to request a specific interface number
  31058. + - the "debug switch" (switch/debug/sw_debug) is now capable of successfully
  31059. + signaling a UNI 3.x call (see switch/debug/README for details)
  31060. +
  31061. +Other changes
  31062. +-------------
  31063. +
  31064. + - atm_equal can now also compare PVC addresses. The argument type has
  31065. + therefore been changed from struct sockaddr_atmsvc * to struct sockaddr *
  31066. + - moved driver-private data from skb->atm.* into skb->cb
  31067. + - complete redesign of communication between atmarp(8) and atmarpd(8) (now
  31068. + uses a UNIX domain socket; suggested by Alexey Kuznetsov)
  31069. + - atmarp -a now also produces correct output if atmarpd is running with -d
  31070. + - removed clip(8)
  31071. + - moved atmarp(8) from atm/ip into atm/arpd, removed atm/ip
  31072. + - /proc/atm/svc shows listening sockets again
  31073. + - cleaned up a few cases where diag(...,DIAG_FATAL,...) was followed by an
  31074. + "else" or a "return".
  31075. + - atmsigd now uses Unix domain sockets (instead of named pipes) to communicate
  31076. + with non-kernel ISP users (updated test/isp too)
  31077. + - net/atm/resources.c:atm_dev_register can now be asked to assign a specific
  31078. + interface number (-1 yields the old behaviour)
  31079. +
  31080. +
  31081. +Version 0.34 to 0.35 (27-MAR-1998)
  31082. +====================
  31083. +
  31084. +Bug fixes
  31085. +---------
  31086. +
  31087. + - ilmid compared memcmp results with -1,1, which fails under optimization
  31088. + (fixed by Damian Gilmurray)
  31089. + - various fixes and cleanup in how CLIP interacts with the neighbour cache
  31090. + (spotted by Alexey Kuznetsov)
  31091. + - Rules.make complained about missing "optprocess" command on some occasions
  31092. +
  31093. +New features
  31094. +------------
  31095. +
  31096. + - upgraded to the 2.1.90 kernel
  31097. + - added some components for ATM switch control (not properly integrated yet,
  31098. + so they don't do anything useful at the moment; written by Roman Pletka)
  31099. +
  31100. +Other changes
  31101. +-------------
  31102. +
  31103. + - eliminated various compiler warnings when compiling with glibc2
  31104. + - removed clip_hard_header (suggested by Alexey Kuznetsov)
  31105. +
  31106. +
  31107. +Version 0.33 to 0.34 (13-MAR-1998)
  31108. +====================
  31109. +
  31110. +Bug fixes
  31111. +---------
  31112. +
  31113. + - eni.c didn't include config.h (fix by Pete Wyckoff)
  31114. + - (yet another) VCC list handling bug (fixed by Heikki Vatiainen)
  31115. + - kernel also applied idle timeout to CLIP PVCs
  31116. + - make clean didn't remove test/errnos.inc
  31117. + - atmsigd errored as_connect and as_accept with as_close instead of as_error
  31118. + - eni: bandwidth was sometimes reserved for UBR VCs
  31119. + - eni: checking of bandwidth changes was broken
  31120. + - eni: error handling after failed bw change checks destroyed the free list
  31121. + - test/errnos.inc sometimes wasn't generated because of mtime granularity (fix
  31122. + by Brian Armstrong and Corinne Rosier)
  31123. + - fixed use of return code of get/put_user and copy_from/to_user
  31124. + - kernel: fixed a few minor race conditions
  31125. + - ATM_GETADDR left address list locked on fault
  31126. + - maximum length of high layer information was 7 bytes instead of 8 for ISO
  31127. + and User Specific high layer information (reported by Damian Gilmurray)
  31128. + - some tools didn't include errno.h although they use errno or Exxx
  31129. + - atmsigd usually accessed deallocated memory when writing traces, which
  31130. + sometimes led to crashes (reported by Heikki Vatiainen)
  31131. + - indentation of the first two lines of UNI signaling messages in traces was
  31132. + missing
  31133. + - LANE: duplicate data direct connections to entities where we already
  31134. + have a connection are now forbidden. LES and BUS can now co-reside.
  31135. + (Reported by Jean-Francois Moine, fixed by Heikki Vatiainen)
  31136. + - LANE: plugged a file descriptor leak (by Heikki Vatiainen)
  31137. + - atmsigd.conf.4 incorrectly stated that diagnostics must have a higher
  31138. + priority than the specified level to get printed (they're also printed if
  31139. + their priority is equal to that level)
  31140. + - zatm driver didn't virt_to_bus the back pointer of TX rings, leading to
  31141. + crash after sending the 32nd PDU of a VCC (reported by Ajay Bakre)
  31142. + - zatm_feedback sometimes returned with interrupts disabled
  31143. + - ENI driver didn't treat requests for UBR at link speed as "unlimited" and
  31144. + allocated one shaper for each such VCC
  31145. + - atm_async_release_vcc now has its own flag ATM_VF_CLOSE. Overloading
  31146. + ATM_VF_RELEASED caused hung SVCs under some conditions.
  31147. + - atmsigd sometimes released listening sockets before kernel completed its
  31148. + cleanup, yielding warnings and zombies
  31149. + - atmsigd accessed already deallocated data structures when handling
  31150. + unparseable signaling messages
  31151. +
  31152. +
  31153. +New features
  31154. +------------
  31155. +
  31156. + - upgraded to the 2.1.79 kernel
  31157. + - CLIP now handles NETDEV_CHANGE (proposed by Pete Wyckoff; untested)
  31158. + - various minor signaling changes for operation as switch control
  31159. + - new device operation proc_read: device drivers can now register in /proc
  31160. + (e.g. /proc/atm/eni:0)
  31161. + - added some more BHLI definitions to include/atmsap.h, including draft
  31162. + mapping of well-known TCP/UDP port numbers
  31163. + - added support for TIOCOUTQ/TIOCINQ on native ATM
  31164. + - new library function sap_equal
  31165. + - added convenience function atmpvc_addr_in_use to linux/atm.h
  31166. + - major overhaul of "isp", which is now a good tool for signaling regression
  31167. + tests. See atm/test/README.isp
  31168. + - LANE can now be compiled as a kernel module (by Heikki Vatiainen)
  31169. + - new tool debug/svctor.c to torture signaling by setting up and releasing
  31170. + lots of SVCs (see the source for details)
  31171. +
  31172. +Other changes
  31173. +-------------
  31174. +
  31175. + - cleaned up the copying terms: libraries are now covered by LGPL instead of
  31176. + GPL and qgen doesn't "taint" the code it generates
  31177. + - atmarpd: IP addresses are now __u32 instead of unsigned long
  31178. + - atmarpd: changed printf("... %08x ...",(unsigned long) ptr) to %p ...",ptr
  31179. + - /proc support now allocates inode numbers dynamically
  31180. + - added comment to clarify motivation for useless buffer alignment in aread.c
  31181. + (reported by Jeon Jong Hwan)
  31182. + - suni.c and uPD98402.c: SONET_GETSTATZ no longer clears the statistics if the
  31183. + copy faults
  31184. + - ilmid should now work on any interface (patch by Heikki Vatiainen)
  31185. + - changed all __uNN of tools to uintNN_t for glibc2-compatibility
  31186. + - added stdint.h to lib for compatibility with future versions of glibc2
  31187. + - various other evil hacks in tools to make things compile with glibc2
  31188. + - the NIC debugging programs ed, encopy, endump, zndump, and znth are no
  31189. + longer built and installed by default
  31190. + - for compatibility with POSIX 1003.1g, accept now returns ECONNABORTED
  31191. + instead of ECONNREFUSED if connection is already gone (proposed by Heikki
  31192. + Vatiainen)
  31193. + - listening sockets now return instantly if the signaling demon dies
  31194. + - various minor LANE updates to track API changes (by Heikki Vatiainen)
  31195. + - SUNI now also warns if signal is missing at initialization time
  31196. + - zatm: added work-around for unfair buffer space accounting
  31197. + - clarified some of atmarpd's diagnostics
  31198. + - documentation updates
  31199. +
  31200. +
  31201. +Version 0.32 to 0.33 (19-NOV-1997)
  31202. +====================
  31203. +
  31204. +Bug fixes
  31205. +---------
  31206. +
  31207. + - SSCOP did poll sequence number comparisons in the (data) sequence number
  31208. + space, typically leading to periodic SSCOP restarts (reported by Heikki
  31209. + Vatiainen)
  31210. + - atmsigd now releases calls on receipt of STATUS with call state 0 (reported
  31211. + by Heikki Vatiainen)
  31212. + - qgen tried to print the names of unnamed groups (fix by Simon Leinen)
  31213. + - make clean in qgen left all the .c and .h files produced by qgen
  31214. + - minor fixes to signaling message format description (qgen/msg.fmt,
  31215. + previously qgen/uni*)
  31216. + - /usr/include/atm.h was calling itself "atmlib" (found by Leena Chandran)
  31217. + - atmsigd: the address format of the calling party number was used to
  31218. + determine the format of the called party number in a SETUP message
  31219. + - added some semicolons to Rules.make for bash 2.0 compatibility (by Tan Chang
  31220. + Hu and Rolf Kunisch)
  31221. + - select/poll indicated an exception when a non-blocking connect terminated.
  31222. + Now it indicates writability, and an error only if the connect failed.
  31223. + - LES/BUS can now co-exist at the same address (by Heikki Vatiainen)
  31224. + - fixed race condition between asynchronous release (e.g. on ATMARP idle timer
  31225. + expiration) and signaling demon response
  31226. + - fixed a typo "[itf]." instead of "[itf.]" in atmsigd.conf.8
  31227. + - "ATM drivers" kernel configuration section is no longer a top-level menu
  31228. + item but it's now under "Network devices"
  31229. + - sigd_close forgot to purge VCs not connected to devices (e.g. closing ones),
  31230. + so they hung
  31231. + - the list of unconnected VCs was sometimes garbled
  31232. + - atmsigd printed null string for as_itf_notify message name when debugging
  31233. + - Arequipa: check_aq_vcc also accepted VCs that were already released by
  31234. + signaling
  31235. + - ATM_VF_PARTIAL and ATM_VF_BOUND had the same value
  31236. + - atmaddr still used old calling convention of ATM_GETNAMES
  31237. + - the atmarpd man page referred to atmarpd as "atmsigd"
  31238. + - various atmtcp bug fixes
  31239. + - atm_recvmsg sometimes returned with interrupts disabled (reported by Pete
  31240. + Wyckoff)
  31241. + - fixed ttcp_atm dependencies (.depend contains dependencies for "ttcp.o")
  31242. + - UNI message format: "more" was missing for def_pck_size
  31243. + - eni/suni didn't compile as modules (fixed by Pete Wyckoff and Ladislav
  31244. + Lhotka)
  31245. + - further net/atm/Makefile cleanup
  31246. + - arequipa_close always left the socket with arequipa_expect enabled. Now it
  31247. + returns it to the previous state.
  31248. + - ENI driver was leaking buffer memory on failure of set_tx
  31249. + - atmarpd didn't print symbolic names of "new" flags (ATF_ARPSRV, etc.)
  31250. + - ATM ARP server didn't make client entries public (reported by Tom Mahieu)
  31251. + - drivers/atm/Config.in had extra "endmenu" (fixed by Ladislav Lhotka)
  31252. + - atmarpd got confused when receiving InARP reply without source ATM address
  31253. + - atmsigd sometimes didn't stop timers if Q.2963.1 wasn't enabled
  31254. + - when rejecting a call, the kernel freed the VCC twice
  31255. +
  31256. +New features
  31257. +------------
  31258. +
  31259. + - merged source tree (except Arequipa, single-copy, and various NIC drivers)
  31260. + with 2.1.65-Linus tree
  31261. + - qgen can now handle repeated information elements
  31262. + - added ATM_SETESI[F] ioctl and esi utility (boards without a real ESI in ROM
  31263. + should now set the default ESI to 0x000000000000)
  31264. + - new socket option SO_ATMSAP along with struct atm_sap (using a fixed-size
  31265. + BLLI array instead of the linked list in struct sockaddr_atmsvc)
  31266. + - added Q.2963.1 PCR modification in signaling and the ENI driver
  31267. + - aread: new option -c to print received data as characters (similar to od -c)
  31268. + - new tool test/align to test handling of mis-alignment in NIC drivers
  31269. + - atmsigd now supports policy restrictions for incoming/outgoing calls (see
  31270. + atmsigd.conf.4, "policy")
  31271. + - atmsigd can now also use a pair of named pipes (or, actually, any named
  31272. + object in the file system) for communicating with the user of signaling
  31273. + (normally the kernel)
  31274. + - new tool called "isp" (for "Internal Signaling Protocol") to talk ISP with
  31275. + atmsigd over named pipes
  31276. + - new functions sap2text and text2sap to converts SAPs to/from textual
  31277. + representation, and a sap(7) man page
  31278. + - new traffic parameter field "pcr" to indicate the desired PCR. min_pcr and
  31279. + max_pcr can the be used to indicate the acceptable range.
  31280. + - new function atm_pcr_goal to help drivers to interpret traffic parameters
  31281. +
  31282. +Other changes
  31283. +-------------
  31284. +
  31285. + - removed some more obsolete CLIP-related ioctls
  31286. + - qgen: simplified generation of engines with a prefix other than "q" or "qd"
  31287. + - ENI and ZATM drivers now use shareable interrupts
  31288. + - cleaned up some 32bit-isms in ENI driver
  31289. + - cleaned up several 32bit-isms in SSCOP (reported by Tan Chang Hu)
  31290. + - SSCOP: work-arounds for buggy ntohl prototype in some early versions of
  31291. + glibc (reported by Tan Chang Hu, further explored by David S. Miller and
  31292. + Richard Henderson)
  31293. + - started updating the ZATM driver for 2.1 (still crashes under load)
  31294. + - added missing 2.1 pieces in ENI's SUNI driver
  31295. + - added __initfunc and __initdata where appropriate
  31296. + - tools tree now compiles under 0.31 (2.0.25 kernel) and 0.33 (2.1.55 kernel)
  31297. + - gratuitous improvement of identifier tree allocation in qgen
  31298. + - the interface number is now optional for sonetdiag (like for atmdiag)
  31299. + - started implementing the kernel side of point-to-multipoint signaling
  31300. + support
  31301. + - /proc/atm/arp now displays "resolving" or "expired" (with the number of
  31302. + times the entry is referenced) instead of "incomplete".
  31303. + - moved ATM_MAX_BLLI from linux/atm.h to linux/atmsap.h
  31304. + - changed ttcp_atm to use SO_ATMSAP (if available) to set BHLI
  31305. + Note: ttcp_atm previously didn't use a BHLI, so old and new versions of
  31306. + ttcp_atm don't interoperate.
  31307. + - updated all other programs using SAPs too, except for LANE
  31308. + - ENI: failure to allocate a traffic shaper now yields EBUSY instead of EAGAIN
  31309. + - instead of just complaining, the ENI driver now handles all kinds of
  31310. + mis-alignment in the TX path properly
  31311. + - re-implemented send and receive side of Arequipa
  31312. + - merged qgen/uni3x and qgen/uni40 into msg.fmt
  31313. + - added missing Q.2931/UNI 4.0 items to qgen/q2931.h and msg.fmt
  31314. + - also added BLLI L3 H.310 codepoint with related encodings
  31315. + - various file name and identifier changes to give a more appropriate name
  31316. + (e.g. "uni" or "call") to something that's never been Q.2931
  31317. + - added library dependencies
  31318. + - atmsigd produces more readable and usually more comprehensive debugging
  31319. + output
  31320. + - atmsigd.conf.4 now mentions that -d is the debugging output addict's choice
  31321. + - all programs accepting -l syslog now also accept -l stderr. (This is useful
  31322. + for atmsigd if atmsigd.conf sets logging to something else.)
  31323. + - atmsigd now issues ATM_GETADDR ioctls on the signaling socket, not on the
  31324. + kernel socket
  31325. + - WARNING: text2qos: "pcr" is no longer a synonym for "max_pcr" !
  31326. + - text2qos now refuses min_pcr=max
  31327. + - device driver interface: removed vcc->peek; device drivers now choose their
  31328. + own allocation strategy (change motivated by bug report from Furquan Ansari)
  31329. + - drive driver interface: new helper functions atm_charge/atm_return to handle
  31330. + buffer space allocation
  31331. + - device driver interface: vcc->push no longer allocates buffer space. This is
  31332. + now done by the driver, via atm_charge
  31333. + - updated eni, zatm, and atmtcp to use the new mechanism
  31334. + - zero padding in eni driver failed due to mis-alignment on some systems
  31335. + (fixed by Pete Wyckoff)
  31336. + - various compiler warnings removed (by Pete Wyckoff)
  31337. + - removed support for pre-AREQUIPA_WORK mechanism
  31338. + - arequipa close mechanism cleanup
  31339. + - further cleaned up QOS parameter checking
  31340. + - new ISP message as_identify for parallel call processing (not supported yet)
  31341. + - zatm: renamed struct zatm_thist to struct zatm_t_hist after wondering
  31342. + myself what on earth "this t" could be ...
  31343. + - doc/Makefile now invokes dvips with -o
  31344. +
  31345. +
  31346. +Version 0.31 to 0.32 (10-JUL-1997)
  31347. +====================
  31348. +
  31349. +Bug fixes
  31350. +---------
  31351. +
  31352. + - manipulation of local ATM addresses didn't check for permission
  31353. +
  31354. +New features
  31355. +------------
  31356. +
  31357. + - ilmid now supports the system group and a couple of ILMI MIB objects (by
  31358. + Scott Shumate)
  31359. + - device and VCC allocation is now dynamic
  31360. + - E.164 addressing support and corrections to address coding in uni3x/uni40
  31361. + (by S. A. Wright, T. C. Jepsen, and Z. Zhang)
  31362. + - support for device de-allocation via per-device operation dev_close
  31363. +
  31364. +Other changes
  31365. +-------------
  31366. +
  31367. + - upgrade to kernel version 2.1.37
  31368. + - ENI driver cleanup (uses readl/writel, skb_put, etc.)
  31369. + - socket option handling has changed: optval is now void * (to improve
  31370. + compile-time type checking) and optlen is int (not int *) in getsockopt
  31371. + - socket option "names" now encode the level and the size (based on an idea of
  31372. + Elwyn Davies)
  31373. + - cleaned up some of the #includes in net/atm/proc.c
  31374. + - total rewrite of ATMTCP (now the data forwarding is done in user space,
  31375. + which makes things slower but a lot more flexible)
  31376. + - separated PDU parsing and printing from SSCOP state machine
  31377. + - new per-device operation dev_close to shut down devices
  31378. + - changed a few DIAG_WARNs to DIAG_INFO in ilmid
  31379. +
  31380. +Removed features
  31381. +----------------
  31382. +
  31383. + - polled ATM devices are no longer supported
  31384. + - CLIP is gone (use ATMARP instead)
  31385. + - Arequipa and LANE don't work yet (will come back later)
  31386. +
  31387. +
  31388. +Version 0.30 to 0.31 (22-APR-1997)
  31389. +====================
  31390. +
  31391. +Bug fixes
  31392. +---------
  31393. +
  31394. + - atmarpd even refused IP address changes by the ATMARP server, which
  31395. + typically led to the creation of one extra SVC
  31396. + - ATMARP timeouts were computed at the wrong place (found by Gerald Hanusch)
  31397. + - aqtest's usage didn't mention the -v option
  31398. + - some tools used 0x%p instead of %p (which is fine in the kernel, by the way)
  31399. + - skb_migrate didn't update skb->list
  31400. + - zeppelin: incurred spurious core dumps on unsuccessful attempts to connect
  31401. + to LANE servers, ESI parsing from command line seg faulted, obtaining ESI
  31402. + from NIC left an ATM socket hanging, man page didn't describe all options
  31403. + (by Marko Kiiskila and Heikki Vatiainen)
  31404. +
  31405. +Other changes
  31406. +-------------
  31407. +
  31408. + - arequipa_close now only returns after the Arequipa connection has been
  31409. + successfully closed. This allows applications to reliably close and
  31410. + re-create Arequipa SVCs, e.g. to change the traffic parameters.
  31411. + - the arequipad operations 3rd party close and synchronization are now handled
  31412. + inside the kernel and survive arequipad restarts
  31413. +
  31414. +
  31415. +Version 0.29 to 0.30 (10-APR-1997)
  31416. +====================
  31417. +
  31418. +Bug fixes
  31419. +---------
  31420. +
  31421. + - atmtcp didn't use vcc->push and therefore got the buffer usage accounting
  31422. + wrong (fix by Gerald Hanusch)
  31423. + - when closing a VC, the ENI driver didn't wait until all TX data has really
  31424. + left the board, which created a close/open race (found by Richard Jones)
  31425. + - SSCOP sometimes omitted the last element in a STAT PDU (fix - even with
  31426. + optimization vs. Q.2110 - by Ngo Bach Long)
  31427. + - atmarpd allowed ARP information to change permanent entries (found by Gerald
  31428. + Hanusch)
  31429. + - atmsigd's get_pvc used the maximum SDU size, thereby wasting buffer space
  31430. + very quickly, which led to signaling problems (reported by Richard Jones and
  31431. + Rik Wade)
  31432. + - oops, the BUGS file was always one version number ahead
  31433. + - ATMARP had a race between packets sent by the remote station and the
  31434. + ATMARP_MKIP ioctl. This caused the dreaded "unknown hw protocol 0xaaaa"
  31435. + error. (Finally fixed thanks to a dump provided by Patrick Flynn)
  31436. + - Arequipa had the same race for AREQUIPA_INCOMING. This probably caused the
  31437. + occasional "loss" (they were actually kept in vcc->recvq until the
  31438. + connection was closed) of the first packet(s).
  31439. +
  31440. +
  31441. +Version 0.28 to 0.29 (4-APR-1997)
  31442. +====================
  31443. +
  31444. +Bug fixes
  31445. +---------
  31446. +
  31447. + - saal/sscop.c: NORMALIZE macro was weird and broken (fix by Ngo Bach Long)
  31448. + - InARP queries didn't contain the target ATM address, even if it is known,
  31449. + which stretches the allowances RFC1577 makes for violating RFC1293 (found
  31450. + by Juha Heinanen)
  31451. + - tcp_conn_request: Arequipa modification to MTU size calculation used wrong
  31452. + socket (fix by Gerald Hanusch)
  31453. + - kernel ATMARP table handling had some obscure races
  31454. + - temporary work-around: added A2T_LOCAL when using A2T_NAME in atmsigd and
  31455. + atmarpd. Before, systems using ANS where the name server is reached via (IP
  31456. + over) ATM exhibited truly bizarre failure patterns when refreshing ATMARP
  31457. + entries. (With a lot of help from Juha Heinanen)
  31458. + - ditto for arequipad, although the effects were less dramatic
  31459. + - atmarpd: if not using -m, incoming connections for which a valid entry
  31460. + already existed (e.g. due to manual configuration) were not entered in the
  31461. + kernel ATMARP table until after the entry timed out for the first time (by
  31462. + Gerald Hanusch)
  31463. + - skb data areas are now aligned using skb_reserve instead of directly
  31464. + tampering with skb->data (and forgetting skb->tail in the process ...)
  31465. + (found by Uwe Dannowski)
  31466. +
  31467. +New features
  31468. +------------
  31469. +
  31470. + - atmarpd is now automatically notified of IP over ATM interfaces already
  31471. + existing at startup. This greatly simplifies the atmarpd restart ritual.
  31472. + (All ATMARP table entries and the default QoS are still lost, though.)
  31473. +
  31474. +Other changes
  31475. +-------------
  31476. +
  31477. + - cleaned up some weird and partially dead code in arpd/arp.c (found by
  31478. + Gerald Hanusch)
  31479. + - removed superfluous continue in arp.c:atmarp_setentry
  31480. + - device-driver specific declarations now reside in
  31481. + /usr/include/linux/atm_<drv_name>.h, so that disgusting hacks like
  31482. + #include "/usr/src/linux/..." can be avoided (based on proposal by Uwe
  31483. + Dannowski)
  31484. + - updated the list of supported NICs in README and the on-line help
  31485. + - arpd/atmarpd.8: documented that atmarpd -m may violate RFC1577 in subtle
  31486. + ways (pointed out by Gerald Hanusch)
  31487. + - updated MPR usage description to version 1.5 and removed mpr.patch
  31488. + - removed MEM_DEBUG from the build process (MPR 1.5 initializes itself
  31489. + automatically)
  31490. +
  31491. +
  31492. +Version 0.27 to 0.28 (27-MAR-1997)
  31493. +====================
  31494. +
  31495. +Bug fixes
  31496. +---------
  31497. +
  31498. + - atmarpd restarted timers on as_valid -> as_valid transitions, illegally
  31499. + delayed necessary refreshes (reported by Juha Heinanen)
  31500. + - SSCOP cleared POLL timer on IDLE timer expiry (fix by Ngo Bach Long)
  31501. + - atmsigd didn't initialize "now" soon enough, causing an unnecessary
  31502. + retransmission of the first BGN PDU (by Ngo Bach Long)
  31503. + - atmsigd responded to RELEASE COMPLETE in ss_rel_ind with a STATUS instead of
  31504. + entering ss_wait_close (by Steve Pope)
  31505. +
  31506. +New features
  31507. +------------
  31508. +
  31509. + - new tool aqpvc to declare incoming Arequipa traffic on a PVC to the system
  31510. + (caveat: removing such a PVC can turn out to be surprisingly difficult)
  31511. +
  31512. +Other changes
  31513. +-------------
  31514. +
  31515. + - removed some useless code in atmarpd's handling of VC disconnects
  31516. + - removed unused signaling state ss_hold (equivalent to ss_wait_rel)
  31517. +
  31518. +
  31519. +Version 0.26 to 0.27 (11-MAR-1997)
  31520. +====================
  31521. +
  31522. +Bug fixes
  31523. +---------
  31524. +
  31525. + - oops, forgot to include atm/lib/rtf2e164_cc.pl in the distribution
  31526. + - atmsigd's VCI allocation in -N mode was too simplistic and failed after some
  31527. + signaling activity (reported by Richard Jones)
  31528. + - atm_connect was rejecting ATM_{VPI,VCI}_ANY
  31529. + - aq_prev in the list of Arequipa connections wasn't set properly, leading to
  31530. + random crashes when using Arequipa (found and fixed by Richard Jones, after
  31531. + weeks of tearing his hair out)
  31532. + - arequipa_close didn't remove the Arequipa route, which kept the upper layer
  31533. + protocol connection alive for a rather long time (reported by Richard Jones)
  31534. +
  31535. +New features
  31536. +------------
  31537. +
  31538. + - ilmid enhancements: vastly improved retry mechanism, workaround for a bug in
  31539. + the ATML Virata switch, -v option for very detailed debug output (Scott
  31540. + Shumate)
  31541. + - atmsigd now also accepts the signaling VC as a command line argument
  31542. + - qos2text appended colon to traffic type even if nothing else followed
  31543. + - new program debug/aqtest to test Arequipa (based on work by Mehdi Tazi)
  31544. +
  31545. +Other changes
  31546. +-------------
  31547. +
  31548. + - added a few missing NULLs to struct atmdev_ops initialization in various
  31549. + drivers (this change does not alter any semantics)
  31550. + - changed printk ...%lx... (unsigned long) ptr to ...%p... ptr at many
  31551. + places
  31552. + - removed atm/lib/rtf2cc.pl and atm/lib/cc.inc (they were only used by an
  31553. + interim version of cc_len)
  31554. + - atmarp's usage no longer contains lines longer than 80 characters
  31555. + - added get_logfile() and get_verbosity() to libatm (for ilmid, by Scott
  31556. + Shumate)
  31557. + - select() consumed CPU time unnecessarily if testing for one direction while
  31558. + there's a lot of activity in the other direction (e.g. atmarpd wasted cycles
  31559. + in select() for each outbound packet while waiting for ARP messages)
  31560. + - the value of ATM_AAL0 has changed (from zero to 13), so all programs using
  31561. + AAL0 need to be recompiled
  31562. + - MAX_ATM_QOS_LEN has changed, so most programs using qos2text need to be
  31563. + recompiled
  31564. + - the AAL can now also be set along with the QoS parameters. This approach
  31565. + should be used instead of specifying it in the socket() call.
  31566. + - if no AAL is specified, the kernel now defaults to AAL5 (was AAL0)
  31567. + - updated most demons, tools, and library functions to set the AAL along with
  31568. + the QoS parameters
  31569. +
  31570. +
  31571. +Version 0.25 to 0.26 (29-JAN-1997)
  31572. +====================
  31573. +
  31574. +Bug fixes
  31575. +---------
  31576. +
  31577. + - ATMARP VCCs could stay around forever even after timing out, because the
  31578. + process was not woken up.
  31579. + - the ATMARP "fix" in 0.25 introduced an infinite loop. Fixed that one too.
  31580. + - bit 8 in octets 6 and 7 of BLLI ("ext") were set to 1 instead of 0 when
  31581. + using ATM_L2_USER/ATM_L3_USER (reported by ukl2@rz.uni-karlsruhe.de)
  31582. + - qlib added silly offset (which fortunately happened to be zero most of the
  31583. + time) to dumps of large fields (fixed by Jean-Francois Moine)
  31584. + - IP over ATM restricted MTU changes to valid Ethernet MTU sizes
  31585. + - LANE: fixed two bugs that crashed zeppelin when the connection to the
  31586. + servers failed (by Marko Kiiskila)
  31587. +
  31588. +New features
  31589. +------------
  31590. +
  31591. + - lib/ans.c now properly computes the length of the country prefix of E.164
  31592. + addresses for reverse lookups (needs file /etc/e164_cc, see USAGE)
  31593. + - if the new -m option is set, atmarpd now merges incoming calls into the
  31594. + ATMARP table if the ATM address is known (see atmarpd.8 for details)
  31595. + - included an RPM spec file (this is still very experimental)
  31596. + - NICStAR driver now also works with IP over ATM (by Stuart Daniel)
  31597. + - usage.txt: added description of how to run ATM NICs back-to-back (by Richard
  31598. + Jones)
  31599. +
  31600. +Other changes
  31601. +-------------
  31602. +
  31603. + - signaling traces now also include SAAL up/down transitions
  31604. + - qgen no longer (unnecessarily) depends on libatm.a
  31605. + - started work on letting qgen handle items that appear at more than one
  31606. + place, e.g. repeated IEs (after an idea by Jean-Francois Moine)
  31607. + - did some cleanup and added comments to qlib.[ch]
  31608. + - added -m option to atmarp in config/redhat-4.0/atm.init
  31609. + - added new make target "filenames" to generate a list of all the files which
  31610. + are installed
  31611. + - config/redhat-4.0 now contains an example hosts.atm file and also a Makefile
  31612. + for more convenient installation
  31613. + - atmsigd now reads atmsigd.conf before parsing the command-line options,
  31614. + thereby allowing values set in the file to be superseeded
  31615. + - atmsigd now also logs the internal reference and the caller's address on
  31616. + calls establishment
  31617. + - ilmid: very dirty hack to give switches some time to process ILMI cold start
  31618. + (by Joseph Evans)
  31619. +
  31620. +
  31621. +Version 0.24 to 0.25 (20-DEC-1996)
  31622. +====================
  31623. +
  31624. +Bug fixes
  31625. +---------
  31626. +
  31627. + - net/atm/atmarp.c:idle_timer_check only expired every other entry (reported
  31628. + by Marko Kiiskila)
  31629. +
  31630. +New features
  31631. +------------
  31632. +
  31633. + - LANE now also supports IPX (SNAP and 802.3; by Marko Kiiskila)
  31634. + - NICStAR driver now supports VPI != 0 and has configurable settings in
  31635. + nicstar.h (by Stuart Daniel)
  31636. +
  31637. +Other changes
  31638. +-------------
  31639. +
  31640. + - ENI: TX DMA scratch are is now stored per device. This should allow multiple
  31641. + NICs to coexist.
  31642. +
  31643. +
  31644. +Version 0.23 to 0.24 (29-NOV-1996)
  31645. +====================
  31646. +
  31647. +Bug fixes
  31648. +---------
  31649. +
  31650. + - atm/test/window.c was missing in 0.23
  31651. + - atm/debug/delay didn't build unless atm/lib headers were already installed
  31652. + in /usr/include
  31653. + - atm/debug/znth had undefined return value
  31654. + - SSCOP: fixed typo (that could probably kill the SSCOP connection in case of
  31655. + a retransmission); fix by Olivier Bonaventure
  31656. + - corrected unnecessarily large buffer allocation in zatm.c:pool_index (by
  31657. + Jonathan Larmour)
  31658. + - hosts2ans.pl generated reverse addresses for the domain "ATM.INT" instead of
  31659. + "ATMA.INT"
  31660. + - atmarpd "forgot" any pre-set QOS when receiving new ARP information for the
  31661. + respective entry (reported by Gerald Hanusch)
  31662. + - window scale didn't scale the window sent in the SYNACK packet (reported by
  31663. + Juan-Antonio Ibanez)
  31664. + - LANE: better connection failure handling in zeppelin (by Marko Kiiskila)
  31665. + - LEC kernel timer wasn't restarted when restarting zeppelin (found by Gerald
  31666. + Hanusch, fixed by Marko Kiiskila)
  31667. + - LANE: le_flush_request was sent too early when establishing connection (by
  31668. + Marko Kiiskila)
  31669. + - zeppelin stopped operation (unwantedly) in random cases when LANE servers
  31670. + were down (by Marko Kiiskila)
  31671. + - LANE: non-blocking connections, VCC and LE ARP timeouts, and TLV fields in
  31672. + LE_CONFIG_RESPONSE fixed (by Marko Kiiskila)
  31673. +
  31674. +New features
  31675. +------------
  31676. +
  31677. + - atm2text now also uses ANS
  31678. + - signaling traces now also contain error reports from qgen
  31679. + - added new build-time configuration option "CISCO" (in atm/Rules.make) to
  31680. + work around a bug in Cisco's point-to-multipoint signaling
  31681. + - included example configuration files for RedHat 4.0 (see
  31682. + atm/config/redhat-4.0/README)
  31683. +
  31684. +Other changes
  31685. +-------------
  31686. +
  31687. + - local variable "link" in atm/debug/delay.c:loop was shadowing "link" system
  31688. + call
  31689. + - cleaned up various Makefiles
  31690. + - qgen: bytes left in qet_space are now more meaningful
  31691. + - named (ANS) now also starts even if atmsigd is not running and retries to
  31692. + create the ATM socket in 15 minute intervals until is succeeds (by Marko
  31693. + Kiiskila)
  31694. + - LANE: (too) short le_flush_responses (Cisco 7010, sw ??.??) are now handled
  31695. + (by Marko Kiiskila)
  31696. +
  31697. +
  31698. +Version 0.22 to 0.23 (16-NOV-1996)
  31699. +====================
  31700. +
  31701. +Bug fixes
  31702. +---------
  31703. +
  31704. + - fixed stupid typos in atm/lib/atmres.h and an unnecessary dependency on
  31705. + libresolv.a in atm/lib/Makefile (reported by Gerald Hanusch)
  31706. + - fixed warning about implicit declaration of function bigphysarea_init in
  31707. + init/main.c
  31708. + - I think I fixed the SSCOP VR(MR) problems that were first reported by
  31709. + Edouard Lamboray in '95, then by Heinz Schuerch, and that finally led to a
  31710. + total SSCOP breakdown (in 0.22) reported by Gerald Hanusch
  31711. +
  31712. +New features
  31713. +------------
  31714. +
  31715. + - integrated the IDT 77201 (NICStAR) driver by Matt Welsh and Stuart Daniel
  31716. + <stuartd@eecs.umich.edu>. Note that this driver currently only supports
  31717. + native ATM.
  31718. + - new throughput and latency benchmark test/window (by Matt Welsh)
  31719. +
  31720. +Other changes
  31721. +-------------
  31722. +
  31723. + - upgrade to kernel version 2.0.25
  31724. + - changed drivers/atm/eni.c:do_tx:dma to static in order to reduce kernel
  31725. + stack use (by 480 bytes). Note that this hack may crash systems with more
  31726. + than one ENI adapter.
  31727. + - qlib now also complains if changing a field without a fixed list of values
  31728. + - made a few changes to the native ATM data delivery path to handle some
  31729. + strangeness required by the IDT driver
  31730. +
  31731. +
  31732. +Version 0.21 to 0.22 (13-NOV-1996)
  31733. +====================
  31734. +
  31735. +Bug fixes
  31736. +---------
  31737. +
  31738. + - (dummy) depend target was missing in atm/man (reported by Bernd Wolf)
  31739. + - net/atm/arequipa.c:make_aq_vcc didn't set ATM_VF_AQINUSE, thereby allowing
  31740. + race conditions to slip through
  31741. + - fixed a few potential race conditions when activating Arequipa
  31742. + - text2qos didn't complain if unit was omitted after multiplier, allowing
  31743. + misleading settings like pcr=50M (that's 19.2 Gbps)
  31744. + - SSCOP: took wrong branch if POLL_AFTER_RETRANSMISSION was enabled (fix by
  31745. + Jonathan Larmour)
  31746. + - SSCOP: rel_ind for ENDAK and BGREJ PDU in sscop_inconn was sent with "user"
  31747. + = 1 (must be 0 for "Source := SSCOP")
  31748. + - initialize_vr_mr now initializes vr_mr to a constant value (instead of
  31749. + garbage plus constant value)
  31750. + - atm_recvmsg now ignores msg->msg_name, as it should by POSIX 1003.1g (fix by
  31751. + Mike Wooten)
  31752. + - atm_sendmsg now fails with EISCONN instead of with EINVAL if msg->msg_name
  31753. + is set, as it should by POSIX 1003.1g (reported by Mike Wooten)
  31754. + - atm_recvmsg and atm_sendmsg now return ENOTCONN if not connected and
  31755. + EOPNOTSUP if flags are passed, as they should by POSIX 1003.1g
  31756. + - the QOS zeppelin uses for its connections can now be set with the option -q
  31757. + - atmarpd didn't include the QOS in PVC entries, so atmarp -a complained about
  31758. + them
  31759. +
  31760. +New features
  31761. +------------
  31762. +
  31763. + - kernel changes to support tcpdump with LANE (by Marko Kiiskila)
  31764. + - patch for tcpdump 3.0.4 (installed as tcpdump_atm) to support Classical IP
  31765. + and LANE (by Marko Kiiskila)
  31766. + - patch for BIND 4.9.5 to support ANS (ATM Name Service) functionality (by
  31767. + Marko Kiiskila)
  31768. + - added hierarchy extra/ for packages for which only patches are contained in
  31769. + the ATM on Linux distribution
  31770. + - enhanced text2atm to use ANS if local lookups fail (atm2text will be updated
  31771. + later)
  31772. + - wrote script extra/hosts2ans.pl to convert hosts.atm file to ANS zone files
  31773. +
  31774. +Other changes
  31775. +-------------
  31776. +
  31777. + - changed ATM_VF_AQINUSE to ATM_VF_AQDANG and changed aq_list membership to
  31778. + be for dangling VCs only
  31779. + - added the new command-line options to ttcp_atm's online help (finally !)
  31780. + - atm_sendmsg now returns error codes from the driver's send function
  31781. + (suggested by Jonathan Larmour)
  31782. + - text2qos now performs a syntax check if NULL is passed in the qos argument
  31783. + - various minor LANE cleanup (Marko Kiiskila)
  31784. + - upgraded to the latest version of t2a.pl
  31785. + - {A2T,T2A}_REMOTE is obsolete; instead, {A2T,T2A}_LOCAL should be used if
  31786. + ANS lookups are _not_ desired
  31787. +
  31788. +
  31789. +Version 0.20 to 0.21 (18-OCT-1996)
  31790. +====================
  31791. +
  31792. +Bug fixes
  31793. +---------
  31794. +
  31795. + - net/atm/common.c:atm_connect didn't refuse traffic_class == ATM_NONE in both
  31796. + directions
  31797. + - include/linux/atmsvc.h:SELECT_TOP_PCR didn't default to ATM_MAX_PCR if
  31798. + min_pcr == 0 && max_pcr == 0
  31799. + - debug/delay swallowed one-byte packets
  31800. + - oops, forgot man/Makefile, so qos.7 wasn't installed
  31801. + - atmarpd left max_sdu at zero for automatically generated entries
  31802. + - atmarpd now only uses the default QOS if the traffic type is set in neither
  31803. + direction
  31804. + - signaling: if the listen queue was full, new connections were rejected with
  31805. + as_close instead of as_reject, thereby upsetting atmsigd
  31806. + - svc_accept didn't adjust the listen queue quota when rejecting incoming
  31807. + connection requests
  31808. + - fixed a few bad font selections in atmsigd(8)
  31809. +
  31810. +New features
  31811. +------------
  31812. +
  31813. + - included the window scale patch by Randy Scott <scottr@belle.bork.com> and
  31814. + Robert Hill <rhill@tisl.ukans.edu>
  31815. + - -q option for ilmid to set the QOS (like in atmsigd)
  31816. + - new script mkbindist to install the utilities into a tar.gz file
  31817. +
  31818. +Other changes
  31819. +-------------
  31820. +
  31821. + - debug/delay now prints the usage if invoked without arguments
  31822. + - removed the pretentious usec resolution for delays in debug/delay
  31823. + - removed the UBR semantics change warning
  31824. + - qos.7: clarified that bps are the user data rate
  31825. + - arequipa_attach_unchecked now also adjusts the upper layer MTU (which can
  31826. + violate RFC1122, but I'll tackle that later)
  31827. + - text2qos now also accepts fractional values, e.g. 9.6kbps
  31828. +
  31829. +
  31830. +Version 0.19 to 0.20 (14-OCT-1996)
  31831. +====================
  31832. +
  31833. +Bug fixes
  31834. +---------
  31835. +
  31836. + - fixed a few typos and errors in the 0.18 to 0.19 change log
  31837. + - signaling traces only included hl_type bytes instead of hl_length
  31838. + bytes
  31839. + - TNET1570 driver: various fixes (DMA allocation, seg ring overflow,
  31840. + timeouts, etc.) (Christian Paetz)
  31841. + - TNET1570 driver: removed most compiler warnings (Christian Paetz)
  31842. + - listen() on an arequipa_preset() socket and arequipa_preset() on a listening
  31843. + socket now both return EPROTO
  31844. + - oops, forgot to enable the "rm" in make uninstall
  31845. + - kernel didn't set interface number field in act_create messages to atmarpd
  31846. +
  31847. +New features
  31848. +------------
  31849. +
  31850. + - added ioctl ATM_SETSC to enable or disable RX and TX single-copy per VC
  31851. + - new device driver operation change_qos (not yet implemented)
  31852. + - TNET1570 driver supports DEC Alphas and 64 bit PCI transfer (for CIA PCI
  31853. + chipsets) (Christian Paetz)
  31854. + - TNET1570 driver also supports the UniNET1570 board (Christian Paetz)
  31855. + - new functions text2qos and qos2text to convert between textual and binary
  31856. + QOS specifications (the format is described in man qos)
  31857. + - atmarp -q ip_addr qos sets the default QOS to use for all VCs created for
  31858. + that IP interface
  31859. + - new utility debug/delay to use machine as AAL5-level delay line
  31860. +
  31861. +Other changes
  31862. +-------------
  31863. +
  31864. + - NLPIDs and vendor-specific application identifiers are now collected in
  31865. + the new file /usr/include/atmsap.h
  31866. + - SO_ATMQOS now attempts to change the QOS settings when invoked on an active
  31867. + connection
  31868. + - included Matt Welsh's bigphysarea patch (this isn't related to ATM, but it
  31869. + keeps my development source tree simpler)
  31870. + - arequipa_preset now initializes max_sdu to RFC1626_MTU+RFC1483LLC_LEN if
  31871. + zero
  31872. + - atmarp: new option qos <spec> to set the QOS parameters (uses text2qos)
  31873. + Use of pcr <pcr> is deprecated.
  31874. + - ttcp_atm's -P option now also accepts a QOS specification string. (use of
  31875. + -P <number> is deprecated.
  31876. + - atmsigd: new option -q <qos> and configuration clause io qos <qos> to
  31877. + set the QOS of the signaling VC. Use of -P <pcr> or io pcr <pcr> is
  31878. + deprecated.
  31879. + - removed the backward compatibility #define class traffic_class in
  31880. + linux/atm.h
  31881. + - removed obsolete keywords from atmsigd.conf language
  31882. + - atmarp -a now also includes QOS parameters
  31883. + - UBR now respects txtp.max_pcr if set
  31884. + - new rules for the use of [rt]xtp.traffic_class: both fields must be either
  31885. + equal or zero, e.g. ATM_CBR in TX and ATM_UBR in RX no longer works
  31886. + - doc/usage.tex now points to the man pages instead of repeating their content
  31887. +
  31888. +
  31889. +Version 0.18 to 0.19 (27-SEP-1996)
  31890. +====================
  31891. +
  31892. +Bug fixes
  31893. +---------
  31894. +
  31895. + - sscop.c:data_sd had a comparison inversed, so generation of USTAT PDUs was
  31896. + wrong in some cases (by Juhana Rasanen)
  31897. + - sigd_enq: accessed vcc->qos without checking for vcc == NULL, causing an
  31898. + "Oops" in atmaddr
  31899. + - svc_accept: generated a general protection fault when atmsigd was killed
  31900. + while a process was waiting for new incoming connections
  31901. + - atmaddr didn't zero the address structure before calling text2atm
  31902. + - LANE: fixed usage of kernel timers and LE_ARP_REQUESTs should now get sent
  31903. + until the entry expires or a response is received (by Marko Kiiskila)
  31904. + - less compiler warnings from LANE servers (Marko Kiiskila)
  31905. + - SSCOP: fixed SDU size in AA-RETRIEVE.indication (reported by Heinz Schuerch)
  31906. + - NULL encapsulation for ATMARP works now (reported by Gerald Hanusch)
  31907. + - fixed stray EINVAL from get{sock,peer}name on PVCs (reported by Gerald
  31908. + Hanusch)
  31909. + - clip now sets max_sdu to RFC1626_MTU+RFC1483LLC_LEN when using LLC/SNAP
  31910. + encapsulation
  31911. + - if parsing of a Q.2931 message fails, atmsigd now aborts the call instead of
  31912. + (stupidly) trying to process the incomplete and probably inconsistent data
  31913. + - SUNI driver didn't properly mask out unused highest bits of some statistics
  31914. + counters, thereby yielding absurdly high values
  31915. + - zatm: changed timing of RX channel closing, so the dreaded "can't close RX
  31916. + channel" message should be history
  31917. + - fixed race between Arequipa attachment due to packet reception and closing
  31918. + of the Arequipa VC
  31919. + - local address validity check (for ATM_???ADDR) was all wrong (reported by
  31920. + David Simpson)
  31921. + - message dumper ignored fatal errors if debugging was not enabled
  31922. +
  31923. +New features
  31924. +------------
  31925. +
  31926. + - man pages for lecs, les, bus, and zeppelin (Marko Kiiskila)
  31927. + - configuration file name for les and bus can be defined (Marko Kiiskila)
  31928. + - zatm: new kernel configuration option CONFIG_ATM_ZATM_EXACT_TS now supports
  31929. + reception timestamps with microsecond resolution (the accuracy is only in
  31930. + the ms range, though)
  31931. + - new utility znth (ZeitNet Timer History) to monitor timer synchronization
  31932. + - LANE now supports up to 4 LEC network interfaces (Marko Kiiskila)
  31933. + - the Q.2931 message parser now recovers nicely from IE errors, logs the
  31934. + event, and continues parsing. The higher layers of the signaling stack
  31935. + don't use this information yet, though.
  31936. +
  31937. +Other changes
  31938. +-------------
  31939. +
  31940. + - Arequipa's BHLI now uses a "vendor-specific application identifier" under
  31941. + the EPFL OUI
  31942. + - moved buffer/queue handling from lib/libatmd to saal/, because it is rather
  31943. + SSCOP-specific anyway
  31944. + - atm_release_vcc now complains if rx_inuse != 0 when closing (if this ever
  31945. + happens, it may point out dangerous races with upper layer protocols)
  31946. + - SO_ATMQOS now issues a warning when using UBR with {min,max}_pcr != 0
  31947. + - max_sdu is now set by atmarpd to MTU+RFC1483LLC_LEN (atmarp could still
  31948. + override this, if necessary)
  31949. + - atmdump: new option -i to display the arrival interval instead of the
  31950. + absolute time. Also changed the time format to be more readable.
  31951. + - updated the kernel configuration documentation to indicate that the SMC
  31952. + ATM Power155 adapters are compatible with the Efficient ENI-155
  31953. + - atmarpd now deletes the old table file (containing stale information) if
  31954. + invoked with -d (debug)
  31955. +
  31956. +
  31957. +Version 0.17 to 0.18 (9-SEP-1996)
  31958. +====================
  31959. +
  31960. +Bug fixes
  31961. +---------
  31962. +
  31963. + - atmsigd didn't respond to SETUP followed by RELEASE with a RELEASE COMPLETE
  31964. + - atmsigd now implements incoming call rejection (as_indicate -> as_close)
  31965. + - kernel now opens the VC before sending the as_accept. This a) allows to
  31966. + check if the parameters are acceptable, and b) avoids a race condition
  31967. + between the sender and the local VC open procedure, which frequently led to
  31968. + loss of the beginning of the first PDU sent on a new connection.
  31969. + - qdump: _q_parse used the wrong length when dumping variable-length fields,
  31970. + yielding a fatal internal error
  31971. + - clip didn't set rxtp.max_sdu
  31972. + - svc_accept didn't set ATM_VF_HASQOS, so getsockopt SO_ATMQOS didn't work
  31973. + (by Marko Kiiskila)
  31974. + - ttcp_atm calculated Mbps as 2^20 bits/sec instead of 10^6, thereby making
  31975. + all results come out approximately 5% too low (by Fraz Ahmad)
  31976. + - added $(LDLIBS) to linking of lane/lecs (by Lawrence MacIntyre)
  31977. + - interface number allocation in clip and atmarp did not check for collision
  31978. + with the respective other name space
  31979. + - atmarp's -c option didn't work when omitting the "atm" in the interface name
  31980. +
  31981. +New features
  31982. +------------
  31983. +
  31984. + - new man page: arequipad.8
  31985. +
  31986. +Other changes
  31987. +-------------
  31988. +
  31989. + - simplified the internal signaling protocol by adding the as_reject message
  31990. + (sent by kernel in response to as_indicate; not acknowledged by demon)
  31991. + - packets received from Arequipa are no longer forwarded to other hosts
  31992. + - further ilmid improvements to use RSTADDR less frequently (by Gerald
  31993. + Hanusch; with a slight modification)
  31994. +
  31995. +
  31996. +Version 0.16 to 0.17 (2-SEP-1996)
  31997. +====================
  31998. +
  31999. +Bug fixes
  32000. +---------
  32001. +
  32002. + - lib/diag.c didn't fflush when logging to a file
  32003. + - arequipad didn't accept the -l option
  32004. + - qgen: possible weird crashes because second.c:find_required accessed
  32005. + value->tag even if vt_id
  32006. + - qgen: fixed wrong PC indication in one error message in _q_parse
  32007. + - make spotless didn't know about new $(*PGMS) targets
  32008. + - atmsigd: fixed memory leak when sending messages to the kernel
  32009. + - atmarpd: fixed memory leak when sending messages to the network
  32010. + - atmsigd: didn't send final as_close when kernel closed connection
  32011. + immediately after requesting it (as_connect)
  32012. + - several minor corrections
  32013. +
  32014. +New features
  32015. +------------
  32016. +
  32017. + - added make target "uninstall" to remove all files installed by
  32018. + make install
  32019. + - atmsigd has two new options: -D dump_dir to set the dump directory and
  32020. + -t trace_length to set the length of the trace buffer
  32021. + - wrote a few man pages: atmarp.8, atmarpd.8, atmsigd.8, atmsigd.conf.4
  32022. + - added automatic support for memory debugging if MPR is installed (and
  32023. + included a patch to make MPR 1.1 work with ELF). atmarpd and atmsigd
  32024. + currently use this feature.
  32025. +
  32026. +Other changes
  32027. +-------------
  32028. +
  32029. + - changed "class" to "traffic_class" everywhere
  32030. + - make install is now implemented in a more elegant way
  32031. + - q.dump is now much better at finding symbolic names for numbers
  32032. + - q.dump no longer prints zero-length fields
  32033. + - qgen no longer includes constructor "microcode" in dumper
  32034. + - atmarp now gives more informative error messages on ioctl failure
  32035. + - removed obsolete ioctls SIOCGIFATMADDR and SIOCSIFATMADDR
  32036. + - added hack to allow ilmid to be less hostile to locally configured addresses
  32037. + (by Gerald Hanusch; with slight modifications)
  32038. + - atmarpd now automatically sets ATF_PERM of PVC entries with NULL
  32039. + encapsulation
  32040. +
  32041. +
  32042. +Version 0.15 to 0.16 (29-AUG-1996)
  32043. +====================
  32044. +
  32045. +Bug fixes
  32046. +---------
  32047. +
  32048. + - fixed an "unterminated character constant" warning by CPP in qgen/uni3x
  32049. + - atm/sigd/q2931.c always tried to read the Cause IE of RELEASE COMPLETE
  32050. + messages even if it wasn't included
  32051. + - LANE: fixed buffer allocation and VCC timeouts (Marko Kiiskila)
  32052. + - LANE: when connecting directly to LES, name of the ELAN was not set
  32053. + properly (discoverd by Gerald Hanusch; fixed by Marko Kiiskila)
  32054. + - LANE, ATMARP, signaling: control sockets didn't account for messages sent
  32055. + back from demons (fixed by Marko Kiiskila)
  32056. + - permanent ATMARP entries for SVCs were ignored if no ATMARP server was
  32057. + configured (reported by Gerald Hanusch)
  32058. + - atmarp option "temp" mis-spelled as "term" (fixed by Gerald Hanusch)
  32059. + - forgot to undo experimental rcvbuf/sndbuf change to unsigned long
  32060. + - make modules didn't generate ATM modules
  32061. + - atmtcp_attach_hook wasn't defined when compiling ATMTCP as a module
  32062. + - ATM patch set dev->ip_atm to ether_arp in net/ppp.c and net/eql.c, so they
  32063. + failed to work as modules
  32064. +
  32065. +New features
  32066. +------------
  32067. +
  32068. + - added LANE servers (LECS, LES, and BUS) by Marko Kiiskila
  32069. + - Rules.make: new variable INSTROOT for easier cross-installation
  32070. + - atmsigd: added option -P to set the maximum PCR used on the signaling VC
  32071. + - atmarp: added option "pcr <value>" (proposed by Gerald Hanusch)
  32072. + - added the usual -l <logfile> option to arequipad
  32073. +
  32074. +Other changes
  32075. +-------------
  32076. +
  32077. + - upgrade to kernel version 2.0.14
  32078. + - SVCs can now be bound with any SEL value
  32079. + - messages of size > quota can be sent if the send buffer is empty
  32080. + - ilmid no longer empties the address list when refreshing the NSAP address
  32081. + (by Gerald Hanusch)
  32082. + - LANE client should now survive network reset (e.g. restart) gracefully
  32083. + (Marko Kiiskila)
  32084. + - LANE: major cleanup of zeppelin code (Marko Kiiskila)
  32085. + - improved loadable module support for eni and zatm (i.e. loading works now)
  32086. + - the message dumper can now be linked to programs that also use the
  32087. + compilation/parsing functions
  32088. +
  32089. +
  32090. +Version 0.14 to 0.15 (31-JUL-1996)
  32091. +====================
  32092. +
  32093. +Bug fixes
  32094. +---------
  32095. +
  32096. + - zatm: fixed traffic shaper settings for UBR (with a little help from Joern
  32097. + Wohlrab)
  32098. + - atmsigd compilation didn't use the same UNI version configuration as qgen
  32099. + - field "class" in struct atm_traform broke compilation of ATM applications
  32100. + written in C++, so it has been renamed to "traffic_class" (reported by
  32101. + Furquan Ansari)
  32102. + - AAL parameters IE wasn't included in CONNECT, which violated RFC1755
  32103. + (discovered by Robert Olsson)
  32104. + - zatm: removed broken sanity check for in-sequence skb delivery on RX
  32105. + - clip didn't have clip_open function, so SIOCSIFFLAGS on the interface failed
  32106. + with ENODEV
  32107. + - single-copy compiles again
  32108. + - zatm: driver doesn't pretend any longer to support single-copy (but
  32109. + single-copy will come back later)
  32110. + - QOS IE was sent with the wrong coding standard when using UNI 3.1 (with help
  32111. + from Fraz Ahmad)
  32112. + - zatm: forgot to remove some debugging code (around ZATM_TUNE)
  32113. + - qlib.c didn't zero the length array, leading to (rare) "not enough space"
  32114. + errors from QMSG (actually, the "break" mechanism seems to be flaky - will
  32115. + have to check)
  32116. + - fixed Arequipa race condition when the upper layer protocol and signaling
  32117. + decided to close the SVC at the same time
  32118. + - alloc_tx used to return NULL in out of memory conditions, thereby possibly
  32119. + hanging atm_sendmsg
  32120. +
  32121. +New features
  32122. +------------
  32123. +
  32124. + - ttcp_atm now also accepts names with -p
  32125. + - (finally !) added send/receive buffer limits and cleaned up the use of
  32126. + vcc->[rt]x_{inuse,quota}
  32127. + - added mkdiff script for automatic generation of diffs
  32128. + - Arequipa now works for PVCs too (but arequipad is now required for any
  32129. + use of Arequipa, not only for incoming connections)
  32130. +
  32131. +Other changes
  32132. +-------------
  32133. +
  32134. + - atm/atm-<version>.patch is now called atm/atm.patch (to make the diffs more
  32135. + useful)
  32136. + - the maximum SDU size is now checked in net/atm/common.c:adjust_tp
  32137. + - text2atm/atm2text now accepts/generates E.164 addresses with a leading +
  32138. + sign, as required by ANS (atm95-1532)
  32139. + - internal signaling protocol: added message as_error to un-overload as_close
  32140. + - internal signaling protocol: split as_establish into as_connect and
  32141. + as_accept
  32142. + - internal signaling prococol: as_close.reply no longer contains positive
  32143. + numbers
  32144. + - internal signaling prococol: as_bind now also carries the AAL type
  32145. + - atmsigd: now also checks the AAL type in as_bind messages
  32146. + - kernel signaling: a few minor changes
  32147. + - STANDARDS (i.e. UNI version) configuration option has been moved from
  32148. + atm/qgen/Makefile to atm/Rules.make
  32149. + - atmsigd's startup message now gives more useful indication of which UNI
  32150. + version(s) it supports
  32151. + - signaling no longer uses sa[sp]_[rt]xtp, so ...
  32152. + - sa[sp]_[rt]xtp is gone
  32153. + - removed atm/sigd/svc.c from the distribution. We now have many other tools
  32154. + for testing SVCs, so it's superfluous.
  32155. + - atmarpd: revalidation is now less frequent (use -DFREQUENT_REVAL for
  32156. + the faster timeout)
  32157. + - ioctl CLIP_PVC now returns the number of the new interface and clip prints
  32158. + its name to standard output (like atmarp -c)
  32159. + - clip now issues the CLIP_PVC ioctl after binding, which avoids wasting
  32160. + interface numbers on failed setup attempts
  32161. + - atmsigd -d now sets the debug level for qgen and SSCOP to DIAG_INFO, and
  32162. + doesn't set q_dump
  32163. + - zatm: added protection against I > M
  32164. + - atm_peek_aal5 now only aligns to page boundaries for pdu_size >= PAGE_SIZE
  32165. + - eni driver now spits out CRC error messages at most every other second
  32166. + - zatm driver now repeats RX error messages at most every other second
  32167. + - ttcp_atm now sleeps for a second after setting up an SVC, because the
  32168. + switch seems to lag behind (need to examine this further)
  32169. + - moved SAAL from sigd/ to saal/ (for sharing with UNI 4.0 signaling)
  32170. + - Arequipa sockets are now closed via arequipad instead of via atmsigd (new
  32171. + ioctls AREQUIPA_CTRL and AREQUIPA_CLS3RD)
  32172. + - various minor changes
  32173. +
  32174. +
  32175. +Version 0.13 to 0.14 (19-JUL-1996)
  32176. +====================
  32177. +
  32178. +Bug fixes
  32179. +---------
  32180. +
  32181. + - LANE: reaction to LE_ARP_RESPONSE's wasn't always correct
  32182. + - LANE: compiler warnings fixed
  32183. + - LANE: comparing ATM addresses in checking whether connection is formed was
  32184. + wrong
  32185. + - zntune didn't divide by 1024 when displaying the "k"
  32186. + - .depend wasn't deleted by make spotless
  32187. + - ATM_GETSTAT and ATM_GETSTATZ used wrong argument type for coding ioctl
  32188. + number. WARNING: programs using ATM_GETSTAT{,Z} need to be recompiled.
  32189. + - requests to set up SVCs with ATM_NONE in both directions are now caught by
  32190. + svc_connect (used to yield an invalid SETUP message)
  32191. + - signaling: fixed connection identifier setting when acting as network side
  32192. + (fix by Elwyn B Davies)
  32193. + - ATMARP server ARP entries were undeletable
  32194. + - atmarp showed wrong argument in error message when given an invalid ATM
  32195. + address
  32196. + - zatm: do_tx left interrupts turned off when returning with RING_BUSY
  32197. + - LANE ARP hash table handling bugs fixed
  32198. + - atmarp: act_create is now only sent on interface creation
  32199. + - atmarp: act_down is now only sent once per transition
  32200. + - demon control SVCs are no longer closed when atmsigd dies (new VCC flag
  32201. + ATM_VF_META)
  32202. + - netdevice notifier is now properly unregistered when atmarpd goes down
  32203. + (not doing so caused endless loop in kernel on atmarpd restart)
  32204. + - sigd_enq{_atomic} never calls schedule()
  32205. + - atmsigd no longer "forgets" to bring up ARP server SVC before sending an
  32206. + InARP
  32207. + - atmarpd no longer dies with "timer in state 3" when the ARP server becomes
  32208. + unreachable
  32209. + - atm/atmarp.c: clip_create() now refuses creation of already existing
  32210. + interface
  32211. + - Documentation/Configure.help gave an obsolete URL for CONFIG_AREQUIPA
  32212. + and doc/usage.tex also mentioned the old file name
  32213. + - Arequipa didn't work in the outbound direction for TCP, because
  32214. + net/ipv4/tcp.c was missing in the kernel patch
  32215. + - drivers/atm/eni.c:foo raced with initialization of eni_boards if the
  32216. + board lost the signal _immediately_ after being initialized
  32217. + - atmarpd: fixed a few uninitialized entry->timer pointers (discovered by
  32218. + Gerald Hanusch)
  32219. + - atmarpd: arps entry should no longer get stuck in as_resolv
  32220. +
  32221. +New features
  32222. +------------
  32223. +
  32224. + - compiles on SparcLinux too (but only atmtcp works)
  32225. +
  32226. +Other changes
  32227. +-------------
  32228. +
  32229. + - upgrade to kernel version 2.0.0
  32230. + - BHLI matching changed: SAPs without BHLI are now incompatible with calls
  32231. + that specify a BHLI
  32232. + - LANE: interface stays up when zeppelin dies -> possibility for
  32233. + wrapper script around zeppelin
  32234. + - LANE: LUNI interoperability test (ATM Forum/96-0805) is now followed
  32235. + in setting ELAN name in LE_CONFIG_RESPONSE and LE_JOIN_RESPONSE,
  32236. + there is also a delay of 1 second before sending LE_CONFIG_REQUEST and
  32237. + LE_JOIN_REQUEST. This allows 'slow' LE servers to catch up.
  32238. + - LANE: no longer uses sa[sp]_[rt]xtp
  32239. + - LANE: now adjusts better to ATM address changes
  32240. + - zeppelin: new option -m to select debugging output
  32241. + - updated aping, aread, awrite, br, bw, atmdump, ilmid, atmarp, clip, atmarpd,
  32242. + and zeppelin to use setsockopt SO_ATMQOS
  32243. + - added option -x for ilmid to disable variable bindings (caused
  32244. + interoperability problems with certain switches, e.g. the LS100)
  32245. + - changed SO_CIRANGE into a pair of ioctls
  32246. + - changed return value of fetch() (passed to atm_vcc->peek) from unsigned long
  32247. + to __u32
  32248. + - atmarp now accepts arpsrv option also for -d
  32249. + - zatm driver can now also read ESIs of rev. 10 boards (with help from Nikos
  32250. + Anerousis)
  32251. + - awrite: fixed txtp.max_sdu calculation in awrite (was using uninitialized
  32252. + variable "offset")
  32253. + - atmarpd: IP interface removal now has the desired effect (used to do
  32254. + nothing)
  32255. + - atmarpd: now reports and ignores unexpected interface transitions
  32256. + - added sigd_enq_atomic for atomic sigd_enq (so that non-Arequipa SVCs can
  32257. + still use the "safe" but non-atomic version)
  32258. + - made SIOCGIF* failures in atmarpd non-fatal (itf.c:itf_up was handling them
  32259. + anyway)
  32260. + - moved Arequipa-specific code from net/atm/clip.c to net/atm/arequipa.c, and
  32261. + put code common to CLIP, Arequipa, and - to a lesser extent - ATMARP into
  32262. + net/atm/ipcommon.[ch]
  32263. + - Arequipa can now be complied without CLIP
  32264. + - various minor documentation changes
  32265. + - moved ATM device initialization from net/atm/pvc.c to drivers/block/genhd.c,
  32266. + where most other devices are initialized too
  32267. + - preparation for new binary locations: tools build process now knows about
  32268. + four types of programs: for booting, for system use, for users, and for
  32269. + internal use during build
  32270. + - make install now hides the for loops
  32271. + - non-user binaries are now installed in /usr/local/sbin
  32272. + - struct atm_iobuf.buffer is now of type void * (was int*). Also,
  32273. + ATM_GETNAMES now returns the length in bytes in that field.
  32274. +
  32275. +
  32276. +Version 0.12 to 0.13 (7-JUN-1996)
  32277. +====================
  32278. +
  32279. +Bug fixes
  32280. +---------
  32281. +
  32282. + - BHLI type used the ATM_HL_* values (which are off by one) in qgen/uni3x
  32283. + - atmarpd ended up in a tight select-accept loop if atmsigd went away
  32284. + - removed sleep in ZATM's do_tx (so it works with IP over ATM again)
  32285. +
  32286. +New features
  32287. +------------
  32288. +
  32289. + - added experimental support for Application requested IP over ATM (Arequipa),
  32290. + prototyped by Jean-Michel Pittet
  32291. + - new traffic class ATM_ANYCLASS to accept incoming SVCs without looking at
  32292. + the traffic parameters
  32293. + - added (untested) support for SO_BCTXOPT/SO_BCRXOPT
  32294. +
  32295. +Other changes
  32296. +-------------
  32297. +
  32298. + - SVCs used to listen are now marked as "LISTEN" in /proc/atm/svc
  32299. + - added option -Q <atm_addr> to ttcp_atm to support AREQUIPA
  32300. + - cleaned up the FILE macro and removed atm_dir in net/atm/proc.c
  32301. +
  32302. +
  32303. +Version 0.11 to 0.12 (3-JUN-1996)
  32304. +====================
  32305. +
  32306. +Bug fixes
  32307. +---------
  32308. +
  32309. + - atm/lib/Makefile: had to comment out PGMS=test
  32310. + - distribution didn't include atm/doc/usage.txt
  32311. + - patch didn't include arch/i386/config.in
  32312. + - return 0; was missing at the end of net/atm/mmuio.c:mmu_step
  32313. + - atm/ilmid didn't install into INSTBIN; also made some other Makefile
  32314. + changes
  32315. + - read() returned garbage instead of error when network drops connections
  32316. + - POLL_AFTER_RETRANSMISSION in SSCOP didn't even compile
  32317. + - SVCs: bind to wildcard addresses should now work even if no local address
  32318. + is known yet
  32319. + - make clean in atm/qgen left some dirt
  32320. + - ATM drivers didn't free skbs when detecting an error in TX direction
  32321. + - SIOCMKCLIP was in the wrong #ifdef, so CLIP had to be enabled to make
  32322. + ATMARP usable
  32323. + - signaling didn't respond properly to messages with non-existent call
  32324. + reference
  32325. +
  32326. +New features
  32327. +------------
  32328. +
  32329. + - merged in LAN Emulation client support written by Marko Kiiskila
  32330. + - new socket option SO_ATMQOS at SOL_ATM to set/get QOS parameters
  32331. +
  32332. +Other changes
  32333. +-------------
  32334. +
  32335. + - t2a.pl now also works with Perl 5.001
  32336. + - changed the TX side of the ZATM driver to use a ring instead of a list in
  32337. + order to improve stability and throughput (needs some more testing)
  32338. +
  32339. +
  32340. +Version 0.10 to 0.11 (21-MAY-1996)
  32341. +====================
  32342. +
  32343. +Bug fixes
  32344. +---------
  32345. +
  32346. + - README.DRIVERS still referenced INSTALL (it's now in USAGE)
  32347. + - sap_decode didn't clear BLLI part of address structure
  32348. + - trying to connect to NULL address fails locally instead of yielding an
  32349. + invalid SETUP message
  32350. + - bind now properly sets the local address
  32351. + - SVC getname now returns the traffic parameters
  32352. + - oops, zatm open_tx didn't return PCR
  32353. + - awrite printed errors for connect() as "bind: ..."
  32354. + - atmsigd no longer generates dummy call references (0x7fffff)
  32355. + - atmtcp: changed a few kfree_skb to dev_kfree_skb, which should make it
  32356. + work better (does anybody care to try ?)
  32357. + - some more dev_kfree_skb fixed for control messages from or to demons (led
  32358. + to some minor memory leaks)
  32359. + - various major fixes for CBR SVCs
  32360. + - RELEASE was signaled for SVCs before all data was sent
  32361. + - single copy tried to access mem_map with user space addresses, leading to
  32362. + crashes or worse
  32363. + - zatm: sleep_on was racing with TX completion in close_tx, leading to hangs
  32364. + - zatm: now fails attempts to open AAL0 VCs (used to accept them and to
  32365. + crash later)
  32366. + - BHLI encoding/decoding was broken in several ways
  32367. +
  32368. +New features
  32369. +------------
  32370. +
  32371. + - hacked in primitive leaf-only p2m support (based on an idea by Marko
  32372. + Kiiskil{)
  32373. + - the socket layer, and the zatm, eni, and atmtcp drivers now support
  32374. + two-phase connect
  32375. + - PVCs now respect max_pcr (SVCs can't for now)
  32376. + - lib/diag.c can now also log to a file or to syslog, and atmarpd, atmsigd,
  32377. + and ilmid now have a -l option to use that
  32378. + - new option -c config_file for atmsigd
  32379. + - zatm and atmtcp now also support timestamps (but zatm timestamps can be
  32380. + improved a lot by using the timestamps the uPD98401 generates)
  32381. + - Classical IP over ATM support is now configurable
  32382. + - added on-line help texts for configuration
  32383. + - added atm/test/aping, a round-trip tester for PVCs
  32384. + - added "flags" field to struct atm_dev and to atm_dev_register, on request
  32385. + by Bureau 13
  32386. +
  32387. +Other changes
  32388. +-------------
  32389. +
  32390. + - past versions of the BUGS list aren't included in the distribution anymore
  32391. + because I didn't update them anyway
  32392. + - invalid connect() calls now return an error instead of panicing atmsigd
  32393. + - text2atm no longer clobbers sas_addr.{blli,bhli}
  32394. + - greatly simplified zatm traffic shaper settings calculation (and it's
  32395. + better than before too)
  32396. + - atmsigd: diagnostics class "sig" (in atmsigd.conf) now also includes "SAP"
  32397. + - DPRINTK now uses GNU-specific #define foo(bar...)
  32398. + - signaling: PCR is now also indicated (0) for directions in which ATM_NONE
  32399. + is requested, which is probably "cleaner" (for CBR)
  32400. + - added logging priorities to most printks
  32401. + - the default location for atmsigd.conf changed from . to /etc
  32402. + - ipv4/af_inet.c: atmtcp_attach_hook is now only included when using ATM over
  32403. + TCP
  32404. + - configuration options for extended driver debugging, (old) CLIP, and
  32405. + ATM over TCP are turned off by default
  32406. +
  32407. +
  32408. +Version 0.9 to 0.10 (21-MAR-1996)
  32409. +===================
  32410. +
  32411. +Bug fixes
  32412. +---------
  32413. +
  32414. + - zatm: deallocated UBR shaper when closing UBR VC, which the other UBR VCs
  32415. + didn't really appreciate
  32416. + - fixed nasty memory leak for native ATM (spotted by Rolf Fiedler)
  32417. +
  32418. +New features
  32419. +------------
  32420. +
  32421. + - added Rolf Fiedler's driver for his adapter based on the TI TNETA1570
  32422. + - single-copy is back again !
  32423. +
  32424. +Other changes
  32425. +-------------
  32426. +
  32427. + - eni buffers are now slightly (50%) bigger, allowing for more effective
  32428. + overlapped operations
  32429. + - documented zntune
  32430. +
  32431. +
  32432. +Version 0.8 to 0.9 (14-MAR-1996)
  32433. +==================
  32434. +
  32435. +Bug fixes
  32436. +---------
  32437. +
  32438. + - oops, accidently removed ZN1221 from drivers/pci/pci.c (so /proc/pci
  32439. + reported it as "unknown")
  32440. + - sigd didn't poll for the default interface on startup
  32441. + - atmarpd didn't initialize timer field in newly allocated table entries,
  32442. + which led to crashes
  32443. + - removed a few stray debugging printks in net/atm/svc.c:svc_bind
  32444. + - ATMARP tried to send queued packet before adding new table entry, so the
  32445. + packet was always discarded
  32446. + - sigd/sap.c: didn't allow to use different traffic classes for fwd and bwd
  32447. + direction
  32448. + - atm2text accepted SVC addresses of all zeroes
  32449. + - atmsigd didn't refresh its local address list properly after ilmid restart
  32450. + - net/atm/common.c: returned positive error codes (-vcc->reply) instead of
  32451. + negative ones
  32452. + - forgot to include maint/zntune.c in the distribution
  32453. +
  32454. +New features
  32455. +------------
  32456. +
  32457. + - sigd/svc now accepts ATM addresses in all formats supported by text2atm
  32458. +
  32459. +Other changes
  32460. +-------------
  32461. +
  32462. + - upgraded to kernel version 1.3.73
  32463. + - the called party number must now match the local address (if bound)
  32464. + - renamed ttcp.atm to ttcp_atm
  32465. + - all executables are now explicitly linked (so make works even without
  32466. + dependencies)
  32467. +
  32468. +
  32469. +Version 0.7 to 0.8 (12-MAR-1996)
  32470. +==================
  32471. +
  32472. +Bug fixes
  32473. +---------
  32474. +
  32475. + - fixed stray segmentation violation in arpd/arp.c:learn
  32476. + - fixed coding standard of the QoS IE if using UNI 3.0 (and made coding
  32477. + standard variable)
  32478. + - made coding standard variable for Cause IE
  32479. + - SSCOP didn't properly set N(MR)
  32480. + - list elements in STAT PDUs had host byte order
  32481. + - SSCF didn't call sscop_estab_resp on restart (AA-EST.ind in 1/1)
  32482. + - signaling didn't handle SAPs with >= 2 BLLI IEs properly
  32483. + - uni3x: iso_hli and user_hli were confined to 7 bytes, but UNI allows up to 8
  32484. + - q_read choked on non-variable-length fields
  32485. + - qgen sometimes didn't read all IEs of a signaling message
  32486. + - fixed usage line of test/bw
  32487. + - qgen no longer complains about missing required fields after a break
  32488. + - fixed compiler warning in zntune.c
  32489. + - fixed ATMARP table additions (caused GPF when flushing ATMARP entry at
  32490. + the end of the table and possibly other problems)
  32491. + - qgen: q_put or'ed data instead of overwriting it, which caused problems
  32492. + only on surprisingly few occasions
  32493. +
  32494. +New features
  32495. +------------
  32496. +
  32497. + - atm2text and text2atm now also do name lookups via a /etc/hosts.atm file
  32498. + - atmaddr, atmarpd, and atmsigd now pretty-print addresses using name
  32499. + translation (unless invoked with -n)
  32500. + - atmarpd now dumps its table into /var/run/atmarpd.table and atmarp -a
  32501. + reads it from there
  32502. + - started modularizing the ENI and ZATM drivers
  32503. + - ilmid and atmsigd now support multiple interfaces (untested)
  32504. +
  32505. +Other changes
  32506. +-------------
  32507. +
  32508. + - the documentation is now available in LaTeX and in ASCII
  32509. + - rewrote most of the SAP handling code (now everything is in sigd/sap.c)
  32510. + - proto.c:lookup_sap now picks wildcard SAP last
  32511. + - signaling always includes SSCS type = 0 in SETUP messages (for LANE)
  32512. + - changed the message format for the the kernel-demon signaling protocol
  32513. + - qgen is now a bit more tolerant when being fed with bad data
  32514. + - qgen now assumes that q_report(Q_FATAL,...) doesn't return
  32515. + - marked sigd/test.c as obsolete
  32516. + - svc_accept failing in atm_connect no longer returns success
  32517. + - atmsigd -n is now atmsigd -N
  32518. + - qgen now puts the PC in q.out.c and qd.out.c at the beginning of the code
  32519. + line and not on a line by itself
  32520. +
  32521. +
  32522. +Version 0.6 to 0.7 (2-FEB-1996)
  32523. +==================
  32524. +
  32525. +Bug fixes
  32526. +---------
  32527. +
  32528. + - removed TTL setting ioctl (1234) used for something entirely unrelated to
  32529. + ATM, oops
  32530. + - changed kfree_skb in atm_pop_raw to dev_kfree_skb (this fixes the socket
  32531. + "leak")
  32532. + - more unusual configurations (no PCI, no IP, no /proc) should compile now
  32533. + - atm_equal didn't recognize wildcards in embedded E.164 addresses
  32534. + - fixed net/atm/proc.c:svc_addr (too many bugs to mention)
  32535. + - atmarpd didn't check for ARP traffic on inbound connections
  32536. + - atmarpd didn't properly merge incoming connections with existing entries
  32537. + - various other ATMARP fixes
  32538. + - free list was too short in ENI driver for worst case fragmentation on
  32539. + 2 MB boards
  32540. + - signaling didn't set ISO/IEC TR9577 IPI and NLPID correctly in active open
  32541. + - getname looked at *sockaddr_len, which is uninitialized (need to fix this
  32542. + later in the common socket code)
  32543. + - SSCOP generated incorrect error code ("1" instead of "B") for BGN PDU
  32544. + problems
  32545. +
  32546. +New features
  32547. +------------
  32548. +
  32549. + - new ioctls ATM_GETADDR, ATM_RSTADDR, ATM_ADDADDR, and ATM_DELADDR to
  32550. + manage local ATM addresses
  32551. + - signaling now handles incoming RESTART, SAAL failure, and SAAL
  32552. + re-establishment
  32553. + - ATMARP now times out idle connection; ATMARP_MKIP ioctl takes a timeout
  32554. + argument
  32555. + - ATMARP (kernel) now queues one skb per pending ARP request and limits the
  32556. + rate of requests for the same address (default 2 req/min)
  32557. + - atmsigd now prints cause values when receiving a RELEASE or a RELEASE
  32558. + COMPLETE and returns more informative error codes
  32559. + - atmarpd falls back to PVC-only operation if signaling is unavailable at
  32560. + startup
  32561. + - kernel can now assign next free number on IP interface creation (atmarp
  32562. + prints the interface name)
  32563. + - qgen -D generates a Q.2931 message dumper (see USAGE for details)
  32564. + - qgen now checks for proper use of repetition indicator (but doesn't
  32565. + support repeated IEs yet)
  32566. + - protocols and device drivers can now use their own memory allocator in the
  32567. + TX direction by changing vcc->alloc_tx
  32568. +
  32569. +Other changes
  32570. +-------------
  32571. +
  32572. + - upgraded to kernel version 1.3.53
  32573. + - build process now uses Perl
  32574. + - ATM ioctls writing back data now always return the size of the data
  32575. + structure written
  32576. + - struct atmif_sioc now has a length field (recompile all atmarpd, ilmid,
  32577. + debug/ed, and everything in maint)
  32578. + - PHY driver no longer has to check validity (permissions and access) for
  32579. + "standard" ioctls
  32580. + - signaling should now also work on an interface > 0 (but there's still only
  32581. + one interface using signaling per host)
  32582. + - make install now adds /usr/include/atm.h and /usr/include/atmd.h
  32583. + - atmarpd now also displays if SVC has been opened actively or passively
  32584. + - atmaddr(8) now uses new ioctls and has different command-line syntax
  32585. + and even has a man page
  32586. + - example IP addresses in USAGE now conform to RFC1597
  32587. + - diagnostics now also include the application name (optional)
  32588. +
  32589. +
  32590. +Version 0.5 to 0.6 (21-DEC-1995)
  32591. +==================
  32592. +
  32593. +Bug fixes
  32594. +---------
  32595. +
  32596. + - ARP ioctls stopped working for most non-ATM devices, oops
  32597. + - ATMTCP driver counted lack of memory as rx_err instead of rx_drop
  32598. + - select on driver using polling may have hung
  32599. + - atmarp man page and usage didn't indicate that the interface number is
  32600. + optional
  32601. + - restricted atmarpd and signaling control, and SIOCSIFATMADDR to the super
  32602. + user
  32603. + - atmtcp: fixed handling of VPI/VCI <= 0 for setsockopt(SO_CIRANGE)
  32604. + - eni and zn driver had static UBR shaper pointer, making it difficult to have
  32605. + more than one such device per system
  32606. + - eni driver initialization didn't work properly in systems with ASIC Tonga
  32607. + - suni.[ch]: confused MC (Master Config) and MCT (Master ConTrol) registers
  32608. + - (SVC) accept now returns PVC -EAGAIN as -EBUSY because the operation cannot
  32609. + be retried
  32610. + - qgen: fixed several bugs in case handling (and made defaults work for
  32611. + parsing)
  32612. + - svc_dup passed PF_ATMSVC instead of AAL to svc_create
  32613. + - plugged a few skb leaks in svc_accept
  32614. + - text2atm didn't properly NUL-terminate E.164 addresses
  32615. +
  32616. +New features
  32617. +------------
  32618. +
  32619. + - ZN1221 driver works partially for AAL5 (still hangs after a few dozen MB)
  32620. + (also wrote maint/zntune to monitor/adjust free buffer pools)
  32621. + - ENI driver now supports new Tonga ASIC boards
  32622. + - added Scott Shumate's ILMI demon (for automatic address registration)
  32623. + - text2atm: added wildcard support for SVCs (syntax: addr/bits)
  32624. + - new library function atm_equal to compare SVC addresses
  32625. + - new ioctl ATM_GETTYPE to obtain interface type name
  32626. + - new ioctl ATM_GETESI to obtain ESI (parallels /proc/atm/devices)
  32627. + - new ioctls SONET_SETFRAMING, SONET_GETFRAMING, and SONET_GETFRSENSE to
  32628. + handle SONET vs. SDH framing
  32629. + - added socket option SO_AALTYPE (SOL_AAL) to query AAL type (getsockopt
  32630. + only)
  32631. + - signaling demon is now notified on address changes (new message
  32632. + as_itf_notify)
  32633. +
  32634. +Other changes
  32635. +-------------
  32636. +
  32637. + - known bugs are now listed in a file called BUGS
  32638. + - all utility programs (aread, awrite, atmdump, br, bw, clip, ttcp) now use
  32639. + the notation [itf.]vpi.vci for PVCs (was itf vpi vci , except for ttcp,
  32640. + where it was only vpi vci (no itf))
  32641. + - all ioctl values have changed
  32642. + Note: most programs have to be recompiled because of this
  32643. + - sigd and arpd now register their control sockets via ioctls
  32644. + - (old) clip now creates interfaces with an ioctl
  32645. + - text2atm now returns the wildcard length, i.e. a non-zero return value
  32646. + no longer implies failure
  32647. + - push_oam now returns an int (was void)
  32648. + - push_oam now has several flags (in a bit set) instead of the immed
  32649. + argument
  32650. + - the peek function must now update the statistics if it rejects a packet
  32651. + - (ATM device) close is now only invoked after a successful open
  32652. + - the SUNI_GETLOOP ioctl now has an int * argument (was unsigned long *)
  32653. + - uPD98402 driver no longer tries to detect return of the signal (didn't
  32654. + work anyway - would have to sample section errors)
  32655. + - ATMARP no longer supports mixed PVC/SVC entries (I'm sure this will be
  32656. + missed a lot :-)
  32657. + - ATMARP no longer supports "IP address discovery" via InARP for PVCs
  32658. + (maybe later)
  32659. + - specifying an invalid AAL now yields EPROTOTYPE
  32660. + - specifying an invalid address family (connect, bind) now yields EAFNOSUPPORT
  32661. + - make install now also installs libraries (in /usr/lib)
  32662. + - improved many header file comments
  32663. + - re-arranged some comments to simplify automated document generation
  32664. + - added copyright statement
  32665. + - UNI 3.0 IE fields are now always recognized (but we shouldn't generate them)
  32666. + - UNI 3.0 wants octet 5a when using BCOB-X, so we'll set it to twice "No
  32667. + indication"
  32668. + - aread, awrite, br, bw, ttcp, atmsigd, and atmdump now set max_sdu
  32669. + - aread and awrite no longer print strerror(errno) on success
  32670. +
  32671. +
  32672. +Version 0.4 to 0.5 (26-OCT-1995)
  32673. +==================
  32674. +
  32675. +Bug fixes
  32676. +---------
  32677. +
  32678. + - now only root can open a CLIP socket (thereby creating an IP interface)
  32679. + - now only root can issue CLIP_NULENCAP and CLIP_LLCENCAP ioctls
  32680. + - atmdump: forgot default in getopt switch
  32681. + - eni driver: called misc_int on every interrupt
  32682. + - Q.2931 message description: various fixes and improvements
  32683. + - linux/atm.h: ATM_*_UNSPEC used the same value as ATM_*_ANY, oops !
  32684. + - SSCOP is now more careful about not accessing the descriptor if it might
  32685. + possibly have been deleted
  32686. + - typo in SSCF leading to wrong response to AA-RECOVER.indication
  32687. + - SSCOP now correctly copies N(PS) from POLL to STAT PDUs
  32688. + - SSCF now discards data when not ready instead of issuing a fatal error
  32689. + - AAL initialization failure no longer leaks memory
  32690. + - closing an SVC without VCC no longer yields a GPF
  32691. +
  32692. +New features
  32693. +------------
  32694. +
  32695. + - ZN1221 driver is starting to work
  32696. + - new, ARP-based mechanism for IP over ATM (with atmarpd, atmarp, etc.)
  32697. + - /proc/atm/pvc now displays more information for CLIP PVCs (after a patch
  32698. + by Raghavan Menon)
  32699. + - added max_pcr to struct atm_trafprm (also fixed a few comments in atm.h)
  32700. + Note: all programs using sockaddr_atm* will have to be recompiled.
  32701. + - qgen now handles value lists in named selections
  32702. + - signaling now supports bhli/blli, plus various other minor extensions
  32703. + - new ioctls to set/get local ATM address
  32704. + - added library with address to/from text conversion functions
  32705. + - finally implemented getname()
  32706. +
  32707. +Other changes
  32708. +-------------
  32709. +
  32710. + - eni driver: avoided potential generation of superfluous code if extended
  32711. + debugging is disabled
  32712. + - eni driver: detects new boards using ASIC PCI chip (doesn't support them
  32713. + yet, though)
  32714. + - qgen: semicolon is now comment character and no longer used to terminate
  32715. + clauses
  32716. + - qgen: replaced term "item" with "field"
  32717. + - linux/include/atmsap.h: removed obsolete comment "protocol cannot be fully
  32718. + encoded in current structure". Also re-arranged some comments to simplify
  32719. + automated document generation.
  32720. + - saal,sscf,sscop: callbacks don't pass the pointer to the descriptor of the
  32721. + calling protocol anymore
  32722. + - SSCOP no longer prints a number for non-'V' errors
  32723. + - improved handling of STATUS messages
  32724. + - select now indicates ready for writing if max_sdu packet can be enqueued
  32725. + without blocking
  32726. + - select can now also be used to check status of non-blocking connect
  32727. + - moved some common demon functions from sigd into a common demon library
  32728. +
  32729. +
  32730. +Version 0.3 to 0.4 (27-SEP-1995)
  32731. +==================
  32732. +
  32733. +Bug fixes
  32734. +---------
  32735. +
  32736. + - various minor documentation fixes
  32737. + - clip.c:atm_push_clip now updates statistics before forwarding the skb to
  32738. + the upper layer (which may free and overwrite the skb)
  32739. +
  32740. +New features
  32741. +------------
  32742. +
  32743. + - added partial UNI 3.x signaling
  32744. + - added various adapter debugging programs to the distribution
  32745. + - new config option CONFIG_ATM_ENI_DEBUG to enable extended debugging
  32746. + in eni driver
  32747. +
  32748. +Other changes
  32749. +-------------
  32750. +
  32751. + - upgraded to kernel version 1.3.24
  32752. + - changed the distribution directory structure (programs are now in maint/,
  32753. + test/, ip/, debug/, and sigd/, see INSTALL)
  32754. + - ATM interfaces are no longer named, only numbered. This affects the
  32755. + ATM_GETNAMES ioctl, all ioctls using struct atmif_sioc, the usage of atmdiag
  32756. + and sonetdiag, and various diagnostic kernel messages.
  32757. + - ATM socket state is now recorded in field "flags" (this also replaces the
  32758. + SVC fields "released", "registered", and "state")
  32759. + - added #ifdef __KERNEL__ to some header files
  32760. + - added "int immed" argument to send_oam
  32761. + - some minor modifications to the distribution process (mkdist)
  32762. + - removed devmap.c
  32763. + - SVC sockets no longer hang if the signaling demon dies
  32764. +
  32765. +
  32766. +Version 0.2 to 0.3 (8-SEP-1995)
  32767. +==================
  32768. +
  32769. +Bug fixes
  32770. +---------
  32771. +
  32772. + - select(2) didn't work (was sleeping on sock->wait instead of
  32773. + &ATM_SD(sock)->sleep)
  32774. + - ENI driver did allow binding to VPI/VCI already in use
  32775. + - ENI driver now properly handles PDUs with CRC errors
  32776. + - ENI driver had race condition when discarding PDUs causing new PDUs to be
  32777. + shifted in adapter memory by one word (which confused the driver quite a
  32778. + bit)
  32779. + - ENI driver now enables VC _after_ setting all pointers (caused crashes if
  32780. + data was already coming in while opening VC)
  32781. + - various bugs fixes related to SVC sockets
  32782. + - fixed GPF (in kernel) when running atmdiag without arguments
  32783. + - atmdiag now left-adjusts interface names
  32784. + - fixed ttcp.atm crash when not specifying vpi.vci
  32785. + - clip_xmit now checks for NULL vcc (e.g. after failure to connect)
  32786. +
  32787. +New features
  32788. +------------
  32789. +
  32790. + - zatm driver now reads ESI correctly
  32791. + - blocking svc_connect is now interruptible
  32792. + - atmdump now also displays the numeric PTI value of incoming cells
  32793. + - added RX/TX buffer quotas (default is 64 kB)
  32794. + - added OAM hooks to device driver interface (but there's no OAM support yet)
  32795. +
  32796. +Other changes
  32797. +-------------
  32798. +
  32799. + - ENI driver now checks ID field of reassembly buffer descriptors
  32800. + - ENI driver now uses vremap
  32801. + - ENI driver now prints more useful physical layer type information (e.g.
  32802. + "MMF" and "UTP" instead of "UTOPIA")
  32803. + - some redesign of the protocol used for signaling between kernel and demon
  32804. + - disabled "Grr, servicing VCC twice" message in ENI driver
  32805. + - device drivers now have to adapt AAL0 cell header byte order
  32806. + - some cleanup in common.c:atm_getsockopt
  32807. + - device drivers are now required to use the peek function; protocols now
  32808. + must provide it
  32809. +
  32810. +
  32811. +Version 0.1 to 0.2 (15-AUG-1995)
  32812. +==================
  32813. +
  32814. +Bug fixes
  32815. +---------
  32816. +
  32817. + - VCC family field is now correctly set to protocol family in
  32818. + common.c:atm_create (was pvc.c:pvc_create). With protocol set to zero,
  32819. + this created all types of strange problems, because the family field
  32820. + is used to indicate whether an VCC slot is busy/free.
  32821. + - fixed race condition in common.c:atm_read (reader might have blocked
  32822. + even if data is ready)
  32823. + - fixed dereferencing of uninitialized skb->dev pointer in
  32824. + clip.c:atm_push_clip
  32825. + - SIOCSIFATMTCP now refuses to attach the same socket twice
  32826. + - zatm.c: fixed setting of the VPI/VCI mask
  32827. + - USAGE said ttcp uses -B for the bandwidth, but it's -P
  32828. + - mkdist didn't include man pages
  32829. +
  32830. +New features
  32831. +------------
  32832. +
  32833. + - added some /proc/atm functionality
  32834. + - added support for ATM_{VPI,VCI}_ANY
  32835. + - SIOCSIFATMTCP now returns the interface number and atmtcp(8) prints it
  32836. + - wrote atmtcp man page
  32837. + - added kernel part of SVC support
  32838. +
  32839. +Other changes
  32840. +-------------
  32841. +
  32842. + - common.c: only root is now allowed to bind to reserved VCIs
  32843. + - Classical IP interfaces are now removed by downing by ifconfig; clip(8)
  32844. + returns immediately
  32845. + - PVC-connect for non-existing device now returns ENODEV instead of EINVAL
  32846. + - new field (type) in struct atm_dev to indicate device type
  32847. + - moved getsockopt(SO_CIRANGE) to common.c (removed atmtcp's own version)
  32848. + - added ci_range to struct atm_dev (and removed it from atmtcp's private
  32849. + structure)
  32850. + - added code to read the ESI to zatm.c (but that code doesn't seem to work
  32851. + yet)
  32852. --- linux-atm-2.4.1.orig/debian/atm-tools-br2684.manpages
  32853. +++ linux-atm-2.4.1/debian/atm-tools-br2684.manpages
  32854. @@ -0,0 +1 @@
  32855. +debian/tmp/usr/share/man/man8/br2684ctl.8
  32856. --- linux-atm-2.4.1.orig/debian/atm-tools.atm
  32857. +++ linux-atm-2.4.1/debian/atm-tools.atm
  32858. @@ -0,0 +1,27 @@
  32859. +#!/bin/sh
  32860. +# Start/stop the atm daemon(s).
  32861. +
  32862. +DAEMON="/sbin/atmarpd"
  32863. +
  32864. +test -f $DAEMON || exit 0
  32865. +
  32866. +case "$1" in
  32867. +start) echo -n "Starting ATM ARP Daemon: "
  32868. + start-stop-daemon --start --quiet --exec $DAEMON -b
  32869. + /bin/sleep 2
  32870. + echo "atmarpd."
  32871. + ;;
  32872. +stop) echo -n "Stopping ATM ARP Daemon: "
  32873. + start-stop-daemon --stop --quiet --exec $DAEMON
  32874. + echo "atmarpd."
  32875. + ;;
  32876. +restart|force-reload) echo -n "Re-starting ATM ARP Daemon: "
  32877. + start-stop-daemon --stop --quiet --exec $DAEMON
  32878. + start-stop-daemon --start --quiet --exec $DAEMON -b
  32879. + /bin/sleep 2
  32880. + echo "atmarpd."
  32881. + ;;
  32882. +*) echo "Usage: /etc/init.d/atm start|stop|restart|force-reload"; exit 1
  32883. + ;;
  32884. +esac
  32885. +exit 0
  32886. --- linux-atm-2.4.1.orig/debian/atm-tools.docs
  32887. +++ linux-atm-2.4.1/debian/atm-tools.docs
  32888. @@ -0,0 +1,4 @@
  32889. +BUGS
  32890. +README
  32891. +doc/README.tc
  32892. +debian/README.br2684
  32893. --- linux-atm-2.4.1.orig/debian/control.old
  32894. +++ linux-atm-2.4.1/debian/control.old
  32895. @@ -0,0 +1,72 @@
  32896. +Source: linux-atm
  32897. +Section: net
  32898. +Priority: optional
  32899. +Maintainer: Peter De Schrijver (p2) <p2@mind.be>
  32900. +Build-Depends: debhelper (>> 4.0.0), bison, flex, perl, dpatch, automake1.4
  32901. +Standards-Version: 3.6.1
  32902. +
  32903. +Package: atm-tools
  32904. +Architecture: any
  32905. +Depends: ${shlibs:Depends}
  32906. +Description: Base programs for ATM in Linux, the net-tools for ATM
  32907. + This package provides all the basic programs needed for setting up,
  32908. + monitoring and tuning ATM networks. Such as:
  32909. + * atmsigd, an ATM signal daemon that implements the ATM UNI protocol.
  32910. + * atmtcp, a tool to setup ATM over TCP connections.
  32911. + * atmarpd, an implementation of the ATMARP protocol (RFC1577, RFC1755)
  32912. + * zeppelin, an ATM LAN Emulation client daemon
  32913. + * les and bus, ATM LAN Emulation service daemons
  32914. + .
  32915. + Notice that upstream still flags these tools as experimental software and
  32916. + says that there is still a number of known bugs and issues. The
  32917. + software is, however, in productive use at a number of sites and is
  32918. + working reliably.
  32919. + .
  32920. + Homepage: http://linux-atm.sourceforge.net/
  32921. +
  32922. +Package: atm-tools-br2684
  32923. +Architecture: any
  32924. +Depends: ${shlibs:Depends}
  32925. +Description: br2864ctl - RFC1483/2864 Bridge Daemon for ATM Networks
  32926. + br2684ctl handles RFC1483/2684 bridged PDUs. This is most often
  32927. + used in ADSL scenarios where usually the subscribers' ethernet
  32928. + traffic is encapsulated in ATM AAL5 (by bridging ADSL modems)
  32929. + according to RFC2684
  32930. + .
  32931. + The sources for br2684ctl has been pulled from linux-atm's CVS
  32932. + repository. Warning: This is unreleased software that can break any
  32933. + time, any place. If it does, you get to keep the pieces. linux-atm's
  32934. + upstream flags even the released software as experimental software.
  32935. + There is still a number of known bugs and issues.
  32936. +
  32937. +Package: atm-dev
  32938. +Depends: libatm1-dev
  32939. +Architecture: all
  32940. +Section: oldlibs
  32941. +Description: Development files for compiling ATM programs (dummy package)
  32942. + This dummy package provides a transition from the previous atm packages.
  32943. + It is provided for backwards compatibility only and may be removedafter
  32944. + the upgrade has completed or when when no other package depend on it.
  32945. +
  32946. +Package: libatm1
  32947. +Section: libs
  32948. +Architecture: any
  32949. +Depends: ${shlibs:Depends}
  32950. +Conflicts: atm-tools (<< 2.4.1-6)
  32951. +Description: shared library for ATM (Asynchronous Transfer Mode)
  32952. + Shared libraries needed by ATM (Asynchronous Transfer Mode) related programs
  32953. + .
  32954. + Homepage: http://linux-atm.sourceforge.net/
  32955. +
  32956. +Package: libatm1-dev
  32957. +Section: libdevel
  32958. +Architecture: any
  32959. +Depends: libc6-dev, libatm1
  32960. +Replaces: atm-dev (<< 2.4.1-7)
  32961. +Conflicts: atm-dev (<< 2.4.1-7)
  32962. +Provides: libatm-dev
  32963. +Description: Development files for compiling ATM programs
  32964. + Header files and development libraries for compiling ATM (Asynchronous
  32965. + Transfer Mode) related programs.
  32966. + .
  32967. + Homepage: http://linux-atm.sourceforge.net/
  32968. --- linux-atm-2.4.1.orig/debian/atm-tools.install
  32969. +++ linux-atm-2.4.1/debian/atm-tools.install
  32970. @@ -0,0 +1,18 @@
  32971. +debian/tmp/usr/share/man/*
  32972. +debian/tmp/usr/bin/*
  32973. +debian/tmp/usr/sbin/atmsigd
  32974. +debian/tmp/usr/sbin/atmaddr
  32975. +debian/tmp/usr/sbin/esi
  32976. +debian/tmp/usr/sbin/atmloop
  32977. +debian/tmp/usr/sbin/atmtcp
  32978. +debian/tmp/usr/sbin/enitune
  32979. +debian/tmp/usr/sbin/zntune
  32980. +debian/tmp/usr/sbin/atmarp sbin
  32981. +debian/tmp/usr/sbin/atmarpd sbin
  32982. +debian/tmp/usr/sbin/ilmid
  32983. +debian/tmp/usr/sbin/zeppelin
  32984. +debian/tmp/usr/sbin/les
  32985. +debian/tmp/usr/sbin/bus
  32986. +debian/tmp/usr/sbin/lecs
  32987. +debian/tmp/usr/sbin/mpcd
  32988. +debian/tmp/etc/atmsigd.conf
  32989. --- linux-atm-2.4.1.orig/debian/atm-tools.manpages
  32990. +++ linux-atm-2.4.1/debian/atm-tools.manpages
  32991. @@ -0,0 +1 @@
  32992. +debian/atm-tools.8
  32993. --- linux-atm-2.4.1.orig/debian/atm-tools.pod
  32994. +++ linux-atm-2.4.1/debian/atm-tools.pod
  32995. @@ -0,0 +1,27 @@
  32996. +=head1 NAME
  32997. +
  32998. +linux-atm - preliminary manpage
  32999. +aread
  33000. +awrite
  33001. +enitune
  33002. +ilmid
  33003. +saaldump
  33004. +sonetdiag
  33005. +ttcp_atm
  33006. +zntune
  33007. +
  33008. +=head1 DOCUMENTATION
  33009. +
  33010. +atm-tools is a package containing the basic tools that are needed for
  33011. +setting up, monitoring, and tuning ATM networks. All available
  33012. +documentation can be found in /usr/share/doc/atnm-tools in Debian
  33013. +systems, and on the Web on: http://linux-atm.sourceforge.net.
  33014. +
  33015. +=head1 BUGS
  33016. +
  33017. +Many. Be prepared to debug.
  33018. +
  33019. +=head1 AUTHOR
  33020. +
  33021. +This manpage was written by Marc Haber for linux-atm packaging in
  33022. +Debian/GNU Operating System.
  33023. --- linux-atm-2.4.1.orig/debian/changelog
  33024. +++ linux-atm-2.4.1/debian/changelog
  33025. @@ -0,0 +1,212 @@
  33026. +linux-atm (2.4.1-17) unstable; urgency=low
  33027. +
  33028. + * Fix build problem with gcc 4.0 (Closes: )
  33029. +
  33030. + -- Peter De Schrijver (p2) <p2@mind.be> Thu, 17 Mar 2005 23:02:03 +0100
  33031. +
  33032. +linux-atm (2.4.1-16) unstable; urgency=low
  33033. +
  33034. + * Fix build problem with gcc 3.4 (Closes: #259422)
  33035. +
  33036. + -- Peter De Schrijver (p2) <p2@mind.be> Thu, 15 Jul 2004 14:28:10 +0200
  33037. +
  33038. +linux-atm (2.4.1-15) unstable; urgency=low
  33039. +
  33040. + * Updated descriptions (Closes: #239161)
  33041. +
  33042. + -- Peter De Schrijver (p2) <p2@mind.be> Sun, 4 Apr 2004 21:10:20 +0200
  33043. +
  33044. +linux-atm (2.4.1-14) unstable; urgency=low
  33045. +
  33046. + * Fix symlink for /usr/lib/libatm.so (Closes: #221011)
  33047. +
  33048. + -- Peter De Schrijver (p2) <p2@mind.be> Sun, 7 Dec 2003 21:53:19 +0100
  33049. +
  33050. +linux-atm (2.4.1-13) unstable; urgency=low
  33051. +
  33052. + * Previous version fixed #217259, but no changelog entry (Closes: #217259)
  33053. + * Previous version fixed #216662, but no changelog entry (Closes: #216662)
  33054. + * Added missing build dependency on automake1.4 (Closes: #221120, #221284)
  33055. + * New Maintainer (Closes: #206982)
  33056. +
  33057. + -- Peter De Schrijver (p2) <p2@mind.be> Mon, 17 Nov 2003 23:03:58 +0100
  33058. +
  33059. +linux-atm (2.4.1-12) unstable; urgency=low
  33060. +
  33061. + * don't build atm-tools-br2684 by default. Thanks to ftpmaster for
  33062. + not allowing the package to be in Debian.
  33063. + * Since we don't build atm-tools-br2684 any more, revert back to
  33064. + autotools output from 2.4.1-9
  33065. + * Add README.br2684 documenting a way to build the package locally.
  33066. +
  33067. + -- Marc Haber <mh+debian-packages@zugschlus.de> Wed, 5 Nov 2003 21:31:42 +0000
  33068. +
  33069. +linux-atm (2.4.1-11) experimental; urgency=low
  33070. +
  33071. + * Build-Depend on dpatch
  33072. + * dpatch br2684 header files from later libc for old libc (woody)
  33073. +
  33074. + -- Marc Haber <mh+debian-packages@zugschlus.de> Wed, 29 Oct 2003 19:05:07 +0000
  33075. +
  33076. +linux-atm (2.4.1-10) experimental; urgency=low
  33077. +
  33078. + * add br2684 to package (closes: #216663)
  33079. + * autoreconf to actually build br2684
  33080. + * have libatm1-dev provide libatm-dev (closes: #216662)
  33081. + * move lib symlink to libatm1-dev as well (closes: #217259)
  33082. +
  33083. + -- Marc Haber <mh+debian-packages@zugschlus.de> Thu, 23 Oct 2003 17:55:43 +0000
  33084. +
  33085. +linux-atm (2.4.1-9) unstable; urgency=low
  33086. +
  33087. + * put libatm1-dev in libdevel (closes: #213170)
  33088. + * make sure that new descriptions actually make it into the package
  33089. +
  33090. + -- Marc Haber <mh+debian-packages@zugschlus.de> Thu, 9 Oct 2003 17:08:10 +0000
  33091. +
  33092. +linux-atm (2.4.1-8) unstable; urgency=low
  33093. +
  33094. + * build arch-indep package as targets of binary-indep (closes: #212124)
  33095. + * use dh_installdocs to install files to libatm1-dev/docs
  33096. + * symlink shared lib to usr/bin (closes: #213146)
  33097. + * Use better long descriptions. Thanks to Javier (closes: #209427)
  33098. + Fernandez-Sanguino (closes: #209612)
  33099. +
  33100. + -- Marc Haber <mh+debian-packages@zugschlus.de> Sun, 28 Sep 2003 19:29:08 +0000
  33101. +
  33102. +linux-atm (2.4.1-7) unstable; urgency=low
  33103. +
  33104. + * libatm1 now conflicts with atm-tools (<< 2.4.1-6) (closes: #208170)
  33105. + * armarp now writes output to stdout.
  33106. + * add atm-dev as empty transitional package to help upgrades
  33107. +
  33108. + -- Marc Haber <mh+debian-packages@zugschlus.de> Tue, 2 Sep 2003 09:20:33 +0000
  33109. +
  33110. +linux-atm (2.4.1-6) unstable; urgency=low
  33111. +
  33112. + * split off shared libraries to libatm1
  33113. + * rename atm-dev to libatm1-dev
  33114. + * Standards-Version: 3.6.1
  33115. +
  33116. + -- Marc Haber <mh+debian-packages@zugschlus.de> Tue, 26 Aug 2003 15:46:27 +0000
  33117. +
  33118. +linux-atm (2.4.1-5) unstable; urgency=low
  33119. +
  33120. + * move *.a and *.la to usr/lib (closes: #199506).
  33121. + * let atm-dev depend on atm-tools to avoid dangling /lib/libatm.so
  33122. + symlink.
  33123. + * Standards-Version: 3.5.6
  33124. +
  33125. + -- Marc Haber <mh+debian-packages@zugschlus.de> Wed, 30 Jul 2003 11:46:19 +0000
  33126. +
  33127. +linux-atm (2.4.1-4) unstable; urgency=low
  33128. +
  33129. + * add Build-Depends: on automake1.4
  33130. +
  33131. + -- Marc Haber <mh+debian-packages@zugschlus.de> Wed, 11 Jun 2003 16:58:21 +0000
  33132. +
  33133. +linux-atm (2.4.1-3) unstable; urgency=low
  33134. +
  33135. + * rebuilding libtool broke src/test/Makefile.in. Applied fix to
  33136. + Makefile.am and re-built again.
  33137. +
  33138. + -- Marc Haber <mh+debian-packages@zugschlus.de> Wed, 11 Jun 2003 11:05:26 +0000
  33139. +
  33140. +linux-atm (2.4.1-2) unstable; urgency=low
  33141. +
  33142. + * rebuild configure script with new libtool (closes: #196909)
  33143. +
  33144. + -- Marc Haber <mh+debian-packages@zugschlus.de> Tue, 10 Jun 2003 21:01:50 +0000
  33145. +
  33146. +linux-atm (2.4.1-1) unstable; urgency=low
  33147. +
  33148. + * new upstream source
  33149. + * remove atmarp and atmarpd from /usr/sbin as they are already in
  33150. + /sbin (closes: #196216)
  33151. + * lintian fixes
  33152. +
  33153. + -- Marc Haber <mh+debian-packages@zugschlus.de> Mon, 9 Jun 2003 16:03:45 +0000
  33154. +
  33155. +linux-atm (2.4.0-5) unstable; urgency=low
  33156. +
  33157. + * Fix for src/test/Makefile.in to allow building on hppa and ia64
  33158. + which the fix introduced to 2.4.0-4 broke. Thanks to Goswin
  33159. + Brederlow.
  33160. + * Move init.d priority to that atmarpd is started before network
  33161. + interfaces are started.
  33162. + * Move atmarpd and libatm to /sbin and /lib to allow atmarpd to be
  33163. + started before /usr is mounted.
  33164. + * use dh_install instead of dh_movefiles.
  33165. +
  33166. + -- Marc Haber <mh+debian-packages@zugschlus.de> Sat, 24 Aug 2002 15:13:48 +0000
  33167. +
  33168. +linux-atm (2.4.0-4) unstable; urgency=low
  33169. +
  33170. + * new maintainer
  33171. + * Fix for src/test/Makefile.in to allow building on sparc.
  33172. + Thanks to Patrick Mauritz. (closes: #144225).
  33173. + * added pseudo-manpage for manpage-less binaries.
  33174. + * removed rpath by changing configure and make install paramaters
  33175. +
  33176. + -- Marc Haber <mh+debian-packages@zugschlus.de> Fri, 16 Aug 2002 20:39:05 +0000
  33177. +
  33178. +linux-atm (2.4.0-3) unstable; urgency=HIGH
  33179. +
  33180. + * Re-ran libtoolize.
  33181. + Closes: #143522
  33182. +
  33183. + * Previous version Closes: #135328
  33184. +
  33185. + -- Russell Coker <russell@coker.com.au> Fri, 19 Apr 2002 01:55:00 +0200
  33186. +
  33187. +linux-atm (2.4.0-2) unstable; urgency=HIGH
  33188. +
  33189. + * Put a "grep -v EMAXERRNO" into the build process to deal with mipsel and
  33190. + the "#ifdef __KERNEL__" it has in it's /usr/include/asm/errno.h .
  33191. +
  33192. + -- Russell Coker <russell@coker.com.au> Thu, 18 Apr 2002 19:56:00 +0200
  33193. +
  33194. +linux-atm (2.4.0-1) unstable; urgency=HIGH
  33195. +
  33196. + * New upstream version which changes source package name.
  33197. + Closes: #138911
  33198. +
  33199. + -- Russell Coker <russell@coker.com.au> Mon, 18 Mar 2002 17:42:00 +0100
  33200. +
  33201. +atm (0.79-4) unstable; urgency=low
  33202. +
  33203. + * Added build-depends on flex.
  33204. + Closes: #111072
  33205. +
  33206. + * Made the atm tools use a shared object to save space.
  33207. +
  33208. + * Fixed the copyright file and put all copyright details in both packages.
  33209. +
  33210. + * Added support for easy building with different kernel headers.
  33211. + Closes: #110249
  33212. +
  33213. + -- Russell Coker <russell@coker.com.au> Sun, 7 Oct 2001 14:11:33 +0200
  33214. +
  33215. +atm (0.79-3) unstable; urgency=low
  33216. +
  33217. + * Created /etc/init.d/atm to start and stop atmarpd.
  33218. + Closes: #110252
  33219. +
  33220. + * Added build-depends on bison.
  33221. + Closes: #110576
  33222. +
  33223. + -- Russell Coker <russell@coker.com.au> Fri, 31 Aug 2001 15:21:44 +0200
  33224. +
  33225. +atm (0.79-2) unstable; urgency=low
  33226. +
  33227. + * Changed the main package name to atm-tools to indicate that it doesn't
  33228. + provide ATM (gotta have the kernel support), it just has the daemons and
  33229. + utilities.
  33230. +
  33231. + -- Russell Coker <russell@coker.com.au> Sat, 25 Aug 2001 17:55:00 +0200
  33232. +
  33233. +atm (0.79-1) unstable; urgency=low
  33234. +
  33235. + * Initial Release.
  33236. +
  33237. + -- Russell Coker <russell@coker.com.au> Fri, 24 Aug 2001 17:31:00 +0200
  33238. --- linux-atm-2.4.1.orig/debian/checkout-br2684
  33239. +++ linux-atm-2.4.1/debian/checkout-br2684
  33240. @@ -0,0 +1,25 @@
  33241. +#!/bin/bash -x
  33242. +
  33243. +set -e
  33244. +
  33245. +# check out br2684 from upstream CVS. We need to jump through hoops if
  33246. +# the local source package is under cvs control as well.
  33247. +
  33248. +CVSDIR=":pserver:anonymous:@cvs.linux-atm.sourceforge.net.:/cvsroot/linux-atm"
  33249. +DIR="br2684"
  33250. +TMPDIR="/tmp"
  33251. +TARGETDIR="src"
  33252. +
  33253. +cvs -d${CVSDIR} login
  33254. +
  33255. +mkdir -p $TMPDIR
  33256. +pushd $TMPDIR
  33257. +cvs -z6 -d${CVSDIR} export -d $DIR -r V2_5_0 linux-atm/src/br2684
  33258. +
  33259. +popd
  33260. +
  33261. +mv $TMPDIR/$DIR/* $TARGETDIR/$DIR
  33262. +rm -rf $TMPDIR/$DIR
  33263. +
  33264. +autoreconf -i -f
  33265. +
  33266. --- linux-atm-2.4.1.orig/debian/copyright.header
  33267. +++ linux-atm-2.4.1/debian/copyright.header
  33268. @@ -0,0 +1,18 @@
  33269. +This package was debianized by Russell Coker <russell@coker.com.au> on
  33270. +Fri, 24 Aug 2001 16:11:12 +0200 and is now maintained by Marc Haber
  33271. +<mh+debian-packages@zugschlus.de>.
  33272. +
  33273. +It was downloaded from http://www.sourceforge.net/projects/linux-atm/
  33274. +
  33275. +See also http://linux-atm.sourceforge.net/dist.php
  33276. +
  33277. +Upstream Authors:
  33278. +Werner Almesberger EPFL ICA <Werner.Almesberger@epfl.ch>
  33279. +Mitchell Blank Jr. <mitch@sfgoth.com>
  33280. +Paul B Schroeder <paulsch@us.ibm.com>
  33281. +
  33282. +Copyright:
  33283. +
  33284. +GPL 2.0
  33285. +
  33286. +See /usr/share/common-licenses/GPL-2
  33287. --- linux-atm-2.4.1.orig/debian/libatm1-dev.dirs
  33288. +++ linux-atm-2.4.1/debian/libatm1-dev.dirs
  33289. @@ -0,0 +1,2 @@
  33290. +usr/lib
  33291. +usr/include
  33292. --- linux-atm-2.4.1.orig/debian/libatm1-dev.docs
  33293. +++ linux-atm-2.4.1/debian/libatm1-dev.docs
  33294. @@ -0,0 +1,2 @@
  33295. +doc/README.CLP
  33296. +doc/atm-linux-howto.txt
  33297. --- linux-atm-2.4.1.orig/debian/libatm1-dev.install
  33298. +++ linux-atm-2.4.1/debian/libatm1-dev.install
  33299. @@ -0,0 +1,2 @@
  33300. +debian/tmp/usr/include/*
  33301. +debian/tmp/usr/lib/*.a usr/lib
  33302. --- linux-atm-2.4.1.orig/debian/libatm1-dev.links
  33303. +++ linux-atm-2.4.1/debian/libatm1-dev.links
  33304. @@ -0,0 +1 @@
  33305. +lib/libatm.so.1 usr/lib/libatm.so
  33306. --- linux-atm-2.4.1.orig/debian/libatm1.dirs
  33307. +++ linux-atm-2.4.1/debian/libatm1.dirs
  33308. @@ -0,0 +1 @@
  33309. +/lib
  33310. --- linux-atm-2.4.1.orig/debian/libatm1.install
  33311. +++ linux-atm-2.4.1/debian/libatm1.install
  33312. @@ -0,0 +1 @@
  33313. +debian/tmp/usr/lib/libatm.so.* lib