patch-configure 393 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342
  1. --- Libnet-1.0.2a.orig/configure 2001-01-17 21:59:33.000000000 +0100
  2. +++ Libnet-1.0.2a/configure 2009-06-12 21:58:16.000000000 +0200
  3. @@ -1,31 +1,485 @@
  4. #! /bin/sh
  5. -
  6. # Guess values for system-dependent variables and create Makefiles.
  7. -# Generated automatically using autoconf version 2.13
  8. -# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  9. +# Generated by GNU Autoconf 2.59.
  10. #
  11. +# Copyright (C) 2003 Free Software Foundation, Inc.
  12. # This configure script is free software; the Free Software Foundation
  13. # gives unlimited permission to copy, distribute and modify it.
  14. +## --------------------- ##
  15. +## M4sh Initialization. ##
  16. +## --------------------- ##
  17. -# Defaults:
  18. -ac_help=
  19. +# Be Bourne compatible
  20. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  21. + emulate sh
  22. + NULLCMD=:
  23. + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  24. + # is contrary to our usage. Disable this feature.
  25. + alias -g '${1+"$@"}'='"$@"'
  26. +elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  27. + set -o posix
  28. +fi
  29. +DUALCASE=1; export DUALCASE # for MKS sh
  30. +
  31. +# Support unset when possible.
  32. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  33. + as_unset=unset
  34. +else
  35. + as_unset=false
  36. +fi
  37. +
  38. +
  39. +# Work around bugs in pre-3.0 UWIN ksh.
  40. +$as_unset ENV MAIL MAILPATH
  41. +PS1='$ '
  42. +PS2='> '
  43. +PS4='+ '
  44. +
  45. +# NLS nuisances.
  46. +for as_var in \
  47. + LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  48. + LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  49. + LC_TELEPHONE LC_TIME
  50. +do
  51. + if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  52. + eval $as_var=C; export $as_var
  53. + else
  54. + $as_unset $as_var
  55. + fi
  56. +done
  57. +
  58. +# Required to use basename.
  59. +if expr a : '\(a\)' >/dev/null 2>&1; then
  60. + as_expr=expr
  61. +else
  62. + as_expr=false
  63. +fi
  64. +
  65. +if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  66. + as_basename=basename
  67. +else
  68. + as_basename=false
  69. +fi
  70. +
  71. +
  72. +# Name of the executable.
  73. +as_me=`$as_basename "$0" ||
  74. +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  75. + X"$0" : 'X\(//\)$' \| \
  76. + X"$0" : 'X\(/\)$' \| \
  77. + . : '\(.\)' 2>/dev/null ||
  78. +echo X/"$0" |
  79. + sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  80. + /^X\/\(\/\/\)$/{ s//\1/; q; }
  81. + /^X\/\(\/\).*/{ s//\1/; q; }
  82. + s/.*/./; q'`
  83. +
  84. +
  85. +# PATH needs CR, and LINENO needs CR and PATH.
  86. +# Avoid depending upon Character Ranges.
  87. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  88. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  89. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  90. +as_cr_digits='0123456789'
  91. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  92. +
  93. +# The user is always right.
  94. +if test "${PATH_SEPARATOR+set}" != set; then
  95. + echo "#! /bin/sh" >conf$$.sh
  96. + echo "exit 0" >>conf$$.sh
  97. + chmod +x conf$$.sh
  98. + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  99. + PATH_SEPARATOR=';'
  100. + else
  101. + PATH_SEPARATOR=:
  102. + fi
  103. + rm -f conf$$.sh
  104. +fi
  105. +
  106. +
  107. + as_lineno_1=$LINENO
  108. + as_lineno_2=$LINENO
  109. + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  110. + test "x$as_lineno_1" != "x$as_lineno_2" &&
  111. + test "x$as_lineno_3" = "x$as_lineno_2" || {
  112. + # Find who we are. Look in the path if we contain no path at all
  113. + # relative or not.
  114. + case $0 in
  115. + *[\\/]* ) as_myself=$0 ;;
  116. + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  117. +for as_dir in $PATH
  118. +do
  119. + IFS=$as_save_IFS
  120. + test -z "$as_dir" && as_dir=.
  121. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  122. +done
  123. +
  124. + ;;
  125. + esac
  126. + # We did not find ourselves, most probably we were run as `sh COMMAND'
  127. + # in which case we are not to be found in the path.
  128. + if test "x$as_myself" = x; then
  129. + as_myself=$0
  130. + fi
  131. + if test ! -f "$as_myself"; then
  132. + { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  133. + { (exit 1); exit 1; }; }
  134. + fi
  135. + case $CONFIG_SHELL in
  136. + '')
  137. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  138. +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  139. +do
  140. + IFS=$as_save_IFS
  141. + test -z "$as_dir" && as_dir=.
  142. + for as_base in sh bash ksh sh5; do
  143. + case $as_dir in
  144. + /*)
  145. + if ("$as_dir/$as_base" -c '
  146. + as_lineno_1=$LINENO
  147. + as_lineno_2=$LINENO
  148. + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  149. + test "x$as_lineno_1" != "x$as_lineno_2" &&
  150. + test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  151. + $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  152. + $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  153. + CONFIG_SHELL=$as_dir/$as_base
  154. + export CONFIG_SHELL
  155. + exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  156. + fi;;
  157. + esac
  158. + done
  159. +done
  160. +;;
  161. + esac
  162. +
  163. + # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  164. + # uniformly replaced by the line number. The first 'sed' inserts a
  165. + # line-number line before each line; the second 'sed' does the real
  166. + # work. The second script uses 'N' to pair each line-number line
  167. + # with the numbered line, and appends trailing '-' during
  168. + # substitution so that $LINENO is not a special case at line end.
  169. + # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  170. + # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  171. + sed '=' <$as_myself |
  172. + sed '
  173. + N
  174. + s,$,-,
  175. + : loop
  176. + s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  177. + t loop
  178. + s,-$,,
  179. + s,^['$as_cr_digits']*\n,,
  180. + ' >$as_me.lineno &&
  181. + chmod +x $as_me.lineno ||
  182. + { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  183. + { (exit 1); exit 1; }; }
  184. +
  185. + # Don't try to exec as it changes $[0], causing all sort of problems
  186. + # (the dirname of $[0] is not the place where we might find the
  187. + # original and so on. Autoconf is especially sensible to this).
  188. + . ./$as_me.lineno
  189. + # Exit status is that of the last command.
  190. + exit
  191. +}
  192. +
  193. +
  194. +case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  195. + *c*,-n*) ECHO_N= ECHO_C='
  196. +' ECHO_T=' ' ;;
  197. + *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  198. + *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  199. +esac
  200. +
  201. +if expr a : '\(a\)' >/dev/null 2>&1; then
  202. + as_expr=expr
  203. +else
  204. + as_expr=false
  205. +fi
  206. +
  207. +rm -f conf$$ conf$$.exe conf$$.file
  208. +echo >conf$$.file
  209. +if ln -s conf$$.file conf$$ 2>/dev/null; then
  210. + # We could just check for DJGPP; but this test a) works b) is more generic
  211. + # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  212. + if test -f conf$$.exe; then
  213. + # Don't use ln at all; we don't have any links
  214. + as_ln_s='cp -p'
  215. + else
  216. + as_ln_s='ln -s'
  217. + fi
  218. +elif ln conf$$.file conf$$ 2>/dev/null; then
  219. + as_ln_s=ln
  220. +else
  221. + as_ln_s='cp -p'
  222. +fi
  223. +rm -f conf$$ conf$$.exe conf$$.file
  224. +
  225. +if mkdir -p . 2>/dev/null; then
  226. + as_mkdir_p=:
  227. +else
  228. + test -d ./-p && rmdir ./-p
  229. + as_mkdir_p=false
  230. +fi
  231. +
  232. +as_executable_p="test -f"
  233. +
  234. +# Sed expression to map a string onto a valid CPP name.
  235. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  236. +
  237. +# Sed expression to map a string onto a valid variable name.
  238. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  239. +
  240. +
  241. +# IFS
  242. +# We need space, tab and new line, in precisely that order.
  243. +as_nl='
  244. +'
  245. +IFS=" $as_nl"
  246. +
  247. +# CDPATH.
  248. +$as_unset CDPATH
  249. +
  250. +
  251. +# Find the correct PATH separator. Usually this is `:', but
  252. +# DJGPP uses `;' like DOS.
  253. +if test "X${PATH_SEPARATOR+set}" != Xset; then
  254. + UNAME=${UNAME-`uname 2>/dev/null`}
  255. + case X$UNAME in
  256. + *-DOS) lt_cv_sys_path_separator=';' ;;
  257. + *) lt_cv_sys_path_separator=':' ;;
  258. + esac
  259. + PATH_SEPARATOR=$lt_cv_sys_path_separator
  260. +fi
  261. +
  262. +
  263. +# Check that we are running under the correct shell.
  264. +SHELL=${CONFIG_SHELL-/bin/sh}
  265. +
  266. +case X$ECHO in
  267. +X*--fallback-echo)
  268. + # Remove one level of quotation (which was required for Make).
  269. + ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  270. + ;;
  271. +esac
  272. +
  273. +echo=${ECHO-echo}
  274. +if test "X$1" = X--no-reexec; then
  275. + # Discard the --no-reexec flag, and continue.
  276. + shift
  277. +elif test "X$1" = X--fallback-echo; then
  278. + # Avoid inline document here, it may be left over
  279. + :
  280. +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
  281. + # Yippee, $echo works!
  282. + :
  283. +else
  284. + # Restart under the correct shell.
  285. + exec $SHELL "$0" --no-reexec ${1+"$@"}
  286. +fi
  287. +
  288. +if test "X$1" = X--fallback-echo; then
  289. + # used as fallback echo
  290. + shift
  291. + cat <<EOF
  292. +
  293. +EOF
  294. + exit 0
  295. +fi
  296. +
  297. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  298. +# if CDPATH is set.
  299. +if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
  300. +
  301. +if test -z "$ECHO"; then
  302. +if test "X${echo_test_string+set}" != Xset; then
  303. +# find a string as large as possible, as long as the shell can cope with it
  304. + for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  305. + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  306. + if (echo_test_string="`eval $cmd`") 2>/dev/null &&
  307. + echo_test_string="`eval $cmd`" &&
  308. + (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  309. + then
  310. + break
  311. + fi
  312. + done
  313. +fi
  314. +
  315. +if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  316. + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  317. + test "X$echo_testing_string" = "X$echo_test_string"; then
  318. + :
  319. +else
  320. + # The Solaris, AIX, and Digital Unix default echo programs unquote
  321. + # backslashes. This makes it impossible to quote backslashes using
  322. + # echo "$something" | sed 's/\\/\\\\/g'
  323. + #
  324. + # So, first we look for a working echo in the user's PATH.
  325. +
  326. + IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  327. + for dir in $PATH /usr/ucb; do
  328. + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  329. + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  330. + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  331. + test "X$echo_testing_string" = "X$echo_test_string"; then
  332. + echo="$dir/echo"
  333. + break
  334. + fi
  335. + done
  336. + IFS="$save_ifs"
  337. +
  338. + if test "X$echo" = Xecho; then
  339. + # We didn't find a better echo, so look for alternatives.
  340. + if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  341. + echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  342. + test "X$echo_testing_string" = "X$echo_test_string"; then
  343. + # This shell has a builtin print -r that does the trick.
  344. + echo='print -r'
  345. + elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  346. + test "X$CONFIG_SHELL" != X/bin/ksh; then
  347. + # If we have ksh, try running configure again with it.
  348. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  349. + export ORIGINAL_CONFIG_SHELL
  350. + CONFIG_SHELL=/bin/ksh
  351. + export CONFIG_SHELL
  352. + exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  353. + else
  354. + # Try using printf.
  355. + echo='printf %s\n'
  356. + if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  357. + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  358. + test "X$echo_testing_string" = "X$echo_test_string"; then
  359. + # Cool, printf works
  360. + :
  361. + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  362. + test "X$echo_testing_string" = 'X\t' &&
  363. + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  364. + test "X$echo_testing_string" = "X$echo_test_string"; then
  365. + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  366. + export CONFIG_SHELL
  367. + SHELL="$CONFIG_SHELL"
  368. + export SHELL
  369. + echo="$CONFIG_SHELL $0 --fallback-echo"
  370. + elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  371. + test "X$echo_testing_string" = 'X\t' &&
  372. + echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  373. + test "X$echo_testing_string" = "X$echo_test_string"; then
  374. + echo="$CONFIG_SHELL $0 --fallback-echo"
  375. + else
  376. + # maybe with a smaller string...
  377. + prev=:
  378. +
  379. + for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  380. + if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  381. + then
  382. + break
  383. + fi
  384. + prev="$cmd"
  385. + done
  386. +
  387. + if test "$prev" != 'sed 50q "$0"'; then
  388. + echo_test_string=`eval $prev`
  389. + export echo_test_string
  390. + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  391. + else
  392. + # Oops. We lost completely, so just stick with echo.
  393. + echo=echo
  394. + fi
  395. + fi
  396. + fi
  397. + fi
  398. +fi
  399. +fi
  400. +
  401. +# Copy echo and quote the copy suitably for passing to libtool from
  402. +# the Makefile, instead of quoting the original, which is used later.
  403. +ECHO=$echo
  404. +if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  405. + ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  406. +fi
  407. +
  408. +
  409. +
  410. +# Name of the host.
  411. +# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  412. +# so uname gets run too.
  413. +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  414. +
  415. +exec 6>&1
  416. +
  417. +#
  418. +# Initializations.
  419. +#
  420. ac_default_prefix=/usr/local
  421. -# Any additions from configure.in:
  422. +ac_config_libobj_dir=.
  423. +cross_compiling=no
  424. +subdirs=
  425. +MFLAGS=
  426. +MAKEFLAGS=
  427. +SHELL=${CONFIG_SHELL-/bin/sh}
  428. +
  429. +# Maximum number of lines to put in a shell here document.
  430. +# This variable seems obsolete. It should probably be removed, and
  431. +# only ac_max_sed_lines should be used.
  432. +: ${ac_max_here_lines=38}
  433. +
  434. +# Identity of this package.
  435. +PACKAGE_NAME=
  436. +PACKAGE_TARNAME=
  437. +PACKAGE_VERSION=
  438. +PACKAGE_STRING=
  439. +PACKAGE_BUGREPORT=
  440. +
  441. +ac_unique_file="src/libnet_build_ip.c"
  442. ac_default_prefix=/usr
  443. -ac_help="$ac_help
  444. - --with-pf_packet=[yes,no] override defaults"
  445. -ac_help="$ac_help
  446. - --with-fast_x86_check=[yes,no] override defaults"
  447. +# Factoring default headers for most tests.
  448. +ac_includes_default="\
  449. +#include <stdio.h>
  450. +#if HAVE_SYS_TYPES_H
  451. +# include <sys/types.h>
  452. +#endif
  453. +#if HAVE_SYS_STAT_H
  454. +# include <sys/stat.h>
  455. +#endif
  456. +#if STDC_HEADERS
  457. +# include <stdlib.h>
  458. +# include <stddef.h>
  459. +#else
  460. +# if HAVE_STDLIB_H
  461. +# include <stdlib.h>
  462. +# endif
  463. +#endif
  464. +#if HAVE_STRING_H
  465. +# if !STDC_HEADERS && HAVE_MEMORY_H
  466. +# include <memory.h>
  467. +# endif
  468. +# include <string.h>
  469. +#endif
  470. +#if HAVE_STRINGS_H
  471. +# include <strings.h>
  472. +#endif
  473. +#if HAVE_INTTYPES_H
  474. +# include <inttypes.h>
  475. +#else
  476. +# if HAVE_STDINT_H
  477. +# include <stdint.h>
  478. +# endif
  479. +#endif
  480. +#if HAVE_UNISTD_H
  481. +# include <unistd.h>
  482. +#endif"
  483. +
  484. +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 CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot LL_INT_TYPE_UC LL_INT_TYPE LIB_PREFIX INC_PREFIX MAN_PREFIX BIN_PREFIX RANLIB AR LN ADDITIONAL_LIBS LIBNET_CONFIG_DEFINES LIBNET_CONFIG_LIBS LIBNET_CONFIG_CFLAGS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S ECHO ac_ct_RANLIB CPP EGREP LIBTOOL LIBOBJS LTLIBOBJS'
  485. +ac_subst_files=''
  486. # Initialize some variables set by options.
  487. +ac_init_help=
  488. +ac_init_version=false
  489. # The variables have the same names as the options, with
  490. # dashes changed to underlines.
  491. -build=NONE
  492. -cache_file=./config.cache
  493. +cache_file=/dev/null
  494. exec_prefix=NONE
  495. -host=NONE
  496. no_create=
  497. -nonopt=NONE
  498. no_recursion=
  499. prefix=NONE
  500. program_prefix=NONE
  501. @@ -34,10 +488,15 @@ program_transform_name=s,x,x,
  502. silent=
  503. site=
  504. srcdir=
  505. -target=NONE
  506. verbose=
  507. x_includes=NONE
  508. x_libraries=NONE
  509. +
  510. +# Installation directory options.
  511. +# These are left unexpanded so users can "make install exec_prefix=/foo"
  512. +# and all the variables that are supposed to be based on exec_prefix
  513. +# by default will actually change.
  514. +# Use braces instead of parens because sh, perl, etc. also accept them.
  515. bindir='${exec_prefix}/bin'
  516. sbindir='${exec_prefix}/sbin'
  517. libexecdir='${exec_prefix}/libexec'
  518. @@ -51,17 +510,9 @@ oldincludedir='/usr/include'
  519. infodir='${prefix}/info'
  520. mandir='${prefix}/man'
  521. -# Initialize some other variables.
  522. -subdirs=
  523. -MFLAGS= MAKEFLAGS=
  524. -SHELL=${CONFIG_SHELL-/bin/sh}
  525. -# Maximum number of lines to put in a shell here document.
  526. -ac_max_here_lines=12
  527. -
  528. ac_prev=
  529. for ac_option
  530. do
  531. -
  532. # If the previous option needs an argument, assign it.
  533. if test -n "$ac_prev"; then
  534. eval "$ac_prev=\$ac_option"
  535. @@ -69,59 +520,59 @@ do
  536. continue
  537. fi
  538. - case "$ac_option" in
  539. - -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  540. - *) ac_optarg= ;;
  541. - esac
  542. + ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  543. # Accept the important Cygnus configure options, so we can diagnose typos.
  544. - case "$ac_option" in
  545. + case $ac_option in
  546. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  547. ac_prev=bindir ;;
  548. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  549. - bindir="$ac_optarg" ;;
  550. + bindir=$ac_optarg ;;
  551. -build | --build | --buil | --bui | --bu)
  552. - ac_prev=build ;;
  553. + ac_prev=build_alias ;;
  554. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  555. - build="$ac_optarg" ;;
  556. + build_alias=$ac_optarg ;;
  557. -cache-file | --cache-file | --cache-fil | --cache-fi \
  558. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  559. ac_prev=cache_file ;;
  560. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  561. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  562. - cache_file="$ac_optarg" ;;
  563. + cache_file=$ac_optarg ;;
  564. +
  565. + --config-cache | -C)
  566. + cache_file=config.cache ;;
  567. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  568. ac_prev=datadir ;;
  569. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  570. | --da=*)
  571. - datadir="$ac_optarg" ;;
  572. + datadir=$ac_optarg ;;
  573. -disable-* | --disable-*)
  574. - ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  575. + ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  576. # Reject names that are not valid shell variable names.
  577. - if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  578. - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  579. - fi
  580. - ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  581. - eval "enable_${ac_feature}=no" ;;
  582. + expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  583. + { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  584. + { (exit 1); exit 1; }; }
  585. + ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  586. + eval "enable_$ac_feature=no" ;;
  587. -enable-* | --enable-*)
  588. - ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  589. + ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  590. # Reject names that are not valid shell variable names.
  591. - if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  592. - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  593. - fi
  594. - ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  595. - case "$ac_option" in
  596. - *=*) ;;
  597. + expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  598. + { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  599. + { (exit 1); exit 1; }; }
  600. + ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  601. + case $ac_option in
  602. + *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  603. *) ac_optarg=yes ;;
  604. esac
  605. - eval "enable_${ac_feature}='$ac_optarg'" ;;
  606. + eval "enable_$ac_feature='$ac_optarg'" ;;
  607. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  608. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  609. @@ -130,95 +581,47 @@ do
  610. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  611. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  612. | --exec=* | --exe=* | --ex=*)
  613. - exec_prefix="$ac_optarg" ;;
  614. + exec_prefix=$ac_optarg ;;
  615. -gas | --gas | --ga | --g)
  616. # Obsolete; use --with-gas.
  617. with_gas=yes ;;
  618. - -help | --help | --hel | --he)
  619. - # Omit some internal or obsolete options to make the list less imposing.
  620. - # This message is too long to be a string in the A/UX 3.1 sh.
  621. - cat << EOF
  622. -Usage: configure [options] [host]
  623. -Options: [defaults in brackets after descriptions]
  624. -Configuration:
  625. - --cache-file=FILE cache test results in FILE
  626. - --help print this message
  627. - --no-create do not create output files
  628. - --quiet, --silent do not print \`checking...' messages
  629. - --version print the version of autoconf that created configure
  630. -Directory and file names:
  631. - --prefix=PREFIX install architecture-independent files in PREFIX
  632. - [$ac_default_prefix]
  633. - --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  634. - [same as prefix]
  635. - --bindir=DIR user executables in DIR [EPREFIX/bin]
  636. - --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
  637. - --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
  638. - --datadir=DIR read-only architecture-independent data in DIR
  639. - [PREFIX/share]
  640. - --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
  641. - --sharedstatedir=DIR modifiable architecture-independent data in DIR
  642. - [PREFIX/com]
  643. - --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
  644. - --libdir=DIR object code libraries in DIR [EPREFIX/lib]
  645. - --includedir=DIR C header files in DIR [PREFIX/include]
  646. - --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
  647. - --infodir=DIR info documentation in DIR [PREFIX/info]
  648. - --mandir=DIR man documentation in DIR [PREFIX/man]
  649. - --srcdir=DIR find the sources in DIR [configure dir or ..]
  650. - --program-prefix=PREFIX prepend PREFIX to installed program names
  651. - --program-suffix=SUFFIX append SUFFIX to installed program names
  652. - --program-transform-name=PROGRAM
  653. - run sed PROGRAM on installed program names
  654. -EOF
  655. - cat << EOF
  656. -Host type:
  657. - --build=BUILD configure for building on BUILD [BUILD=HOST]
  658. - --host=HOST configure for HOST [guessed]
  659. - --target=TARGET configure for TARGET [TARGET=HOST]
  660. -Features and packages:
  661. - --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  662. - --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  663. - --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  664. - --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  665. - --x-includes=DIR X include files are in DIR
  666. - --x-libraries=DIR X library files are in DIR
  667. -EOF
  668. - if test -n "$ac_help"; then
  669. - echo "--enable and --with options recognized:$ac_help"
  670. - fi
  671. - exit 0 ;;
  672. + -help | --help | --hel | --he | -h)
  673. + ac_init_help=long ;;
  674. + -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  675. + ac_init_help=recursive ;;
  676. + -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  677. + ac_init_help=short ;;
  678. -host | --host | --hos | --ho)
  679. - ac_prev=host ;;
  680. + ac_prev=host_alias ;;
  681. -host=* | --host=* | --hos=* | --ho=*)
  682. - host="$ac_optarg" ;;
  683. + host_alias=$ac_optarg ;;
  684. -includedir | --includedir | --includedi | --included | --include \
  685. | --includ | --inclu | --incl | --inc)
  686. ac_prev=includedir ;;
  687. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  688. | --includ=* | --inclu=* | --incl=* | --inc=*)
  689. - includedir="$ac_optarg" ;;
  690. + includedir=$ac_optarg ;;
  691. -infodir | --infodir | --infodi | --infod | --info | --inf)
  692. ac_prev=infodir ;;
  693. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  694. - infodir="$ac_optarg" ;;
  695. + infodir=$ac_optarg ;;
  696. -libdir | --libdir | --libdi | --libd)
  697. ac_prev=libdir ;;
  698. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  699. - libdir="$ac_optarg" ;;
  700. + libdir=$ac_optarg ;;
  701. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  702. | --libexe | --libex | --libe)
  703. ac_prev=libexecdir ;;
  704. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  705. | --libexe=* | --libex=* | --libe=*)
  706. - libexecdir="$ac_optarg" ;;
  707. + libexecdir=$ac_optarg ;;
  708. -localstatedir | --localstatedir | --localstatedi | --localstated \
  709. | --localstate | --localstat | --localsta | --localst \
  710. @@ -227,19 +630,19 @@ EOF
  711. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  712. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  713. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  714. - localstatedir="$ac_optarg" ;;
  715. + localstatedir=$ac_optarg ;;
  716. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  717. ac_prev=mandir ;;
  718. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  719. - mandir="$ac_optarg" ;;
  720. + mandir=$ac_optarg ;;
  721. -nfp | --nfp | --nf)
  722. # Obsolete; use --without-fp.
  723. with_fp=no ;;
  724. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  725. - | --no-cr | --no-c)
  726. + | --no-cr | --no-c | -n)
  727. no_create=yes ;;
  728. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  729. @@ -253,26 +656,26 @@ EOF
  730. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  731. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  732. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  733. - oldincludedir="$ac_optarg" ;;
  734. + oldincludedir=$ac_optarg ;;
  735. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  736. ac_prev=prefix ;;
  737. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  738. - prefix="$ac_optarg" ;;
  739. + prefix=$ac_optarg ;;
  740. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  741. | --program-pre | --program-pr | --program-p)
  742. ac_prev=program_prefix ;;
  743. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  744. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  745. - program_prefix="$ac_optarg" ;;
  746. + program_prefix=$ac_optarg ;;
  747. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  748. | --program-suf | --program-su | --program-s)
  749. ac_prev=program_suffix ;;
  750. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  751. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  752. - program_suffix="$ac_optarg" ;;
  753. + program_suffix=$ac_optarg ;;
  754. -program-transform-name | --program-transform-name \
  755. | --program-transform-nam | --program-transform-na \
  756. @@ -289,7 +692,7 @@ EOF
  757. | --program-transfo=* | --program-transf=* \
  758. | --program-trans=* | --program-tran=* \
  759. | --progr-tra=* | --program-tr=* | --program-t=*)
  760. - program_transform_name="$ac_optarg" ;;
  761. + program_transform_name=$ac_optarg ;;
  762. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  763. | -silent | --silent | --silen | --sile | --sil)
  764. @@ -299,7 +702,7 @@ EOF
  765. ac_prev=sbindir ;;
  766. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  767. | --sbi=* | --sb=*)
  768. - sbindir="$ac_optarg" ;;
  769. + sbindir=$ac_optarg ;;
  770. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  771. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  772. @@ -310,58 +713,57 @@ EOF
  773. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  774. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  775. | --sha=* | --sh=*)
  776. - sharedstatedir="$ac_optarg" ;;
  777. + sharedstatedir=$ac_optarg ;;
  778. -site | --site | --sit)
  779. ac_prev=site ;;
  780. -site=* | --site=* | --sit=*)
  781. - site="$ac_optarg" ;;
  782. + site=$ac_optarg ;;
  783. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  784. ac_prev=srcdir ;;
  785. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  786. - srcdir="$ac_optarg" ;;
  787. + srcdir=$ac_optarg ;;
  788. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  789. | --syscon | --sysco | --sysc | --sys | --sy)
  790. ac_prev=sysconfdir ;;
  791. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  792. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  793. - sysconfdir="$ac_optarg" ;;
  794. + sysconfdir=$ac_optarg ;;
  795. -target | --target | --targe | --targ | --tar | --ta | --t)
  796. - ac_prev=target ;;
  797. + ac_prev=target_alias ;;
  798. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  799. - target="$ac_optarg" ;;
  800. + target_alias=$ac_optarg ;;
  801. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  802. verbose=yes ;;
  803. - -version | --version | --versio | --versi | --vers)
  804. - echo "configure generated by autoconf version 2.13"
  805. - exit 0 ;;
  806. + -version | --version | --versio | --versi | --vers | -V)
  807. + ac_init_version=: ;;
  808. -with-* | --with-*)
  809. - ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  810. + ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  811. # Reject names that are not valid shell variable names.
  812. - if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  813. - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  814. - fi
  815. + expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  816. + { echo "$as_me: error: invalid package name: $ac_package" >&2
  817. + { (exit 1); exit 1; }; }
  818. ac_package=`echo $ac_package| sed 's/-/_/g'`
  819. - case "$ac_option" in
  820. - *=*) ;;
  821. + case $ac_option in
  822. + *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  823. *) ac_optarg=yes ;;
  824. esac
  825. - eval "with_${ac_package}='$ac_optarg'" ;;
  826. + eval "with_$ac_package='$ac_optarg'" ;;
  827. -without-* | --without-*)
  828. - ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  829. + ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  830. # Reject names that are not valid shell variable names.
  831. - if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  832. - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  833. - fi
  834. - ac_package=`echo $ac_package| sed 's/-/_/g'`
  835. - eval "with_${ac_package}=no" ;;
  836. + expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  837. + { echo "$as_me: error: invalid package name: $ac_package" >&2
  838. + { (exit 1); exit 1; }; }
  839. + ac_package=`echo $ac_package | sed 's/-/_/g'`
  840. + eval "with_$ac_package=no" ;;
  841. --x)
  842. # Obsolete; use --with-x.
  843. @@ -372,99 +774,110 @@ EOF
  844. ac_prev=x_includes ;;
  845. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  846. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  847. - x_includes="$ac_optarg" ;;
  848. + x_includes=$ac_optarg ;;
  849. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  850. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  851. ac_prev=x_libraries ;;
  852. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  853. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  854. - x_libraries="$ac_optarg" ;;
  855. + x_libraries=$ac_optarg ;;
  856. - -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  857. + -*) { echo "$as_me: error: unrecognized option: $ac_option
  858. +Try \`$0 --help' for more information." >&2
  859. + { (exit 1); exit 1; }; }
  860. ;;
  861. + *=*)
  862. + ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  863. + # Reject names that are not valid shell variable names.
  864. + expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  865. + { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  866. + { (exit 1); exit 1; }; }
  867. + ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  868. + eval "$ac_envvar='$ac_optarg'"
  869. + export $ac_envvar ;;
  870. +
  871. *)
  872. - if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  873. - echo "configure: warning: $ac_option: invalid host type" 1>&2
  874. - fi
  875. - if test "x$nonopt" != xNONE; then
  876. - { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  877. - fi
  878. - nonopt="$ac_option"
  879. + # FIXME: should be removed in autoconf 3.0.
  880. + echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  881. + expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  882. + echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  883. + : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  884. ;;
  885. esac
  886. done
  887. if test -n "$ac_prev"; then
  888. - { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  889. -fi
  890. -
  891. -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  892. -
  893. -# File descriptor usage:
  894. -# 0 standard input
  895. -# 1 file creation
  896. -# 2 errors and warnings
  897. -# 3 some systems may open it to /dev/tty
  898. -# 4 used on the Kubota Titan
  899. -# 6 checking for... messages and results
  900. -# 5 compiler messages saved in config.log
  901. -if test "$silent" = yes; then
  902. - exec 6>/dev/null
  903. -else
  904. - exec 6>&1
  905. + ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  906. + { echo "$as_me: error: missing argument to $ac_option" >&2
  907. + { (exit 1); exit 1; }; }
  908. fi
  909. -exec 5>./config.log
  910. -echo "\
  911. -This file contains any messages produced by compilers while
  912. -running configure, to aid debugging if configure makes a mistake.
  913. -" 1>&5
  914. +# Be sure to have absolute paths.
  915. +for ac_var in exec_prefix prefix
  916. +do
  917. + eval ac_val=$`echo $ac_var`
  918. + case $ac_val in
  919. + [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  920. + *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  921. + { (exit 1); exit 1; }; };;
  922. + esac
  923. +done
  924. -# Strip out --no-create and --no-recursion so they do not pile up.
  925. -# Also quote any args containing shell metacharacters.
  926. -ac_configure_args=
  927. -for ac_arg
  928. +# Be sure to have absolute paths.
  929. +for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  930. + localstatedir libdir includedir oldincludedir infodir mandir
  931. do
  932. - case "$ac_arg" in
  933. - -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  934. - | --no-cr | --no-c) ;;
  935. - -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  936. - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  937. - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  938. - ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  939. - *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  940. + eval ac_val=$`echo $ac_var`
  941. + case $ac_val in
  942. + [\\/$]* | ?:[\\/]* ) ;;
  943. + *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  944. + { (exit 1); exit 1; }; };;
  945. esac
  946. done
  947. -# NLS nuisances.
  948. -# Only set these to C if already set. These must not be set unconditionally
  949. -# because not all systems understand e.g. LANG=C (notably SCO).
  950. -# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  951. -# Non-C LC_CTYPE values break the ctype check.
  952. -if test "${LANG+set}" = set; then LANG=C; export LANG; fi
  953. -if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  954. -if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  955. -if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
  956. +# There might be people who depend on the old broken behavior: `$host'
  957. +# used to hold the argument of --host etc.
  958. +# FIXME: To remove some day.
  959. +build=$build_alias
  960. +host=$host_alias
  961. +target=$target_alias
  962. -# confdefs.h avoids OS command line length limits that DEFS can exceed.
  963. -rm -rf conftest* confdefs.h
  964. -# AIX cpp loses on an empty file, so make sure it contains at least a newline.
  965. -echo > confdefs.h
  966. +# FIXME: To remove some day.
  967. +if test "x$host_alias" != x; then
  968. + if test "x$build_alias" = x; then
  969. + cross_compiling=maybe
  970. + echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  971. + If a cross compiler is detected then cross compile mode will be used." >&2
  972. + elif test "x$build_alias" != "x$host_alias"; then
  973. + cross_compiling=yes
  974. + fi
  975. +fi
  976. +
  977. +ac_tool_prefix=
  978. +test -n "$host_alias" && ac_tool_prefix=$host_alias-
  979. +
  980. +test "$silent" = yes && exec 6>/dev/null
  981. -# A filename unique to this package, relative to the directory that
  982. -# configure is in, which we can look for to find out if srcdir is correct.
  983. -ac_unique_file=src/libnet_build_ip.c
  984. # Find the source files, if location was not specified.
  985. if test -z "$srcdir"; then
  986. ac_srcdir_defaulted=yes
  987. # Try the directory containing this script, then its parent.
  988. - ac_prog=$0
  989. - ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  990. - test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  991. + ac_confdir=`(dirname "$0") 2>/dev/null ||
  992. +$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  993. + X"$0" : 'X\(//\)[^/]' \| \
  994. + X"$0" : 'X\(//\)$' \| \
  995. + X"$0" : 'X\(/\)' \| \
  996. + . : '\(.\)' 2>/dev/null ||
  997. +echo X"$0" |
  998. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  999. + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  1000. + /^X\(\/\/\)$/{ s//\1/; q; }
  1001. + /^X\(\/\).*/{ s//\1/; q; }
  1002. + s/.*/./; q'`
  1003. srcdir=$ac_confdir
  1004. if test ! -r $srcdir/$ac_unique_file; then
  1005. srcdir=..
  1006. @@ -474,13 +887,482 @@ else
  1007. fi
  1008. if test ! -r $srcdir/$ac_unique_file; then
  1009. if test "$ac_srcdir_defaulted" = yes; then
  1010. - { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  1011. + { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  1012. + { (exit 1); exit 1; }; }
  1013. else
  1014. - { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  1015. + { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1016. + { (exit 1); exit 1; }; }
  1017. fi
  1018. fi
  1019. -srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  1020. +(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  1021. + { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  1022. + { (exit 1); exit 1; }; }
  1023. +srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  1024. +ac_env_build_alias_set=${build_alias+set}
  1025. +ac_env_build_alias_value=$build_alias
  1026. +ac_cv_env_build_alias_set=${build_alias+set}
  1027. +ac_cv_env_build_alias_value=$build_alias
  1028. +ac_env_host_alias_set=${host_alias+set}
  1029. +ac_env_host_alias_value=$host_alias
  1030. +ac_cv_env_host_alias_set=${host_alias+set}
  1031. +ac_cv_env_host_alias_value=$host_alias
  1032. +ac_env_target_alias_set=${target_alias+set}
  1033. +ac_env_target_alias_value=$target_alias
  1034. +ac_cv_env_target_alias_set=${target_alias+set}
  1035. +ac_cv_env_target_alias_value=$target_alias
  1036. +ac_env_CC_set=${CC+set}
  1037. +ac_env_CC_value=$CC
  1038. +ac_cv_env_CC_set=${CC+set}
  1039. +ac_cv_env_CC_value=$CC
  1040. +ac_env_CFLAGS_set=${CFLAGS+set}
  1041. +ac_env_CFLAGS_value=$CFLAGS
  1042. +ac_cv_env_CFLAGS_set=${CFLAGS+set}
  1043. +ac_cv_env_CFLAGS_value=$CFLAGS
  1044. +ac_env_LDFLAGS_set=${LDFLAGS+set}
  1045. +ac_env_LDFLAGS_value=$LDFLAGS
  1046. +ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  1047. +ac_cv_env_LDFLAGS_value=$LDFLAGS
  1048. +ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  1049. +ac_env_CPPFLAGS_value=$CPPFLAGS
  1050. +ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  1051. +ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  1052. +ac_env_CPP_set=${CPP+set}
  1053. +ac_env_CPP_value=$CPP
  1054. +ac_cv_env_CPP_set=${CPP+set}
  1055. +ac_cv_env_CPP_value=$CPP
  1056. +
  1057. +#
  1058. +# Report the --help message.
  1059. +#
  1060. +if test "$ac_init_help" = "long"; then
  1061. + # Omit some internal or obsolete options to make the list less imposing.
  1062. + # This message is too long to be a string in the A/UX 3.1 sh.
  1063. + cat <<_ACEOF
  1064. +\`configure' configures this package to adapt to many kinds of systems.
  1065. +
  1066. +Usage: $0 [OPTION]... [VAR=VALUE]...
  1067. +
  1068. +To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1069. +VAR=VALUE. See below for descriptions of some of the useful variables.
  1070. +
  1071. +Defaults for the options are specified in brackets.
  1072. +
  1073. +Configuration:
  1074. + -h, --help display this help and exit
  1075. + --help=short display options specific to this package
  1076. + --help=recursive display the short help of all the included packages
  1077. + -V, --version display version information and exit
  1078. + -q, --quiet, --silent do not print \`checking...' messages
  1079. + --cache-file=FILE cache test results in FILE [disabled]
  1080. + -C, --config-cache alias for \`--cache-file=config.cache'
  1081. + -n, --no-create do not create output files
  1082. + --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1083. +
  1084. +_ACEOF
  1085. +
  1086. + cat <<_ACEOF
  1087. +Installation directories:
  1088. + --prefix=PREFIX install architecture-independent files in PREFIX
  1089. + [$ac_default_prefix]
  1090. + --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1091. + [PREFIX]
  1092. +
  1093. +By default, \`make install' will install all the files in
  1094. +\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1095. +an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1096. +for instance \`--prefix=\$HOME'.
  1097. +
  1098. +For better control, use the options below.
  1099. +
  1100. +Fine tuning of the installation directories:
  1101. + --bindir=DIR user executables [EPREFIX/bin]
  1102. + --sbindir=DIR system admin executables [EPREFIX/sbin]
  1103. + --libexecdir=DIR program executables [EPREFIX/libexec]
  1104. + --datadir=DIR read-only architecture-independent data [PREFIX/share]
  1105. + --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1106. + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1107. + --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1108. + --libdir=DIR object code libraries [EPREFIX/lib]
  1109. + --includedir=DIR C header files [PREFIX/include]
  1110. + --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1111. + --infodir=DIR info documentation [PREFIX/info]
  1112. + --mandir=DIR man documentation [PREFIX/man]
  1113. +_ACEOF
  1114. +
  1115. + cat <<\_ACEOF
  1116. +
  1117. +Program names:
  1118. + --program-prefix=PREFIX prepend PREFIX to installed program names
  1119. + --program-suffix=SUFFIX append SUFFIX to installed program names
  1120. + --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1121. +
  1122. +System types:
  1123. + --build=BUILD configure for building on BUILD [guessed]
  1124. + --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1125. + --target=TARGET configure for building compilers for TARGET [HOST]
  1126. +_ACEOF
  1127. +fi
  1128. +
  1129. +if test -n "$ac_init_help"; then
  1130. +
  1131. + cat <<\_ACEOF
  1132. +
  1133. +Optional Features:
  1134. + --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1135. + --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1136. + --disable-dependency-tracking speeds up one-time build
  1137. + --enable-dependency-tracking do not reject slow dependency extractors
  1138. + --enable-shared=PKGS build shared libraries default=yes
  1139. + --enable-static=PKGS build static libraries default=yes
  1140. + --enable-fast-install=PKGS optimize for fast installation default=yes
  1141. + --disable-libtool-lock avoid locking (might break parallel builds)
  1142. +
  1143. +Optional Packages:
  1144. + --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1145. + --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1146. + --with-pf_packet=yes,no override defaults
  1147. + --with-fast_x86_check=yes,no override defaults
  1148. + --with-gnu-ld assume the C compiler uses GNU ld default=no
  1149. + --with-pic try to use only PIC/non-PIC objects default=use both
  1150. +
  1151. +Some influential environment variables:
  1152. + CC C compiler command
  1153. + CFLAGS C compiler flags
  1154. + LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1155. + nonstandard directory <lib dir>
  1156. + CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  1157. + headers in a nonstandard directory <include dir>
  1158. + CPP C preprocessor
  1159. +Use these variables to override the choices made by `configure' or to help
  1160. +it to find libraries and programs with nonstandard names/locations.
  1161. +
  1162. +_ACEOF
  1163. +fi
  1164. +
  1165. +if test "$ac_init_help" = "recursive"; then
  1166. + # If there are subdirs, report their specific --help.
  1167. + ac_popdir=`pwd`
  1168. + for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1169. + test -d $ac_dir || continue
  1170. + ac_builddir=.
  1171. +
  1172. +if test "$ac_dir" != .; then
  1173. + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1174. + # A "../" for each directory in $ac_dir_suffix.
  1175. + ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  1176. +else
  1177. + ac_dir_suffix= ac_top_builddir=
  1178. +fi
  1179. +
  1180. +case $srcdir in
  1181. + .) # No --srcdir option. We are building in place.
  1182. + ac_srcdir=.
  1183. + if test -z "$ac_top_builddir"; then
  1184. + ac_top_srcdir=.
  1185. + else
  1186. + ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  1187. + fi ;;
  1188. + [\\/]* | ?:[\\/]* ) # Absolute path.
  1189. + ac_srcdir=$srcdir$ac_dir_suffix;
  1190. + ac_top_srcdir=$srcdir ;;
  1191. + *) # Relative path.
  1192. + ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  1193. + ac_top_srcdir=$ac_top_builddir$srcdir ;;
  1194. +esac
  1195. +
  1196. +# Do not use `cd foo && pwd` to compute absolute paths, because
  1197. +# the directories may not exist.
  1198. +case `pwd` in
  1199. +.) ac_abs_builddir="$ac_dir";;
  1200. +*)
  1201. + case "$ac_dir" in
  1202. + .) ac_abs_builddir=`pwd`;;
  1203. + [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  1204. + *) ac_abs_builddir=`pwd`/"$ac_dir";;
  1205. + esac;;
  1206. +esac
  1207. +case $ac_abs_builddir in
  1208. +.) ac_abs_top_builddir=${ac_top_builddir}.;;
  1209. +*)
  1210. + case ${ac_top_builddir}. in
  1211. + .) ac_abs_top_builddir=$ac_abs_builddir;;
  1212. + [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  1213. + *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  1214. + esac;;
  1215. +esac
  1216. +case $ac_abs_builddir in
  1217. +.) ac_abs_srcdir=$ac_srcdir;;
  1218. +*)
  1219. + case $ac_srcdir in
  1220. + .) ac_abs_srcdir=$ac_abs_builddir;;
  1221. + [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  1222. + *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  1223. + esac;;
  1224. +esac
  1225. +case $ac_abs_builddir in
  1226. +.) ac_abs_top_srcdir=$ac_top_srcdir;;
  1227. +*)
  1228. + case $ac_top_srcdir in
  1229. + .) ac_abs_top_srcdir=$ac_abs_builddir;;
  1230. + [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  1231. + *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  1232. + esac;;
  1233. +esac
  1234. +
  1235. + cd $ac_dir
  1236. + # Check for guested configure; otherwise get Cygnus style configure.
  1237. + if test -f $ac_srcdir/configure.gnu; then
  1238. + echo
  1239. + $SHELL $ac_srcdir/configure.gnu --help=recursive
  1240. + elif test -f $ac_srcdir/configure; then
  1241. + echo
  1242. + $SHELL $ac_srcdir/configure --help=recursive
  1243. + elif test -f $ac_srcdir/configure.ac ||
  1244. + test -f $ac_srcdir/configure.in; then
  1245. + echo
  1246. + $ac_configure --help
  1247. + else
  1248. + echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1249. + fi
  1250. + cd "$ac_popdir"
  1251. + done
  1252. +fi
  1253. +
  1254. +test -n "$ac_init_help" && exit 0
  1255. +if $ac_init_version; then
  1256. + cat <<\_ACEOF
  1257. +
  1258. +Copyright (C) 2003 Free Software Foundation, Inc.
  1259. +This configure script is free software; the Free Software Foundation
  1260. +gives unlimited permission to copy, distribute and modify it.
  1261. +_ACEOF
  1262. + exit 0
  1263. +fi
  1264. +exec 5>config.log
  1265. +cat >&5 <<_ACEOF
  1266. +This file contains any messages produced by compilers while
  1267. +running configure, to aid debugging if configure makes a mistake.
  1268. +
  1269. +It was created by $as_me, which was
  1270. +generated by GNU Autoconf 2.59. Invocation command line was
  1271. +
  1272. + $ $0 $@
  1273. +
  1274. +_ACEOF
  1275. +{
  1276. +cat <<_ASUNAME
  1277. +## --------- ##
  1278. +## Platform. ##
  1279. +## --------- ##
  1280. +
  1281. +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1282. +uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1283. +uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1284. +uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1285. +uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1286. +
  1287. +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1288. +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1289. +
  1290. +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1291. +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1292. +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1293. +hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  1294. +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1295. +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1296. +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1297. +
  1298. +_ASUNAME
  1299. +
  1300. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1301. +for as_dir in $PATH
  1302. +do
  1303. + IFS=$as_save_IFS
  1304. + test -z "$as_dir" && as_dir=.
  1305. + echo "PATH: $as_dir"
  1306. +done
  1307. +
  1308. +} >&5
  1309. +
  1310. +cat >&5 <<_ACEOF
  1311. +
  1312. +
  1313. +## ----------- ##
  1314. +## Core tests. ##
  1315. +## ----------- ##
  1316. +
  1317. +_ACEOF
  1318. +
  1319. +
  1320. +# Keep a trace of the command line.
  1321. +# Strip out --no-create and --no-recursion so they do not pile up.
  1322. +# Strip out --silent because we don't want to record it for future runs.
  1323. +# Also quote any args containing shell meta-characters.
  1324. +# Make two passes to allow for proper duplicate-argument suppression.
  1325. +ac_configure_args=
  1326. +ac_configure_args0=
  1327. +ac_configure_args1=
  1328. +ac_sep=
  1329. +ac_must_keep_next=false
  1330. +for ac_pass in 1 2
  1331. +do
  1332. + for ac_arg
  1333. + do
  1334. + case $ac_arg in
  1335. + -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1336. + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1337. + | -silent | --silent | --silen | --sile | --sil)
  1338. + continue ;;
  1339. + *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1340. + ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1341. + esac
  1342. + case $ac_pass in
  1343. + 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1344. + 2)
  1345. + ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1346. + if test $ac_must_keep_next = true; then
  1347. + ac_must_keep_next=false # Got value, back to normal.
  1348. + else
  1349. + case $ac_arg in
  1350. + *=* | --config-cache | -C | -disable-* | --disable-* \
  1351. + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1352. + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1353. + | -with-* | --with-* | -without-* | --without-* | --x)
  1354. + case "$ac_configure_args0 " in
  1355. + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1356. + esac
  1357. + ;;
  1358. + -* ) ac_must_keep_next=true ;;
  1359. + esac
  1360. + fi
  1361. + ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  1362. + # Get rid of the leading space.
  1363. + ac_sep=" "
  1364. + ;;
  1365. + esac
  1366. + done
  1367. +done
  1368. +$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1369. +$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1370. +
  1371. +# When interrupted or exit'd, cleanup temporary files, and complete
  1372. +# config.log. We remove comments because anyway the quotes in there
  1373. +# would cause problems or look ugly.
  1374. +# WARNING: Be sure not to use single quotes in there, as some shells,
  1375. +# such as our DU 5.0 friend, will then `close' the trap.
  1376. +trap 'exit_status=$?
  1377. + # Save into config.log some information that might help in debugging.
  1378. + {
  1379. + echo
  1380. +
  1381. + cat <<\_ASBOX
  1382. +## ---------------- ##
  1383. +## Cache variables. ##
  1384. +## ---------------- ##
  1385. +_ASBOX
  1386. + echo
  1387. + # The following way of writing the cache mishandles newlines in values,
  1388. +{
  1389. + (set) 2>&1 |
  1390. + case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  1391. + *ac_space=\ *)
  1392. + sed -n \
  1393. + "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  1394. + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  1395. + ;;
  1396. + *)
  1397. + sed -n \
  1398. + "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  1399. + ;;
  1400. + esac;
  1401. +}
  1402. + echo
  1403. +
  1404. + cat <<\_ASBOX
  1405. +## ----------------- ##
  1406. +## Output variables. ##
  1407. +## ----------------- ##
  1408. +_ASBOX
  1409. + echo
  1410. + for ac_var in $ac_subst_vars
  1411. + do
  1412. + eval ac_val=$`echo $ac_var`
  1413. + echo "$ac_var='"'"'$ac_val'"'"'"
  1414. + done | sort
  1415. + echo
  1416. +
  1417. + if test -n "$ac_subst_files"; then
  1418. + cat <<\_ASBOX
  1419. +## ------------- ##
  1420. +## Output files. ##
  1421. +## ------------- ##
  1422. +_ASBOX
  1423. + echo
  1424. + for ac_var in $ac_subst_files
  1425. + do
  1426. + eval ac_val=$`echo $ac_var`
  1427. + echo "$ac_var='"'"'$ac_val'"'"'"
  1428. + done | sort
  1429. + echo
  1430. + fi
  1431. +
  1432. + if test -s confdefs.h; then
  1433. + cat <<\_ASBOX
  1434. +## ----------- ##
  1435. +## confdefs.h. ##
  1436. +## ----------- ##
  1437. +_ASBOX
  1438. + echo
  1439. + sed "/^$/d" confdefs.h | sort
  1440. + echo
  1441. + fi
  1442. + test "$ac_signal" != 0 &&
  1443. + echo "$as_me: caught signal $ac_signal"
  1444. + echo "$as_me: exit $exit_status"
  1445. + } >&5
  1446. + rm -f core *.core &&
  1447. + rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1448. + exit $exit_status
  1449. + ' 0
  1450. +for ac_signal in 1 2 13 15; do
  1451. + trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1452. +done
  1453. +ac_signal=0
  1454. +
  1455. +# confdefs.h avoids OS command line length limits that DEFS can exceed.
  1456. +rm -rf conftest* confdefs.h
  1457. +# AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1458. +echo >confdefs.h
  1459. +
  1460. +# Predefined preprocessor variables.
  1461. +
  1462. +cat >>confdefs.h <<_ACEOF
  1463. +#define PACKAGE_NAME "$PACKAGE_NAME"
  1464. +_ACEOF
  1465. +
  1466. +
  1467. +cat >>confdefs.h <<_ACEOF
  1468. +#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1469. +_ACEOF
  1470. +
  1471. +
  1472. +cat >>confdefs.h <<_ACEOF
  1473. +#define PACKAGE_VERSION "$PACKAGE_VERSION"
  1474. +_ACEOF
  1475. +
  1476. +
  1477. +cat >>confdefs.h <<_ACEOF
  1478. +#define PACKAGE_STRING "$PACKAGE_STRING"
  1479. +_ACEOF
  1480. +
  1481. +
  1482. +cat >>confdefs.h <<_ACEOF
  1483. +#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1484. +_ACEOF
  1485. +
  1486. +
  1487. +# Let the site file select an alternate cache file if it wants to.
  1488. # Prefer explicitly selected file to automatically selected ones.
  1489. if test -z "$CONFIG_SITE"; then
  1490. if test "x$prefix" != xNONE; then
  1491. @@ -491,44 +1373,91 @@ if test -z "$CONFIG_SITE"; then
  1492. fi
  1493. for ac_site_file in $CONFIG_SITE; do
  1494. if test -r "$ac_site_file"; then
  1495. - echo "loading site script $ac_site_file"
  1496. + { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1497. +echo "$as_me: loading site script $ac_site_file" >&6;}
  1498. + sed 's/^/| /' "$ac_site_file" >&5
  1499. . "$ac_site_file"
  1500. fi
  1501. done
  1502. if test -r "$cache_file"; then
  1503. - echo "loading cache $cache_file"
  1504. - . $cache_file
  1505. + # Some versions of bash will fail to source /dev/null (special
  1506. + # files actually), so we avoid doing that.
  1507. + if test -f "$cache_file"; then
  1508. + { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1509. +echo "$as_me: loading cache $cache_file" >&6;}
  1510. + case $cache_file in
  1511. + [\\/]* | ?:[\\/]* ) . $cache_file;;
  1512. + *) . ./$cache_file;;
  1513. + esac
  1514. + fi
  1515. else
  1516. - echo "creating cache $cache_file"
  1517. - > $cache_file
  1518. + { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1519. +echo "$as_me: creating cache $cache_file" >&6;}
  1520. + >$cache_file
  1521. +fi
  1522. +
  1523. +# Check that the precious variables saved in the cache have kept the same
  1524. +# value.
  1525. +ac_cache_corrupted=false
  1526. +for ac_var in `(set) 2>&1 |
  1527. + sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1528. + eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1529. + eval ac_new_set=\$ac_env_${ac_var}_set
  1530. + eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1531. + eval ac_new_val="\$ac_env_${ac_var}_value"
  1532. + case $ac_old_set,$ac_new_set in
  1533. + set,)
  1534. + { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1535. +echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1536. + ac_cache_corrupted=: ;;
  1537. + ,set)
  1538. + { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1539. +echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1540. + ac_cache_corrupted=: ;;
  1541. + ,);;
  1542. + *)
  1543. + if test "x$ac_old_val" != "x$ac_new_val"; then
  1544. + { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1545. +echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1546. + { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1547. +echo "$as_me: former value: $ac_old_val" >&2;}
  1548. + { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1549. +echo "$as_me: current value: $ac_new_val" >&2;}
  1550. + ac_cache_corrupted=:
  1551. + fi;;
  1552. + esac
  1553. + # Pass precious variables to config.status.
  1554. + if test "$ac_new_set" = set; then
  1555. + case $ac_new_val in
  1556. + *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1557. + ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1558. + *) ac_arg=$ac_var=$ac_new_val ;;
  1559. + esac
  1560. + case " $ac_configure_args " in
  1561. + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1562. + *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1563. + esac
  1564. + fi
  1565. +done
  1566. +if $ac_cache_corrupted; then
  1567. + { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1568. +echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1569. + { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1570. +echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1571. + { (exit 1); exit 1; }; }
  1572. fi
  1573. ac_ext=c
  1574. -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  1575. ac_cpp='$CPP $CPPFLAGS'
  1576. -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  1577. -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  1578. -cross_compiling=$ac_cv_prog_cc_cross
  1579. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1580. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1581. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1582. +
  1583. -ac_exeext=
  1584. -ac_objext=o
  1585. -if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  1586. - # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  1587. - if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  1588. - ac_n= ac_c='
  1589. -' ac_t=' '
  1590. - else
  1591. - ac_n=-n ac_c= ac_t=
  1592. - fi
  1593. -else
  1594. - ac_n= ac_c='\c' ac_t=
  1595. -fi
  1596. -VER=`cat VERSION`
  1597. -echo "$ac_t""Beginning autoconfiguration process for libnet-$VER..." 1>&6
  1598. @@ -554,103 +1483,521 @@ for ac_dir in $srcdir $srcdir/.. $srcdir
  1599. ac_aux_dir=$ac_dir
  1600. ac_install_sh="$ac_aux_dir/install.sh -c"
  1601. break
  1602. + elif test -f $ac_dir/shtool; then
  1603. + ac_aux_dir=$ac_dir
  1604. + ac_install_sh="$ac_aux_dir/shtool install -c"
  1605. + break
  1606. fi
  1607. done
  1608. if test -z "$ac_aux_dir"; then
  1609. - { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  1610. + { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
  1611. +echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
  1612. + { (exit 1); exit 1; }; }
  1613. fi
  1614. -ac_config_guess=$ac_aux_dir/config.guess
  1615. -ac_config_sub=$ac_aux_dir/config.sub
  1616. -ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  1617. +ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  1618. +ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  1619. +ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  1620. +# Make sure we can run config.sub.
  1621. +$ac_config_sub sun4 >/dev/null 2>&1 ||
  1622. + { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
  1623. +echo "$as_me: error: cannot run $ac_config_sub" >&2;}
  1624. + { (exit 1); exit 1; }; }
  1625. +
  1626. +echo "$as_me:$LINENO: checking build system type" >&5
  1627. +echo $ECHO_N "checking build system type... $ECHO_C" >&6
  1628. +if test "${ac_cv_build+set}" = set; then
  1629. + echo $ECHO_N "(cached) $ECHO_C" >&6
  1630. +else
  1631. + ac_cv_build_alias=$build_alias
  1632. +test -z "$ac_cv_build_alias" &&
  1633. + ac_cv_build_alias=`$ac_config_guess`
  1634. +test -z "$ac_cv_build_alias" &&
  1635. + { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1636. +echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1637. + { (exit 1); exit 1; }; }
  1638. +ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  1639. + { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
  1640. +echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
  1641. + { (exit 1); exit 1; }; }
  1642. +
  1643. +fi
  1644. +echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1645. +echo "${ECHO_T}$ac_cv_build" >&6
  1646. +build=$ac_cv_build
  1647. +build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1648. +build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1649. +build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1650. +
  1651. +
  1652. +echo "$as_me:$LINENO: checking host system type" >&5
  1653. +echo $ECHO_N "checking host system type... $ECHO_C" >&6
  1654. +if test "${ac_cv_host+set}" = set; then
  1655. + echo $ECHO_N "(cached) $ECHO_C" >&6
  1656. +else
  1657. + ac_cv_host_alias=$host_alias
  1658. +test -z "$ac_cv_host_alias" &&
  1659. + ac_cv_host_alias=$ac_cv_build_alias
  1660. +ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  1661. + { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
  1662. +echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
  1663. + { (exit 1); exit 1; }; }
  1664. +
  1665. +fi
  1666. +echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1667. +echo "${ECHO_T}$ac_cv_host" >&6
  1668. +host=$ac_cv_host
  1669. +host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1670. +host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1671. +host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1672. +
  1673. +
  1674. +echo "$as_me:$LINENO: checking target system type" >&5
  1675. +echo $ECHO_N "checking target system type... $ECHO_C" >&6
  1676. +if test "${ac_cv_target+set}" = set; then
  1677. + echo $ECHO_N "(cached) $ECHO_C" >&6
  1678. +else
  1679. + ac_cv_target_alias=$target_alias
  1680. +test "x$ac_cv_target_alias" = "x" &&
  1681. + ac_cv_target_alias=$ac_cv_host_alias
  1682. +ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
  1683. + { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
  1684. +echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
  1685. + { (exit 1); exit 1; }; }
  1686. +
  1687. +fi
  1688. +echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  1689. +echo "${ECHO_T}$ac_cv_target" >&6
  1690. +target=$ac_cv_target
  1691. +target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1692. +target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1693. +target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1694. -# Do some error checking and defaulting for the host and target type.
  1695. -# The inputs are:
  1696. -# configure --host=HOST --target=TARGET --build=BUILD NONOPT
  1697. -#
  1698. -# The rules are:
  1699. -# 1. You are not allowed to specify --host, --target, and nonopt at the
  1700. -# same time.
  1701. -# 2. Host defaults to nonopt.
  1702. -# 3. If nonopt is not specified, then host defaults to the current host,
  1703. -# as determined by config.guess.
  1704. -# 4. Target and build default to nonopt.
  1705. -# 5. If nonopt is not specified, then target and build default to host.
  1706. # The aliases save the names the user supplied, while $host etc.
  1707. # will get canonicalized.
  1708. -case $host---$target---$nonopt in
  1709. -NONE---*---* | *---NONE---* | *---*---NONE) ;;
  1710. -*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
  1711. +test -n "$target_alias" &&
  1712. + test "$program_prefix$program_suffix$program_transform_name" = \
  1713. + NONENONEs,x,x, &&
  1714. + program_prefix=${target_alias}-
  1715. +
  1716. +
  1717. +am__api_version="1.8"
  1718. +# Find a good install program. We prefer a C program (faster),
  1719. +# so one script is as good as another. But avoid the broken or
  1720. +# incompatible versions:
  1721. +# SysV /etc/install, /usr/sbin/install
  1722. +# SunOS /usr/etc/install
  1723. +# IRIX /sbin/install
  1724. +# AIX /bin/install
  1725. +# AmigaOS /C/install, which installs bootblocks on floppy discs
  1726. +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1727. +# AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1728. +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1729. +# OS/2's system install, which has a completely different semantic
  1730. +# ./install, which can be erroneously created by make from ./install.sh.
  1731. +echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1732. +echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  1733. +if test -z "$INSTALL"; then
  1734. +if test "${ac_cv_path_install+set}" = set; then
  1735. + echo $ECHO_N "(cached) $ECHO_C" >&6
  1736. +else
  1737. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1738. +for as_dir in $PATH
  1739. +do
  1740. + IFS=$as_save_IFS
  1741. + test -z "$as_dir" && as_dir=.
  1742. + # Account for people who put trailing slashes in PATH elements.
  1743. +case $as_dir/ in
  1744. + ./ | .// | /cC/* | \
  1745. + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1746. + ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1747. + /usr/ucb/* ) ;;
  1748. + *)
  1749. + # OSF1 and SCO ODT 3.0 have their own names for install.
  1750. + # Don't use installbsd from OSF since it installs stuff as root
  1751. + # by default.
  1752. + for ac_prog in ginstall scoinst install; do
  1753. + for ac_exec_ext in '' $ac_executable_extensions; do
  1754. + if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  1755. + if test $ac_prog = install &&
  1756. + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1757. + # AIX install. It has an incompatible calling convention.
  1758. + :
  1759. + elif test $ac_prog = install &&
  1760. + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1761. + # program-specific install script used by HP pwplus--don't use.
  1762. + :
  1763. + else
  1764. + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1765. + break 3
  1766. + fi
  1767. + fi
  1768. + done
  1769. + done
  1770. + ;;
  1771. esac
  1772. +done
  1773. -# Make sure we can run config.sub.
  1774. -if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
  1775. -else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  1776. fi
  1777. + if test "${ac_cv_path_install+set}" = set; then
  1778. + INSTALL=$ac_cv_path_install
  1779. + else
  1780. + # As a last resort, use the slow shell script. We don't cache a
  1781. + # path for INSTALL within a source directory, because that will
  1782. + # break other packages using the cache if that directory is
  1783. + # removed, or if the path is relative.
  1784. + INSTALL=$ac_install_sh
  1785. + fi
  1786. +fi
  1787. +echo "$as_me:$LINENO: result: $INSTALL" >&5
  1788. +echo "${ECHO_T}$INSTALL" >&6
  1789. +
  1790. +# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1791. +# It thinks the first close brace ends the variable substitution.
  1792. +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1793. +
  1794. +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1795. +
  1796. +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1797. +
  1798. +echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1799. +echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
  1800. +# Just in case
  1801. +sleep 1
  1802. +echo timestamp > conftest.file
  1803. +# Do `set' in a subshell so we don't clobber the current shell's
  1804. +# arguments. Must try -L first in case configure is actually a
  1805. +# symlink; some systems play weird games with the mod time of symlinks
  1806. +# (eg FreeBSD returns the mod time of the symlink's containing
  1807. +# directory).
  1808. +if (
  1809. + set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1810. + if test "$*" = "X"; then
  1811. + # -L didn't work.
  1812. + set X `ls -t $srcdir/configure conftest.file`
  1813. + fi
  1814. + rm -f conftest.file
  1815. + if test "$*" != "X $srcdir/configure conftest.file" \
  1816. + && test "$*" != "X conftest.file $srcdir/configure"; then
  1817. +
  1818. + # If neither matched, then we have a broken ls. This can happen
  1819. + # if, for instance, CONFIG_SHELL is bash and it inherits a
  1820. + # broken ls alias from the environment. This has actually
  1821. + # happened. Such a system could not be considered "sane".
  1822. + { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1823. +alias in your environment" >&5
  1824. +echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1825. +alias in your environment" >&2;}
  1826. + { (exit 1); exit 1; }; }
  1827. + fi
  1828. +
  1829. + test "$2" = conftest.file
  1830. + )
  1831. +then
  1832. + # Ok.
  1833. + :
  1834. +else
  1835. + { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1836. +Check your system clock" >&5
  1837. +echo "$as_me: error: newly created file is older than distributed files!
  1838. +Check your system clock" >&2;}
  1839. + { (exit 1); exit 1; }; }
  1840. +fi
  1841. +echo "$as_me:$LINENO: result: yes" >&5
  1842. +echo "${ECHO_T}yes" >&6
  1843. +test "$program_prefix" != NONE &&
  1844. + program_transform_name="s,^,$program_prefix,;$program_transform_name"
  1845. +# Use a double $ so make ignores it.
  1846. +test "$program_suffix" != NONE &&
  1847. + program_transform_name="s,\$,$program_suffix,;$program_transform_name"
  1848. +# Double any \ or $. echo might interpret backslashes.
  1849. +# By default was `s,x,x', remove it if useless.
  1850. +cat <<\_ACEOF >conftest.sed
  1851. +s/[\\$]/&&/g;s/;s,x,x,$//
  1852. +_ACEOF
  1853. +program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1854. +rm conftest.sed
  1855. +
  1856. +# expand $ac_aux_dir to an absolute path
  1857. +am_aux_dir=`cd $ac_aux_dir && pwd`
  1858. +
  1859. +test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1860. +# Use eval to expand $SHELL
  1861. +if eval "$MISSING --run true"; then
  1862. + am_missing_run="$MISSING --run "
  1863. +else
  1864. + am_missing_run=
  1865. + { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1866. +echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1867. +fi
  1868. +
  1869. +if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  1870. + # Keeping the `.' argument allows $(mkdir_p) to be used without
  1871. + # argument. Indeed, we sometimes output rules like
  1872. + # $(mkdir_p) $(somedir)
  1873. + # where $(somedir) is conditionally defined.
  1874. + # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
  1875. + # expensive solution, as it forces Make to start a sub-shell.)
  1876. + mkdir_p='mkdir -p -- .'
  1877. +else
  1878. + # On NextStep and OpenStep, the `mkdir' command does not
  1879. + # recognize any option. It will interpret all options as
  1880. + # directories to create, and then abort because `.' already
  1881. + # exists.
  1882. + for d in ./-p ./--version;
  1883. + do
  1884. + test -d $d && rmdir $d
  1885. + done
  1886. + # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  1887. + if test -f "$ac_aux_dir/mkinstalldirs"; then
  1888. + mkdir_p='$(mkinstalldirs)'
  1889. + else
  1890. + mkdir_p='$(install_sh) -d'
  1891. + fi
  1892. +fi
  1893. +
  1894. +for ac_prog in gawk mawk nawk awk
  1895. +do
  1896. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  1897. +set dummy $ac_prog; ac_word=$2
  1898. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  1899. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1900. +if test "${ac_cv_prog_AWK+set}" = set; then
  1901. + echo $ECHO_N "(cached) $ECHO_C" >&6
  1902. +else
  1903. + if test -n "$AWK"; then
  1904. + ac_cv_prog_AWK="$AWK" # Let the user override the test.
  1905. +else
  1906. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1907. +for as_dir in $PATH
  1908. +do
  1909. + IFS=$as_save_IFS
  1910. + test -z "$as_dir" && as_dir=.
  1911. + for ac_exec_ext in '' $ac_executable_extensions; do
  1912. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1913. + ac_cv_prog_AWK="$ac_prog"
  1914. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1915. + break 2
  1916. + fi
  1917. +done
  1918. +done
  1919. +
  1920. +fi
  1921. +fi
  1922. +AWK=$ac_cv_prog_AWK
  1923. +if test -n "$AWK"; then
  1924. + echo "$as_me:$LINENO: result: $AWK" >&5
  1925. +echo "${ECHO_T}$AWK" >&6
  1926. +else
  1927. + echo "$as_me:$LINENO: result: no" >&5
  1928. +echo "${ECHO_T}no" >&6
  1929. +fi
  1930. +
  1931. + test -n "$AWK" && break
  1932. +done
  1933. +
  1934. +echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  1935. +echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  1936. +set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  1937. +if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  1938. + echo $ECHO_N "(cached) $ECHO_C" >&6
  1939. +else
  1940. + cat >conftest.make <<\_ACEOF
  1941. +all:
  1942. + @echo 'ac_maketemp="$(MAKE)"'
  1943. +_ACEOF
  1944. +# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1945. +eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  1946. +if test -n "$ac_maketemp"; then
  1947. + eval ac_cv_prog_make_${ac_make}_set=yes
  1948. +else
  1949. + eval ac_cv_prog_make_${ac_make}_set=no
  1950. +fi
  1951. +rm -f conftest.make
  1952. +fi
  1953. +if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  1954. + echo "$as_me:$LINENO: result: yes" >&5
  1955. +echo "${ECHO_T}yes" >&6
  1956. + SET_MAKE=
  1957. +else
  1958. + echo "$as_me:$LINENO: result: no" >&5
  1959. +echo "${ECHO_T}no" >&6
  1960. + SET_MAKE="MAKE=${MAKE-make}"
  1961. +fi
  1962. +
  1963. +rm -rf .tst 2>/dev/null
  1964. +mkdir .tst 2>/dev/null
  1965. +if test -d .tst; then
  1966. + am__leading_dot=.
  1967. +else
  1968. + am__leading_dot=_
  1969. +fi
  1970. +rmdir .tst 2>/dev/null
  1971. +
  1972. +# test to see if srcdir already configured
  1973. +if test "`cd $srcdir && pwd`" != "`pwd`" &&
  1974. + test -f $srcdir/config.status; then
  1975. + { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  1976. +echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  1977. + { (exit 1); exit 1; }; }
  1978. +fi
  1979. +
  1980. +# test whether we have cygpath
  1981. +if test -z "$CYGPATH_W"; then
  1982. + if (cygpath --version) >/dev/null 2>/dev/null; then
  1983. + CYGPATH_W='cygpath -w'
  1984. + else
  1985. + CYGPATH_W=echo
  1986. + fi
  1987. +fi
  1988. +
  1989. +
  1990. +# Define the identity of the package.
  1991. + PACKAGE=libnet
  1992. + VERSION=1.0.2a
  1993. +
  1994. +
  1995. +cat >>confdefs.h <<_ACEOF
  1996. +#define PACKAGE "$PACKAGE"
  1997. +_ACEOF
  1998. +
  1999. +
  2000. +cat >>confdefs.h <<_ACEOF
  2001. +#define VERSION "$VERSION"
  2002. +_ACEOF
  2003. +
  2004. +# Some tools Automake needs.
  2005. +
  2006. +ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2007. +
  2008. +
  2009. +AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2010. +
  2011. +
  2012. +AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2013. +
  2014. +
  2015. +AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2016. +
  2017. +
  2018. +MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2019. +
  2020. +
  2021. +AMTAR=${AMTAR-"${am_missing_run}tar"}
  2022. +
  2023. +install_sh=${install_sh-"$am_aux_dir/install-sh"}
  2024. +
  2025. +# Installed binaries are usually stripped using `strip' when the user
  2026. +# run `make install-strip'. However `strip' might not be the right
  2027. +# tool to use in cross-compilation environments, therefore Automake
  2028. +# will honor the `STRIP' environment variable to overrule this program.
  2029. +if test "$cross_compiling" != no; then
  2030. + if test -n "$ac_tool_prefix"; then
  2031. + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2032. +set dummy ${ac_tool_prefix}strip; ac_word=$2
  2033. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  2034. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2035. +if test "${ac_cv_prog_STRIP+set}" = set; then
  2036. + echo $ECHO_N "(cached) $ECHO_C" >&6
  2037. +else
  2038. + if test -n "$STRIP"; then
  2039. + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2040. +else
  2041. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2042. +for as_dir in $PATH
  2043. +do
  2044. + IFS=$as_save_IFS
  2045. + test -z "$as_dir" && as_dir=.
  2046. + for ac_exec_ext in '' $ac_executable_extensions; do
  2047. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2048. + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2049. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2050. + break 2
  2051. + fi
  2052. +done
  2053. +done
  2054. +
  2055. +fi
  2056. +fi
  2057. +STRIP=$ac_cv_prog_STRIP
  2058. +if test -n "$STRIP"; then
  2059. + echo "$as_me:$LINENO: result: $STRIP" >&5
  2060. +echo "${ECHO_T}$STRIP" >&6
  2061. +else
  2062. + echo "$as_me:$LINENO: result: no" >&5
  2063. +echo "${ECHO_T}no" >&6
  2064. +fi
  2065. +
  2066. +fi
  2067. +if test -z "$ac_cv_prog_STRIP"; then
  2068. + ac_ct_STRIP=$STRIP
  2069. + # Extract the first word of "strip", so it can be a program name with args.
  2070. +set dummy strip; ac_word=$2
  2071. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  2072. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2073. +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2074. + echo $ECHO_N "(cached) $ECHO_C" >&6
  2075. +else
  2076. + if test -n "$ac_ct_STRIP"; then
  2077. + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2078. +else
  2079. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2080. +for as_dir in $PATH
  2081. +do
  2082. + IFS=$as_save_IFS
  2083. + test -z "$as_dir" && as_dir=.
  2084. + for ac_exec_ext in '' $ac_executable_extensions; do
  2085. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2086. + ac_cv_prog_ac_ct_STRIP="strip"
  2087. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2088. + break 2
  2089. + fi
  2090. +done
  2091. +done
  2092. +
  2093. + test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  2094. +fi
  2095. +fi
  2096. +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2097. +if test -n "$ac_ct_STRIP"; then
  2098. + echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2099. +echo "${ECHO_T}$ac_ct_STRIP" >&6
  2100. +else
  2101. + echo "$as_me:$LINENO: result: no" >&5
  2102. +echo "${ECHO_T}no" >&6
  2103. +fi
  2104. +
  2105. + STRIP=$ac_ct_STRIP
  2106. +else
  2107. + STRIP="$ac_cv_prog_STRIP"
  2108. +fi
  2109. +
  2110. +fi
  2111. +INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  2112. +
  2113. +# We need awk for the "check" target. The system "awk" is bad on
  2114. +# some platforms.
  2115. +
  2116. +
  2117. +
  2118. +
  2119. +VER=`cat VERSION`
  2120. +echo "$as_me:$LINENO: result: Beginning autoconfiguration process for libnet-$VER..." >&5
  2121. +echo "${ECHO_T}Beginning autoconfiguration process for libnet-$VER..." >&6
  2122. +
  2123. +
  2124. -echo $ac_n "checking host system type""... $ac_c" 1>&6
  2125. -echo "configure:595: checking host system type" >&5
  2126. -host_alias=$host
  2127. -case "$host_alias" in
  2128. -NONE)
  2129. - case $nonopt in
  2130. - NONE)
  2131. - if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
  2132. - else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
  2133. - fi ;;
  2134. - *) host_alias=$nonopt ;;
  2135. - esac ;;
  2136. -esac
  2137. -host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
  2138. -host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  2139. -host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  2140. -host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  2141. -echo "$ac_t""$host" 1>&6
  2142. -echo $ac_n "checking target system type""... $ac_c" 1>&6
  2143. -echo "configure:616: checking target system type" >&5
  2144. -target_alias=$target
  2145. -case "$target_alias" in
  2146. -NONE)
  2147. - case $nonopt in
  2148. - NONE) target_alias=$host_alias ;;
  2149. - *) target_alias=$nonopt ;;
  2150. - esac ;;
  2151. -esac
  2152. -target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
  2153. -target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  2154. -target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  2155. -target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  2156. -echo "$ac_t""$target" 1>&6
  2157. -echo $ac_n "checking build system type""... $ac_c" 1>&6
  2158. -echo "configure:634: checking build system type" >&5
  2159. -build_alias=$build
  2160. -case "$build_alias" in
  2161. -NONE)
  2162. - case $nonopt in
  2163. - NONE) build_alias=$host_alias ;;
  2164. - *) build_alias=$nonopt ;;
  2165. - esac ;;
  2166. -esac
  2167. -build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
  2168. -build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  2169. -build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  2170. -build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  2171. -echo "$ac_t""$build" 1>&6
  2172. -test "$host_alias" != "$target_alias" &&
  2173. - test "$program_prefix$program_suffix$program_transform_name" = \
  2174. - NONENONEs,x,x, &&
  2175. - program_prefix=${target_alias}-
  2176. @@ -658,214 +2005,661 @@ if test "$prefix" = "NONE"; then
  2177. prefix="/usr"
  2178. fi
  2179. -# Extract the first word of "gcc", so it can be a program name with args.
  2180. +if test "$mandir" = "NONE"; then
  2181. + mandir="$prefix/man"
  2182. +fi
  2183. +
  2184. +ac_ext=c
  2185. +ac_cpp='$CPP $CPPFLAGS'
  2186. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2187. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2188. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2189. +if test -n "$ac_tool_prefix"; then
  2190. + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2191. +set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2192. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  2193. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2194. +if test "${ac_cv_prog_CC+set}" = set; then
  2195. + echo $ECHO_N "(cached) $ECHO_C" >&6
  2196. +else
  2197. + if test -n "$CC"; then
  2198. + ac_cv_prog_CC="$CC" # Let the user override the test.
  2199. +else
  2200. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2201. +for as_dir in $PATH
  2202. +do
  2203. + IFS=$as_save_IFS
  2204. + test -z "$as_dir" && as_dir=.
  2205. + for ac_exec_ext in '' $ac_executable_extensions; do
  2206. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2207. + ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2208. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2209. + break 2
  2210. + fi
  2211. +done
  2212. +done
  2213. +
  2214. +fi
  2215. +fi
  2216. +CC=$ac_cv_prog_CC
  2217. +if test -n "$CC"; then
  2218. + echo "$as_me:$LINENO: result: $CC" >&5
  2219. +echo "${ECHO_T}$CC" >&6
  2220. +else
  2221. + echo "$as_me:$LINENO: result: no" >&5
  2222. +echo "${ECHO_T}no" >&6
  2223. +fi
  2224. +
  2225. +fi
  2226. +if test -z "$ac_cv_prog_CC"; then
  2227. + ac_ct_CC=$CC
  2228. + # Extract the first word of "gcc", so it can be a program name with args.
  2229. set dummy gcc; ac_word=$2
  2230. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2231. -echo "configure:665: checking for $ac_word" >&5
  2232. -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  2233. - echo $ac_n "(cached) $ac_c" 1>&6
  2234. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  2235. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2236. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2237. + echo $ECHO_N "(cached) $ECHO_C" >&6
  2238. +else
  2239. + if test -n "$ac_ct_CC"; then
  2240. + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2241. +else
  2242. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2243. +for as_dir in $PATH
  2244. +do
  2245. + IFS=$as_save_IFS
  2246. + test -z "$as_dir" && as_dir=.
  2247. + for ac_exec_ext in '' $ac_executable_extensions; do
  2248. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2249. + ac_cv_prog_ac_ct_CC="gcc"
  2250. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2251. + break 2
  2252. + fi
  2253. +done
  2254. +done
  2255. +
  2256. +fi
  2257. +fi
  2258. +ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2259. +if test -n "$ac_ct_CC"; then
  2260. + echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2261. +echo "${ECHO_T}$ac_ct_CC" >&6
  2262. +else
  2263. + echo "$as_me:$LINENO: result: no" >&5
  2264. +echo "${ECHO_T}no" >&6
  2265. +fi
  2266. +
  2267. + CC=$ac_ct_CC
  2268. +else
  2269. + CC="$ac_cv_prog_CC"
  2270. +fi
  2271. +
  2272. +if test -z "$CC"; then
  2273. + if test -n "$ac_tool_prefix"; then
  2274. + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2275. +set dummy ${ac_tool_prefix}cc; ac_word=$2
  2276. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  2277. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2278. +if test "${ac_cv_prog_CC+set}" = set; then
  2279. + echo $ECHO_N "(cached) $ECHO_C" >&6
  2280. else
  2281. if test -n "$CC"; then
  2282. ac_cv_prog_CC="$CC" # Let the user override the test.
  2283. else
  2284. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2285. - ac_dummy="$PATH"
  2286. - for ac_dir in $ac_dummy; do
  2287. - test -z "$ac_dir" && ac_dir=.
  2288. - if test -f $ac_dir/$ac_word; then
  2289. - ac_cv_prog_CC="gcc"
  2290. - break
  2291. - fi
  2292. - done
  2293. - IFS="$ac_save_ifs"
  2294. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2295. +for as_dir in $PATH
  2296. +do
  2297. + IFS=$as_save_IFS
  2298. + test -z "$as_dir" && as_dir=.
  2299. + for ac_exec_ext in '' $ac_executable_extensions; do
  2300. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2301. + ac_cv_prog_CC="${ac_tool_prefix}cc"
  2302. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2303. + break 2
  2304. + fi
  2305. +done
  2306. +done
  2307. +
  2308. fi
  2309. fi
  2310. -CC="$ac_cv_prog_CC"
  2311. +CC=$ac_cv_prog_CC
  2312. if test -n "$CC"; then
  2313. - echo "$ac_t""$CC" 1>&6
  2314. + echo "$as_me:$LINENO: result: $CC" >&5
  2315. +echo "${ECHO_T}$CC" >&6
  2316. else
  2317. - echo "$ac_t""no" 1>&6
  2318. + echo "$as_me:$LINENO: result: no" >&5
  2319. +echo "${ECHO_T}no" >&6
  2320. fi
  2321. +fi
  2322. +if test -z "$ac_cv_prog_CC"; then
  2323. + ac_ct_CC=$CC
  2324. + # Extract the first word of "cc", so it can be a program name with args.
  2325. +set dummy cc; ac_word=$2
  2326. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  2327. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2328. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2329. + echo $ECHO_N "(cached) $ECHO_C" >&6
  2330. +else
  2331. + if test -n "$ac_ct_CC"; then
  2332. + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2333. +else
  2334. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2335. +for as_dir in $PATH
  2336. +do
  2337. + IFS=$as_save_IFS
  2338. + test -z "$as_dir" && as_dir=.
  2339. + for ac_exec_ext in '' $ac_executable_extensions; do
  2340. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2341. + ac_cv_prog_ac_ct_CC="cc"
  2342. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2343. + break 2
  2344. + fi
  2345. +done
  2346. +done
  2347. +
  2348. +fi
  2349. +fi
  2350. +ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2351. +if test -n "$ac_ct_CC"; then
  2352. + echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2353. +echo "${ECHO_T}$ac_ct_CC" >&6
  2354. +else
  2355. + echo "$as_me:$LINENO: result: no" >&5
  2356. +echo "${ECHO_T}no" >&6
  2357. +fi
  2358. +
  2359. + CC=$ac_ct_CC
  2360. +else
  2361. + CC="$ac_cv_prog_CC"
  2362. +fi
  2363. +
  2364. +fi
  2365. if test -z "$CC"; then
  2366. # Extract the first word of "cc", so it can be a program name with args.
  2367. set dummy cc; ac_word=$2
  2368. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2369. -echo "configure:695: checking for $ac_word" >&5
  2370. -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  2371. - echo $ac_n "(cached) $ac_c" 1>&6
  2372. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  2373. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2374. +if test "${ac_cv_prog_CC+set}" = set; then
  2375. + echo $ECHO_N "(cached) $ECHO_C" >&6
  2376. else
  2377. if test -n "$CC"; then
  2378. ac_cv_prog_CC="$CC" # Let the user override the test.
  2379. else
  2380. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2381. ac_prog_rejected=no
  2382. - ac_dummy="$PATH"
  2383. - for ac_dir in $ac_dummy; do
  2384. - test -z "$ac_dir" && ac_dir=.
  2385. - if test -f $ac_dir/$ac_word; then
  2386. - if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  2387. - ac_prog_rejected=yes
  2388. - continue
  2389. - fi
  2390. - ac_cv_prog_CC="cc"
  2391. - break
  2392. - fi
  2393. - done
  2394. - IFS="$ac_save_ifs"
  2395. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2396. +for as_dir in $PATH
  2397. +do
  2398. + IFS=$as_save_IFS
  2399. + test -z "$as_dir" && as_dir=.
  2400. + for ac_exec_ext in '' $ac_executable_extensions; do
  2401. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2402. + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2403. + ac_prog_rejected=yes
  2404. + continue
  2405. + fi
  2406. + ac_cv_prog_CC="cc"
  2407. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2408. + break 2
  2409. + fi
  2410. +done
  2411. +done
  2412. +
  2413. if test $ac_prog_rejected = yes; then
  2414. # We found a bogon in the path, so make sure we never use it.
  2415. set dummy $ac_cv_prog_CC
  2416. shift
  2417. - if test $# -gt 0; then
  2418. + if test $# != 0; then
  2419. # We chose a different compiler from the bogus one.
  2420. # However, it has the same basename, so the bogon will be chosen
  2421. # first if we set CC to just the basename; use the full file name.
  2422. shift
  2423. - set dummy "$ac_dir/$ac_word" "$@"
  2424. - shift
  2425. - ac_cv_prog_CC="$@"
  2426. + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2427. fi
  2428. fi
  2429. fi
  2430. fi
  2431. -CC="$ac_cv_prog_CC"
  2432. +CC=$ac_cv_prog_CC
  2433. if test -n "$CC"; then
  2434. - echo "$ac_t""$CC" 1>&6
  2435. + echo "$as_me:$LINENO: result: $CC" >&5
  2436. +echo "${ECHO_T}$CC" >&6
  2437. else
  2438. - echo "$ac_t""no" 1>&6
  2439. + echo "$as_me:$LINENO: result: no" >&5
  2440. +echo "${ECHO_T}no" >&6
  2441. fi
  2442. - if test -z "$CC"; then
  2443. - case "`uname -s`" in
  2444. - *win32* | *WIN32*)
  2445. - # Extract the first word of "cl", so it can be a program name with args.
  2446. -set dummy cl; ac_word=$2
  2447. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  2448. -echo "configure:746: checking for $ac_word" >&5
  2449. -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  2450. - echo $ac_n "(cached) $ac_c" 1>&6
  2451. +fi
  2452. +if test -z "$CC"; then
  2453. + if test -n "$ac_tool_prefix"; then
  2454. + for ac_prog in cl
  2455. + do
  2456. + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2457. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2458. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  2459. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2460. +if test "${ac_cv_prog_CC+set}" = set; then
  2461. + echo $ECHO_N "(cached) $ECHO_C" >&6
  2462. else
  2463. if test -n "$CC"; then
  2464. ac_cv_prog_CC="$CC" # Let the user override the test.
  2465. else
  2466. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  2467. - ac_dummy="$PATH"
  2468. - for ac_dir in $ac_dummy; do
  2469. - test -z "$ac_dir" && ac_dir=.
  2470. - if test -f $ac_dir/$ac_word; then
  2471. - ac_cv_prog_CC="cl"
  2472. - break
  2473. - fi
  2474. - done
  2475. - IFS="$ac_save_ifs"
  2476. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2477. +for as_dir in $PATH
  2478. +do
  2479. + IFS=$as_save_IFS
  2480. + test -z "$as_dir" && as_dir=.
  2481. + for ac_exec_ext in '' $ac_executable_extensions; do
  2482. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2483. + ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2484. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2485. + break 2
  2486. + fi
  2487. +done
  2488. +done
  2489. +
  2490. fi
  2491. fi
  2492. -CC="$ac_cv_prog_CC"
  2493. +CC=$ac_cv_prog_CC
  2494. if test -n "$CC"; then
  2495. - echo "$ac_t""$CC" 1>&6
  2496. + echo "$as_me:$LINENO: result: $CC" >&5
  2497. +echo "${ECHO_T}$CC" >&6
  2498. else
  2499. - echo "$ac_t""no" 1>&6
  2500. + echo "$as_me:$LINENO: result: no" >&5
  2501. +echo "${ECHO_T}no" >&6
  2502. fi
  2503. - ;;
  2504. - esac
  2505. +
  2506. + test -n "$CC" && break
  2507. + done
  2508. +fi
  2509. +if test -z "$CC"; then
  2510. + ac_ct_CC=$CC
  2511. + for ac_prog in cl
  2512. +do
  2513. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  2514. +set dummy $ac_prog; ac_word=$2
  2515. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  2516. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2517. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2518. + echo $ECHO_N "(cached) $ECHO_C" >&6
  2519. +else
  2520. + if test -n "$ac_ct_CC"; then
  2521. + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2522. +else
  2523. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2524. +for as_dir in $PATH
  2525. +do
  2526. + IFS=$as_save_IFS
  2527. + test -z "$as_dir" && as_dir=.
  2528. + for ac_exec_ext in '' $ac_executable_extensions; do
  2529. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2530. + ac_cv_prog_ac_ct_CC="$ac_prog"
  2531. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2532. + break 2
  2533. fi
  2534. - test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  2535. +done
  2536. +done
  2537. +
  2538. +fi
  2539. +fi
  2540. +ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2541. +if test -n "$ac_ct_CC"; then
  2542. + echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2543. +echo "${ECHO_T}$ac_ct_CC" >&6
  2544. +else
  2545. + echo "$as_me:$LINENO: result: no" >&5
  2546. +echo "${ECHO_T}no" >&6
  2547. fi
  2548. -echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  2549. -echo "configure:778: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  2550. + test -n "$ac_ct_CC" && break
  2551. +done
  2552. -ac_ext=c
  2553. -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  2554. -ac_cpp='$CPP $CPPFLAGS'
  2555. -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  2556. -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  2557. -cross_compiling=$ac_cv_prog_cc_cross
  2558. + CC=$ac_ct_CC
  2559. +fi
  2560. -cat > conftest.$ac_ext << EOF
  2561. +fi
  2562. -#line 789 "configure"
  2563. -#include "confdefs.h"
  2564. -main(){return(0);}
  2565. -EOF
  2566. -if { (eval echo configure:794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  2567. - ac_cv_prog_cc_works=yes
  2568. - # If we can't run a trivial program, we are probably using a cross compiler.
  2569. - if (./conftest; exit) 2>/dev/null; then
  2570. - ac_cv_prog_cc_cross=no
  2571. +test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2572. +See \`config.log' for more details." >&5
  2573. +echo "$as_me: error: no acceptable C compiler found in \$PATH
  2574. +See \`config.log' for more details." >&2;}
  2575. + { (exit 1); exit 1; }; }
  2576. +
  2577. +# Provide some information about the compiler.
  2578. +echo "$as_me:$LINENO:" \
  2579. + "checking for C compiler version" >&5
  2580. +ac_compiler=`set X $ac_compile; echo $2`
  2581. +{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  2582. + (eval $ac_compiler --version </dev/null >&5) 2>&5
  2583. + ac_status=$?
  2584. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2585. + (exit $ac_status); }
  2586. +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  2587. + (eval $ac_compiler -v </dev/null >&5) 2>&5
  2588. + ac_status=$?
  2589. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2590. + (exit $ac_status); }
  2591. +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  2592. + (eval $ac_compiler -V </dev/null >&5) 2>&5
  2593. + ac_status=$?
  2594. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2595. + (exit $ac_status); }
  2596. +
  2597. +cat >conftest.$ac_ext <<_ACEOF
  2598. +/* confdefs.h. */
  2599. +_ACEOF
  2600. +cat confdefs.h >>conftest.$ac_ext
  2601. +cat >>conftest.$ac_ext <<_ACEOF
  2602. +/* end confdefs.h. */
  2603. +
  2604. +int
  2605. +main ()
  2606. +{
  2607. +
  2608. + ;
  2609. + return 0;
  2610. +}
  2611. +_ACEOF
  2612. +ac_clean_files_save=$ac_clean_files
  2613. +ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2614. +# Try to create an executable without -o first, disregard a.out.
  2615. +# It will help us diagnose broken compilers, and finding out an intuition
  2616. +# of exeext.
  2617. +echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2618. +echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
  2619. +ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2620. +if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  2621. + (eval $ac_link_default) 2>&5
  2622. + ac_status=$?
  2623. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2624. + (exit $ac_status); }; then
  2625. + # Find the output, starting from the most likely. This scheme is
  2626. +# not robust to junk in `.', hence go to wildcards (a.*) only as a last
  2627. +# resort.
  2628. +
  2629. +# Be careful to initialize this variable, since it used to be cached.
  2630. +# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  2631. +ac_cv_exeext=
  2632. +# b.out is created by i960 compilers.
  2633. +for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  2634. +do
  2635. + test -f "$ac_file" || continue
  2636. + case $ac_file in
  2637. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  2638. + ;;
  2639. + conftest.$ac_ext )
  2640. + # This is the source file.
  2641. + ;;
  2642. + [ab].out )
  2643. + # We found the default executable, but exeext='' is most
  2644. + # certainly right.
  2645. + break;;
  2646. + *.* )
  2647. + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2648. + # FIXME: I believe we export ac_cv_exeext for Libtool,
  2649. + # but it would be cool to find out if it's true. Does anybody
  2650. + # maintain Libtool? --akim.
  2651. + export ac_cv_exeext
  2652. + break;;
  2653. + * )
  2654. + break;;
  2655. + esac
  2656. +done
  2657. +else
  2658. + echo "$as_me: failed program was:" >&5
  2659. +sed 's/^/| /' conftest.$ac_ext >&5
  2660. +
  2661. +{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
  2662. +See \`config.log' for more details." >&5
  2663. +echo "$as_me: error: C compiler cannot create executables
  2664. +See \`config.log' for more details." >&2;}
  2665. + { (exit 77); exit 77; }; }
  2666. +fi
  2667. +
  2668. +ac_exeext=$ac_cv_exeext
  2669. +echo "$as_me:$LINENO: result: $ac_file" >&5
  2670. +echo "${ECHO_T}$ac_file" >&6
  2671. +
  2672. +# Check the compiler produces executables we can run. If not, either
  2673. +# the compiler is broken, or we cross compile.
  2674. +echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2675. +echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  2676. +# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2677. +# If not cross compiling, check that we can run a simple program.
  2678. +if test "$cross_compiling" != yes; then
  2679. + if { ac_try='./$ac_file'
  2680. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2681. + (eval $ac_try) 2>&5
  2682. + ac_status=$?
  2683. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2684. + (exit $ac_status); }; }; then
  2685. + cross_compiling=no
  2686. else
  2687. - ac_cv_prog_cc_cross=yes
  2688. + if test "$cross_compiling" = maybe; then
  2689. + cross_compiling=yes
  2690. + else
  2691. + { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2692. +If you meant to cross compile, use \`--host'.
  2693. +See \`config.log' for more details." >&5
  2694. +echo "$as_me: error: cannot run C compiled programs.
  2695. +If you meant to cross compile, use \`--host'.
  2696. +See \`config.log' for more details." >&2;}
  2697. + { (exit 1); exit 1; }; }
  2698. + fi
  2699. fi
  2700. -else
  2701. - echo "configure: failed program was:" >&5
  2702. - cat conftest.$ac_ext >&5
  2703. - ac_cv_prog_cc_works=no
  2704. fi
  2705. -rm -fr conftest*
  2706. -ac_ext=c
  2707. -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  2708. -ac_cpp='$CPP $CPPFLAGS'
  2709. -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  2710. -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  2711. -cross_compiling=$ac_cv_prog_cc_cross
  2712. +echo "$as_me:$LINENO: result: yes" >&5
  2713. +echo "${ECHO_T}yes" >&6
  2714. -echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  2715. -if test $ac_cv_prog_cc_works = no; then
  2716. - { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  2717. +rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2718. +ac_clean_files=$ac_clean_files_save
  2719. +# Check the compiler produces executables we can run. If not, either
  2720. +# the compiler is broken, or we cross compile.
  2721. +echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2722. +echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  2723. +echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2724. +echo "${ECHO_T}$cross_compiling" >&6
  2725. +
  2726. +echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2727. +echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  2728. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2729. + (eval $ac_link) 2>&5
  2730. + ac_status=$?
  2731. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2732. + (exit $ac_status); }; then
  2733. + # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2734. +# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2735. +# work properly (i.e., refer to `conftest.exe'), while it won't with
  2736. +# `rm'.
  2737. +for ac_file in conftest.exe conftest conftest.*; do
  2738. + test -f "$ac_file" || continue
  2739. + case $ac_file in
  2740. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  2741. + *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2742. + export ac_cv_exeext
  2743. + break;;
  2744. + * ) break;;
  2745. + esac
  2746. +done
  2747. +else
  2748. + { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2749. +See \`config.log' for more details." >&5
  2750. +echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2751. +See \`config.log' for more details." >&2;}
  2752. + { (exit 1); exit 1; }; }
  2753. fi
  2754. -echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  2755. -echo "configure:820: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  2756. -echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  2757. -cross_compiling=$ac_cv_prog_cc_cross
  2758. -echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  2759. -echo "configure:825: checking whether we are using GNU C" >&5
  2760. -if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  2761. - echo $ac_n "(cached) $ac_c" 1>&6
  2762. +rm -f conftest$ac_cv_exeext
  2763. +echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2764. +echo "${ECHO_T}$ac_cv_exeext" >&6
  2765. +
  2766. +rm -f conftest.$ac_ext
  2767. +EXEEXT=$ac_cv_exeext
  2768. +ac_exeext=$EXEEXT
  2769. +echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2770. +echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  2771. +if test "${ac_cv_objext+set}" = set; then
  2772. + echo $ECHO_N "(cached) $ECHO_C" >&6
  2773. else
  2774. - cat > conftest.c <<EOF
  2775. -#ifdef __GNUC__
  2776. - yes;
  2777. -#endif
  2778. -EOF
  2779. -if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:834: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  2780. - ac_cv_prog_gcc=yes
  2781. + cat >conftest.$ac_ext <<_ACEOF
  2782. +/* confdefs.h. */
  2783. +_ACEOF
  2784. +cat confdefs.h >>conftest.$ac_ext
  2785. +cat >>conftest.$ac_ext <<_ACEOF
  2786. +/* end confdefs.h. */
  2787. +
  2788. +int
  2789. +main ()
  2790. +{
  2791. +
  2792. + ;
  2793. + return 0;
  2794. +}
  2795. +_ACEOF
  2796. +rm -f conftest.o conftest.obj
  2797. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2798. + (eval $ac_compile) 2>&5
  2799. + ac_status=$?
  2800. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2801. + (exit $ac_status); }; then
  2802. + for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  2803. + case $ac_file in
  2804. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  2805. + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2806. + break;;
  2807. + esac
  2808. +done
  2809. else
  2810. - ac_cv_prog_gcc=no
  2811. + echo "$as_me: failed program was:" >&5
  2812. +sed 's/^/| /' conftest.$ac_ext >&5
  2813. +
  2814. +{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2815. +See \`config.log' for more details." >&5
  2816. +echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2817. +See \`config.log' for more details." >&2;}
  2818. + { (exit 1); exit 1; }; }
  2819. fi
  2820. +
  2821. +rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2822. fi
  2823. +echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2824. +echo "${ECHO_T}$ac_cv_objext" >&6
  2825. +OBJEXT=$ac_cv_objext
  2826. +ac_objext=$OBJEXT
  2827. +echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2828. +echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  2829. +if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2830. + echo $ECHO_N "(cached) $ECHO_C" >&6
  2831. +else
  2832. + cat >conftest.$ac_ext <<_ACEOF
  2833. +/* confdefs.h. */
  2834. +_ACEOF
  2835. +cat confdefs.h >>conftest.$ac_ext
  2836. +cat >>conftest.$ac_ext <<_ACEOF
  2837. +/* end confdefs.h. */
  2838. -echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  2839. +int
  2840. +main ()
  2841. +{
  2842. +#ifndef __GNUC__
  2843. + choke me
  2844. +#endif
  2845. -if test $ac_cv_prog_gcc = yes; then
  2846. - GCC=yes
  2847. + ;
  2848. + return 0;
  2849. +}
  2850. +_ACEOF
  2851. +rm -f conftest.$ac_objext
  2852. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2853. + (eval $ac_compile) 2>conftest.er1
  2854. + ac_status=$?
  2855. + grep -v '^ *+' conftest.er1 >conftest.err
  2856. + rm -f conftest.er1
  2857. + cat conftest.err >&5
  2858. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2859. + (exit $ac_status); } &&
  2860. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2861. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2862. + (eval $ac_try) 2>&5
  2863. + ac_status=$?
  2864. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2865. + (exit $ac_status); }; } &&
  2866. + { ac_try='test -s conftest.$ac_objext'
  2867. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2868. + (eval $ac_try) 2>&5
  2869. + ac_status=$?
  2870. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2871. + (exit $ac_status); }; }; then
  2872. + ac_compiler_gnu=yes
  2873. else
  2874. - GCC=
  2875. + echo "$as_me: failed program was:" >&5
  2876. +sed 's/^/| /' conftest.$ac_ext >&5
  2877. +
  2878. +ac_compiler_gnu=no
  2879. fi
  2880. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2881. +ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2882. -ac_test_CFLAGS="${CFLAGS+set}"
  2883. -ac_save_CFLAGS="$CFLAGS"
  2884. -CFLAGS=
  2885. -echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  2886. -echo "configure:853: checking whether ${CC-cc} accepts -g" >&5
  2887. -if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  2888. - echo $ac_n "(cached) $ac_c" 1>&6
  2889. +fi
  2890. +echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2891. +echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  2892. +GCC=`test $ac_compiler_gnu = yes && echo yes`
  2893. +ac_test_CFLAGS=${CFLAGS+set}
  2894. +ac_save_CFLAGS=$CFLAGS
  2895. +CFLAGS="-g"
  2896. +echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2897. +echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  2898. +if test "${ac_cv_prog_cc_g+set}" = set; then
  2899. + echo $ECHO_N "(cached) $ECHO_C" >&6
  2900. else
  2901. - echo 'void f(){}' > conftest.c
  2902. -if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  2903. + cat >conftest.$ac_ext <<_ACEOF
  2904. +/* confdefs.h. */
  2905. +_ACEOF
  2906. +cat confdefs.h >>conftest.$ac_ext
  2907. +cat >>conftest.$ac_ext <<_ACEOF
  2908. +/* end confdefs.h. */
  2909. +
  2910. +int
  2911. +main ()
  2912. +{
  2913. +
  2914. + ;
  2915. + return 0;
  2916. +}
  2917. +_ACEOF
  2918. +rm -f conftest.$ac_objext
  2919. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2920. + (eval $ac_compile) 2>conftest.er1
  2921. + ac_status=$?
  2922. + grep -v '^ *+' conftest.er1 >conftest.err
  2923. + rm -f conftest.er1
  2924. + cat conftest.err >&5
  2925. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2926. + (exit $ac_status); } &&
  2927. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2928. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2929. + (eval $ac_try) 2>&5
  2930. + ac_status=$?
  2931. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2932. + (exit $ac_status); }; } &&
  2933. + { ac_try='test -s conftest.$ac_objext'
  2934. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2935. + (eval $ac_try) 2>&5
  2936. + ac_status=$?
  2937. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2938. + (exit $ac_status); }; }; then
  2939. ac_cv_prog_cc_g=yes
  2940. else
  2941. - ac_cv_prog_cc_g=no
  2942. -fi
  2943. -rm -f conftest*
  2944. + echo "$as_me: failed program was:" >&5
  2945. +sed 's/^/| /' conftest.$ac_ext >&5
  2946. +ac_cv_prog_cc_g=no
  2947. fi
  2948. -
  2949. -echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  2950. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2951. +fi
  2952. +echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2953. +echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  2954. if test "$ac_test_CFLAGS" = set; then
  2955. - CFLAGS="$ac_save_CFLAGS"
  2956. + CFLAGS=$ac_save_CFLAGS
  2957. elif test $ac_cv_prog_cc_g = yes; then
  2958. if test "$GCC" = yes; then
  2959. CFLAGS="-g -O2"
  2960. @@ -879,90 +2673,556 @@ else
  2961. CFLAGS=
  2962. fi
  2963. fi
  2964. +echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  2965. +echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  2966. +if test "${ac_cv_prog_cc_stdc+set}" = set; then
  2967. + echo $ECHO_N "(cached) $ECHO_C" >&6
  2968. +else
  2969. + ac_cv_prog_cc_stdc=no
  2970. +ac_save_CC=$CC
  2971. +cat >conftest.$ac_ext <<_ACEOF
  2972. +/* confdefs.h. */
  2973. +_ACEOF
  2974. +cat confdefs.h >>conftest.$ac_ext
  2975. +cat >>conftest.$ac_ext <<_ACEOF
  2976. +/* end confdefs.h. */
  2977. +#include <stdarg.h>
  2978. +#include <stdio.h>
  2979. +#include <sys/types.h>
  2980. +#include <sys/stat.h>
  2981. +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2982. +struct buf { int x; };
  2983. +FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2984. +static char *e (p, i)
  2985. + char **p;
  2986. + int i;
  2987. +{
  2988. + return p[i];
  2989. +}
  2990. +static char *f (char * (*g) (char **, int), char **p, ...)
  2991. +{
  2992. + char *s;
  2993. + va_list v;
  2994. + va_start (v,p);
  2995. + s = g (p, va_arg (v,int));
  2996. + va_end (v);
  2997. + return s;
  2998. +}
  2999. +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3000. + function prototypes and stuff, but not '\xHH' hex character constants.
  3001. + These don't provoke an error unfortunately, instead are silently treated
  3002. + as 'x'. The following induces an error, until -std1 is added to get
  3003. + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3004. + array size at least. It's necessary to write '\x00'==0 to get something
  3005. + that's true only with -std1. */
  3006. +int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3007. -echo $ac_n "checking for working const""... $ac_c" 1>&6
  3008. -echo "configure:886: checking for working const" >&5
  3009. -if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  3010. - echo $ac_n "(cached) $ac_c" 1>&6
  3011. +int test (int i, double x);
  3012. +struct s1 {int (*f) (int a);};
  3013. +struct s2 {int (*f) (double a);};
  3014. +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3015. +int argc;
  3016. +char **argv;
  3017. +int
  3018. +main ()
  3019. +{
  3020. +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3021. + ;
  3022. + return 0;
  3023. +}
  3024. +_ACEOF
  3025. +# Don't try gcc -ansi; that turns off useful extensions and
  3026. +# breaks some systems' header files.
  3027. +# AIX -qlanglvl=ansi
  3028. +# Ultrix and OSF/1 -std1
  3029. +# HP-UX 10.20 and later -Ae
  3030. +# HP-UX older versions -Aa -D_HPUX_SOURCE
  3031. +# SVR4 -Xc -D__EXTENSIONS__
  3032. +for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3033. +do
  3034. + CC="$ac_save_CC $ac_arg"
  3035. + rm -f conftest.$ac_objext
  3036. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3037. + (eval $ac_compile) 2>conftest.er1
  3038. + ac_status=$?
  3039. + grep -v '^ *+' conftest.er1 >conftest.err
  3040. + rm -f conftest.er1
  3041. + cat conftest.err >&5
  3042. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3043. + (exit $ac_status); } &&
  3044. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3045. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3046. + (eval $ac_try) 2>&5
  3047. + ac_status=$?
  3048. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3049. + (exit $ac_status); }; } &&
  3050. + { ac_try='test -s conftest.$ac_objext'
  3051. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3052. + (eval $ac_try) 2>&5
  3053. + ac_status=$?
  3054. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3055. + (exit $ac_status); }; }; then
  3056. + ac_cv_prog_cc_stdc=$ac_arg
  3057. +break
  3058. else
  3059. - cat > conftest.$ac_ext <<EOF
  3060. -#line 891 "configure"
  3061. -#include "confdefs.h"
  3062. + echo "$as_me: failed program was:" >&5
  3063. +sed 's/^/| /' conftest.$ac_ext >&5
  3064. -int main() {
  3065. +fi
  3066. +rm -f conftest.err conftest.$ac_objext
  3067. +done
  3068. +rm -f conftest.$ac_ext conftest.$ac_objext
  3069. +CC=$ac_save_CC
  3070. -/* Ultrix mips cc rejects this. */
  3071. -typedef int charset[2]; const charset x;
  3072. -/* SunOS 4.1.1 cc rejects this. */
  3073. -char const *const *ccp;
  3074. -char **p;
  3075. -/* NEC SVR4.0.2 mips cc rejects this. */
  3076. -struct point {int x, y;};
  3077. -static struct point const zero = {0,0};
  3078. -/* AIX XL C 1.02.0.0 rejects this.
  3079. - It does not let you subtract one const X* pointer from another in an arm
  3080. - of an if-expression whose if-part is not a constant expression */
  3081. -const char *g = "string";
  3082. -ccp = &g + (g ? g-g : 0);
  3083. -/* HPUX 7.0 cc rejects these. */
  3084. -++ccp;
  3085. -p = (char**) ccp;
  3086. -ccp = (char const *const *) p;
  3087. -{ /* SCO 3.2v4 cc rejects this. */
  3088. - char *t;
  3089. - char const *s = 0 ? (char *) 0 : (char const *) 0;
  3090. +fi
  3091. - *t++ = 0;
  3092. -}
  3093. -{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  3094. - int x[] = {25, 17};
  3095. - const int *foo = &x[0];
  3096. - ++foo;
  3097. -}
  3098. -{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  3099. - typedef const int *iptr;
  3100. - iptr p = 0;
  3101. - ++p;
  3102. -}
  3103. -{ /* AIX XL C 1.02.0.0 rejects this saying
  3104. - "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  3105. - struct s { int j; const int *ap[3]; };
  3106. - struct s *b; b->j = 5;
  3107. -}
  3108. -{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  3109. - const int foo = 10;
  3110. +case "x$ac_cv_prog_cc_stdc" in
  3111. + x|xno)
  3112. + echo "$as_me:$LINENO: result: none needed" >&5
  3113. +echo "${ECHO_T}none needed" >&6 ;;
  3114. + *)
  3115. + echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  3116. +echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  3117. + CC="$CC $ac_cv_prog_cc_stdc" ;;
  3118. +esac
  3119. +
  3120. +# Some people use a C++ compiler to compile C. Since we use `exit',
  3121. +# in C++ we need to declare it. In case someone uses the same compiler
  3122. +# for both compiling C and C++ we need to have the C++ compiler decide
  3123. +# the declaration of exit, since it's the most demanding environment.
  3124. +cat >conftest.$ac_ext <<_ACEOF
  3125. +#ifndef __cplusplus
  3126. + choke me
  3127. +#endif
  3128. +_ACEOF
  3129. +rm -f conftest.$ac_objext
  3130. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3131. + (eval $ac_compile) 2>conftest.er1
  3132. + ac_status=$?
  3133. + grep -v '^ *+' conftest.er1 >conftest.err
  3134. + rm -f conftest.er1
  3135. + cat conftest.err >&5
  3136. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3137. + (exit $ac_status); } &&
  3138. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3139. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3140. + (eval $ac_try) 2>&5
  3141. + ac_status=$?
  3142. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3143. + (exit $ac_status); }; } &&
  3144. + { ac_try='test -s conftest.$ac_objext'
  3145. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3146. + (eval $ac_try) 2>&5
  3147. + ac_status=$?
  3148. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3149. + (exit $ac_status); }; }; then
  3150. + for ac_declaration in \
  3151. + '' \
  3152. + 'extern "C" void std::exit (int) throw (); using std::exit;' \
  3153. + 'extern "C" void std::exit (int); using std::exit;' \
  3154. + 'extern "C" void exit (int) throw ();' \
  3155. + 'extern "C" void exit (int);' \
  3156. + 'void exit (int);'
  3157. +do
  3158. + cat >conftest.$ac_ext <<_ACEOF
  3159. +/* confdefs.h. */
  3160. +_ACEOF
  3161. +cat confdefs.h >>conftest.$ac_ext
  3162. +cat >>conftest.$ac_ext <<_ACEOF
  3163. +/* end confdefs.h. */
  3164. +$ac_declaration
  3165. +#include <stdlib.h>
  3166. +int
  3167. +main ()
  3168. +{
  3169. +exit (42);
  3170. + ;
  3171. + return 0;
  3172. }
  3173. +_ACEOF
  3174. +rm -f conftest.$ac_objext
  3175. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3176. + (eval $ac_compile) 2>conftest.er1
  3177. + ac_status=$?
  3178. + grep -v '^ *+' conftest.er1 >conftest.err
  3179. + rm -f conftest.er1
  3180. + cat conftest.err >&5
  3181. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3182. + (exit $ac_status); } &&
  3183. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3184. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3185. + (eval $ac_try) 2>&5
  3186. + ac_status=$?
  3187. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3188. + (exit $ac_status); }; } &&
  3189. + { ac_try='test -s conftest.$ac_objext'
  3190. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3191. + (eval $ac_try) 2>&5
  3192. + ac_status=$?
  3193. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3194. + (exit $ac_status); }; }; then
  3195. + :
  3196. +else
  3197. + echo "$as_me: failed program was:" >&5
  3198. +sed 's/^/| /' conftest.$ac_ext >&5
  3199. -; return 0; }
  3200. -EOF
  3201. -if { (eval echo configure:940: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  3202. - rm -rf conftest*
  3203. - ac_cv_c_const=yes
  3204. +continue
  3205. +fi
  3206. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3207. + cat >conftest.$ac_ext <<_ACEOF
  3208. +/* confdefs.h. */
  3209. +_ACEOF
  3210. +cat confdefs.h >>conftest.$ac_ext
  3211. +cat >>conftest.$ac_ext <<_ACEOF
  3212. +/* end confdefs.h. */
  3213. +$ac_declaration
  3214. +int
  3215. +main ()
  3216. +{
  3217. +exit (42);
  3218. + ;
  3219. + return 0;
  3220. +}
  3221. +_ACEOF
  3222. +rm -f conftest.$ac_objext
  3223. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3224. + (eval $ac_compile) 2>conftest.er1
  3225. + ac_status=$?
  3226. + grep -v '^ *+' conftest.er1 >conftest.err
  3227. + rm -f conftest.er1
  3228. + cat conftest.err >&5
  3229. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3230. + (exit $ac_status); } &&
  3231. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3232. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3233. + (eval $ac_try) 2>&5
  3234. + ac_status=$?
  3235. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3236. + (exit $ac_status); }; } &&
  3237. + { ac_try='test -s conftest.$ac_objext'
  3238. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3239. + (eval $ac_try) 2>&5
  3240. + ac_status=$?
  3241. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3242. + (exit $ac_status); }; }; then
  3243. + break
  3244. else
  3245. - echo "configure: failed program was:" >&5
  3246. - cat conftest.$ac_ext >&5
  3247. - rm -rf conftest*
  3248. - ac_cv_c_const=no
  3249. + echo "$as_me: failed program was:" >&5
  3250. +sed 's/^/| /' conftest.$ac_ext >&5
  3251. +
  3252. fi
  3253. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3254. +done
  3255. rm -f conftest*
  3256. +if test -n "$ac_declaration"; then
  3257. + echo '#ifdef __cplusplus' >>confdefs.h
  3258. + echo $ac_declaration >>confdefs.h
  3259. + echo '#endif' >>confdefs.h
  3260. fi
  3261. -echo "$ac_t""$ac_cv_c_const" 1>&6
  3262. +else
  3263. + echo "$as_me: failed program was:" >&5
  3264. +sed 's/^/| /' conftest.$ac_ext >&5
  3265. +
  3266. +fi
  3267. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3268. +ac_ext=c
  3269. +ac_cpp='$CPP $CPPFLAGS'
  3270. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3271. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3272. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3273. +DEPDIR="${am__leading_dot}deps"
  3274. +
  3275. + ac_config_commands="$ac_config_commands depfiles"
  3276. +
  3277. +
  3278. +am_make=${MAKE-make}
  3279. +cat > confinc << 'END'
  3280. +am__doit:
  3281. + @echo done
  3282. +.PHONY: am__doit
  3283. +END
  3284. +# If we don't find an include directive, just comment out the code.
  3285. +echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  3286. +echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
  3287. +am__include="#"
  3288. +am__quote=
  3289. +_am_result=none
  3290. +# First try GNU make style include.
  3291. +echo "include confinc" > confmf
  3292. +# We grep out `Entering directory' and `Leaving directory'
  3293. +# messages which can occur if `w' ends up in MAKEFLAGS.
  3294. +# In particular we don't look at `^make:' because GNU make might
  3295. +# be invoked under some other name (usually "gmake"), in which
  3296. +# case it prints its new name instead of `make'.
  3297. +if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  3298. + am__include=include
  3299. + am__quote=
  3300. + _am_result=GNU
  3301. +fi
  3302. +# Now try BSD make style include.
  3303. +if test "$am__include" = "#"; then
  3304. + echo '.include "confinc"' > confmf
  3305. + if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  3306. + am__include=.include
  3307. + am__quote="\""
  3308. + _am_result=BSD
  3309. + fi
  3310. +fi
  3311. +
  3312. +
  3313. +echo "$as_me:$LINENO: result: $_am_result" >&5
  3314. +echo "${ECHO_T}$_am_result" >&6
  3315. +rm -f confinc confmf
  3316. +
  3317. +# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
  3318. +if test "${enable_dependency_tracking+set}" = set; then
  3319. + enableval="$enable_dependency_tracking"
  3320. +
  3321. +fi;
  3322. +if test "x$enable_dependency_tracking" != xno; then
  3323. + am_depcomp="$ac_aux_dir/depcomp"
  3324. + AMDEPBACKSLASH='\'
  3325. +fi
  3326. +
  3327. +
  3328. +if test "x$enable_dependency_tracking" != xno; then
  3329. + AMDEP_TRUE=
  3330. + AMDEP_FALSE='#'
  3331. +else
  3332. + AMDEP_TRUE='#'
  3333. + AMDEP_FALSE=
  3334. +fi
  3335. +
  3336. +
  3337. +
  3338. +
  3339. +depcc="$CC" am_compiler_list=
  3340. +
  3341. +echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3342. +echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  3343. +if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3344. + echo $ECHO_N "(cached) $ECHO_C" >&6
  3345. +else
  3346. + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3347. + # We make a subdir and do the tests there. Otherwise we can end up
  3348. + # making bogus files that we don't know about and never remove. For
  3349. + # instance it was reported that on HP-UX the gcc test will end up
  3350. + # making a dummy file named `D' -- because `-MD' means `put the output
  3351. + # in D'.
  3352. + mkdir conftest.dir
  3353. + # Copy depcomp to subdir because otherwise we won't find it if we're
  3354. + # using a relative directory.
  3355. + cp "$am_depcomp" conftest.dir
  3356. + cd conftest.dir
  3357. + # We will build objects and dependencies in a subdirectory because
  3358. + # it helps to detect inapplicable dependency modes. For instance
  3359. + # both Tru64's cc and ICC support -MD to output dependencies as a
  3360. + # side effect of compilation, but ICC will put the dependencies in
  3361. + # the current directory while Tru64 will put them in the object
  3362. + # directory.
  3363. + mkdir sub
  3364. +
  3365. + am_cv_CC_dependencies_compiler_type=none
  3366. + if test "$am_compiler_list" = ""; then
  3367. + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3368. + fi
  3369. + for depmode in $am_compiler_list; do
  3370. + # Setup a source with many dependencies, because some compilers
  3371. + # like to wrap large dependency lists on column 80 (with \), and
  3372. + # we should not choose a depcomp mode which is confused by this.
  3373. + #
  3374. + # We need to recreate these files for each test, as the compiler may
  3375. + # overwrite some of them when testing with obscure command lines.
  3376. + # This happens at least with the AIX C compiler.
  3377. + : > sub/conftest.c
  3378. + for i in 1 2 3 4 5 6; do
  3379. + echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3380. + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3381. + # Solaris 8's {/usr,}/bin/sh.
  3382. + touch sub/conftst$i.h
  3383. + done
  3384. + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3385. +
  3386. + case $depmode in
  3387. + nosideeffect)
  3388. + # after this tag, mechanisms are not by side-effect, so they'll
  3389. + # only be used when explicitly requested
  3390. + if test "x$enable_dependency_tracking" = xyes; then
  3391. + continue
  3392. + else
  3393. + break
  3394. + fi
  3395. + ;;
  3396. + none) break ;;
  3397. + esac
  3398. + # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3399. + # mode. It turns out that the SunPro C++ compiler does not properly
  3400. + # handle `-M -o', and we need to detect this.
  3401. + if depmode=$depmode \
  3402. + source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3403. + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3404. + $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3405. + >/dev/null 2>conftest.err &&
  3406. + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3407. + grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3408. + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3409. + # icc doesn't choke on unknown options, it will just issue warnings
  3410. + # or remarks (even with -Werror). So we grep stderr for any message
  3411. + # that says an option was ignored or not supported.
  3412. + # When given -MP, icc 7.0 and 7.1 complain thusly:
  3413. + # icc: Command line warning: ignoring option '-M'; no argument required
  3414. + # The diagnosis changed in icc 8.0:
  3415. + # icc: Command line remark: option '-MP' not supported
  3416. + if (grep 'ignoring option' conftest.err ||
  3417. + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3418. + am_cv_CC_dependencies_compiler_type=$depmode
  3419. + break
  3420. + fi
  3421. + fi
  3422. + done
  3423. +
  3424. + cd ..
  3425. + rm -rf conftest.dir
  3426. +else
  3427. + am_cv_CC_dependencies_compiler_type=none
  3428. +fi
  3429. +
  3430. +fi
  3431. +echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3432. +echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
  3433. +CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3434. +
  3435. +
  3436. +
  3437. +if
  3438. + test "x$enable_dependency_tracking" != xno \
  3439. + && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3440. + am__fastdepCC_TRUE=
  3441. + am__fastdepCC_FALSE='#'
  3442. +else
  3443. + am__fastdepCC_TRUE='#'
  3444. + am__fastdepCC_FALSE=
  3445. +fi
  3446. +
  3447. +
  3448. +
  3449. +
  3450. +echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  3451. +echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  3452. +if test "${ac_cv_c_const+set}" = set; then
  3453. + echo $ECHO_N "(cached) $ECHO_C" >&6
  3454. +else
  3455. + cat >conftest.$ac_ext <<_ACEOF
  3456. +/* confdefs.h. */
  3457. +_ACEOF
  3458. +cat confdefs.h >>conftest.$ac_ext
  3459. +cat >>conftest.$ac_ext <<_ACEOF
  3460. +/* end confdefs.h. */
  3461. +
  3462. +int
  3463. +main ()
  3464. +{
  3465. +/* FIXME: Include the comments suggested by Paul. */
  3466. +#ifndef __cplusplus
  3467. + /* Ultrix mips cc rejects this. */
  3468. + typedef int charset[2];
  3469. + const charset x;
  3470. + /* SunOS 4.1.1 cc rejects this. */
  3471. + char const *const *ccp;
  3472. + char **p;
  3473. + /* NEC SVR4.0.2 mips cc rejects this. */
  3474. + struct point {int x, y;};
  3475. + static struct point const zero = {0,0};
  3476. + /* AIX XL C 1.02.0.0 rejects this.
  3477. + It does not let you subtract one const X* pointer from another in
  3478. + an arm of an if-expression whose if-part is not a constant
  3479. + expression */
  3480. + const char *g = "string";
  3481. + ccp = &g + (g ? g-g : 0);
  3482. + /* HPUX 7.0 cc rejects these. */
  3483. + ++ccp;
  3484. + p = (char**) ccp;
  3485. + ccp = (char const *const *) p;
  3486. + { /* SCO 3.2v4 cc rejects this. */
  3487. + char *t;
  3488. + char const *s = 0 ? (char *) 0 : (char const *) 0;
  3489. +
  3490. + *t++ = 0;
  3491. + }
  3492. + { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  3493. + int x[] = {25, 17};
  3494. + const int *foo = &x[0];
  3495. + ++foo;
  3496. + }
  3497. + { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  3498. + typedef const int *iptr;
  3499. + iptr p = 0;
  3500. + ++p;
  3501. + }
  3502. + { /* AIX XL C 1.02.0.0 rejects this saying
  3503. + "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  3504. + struct s { int j; const int *ap[3]; };
  3505. + struct s *b; b->j = 5;
  3506. + }
  3507. + { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  3508. + const int foo = 10;
  3509. + }
  3510. +#endif
  3511. +
  3512. + ;
  3513. + return 0;
  3514. +}
  3515. +_ACEOF
  3516. +rm -f conftest.$ac_objext
  3517. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3518. + (eval $ac_compile) 2>conftest.er1
  3519. + ac_status=$?
  3520. + grep -v '^ *+' conftest.er1 >conftest.err
  3521. + rm -f conftest.er1
  3522. + cat conftest.err >&5
  3523. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3524. + (exit $ac_status); } &&
  3525. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3526. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3527. + (eval $ac_try) 2>&5
  3528. + ac_status=$?
  3529. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3530. + (exit $ac_status); }; } &&
  3531. + { ac_try='test -s conftest.$ac_objext'
  3532. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3533. + (eval $ac_try) 2>&5
  3534. + ac_status=$?
  3535. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3536. + (exit $ac_status); }; }; then
  3537. + ac_cv_c_const=yes
  3538. +else
  3539. + echo "$as_me: failed program was:" >&5
  3540. +sed 's/^/| /' conftest.$ac_ext >&5
  3541. +
  3542. +ac_cv_c_const=no
  3543. +fi
  3544. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3545. +fi
  3546. +echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  3547. +echo "${ECHO_T}$ac_cv_c_const" >&6
  3548. if test $ac_cv_c_const = no; then
  3549. - cat >> confdefs.h <<\EOF
  3550. -#define const
  3551. -EOF
  3552. +
  3553. +cat >>confdefs.h <<\_ACEOF
  3554. +#define const
  3555. +_ACEOF
  3556. fi
  3557. -if test $ac_cv_prog_gcc = yes; then
  3558. +if test $ac_cv_c_compiler_gnu = yes; then
  3559. CCOPTS='-O2 -funroll-loops -fomit-frame-pointer -Wall'
  3560. CFLAGS="$CCOPTS"
  3561. fi
  3562. +
  3563. # Check whether --with-pf_packet or --without-pf_packet was given.
  3564. if test "${with_pf_packet+set}" = set; then
  3565. withval="$with_pf_packet"
  3566. @@ -970,19 +3230,18 @@ if test "${with_pf_packet+set}" = set; t
  3567. with_pf_packet=yes
  3568. else
  3569. with_pf_packet=no
  3570. -fi
  3571. +fi;
  3572. # Check whether --with-fast_x86_check or --without-fast_x86_check was given.
  3573. if test "${with_fast_x86_check+set}" = set; then
  3574. withval="$with_fast_x86_check"
  3575. \
  3576. - cat >> confdefs.h <<\EOF
  3577. + cat >>confdefs.h <<\_ACEOF
  3578. #define LIBNET_FAST_X86_CHECK 1
  3579. -EOF
  3580. -
  3581. -fi
  3582. +_ACEOF
  3583. +fi;
  3584. # Find a good install program. We prefer a C program (faster),
  3585. # so one script is as good as another. But avoid the broken or
  3586. @@ -991,604 +3250,5569 @@ fi
  3587. # SunOS /usr/etc/install
  3588. # IRIX /sbin/install
  3589. # AIX /bin/install
  3590. +# AmigaOS /C/install, which installs bootblocks on floppy discs
  3591. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3592. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3593. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3594. +# OS/2's system install, which has a completely different semantic
  3595. # ./install, which can be erroneously created by make from ./install.sh.
  3596. -echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  3597. -echo "configure:1000: checking for a BSD compatible install" >&5
  3598. +echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  3599. +echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  3600. if test -z "$INSTALL"; then
  3601. -if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  3602. - echo $ac_n "(cached) $ac_c" 1>&6
  3603. +if test "${ac_cv_path_install+set}" = set; then
  3604. + echo $ECHO_N "(cached) $ECHO_C" >&6
  3605. else
  3606. - IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
  3607. - for ac_dir in $PATH; do
  3608. - # Account for people who put trailing slashes in PATH elements.
  3609. - case "$ac_dir/" in
  3610. - /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  3611. - *)
  3612. - # OSF1 and SCO ODT 3.0 have their own names for install.
  3613. - # Don't use installbsd from OSF since it installs stuff as root
  3614. - # by default.
  3615. - for ac_prog in ginstall scoinst install; do
  3616. - if test -f $ac_dir/$ac_prog; then
  3617. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3618. +for as_dir in $PATH
  3619. +do
  3620. + IFS=$as_save_IFS
  3621. + test -z "$as_dir" && as_dir=.
  3622. + # Account for people who put trailing slashes in PATH elements.
  3623. +case $as_dir/ in
  3624. + ./ | .// | /cC/* | \
  3625. + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3626. + ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  3627. + /usr/ucb/* ) ;;
  3628. + *)
  3629. + # OSF1 and SCO ODT 3.0 have their own names for install.
  3630. + # Don't use installbsd from OSF since it installs stuff as root
  3631. + # by default.
  3632. + for ac_prog in ginstall scoinst install; do
  3633. + for ac_exec_ext in '' $ac_executable_extensions; do
  3634. + if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  3635. if test $ac_prog = install &&
  3636. - grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  3637. + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3638. # AIX install. It has an incompatible calling convention.
  3639. :
  3640. + elif test $ac_prog = install &&
  3641. + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3642. + # program-specific install script used by HP pwplus--don't use.
  3643. + :
  3644. else
  3645. - ac_cv_path_install="$ac_dir/$ac_prog -c"
  3646. - break 2
  3647. + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3648. + break 3
  3649. fi
  3650. fi
  3651. done
  3652. - ;;
  3653. - esac
  3654. - done
  3655. - IFS="$ac_save_IFS"
  3656. + done
  3657. + ;;
  3658. +esac
  3659. +done
  3660. +
  3661. fi
  3662. if test "${ac_cv_path_install+set}" = set; then
  3663. - INSTALL="$ac_cv_path_install"
  3664. + INSTALL=$ac_cv_path_install
  3665. else
  3666. # As a last resort, use the slow shell script. We don't cache a
  3667. # path for INSTALL within a source directory, because that will
  3668. # break other packages using the cache if that directory is
  3669. # removed, or if the path is relative.
  3670. - INSTALL="$ac_install_sh"
  3671. + INSTALL=$ac_install_sh
  3672. fi
  3673. fi
  3674. -echo "$ac_t""$INSTALL" 1>&6
  3675. +echo "$as_me:$LINENO: result: $INSTALL" >&5
  3676. +echo "${ECHO_T}$INSTALL" >&6
  3677. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3678. # It thinks the first close brace ends the variable substitution.
  3679. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3680. -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  3681. +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3682. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3683. -echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  3684. -echo "configure:1053: checking whether ${MAKE-make} sets \${MAKE}" >&5
  3685. -set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
  3686. -if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  3687. - echo $ac_n "(cached) $ac_c" 1>&6
  3688. +echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3689. +echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  3690. +set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  3691. +if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  3692. + echo $ECHO_N "(cached) $ECHO_C" >&6
  3693. else
  3694. - cat > conftestmake <<\EOF
  3695. + cat >conftest.make <<\_ACEOF
  3696. all:
  3697. - @echo 'ac_maketemp="${MAKE}"'
  3698. -EOF
  3699. + @echo 'ac_maketemp="$(MAKE)"'
  3700. +_ACEOF
  3701. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  3702. -eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  3703. +eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  3704. if test -n "$ac_maketemp"; then
  3705. eval ac_cv_prog_make_${ac_make}_set=yes
  3706. else
  3707. eval ac_cv_prog_make_${ac_make}_set=no
  3708. fi
  3709. -rm -f conftestmake
  3710. +rm -f conftest.make
  3711. fi
  3712. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  3713. - echo "$ac_t""yes" 1>&6
  3714. + echo "$as_me:$LINENO: result: yes" >&5
  3715. +echo "${ECHO_T}yes" >&6
  3716. SET_MAKE=
  3717. else
  3718. - echo "$ac_t""no" 1>&6
  3719. + echo "$as_me:$LINENO: result: no" >&5
  3720. +echo "${ECHO_T}no" >&6
  3721. SET_MAKE="MAKE=${MAKE-make}"
  3722. fi
  3723. for ac_prog in ranlib
  3724. do
  3725. -# Extract the first word of "$ac_prog", so it can be a program name with args.
  3726. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  3727. set dummy $ac_prog; ac_word=$2
  3728. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3729. -echo "configure:1084: checking for $ac_word" >&5
  3730. -if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  3731. - echo $ac_n "(cached) $ac_c" 1>&6
  3732. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  3733. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3734. +if test "${ac_cv_prog_RANLIB+set}" = set; then
  3735. + echo $ECHO_N "(cached) $ECHO_C" >&6
  3736. else
  3737. if test -n "$RANLIB"; then
  3738. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  3739. else
  3740. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  3741. - ac_dummy="$PATH"
  3742. - for ac_dir in $ac_dummy; do
  3743. - test -z "$ac_dir" && ac_dir=.
  3744. - if test -f $ac_dir/$ac_word; then
  3745. - ac_cv_prog_RANLIB="$ac_prog"
  3746. - break
  3747. - fi
  3748. - done
  3749. - IFS="$ac_save_ifs"
  3750. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3751. +for as_dir in $PATH
  3752. +do
  3753. + IFS=$as_save_IFS
  3754. + test -z "$as_dir" && as_dir=.
  3755. + for ac_exec_ext in '' $ac_executable_extensions; do
  3756. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3757. + ac_cv_prog_RANLIB="$ac_prog"
  3758. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3759. + break 2
  3760. + fi
  3761. +done
  3762. +done
  3763. +
  3764. fi
  3765. fi
  3766. -RANLIB="$ac_cv_prog_RANLIB"
  3767. +RANLIB=$ac_cv_prog_RANLIB
  3768. if test -n "$RANLIB"; then
  3769. - echo "$ac_t""$RANLIB" 1>&6
  3770. + echo "$as_me:$LINENO: result: $RANLIB" >&5
  3771. +echo "${ECHO_T}$RANLIB" >&6
  3772. else
  3773. - echo "$ac_t""no" 1>&6
  3774. + echo "$as_me:$LINENO: result: no" >&5
  3775. +echo "${ECHO_T}no" >&6
  3776. fi
  3777. -test -n "$RANLIB" && break
  3778. + test -n "$RANLIB" && break
  3779. done
  3780. test -n "$RANLIB" || RANLIB="@true"
  3781. for ac_prog in ar
  3782. do
  3783. -# Extract the first word of "$ac_prog", so it can be a program name with args.
  3784. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  3785. set dummy $ac_prog; ac_word=$2
  3786. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3787. -echo "configure:1119: checking for $ac_word" >&5
  3788. -if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
  3789. - echo $ac_n "(cached) $ac_c" 1>&6
  3790. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  3791. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3792. +if test "${ac_cv_prog_AR+set}" = set; then
  3793. + echo $ECHO_N "(cached) $ECHO_C" >&6
  3794. else
  3795. if test -n "$AR"; then
  3796. ac_cv_prog_AR="$AR" # Let the user override the test.
  3797. else
  3798. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  3799. - ac_dummy="$PATH"
  3800. - for ac_dir in $ac_dummy; do
  3801. - test -z "$ac_dir" && ac_dir=.
  3802. - if test -f $ac_dir/$ac_word; then
  3803. - ac_cv_prog_AR="$ac_prog"
  3804. - break
  3805. - fi
  3806. - done
  3807. - IFS="$ac_save_ifs"
  3808. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3809. +for as_dir in $PATH
  3810. +do
  3811. + IFS=$as_save_IFS
  3812. + test -z "$as_dir" && as_dir=.
  3813. + for ac_exec_ext in '' $ac_executable_extensions; do
  3814. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3815. + ac_cv_prog_AR="$ac_prog"
  3816. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3817. + break 2
  3818. + fi
  3819. +done
  3820. +done
  3821. +
  3822. fi
  3823. fi
  3824. -AR="$ac_cv_prog_AR"
  3825. +AR=$ac_cv_prog_AR
  3826. if test -n "$AR"; then
  3827. - echo "$ac_t""$AR" 1>&6
  3828. + echo "$as_me:$LINENO: result: $AR" >&5
  3829. +echo "${ECHO_T}$AR" >&6
  3830. else
  3831. - echo "$ac_t""no" 1>&6
  3832. + echo "$as_me:$LINENO: result: no" >&5
  3833. +echo "${ECHO_T}no" >&6
  3834. fi
  3835. -test -n "$AR" && break
  3836. + test -n "$AR" && break
  3837. done
  3838. test -n "$AR" || AR="@true"
  3839. for ac_prog in ln
  3840. do
  3841. -# Extract the first word of "$ac_prog", so it can be a program name with args.
  3842. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  3843. set dummy $ac_prog; ac_word=$2
  3844. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  3845. -echo "configure:1154: checking for $ac_word" >&5
  3846. -if eval "test \"`echo '$''{'ac_cv_prog_LN'+set}'`\" = set"; then
  3847. - echo $ac_n "(cached) $ac_c" 1>&6
  3848. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  3849. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3850. +if test "${ac_cv_prog_LN+set}" = set; then
  3851. + echo $ECHO_N "(cached) $ECHO_C" >&6
  3852. else
  3853. if test -n "$LN"; then
  3854. ac_cv_prog_LN="$LN" # Let the user override the test.
  3855. else
  3856. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  3857. - ac_dummy="$PATH"
  3858. - for ac_dir in $ac_dummy; do
  3859. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3860. +for as_dir in $PATH
  3861. +do
  3862. + IFS=$as_save_IFS
  3863. + test -z "$as_dir" && as_dir=.
  3864. + for ac_exec_ext in '' $ac_executable_extensions; do
  3865. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3866. + ac_cv_prog_LN="$ac_prog"
  3867. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3868. + break 2
  3869. + fi
  3870. +done
  3871. +done
  3872. +
  3873. +fi
  3874. +fi
  3875. +LN=$ac_cv_prog_LN
  3876. +if test -n "$LN"; then
  3877. + echo "$as_me:$LINENO: result: $LN" >&5
  3878. +echo "${ECHO_T}$LN" >&6
  3879. +else
  3880. + echo "$as_me:$LINENO: result: no" >&5
  3881. +echo "${ECHO_T}no" >&6
  3882. +fi
  3883. +
  3884. + test -n "$LN" && break
  3885. +done
  3886. +test -n "$LN" || LN="@true"
  3887. +
  3888. +
  3889. +# Check whether --enable-shared or --disable-shared was given.
  3890. +if test "${enable_shared+set}" = set; then
  3891. + enableval="$enable_shared"
  3892. + p=${PACKAGE-default}
  3893. +case $enableval in
  3894. +yes) enable_shared=yes ;;
  3895. +no) enable_shared=no ;;
  3896. +*)
  3897. + enable_shared=no
  3898. + # Look at the argument we got. We use all the common list separators.
  3899. + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  3900. + for pkg in $enableval; do
  3901. + if test "X$pkg" = "X$p"; then
  3902. + enable_shared=yes
  3903. + fi
  3904. + done
  3905. + IFS="$ac_save_ifs"
  3906. + ;;
  3907. +esac
  3908. +else
  3909. + enable_shared=yes
  3910. +fi;
  3911. +# Check whether --enable-static or --disable-static was given.
  3912. +if test "${enable_static+set}" = set; then
  3913. + enableval="$enable_static"
  3914. + p=${PACKAGE-default}
  3915. +case $enableval in
  3916. +yes) enable_static=yes ;;
  3917. +no) enable_static=no ;;
  3918. +*)
  3919. + enable_static=no
  3920. + # Look at the argument we got. We use all the common list separators.
  3921. + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  3922. + for pkg in $enableval; do
  3923. + if test "X$pkg" = "X$p"; then
  3924. + enable_static=yes
  3925. + fi
  3926. + done
  3927. + IFS="$ac_save_ifs"
  3928. + ;;
  3929. +esac
  3930. +else
  3931. + enable_static=yes
  3932. +fi;
  3933. +# Check whether --enable-fast-install or --disable-fast-install was given.
  3934. +if test "${enable_fast_install+set}" = set; then
  3935. + enableval="$enable_fast_install"
  3936. + p=${PACKAGE-default}
  3937. +case $enableval in
  3938. +yes) enable_fast_install=yes ;;
  3939. +no) enable_fast_install=no ;;
  3940. +*)
  3941. + enable_fast_install=no
  3942. + # Look at the argument we got. We use all the common list separators.
  3943. + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  3944. + for pkg in $enableval; do
  3945. + if test "X$pkg" = "X$p"; then
  3946. + enable_fast_install=yes
  3947. + fi
  3948. + done
  3949. + IFS="$ac_save_ifs"
  3950. + ;;
  3951. +esac
  3952. +else
  3953. + enable_fast_install=yes
  3954. +fi;
  3955. +# Find the correct PATH separator. Usually this is `:', but
  3956. +# DJGPP uses `;' like DOS.
  3957. +if test "X${PATH_SEPARATOR+set}" != Xset; then
  3958. + UNAME=${UNAME-`uname 2>/dev/null`}
  3959. + case X$UNAME in
  3960. + *-DOS) lt_cv_sys_path_separator=';' ;;
  3961. + *) lt_cv_sys_path_separator=':' ;;
  3962. + esac
  3963. + PATH_SEPARATOR=$lt_cv_sys_path_separator
  3964. +fi
  3965. +
  3966. +
  3967. +# Check whether --with-gnu-ld or --without-gnu-ld was given.
  3968. +if test "${with_gnu_ld+set}" = set; then
  3969. + withval="$with_gnu_ld"
  3970. + test "$withval" = no || with_gnu_ld=yes
  3971. +else
  3972. + with_gnu_ld=no
  3973. +fi;
  3974. +ac_prog=ld
  3975. +if test "$GCC" = yes; then
  3976. + # Check if gcc -print-prog-name=ld gives a path.
  3977. + echo "$as_me:$LINENO: checking for ld used by GCC" >&5
  3978. +echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
  3979. + case $host in
  3980. + *-*-mingw*)
  3981. + # gcc leaves a trailing carriage return which upsets mingw
  3982. + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3983. + *)
  3984. + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3985. + esac
  3986. + case $ac_prog in
  3987. + # Accept absolute paths.
  3988. + [\\/]* | [A-Za-z]:[\\/]*)
  3989. + re_direlt='/[^/][^/]*/\.\./'
  3990. + # Canonicalize the path of ld
  3991. + ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  3992. + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  3993. + ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  3994. + done
  3995. + test -z "$LD" && LD="$ac_prog"
  3996. + ;;
  3997. + "")
  3998. + # If it fails, then pretend we aren't using GCC.
  3999. + ac_prog=ld
  4000. + ;;
  4001. + *)
  4002. + # If it is relative, then search for the first ld in PATH.
  4003. + with_gnu_ld=unknown
  4004. + ;;
  4005. + esac
  4006. +elif test "$with_gnu_ld" = yes; then
  4007. + echo "$as_me:$LINENO: checking for GNU ld" >&5
  4008. +echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  4009. +else
  4010. + echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  4011. +echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  4012. +fi
  4013. +if test "${lt_cv_path_LD+set}" = set; then
  4014. + echo $ECHO_N "(cached) $ECHO_C" >&6
  4015. +else
  4016. + if test -z "$LD"; then
  4017. + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4018. + for ac_dir in $PATH; do
  4019. test -z "$ac_dir" && ac_dir=.
  4020. - if test -f $ac_dir/$ac_word; then
  4021. - ac_cv_prog_LN="$ac_prog"
  4022. - break
  4023. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4024. + lt_cv_path_LD="$ac_dir/$ac_prog"
  4025. + # Check to see if the program is GNU ld. I'd rather use --version,
  4026. + # but apparently some GNU ld's only accept -v.
  4027. + # Break only if it was the GNU/non-GNU ld that we prefer.
  4028. + if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
  4029. + test "$with_gnu_ld" != no && break
  4030. + else
  4031. + test "$with_gnu_ld" != yes && break
  4032. + fi
  4033. fi
  4034. done
  4035. IFS="$ac_save_ifs"
  4036. +else
  4037. + lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4038. fi
  4039. fi
  4040. -LN="$ac_cv_prog_LN"
  4041. -if test -n "$LN"; then
  4042. - echo "$ac_t""$LN" 1>&6
  4043. +
  4044. +LD="$lt_cv_path_LD"
  4045. +if test -n "$LD"; then
  4046. + echo "$as_me:$LINENO: result: $LD" >&5
  4047. +echo "${ECHO_T}$LD" >&6
  4048. else
  4049. - echo "$ac_t""no" 1>&6
  4050. + echo "$as_me:$LINENO: result: no" >&5
  4051. +echo "${ECHO_T}no" >&6
  4052. +fi
  4053. +test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  4054. +echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  4055. + { (exit 1); exit 1; }; }
  4056. +echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  4057. +echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  4058. +if test "${lt_cv_prog_gnu_ld+set}" = set; then
  4059. + echo $ECHO_N "(cached) $ECHO_C" >&6
  4060. +else
  4061. + # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  4062. +if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  4063. + lt_cv_prog_gnu_ld=yes
  4064. +else
  4065. + lt_cv_prog_gnu_ld=no
  4066. fi
  4067. +fi
  4068. +echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  4069. +echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
  4070. +with_gnu_ld=$lt_cv_prog_gnu_ld
  4071. -test -n "$LN" && break
  4072. -done
  4073. -test -n "$LN" || LN="@true"
  4074. +echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  4075. +echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
  4076. +if test "${lt_cv_ld_reload_flag+set}" = set; then
  4077. + echo $ECHO_N "(cached) $ECHO_C" >&6
  4078. +else
  4079. + lt_cv_ld_reload_flag='-r'
  4080. +fi
  4081. +echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  4082. +echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
  4083. +reload_flag=$lt_cv_ld_reload_flag
  4084. +test -n "$reload_flag" && reload_flag=" $reload_flag"
  4085. -for ac_func in strerror
  4086. +echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  4087. +echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
  4088. +if test "${lt_cv_path_NM+set}" = set; then
  4089. + echo $ECHO_N "(cached) $ECHO_C" >&6
  4090. +else
  4091. + if test -n "$NM"; then
  4092. + # Let the user override the test.
  4093. + lt_cv_path_NM="$NM"
  4094. +else
  4095. + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4096. + for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
  4097. + test -z "$ac_dir" && ac_dir=.
  4098. + tmp_nm=$ac_dir/${ac_tool_prefix}nm
  4099. + if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
  4100. + # Check to see if the nm accepts a BSD-compat flag.
  4101. + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4102. + # nm: unknown option "B" ignored
  4103. + # Tru64's nm complains that /dev/null is an invalid object file
  4104. + if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
  4105. + lt_cv_path_NM="$tmp_nm -B"
  4106. + break
  4107. + elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
  4108. + lt_cv_path_NM="$tmp_nm -p"
  4109. + break
  4110. + else
  4111. + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4112. + continue # so that we can try to find one that supports BSD flags
  4113. + fi
  4114. + fi
  4115. + done
  4116. + IFS="$ac_save_ifs"
  4117. + test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  4118. +fi
  4119. +fi
  4120. +
  4121. +NM="$lt_cv_path_NM"
  4122. +echo "$as_me:$LINENO: result: $NM" >&5
  4123. +echo "${ECHO_T}$NM" >&6
  4124. +
  4125. +echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  4126. +echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
  4127. +if test "${lt_cv_path_SED+set}" = set; then
  4128. + echo $ECHO_N "(cached) $ECHO_C" >&6
  4129. +else
  4130. + # Loop through the user's path and test for sed and gsed.
  4131. +# Then use that list of sed's as ones to test for truncation.
  4132. +as_executable_p="test -f"
  4133. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4134. +for as_dir in $PATH
  4135. do
  4136. -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  4137. -echo "configure:1188: checking for $ac_func" >&5
  4138. -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  4139. - echo $ac_n "(cached) $ac_c" 1>&6
  4140. + IFS=$as_save_IFS
  4141. + test -z "$as_dir" && as_dir=.
  4142. + for ac_prog in sed gsed; do
  4143. + for ac_exec_ext in '' $ac_executable_extensions; do
  4144. + if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  4145. + _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
  4146. + fi
  4147. + done
  4148. + done
  4149. +done
  4150. +
  4151. + # Create a temporary directory, and hook for its removal unless debugging.
  4152. +$debug ||
  4153. +{
  4154. + trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  4155. + trap '{ (exit 1); exit 1; }' 1 2 13 15
  4156. +}
  4157. +
  4158. +# Create a (secure) tmp directory for tmp files.
  4159. +: ${TMPDIR=/tmp}
  4160. +{
  4161. + tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
  4162. + test -n "$tmp" && test -d "$tmp"
  4163. +} ||
  4164. +{
  4165. + tmp=$TMPDIR/sed$$-$RANDOM
  4166. + (umask 077 && mkdir $tmp)
  4167. +} ||
  4168. +{
  4169. + echo "$me: cannot create a temporary directory in $TMPDIR" >&2
  4170. + { (exit 1); exit 1; }
  4171. +}
  4172. + _max=0
  4173. + _count=0
  4174. + # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  4175. + # along with /bin/sed that truncates output.
  4176. + for _sed in $_sed_list /usr/xpg4/bin/sed; do
  4177. + test ! -f ${_sed} && break
  4178. + cat /dev/null > "$tmp/sed.in"
  4179. + _count=0
  4180. + echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
  4181. + # Check for GNU sed and select it if it is found.
  4182. + if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
  4183. + lt_cv_path_SED=${_sed}
  4184. + break
  4185. + fi
  4186. + while true; do
  4187. + cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
  4188. + mv "$tmp/sed.tmp" "$tmp/sed.in"
  4189. + cp "$tmp/sed.in" "$tmp/sed.nl"
  4190. + echo >>"$tmp/sed.nl"
  4191. + ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
  4192. + cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
  4193. + # 40000 chars as input seems more than enough
  4194. + test $_count -gt 10 && break
  4195. + _count=`expr $_count + 1`
  4196. + if test $_count -gt $_max; then
  4197. + _max=$_count
  4198. + lt_cv_path_SED=$_sed
  4199. + fi
  4200. + done
  4201. + done
  4202. + rm -rf "$tmp"
  4203. +
  4204. +fi
  4205. +
  4206. +if test "X$SED" != "X"; then
  4207. + lt_cv_path_SED=$SED
  4208. else
  4209. + SED=$lt_cv_path_SED
  4210. +fi
  4211. +echo "$as_me:$LINENO: result: $SED" >&5
  4212. +echo "${ECHO_T}$SED" >&6
  4213. +
  4214. +echo "$as_me:$LINENO: checking whether ln -s works" >&5
  4215. +echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
  4216. +LN_S=$as_ln_s
  4217. +if test "$LN_S" = "ln -s"; then
  4218. + echo "$as_me:$LINENO: result: yes" >&5
  4219. +echo "${ECHO_T}yes" >&6
  4220. +else
  4221. + echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  4222. +echo "${ECHO_T}no, using $LN_S" >&6
  4223. +fi
  4224. +
  4225. +echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
  4226. +echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
  4227. +if test "${lt_cv_deplibs_check_method+set}" = set; then
  4228. + echo $ECHO_N "(cached) $ECHO_C" >&6
  4229. +else
  4230. + lt_cv_file_magic_cmd='$MAGIC_CMD'
  4231. +lt_cv_file_magic_test_file=
  4232. +lt_cv_deplibs_check_method='unknown'
  4233. +# Need to set the preceding variable on all platforms that support
  4234. +# interlibrary dependencies.
  4235. +# 'none' -- dependencies not supported.
  4236. +# `unknown' -- same as none, but documents that we really don't know.
  4237. +# 'pass_all' -- all dependencies passed with no checks.
  4238. +# 'test_compile' -- check by making test program.
  4239. +# 'file_magic [[regex]]' -- check by looking for files in library path
  4240. +# which responds to the $file_magic_cmd with a given egrep regex.
  4241. +# If you have `file' or equivalent on your system and you're not sure
  4242. +# whether `pass_all' will *always* work, you probably want this one.
  4243. +
  4244. +case $host_os in
  4245. +aix4* | aix5*)
  4246. + lt_cv_deplibs_check_method=pass_all
  4247. + ;;
  4248. +
  4249. +beos*)
  4250. + lt_cv_deplibs_check_method=pass_all
  4251. + ;;
  4252. +
  4253. +bsdi4*)
  4254. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4255. + lt_cv_file_magic_cmd='/usr/bin/file -L'
  4256. + lt_cv_file_magic_test_file=/shlib/libc.so
  4257. + ;;
  4258. +
  4259. +cygwin* | mingw* | pw32*)
  4260. + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  4261. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  4262. + ;;
  4263. +
  4264. +darwin* | rhapsody*)
  4265. + lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
  4266. + lt_cv_file_magic_cmd='/usr/bin/file -L'
  4267. + case "$host_os" in
  4268. + rhapsody* | darwin1.[012])
  4269. + lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
  4270. + ;;
  4271. + *) # Darwin 1.3 on
  4272. + lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
  4273. + ;;
  4274. + esac
  4275. + ;;
  4276. +
  4277. +freebsd*)
  4278. + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  4279. + case $host_cpu in
  4280. + i*86 )
  4281. + # Not sure whether the presence of OpenBSD here was a mistake.
  4282. + # Let's accept both of them until this is cleared up.
  4283. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
  4284. + lt_cv_file_magic_cmd=/usr/bin/file
  4285. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4286. + ;;
  4287. + esac
  4288. + else
  4289. + lt_cv_deplibs_check_method=pass_all
  4290. + fi
  4291. + ;;
  4292. +
  4293. +gnu*)
  4294. + lt_cv_deplibs_check_method=pass_all
  4295. + ;;
  4296. +
  4297. +hpux10.20*|hpux11*)
  4298. + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  4299. + lt_cv_file_magic_cmd=/usr/bin/file
  4300. + lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4301. + ;;
  4302. +
  4303. +irix5* | irix6* | nonstopux*)
  4304. + case $LD in
  4305. + *-32|*"-32 ") libmagic=32-bit;;
  4306. + *-n32|*"-n32 ") libmagic=N32;;
  4307. + *-64|*"-64 ") libmagic=64-bit;;
  4308. + *) libmagic=never-match;;
  4309. + esac
  4310. + lt_cv_deplibs_check_method=pass_all
  4311. + ;;
  4312. +
  4313. +# This must be Linux ELF.
  4314. +linux-gnu*)
  4315. + lt_cv_deplibs_check_method=pass_all
  4316. + ;;
  4317. +
  4318. +netbsd*)
  4319. + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  4320. + lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
  4321. + else
  4322. + lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
  4323. + fi
  4324. + ;;
  4325. +
  4326. +newos6*)
  4327. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4328. + lt_cv_file_magic_cmd=/usr/bin/file
  4329. + lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4330. + ;;
  4331. +
  4332. +openbsd*)
  4333. + lt_cv_file_magic_cmd=/usr/bin/file
  4334. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4335. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4336. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
  4337. + else
  4338. + lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
  4339. + fi
  4340. + ;;
  4341. +
  4342. +osf3* | osf4* | osf5*)
  4343. + lt_cv_deplibs_check_method=pass_all
  4344. + ;;
  4345. +
  4346. +sco3.2v5*)
  4347. + lt_cv_deplibs_check_method=pass_all
  4348. + ;;
  4349. +
  4350. +solaris*)
  4351. + lt_cv_deplibs_check_method=pass_all
  4352. + ;;
  4353. +
  4354. +sysv5uw[78]* | sysv4*uw2*)
  4355. + lt_cv_deplibs_check_method=pass_all
  4356. + ;;
  4357. +
  4358. +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  4359. + case $host_vendor in
  4360. + motorola)
  4361. + 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]'
  4362. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4363. + ;;
  4364. + ncr)
  4365. + lt_cv_deplibs_check_method=pass_all
  4366. + ;;
  4367. + sequent)
  4368. + lt_cv_file_magic_cmd='/bin/file'
  4369. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4370. + ;;
  4371. + sni)
  4372. + lt_cv_file_magic_cmd='/bin/file'
  4373. + lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4374. + lt_cv_file_magic_test_file=/lib/libc.so
  4375. + ;;
  4376. + siemens)
  4377. + lt_cv_deplibs_check_method=pass_all
  4378. + ;;
  4379. + esac
  4380. + ;;
  4381. +esac
  4382. +
  4383. +fi
  4384. +echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  4385. +echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
  4386. +file_magic_cmd=$lt_cv_file_magic_cmd
  4387. +deplibs_check_method=$lt_cv_deplibs_check_method
  4388. +
  4389. +
  4390. +
  4391. +
  4392. +
  4393. +
  4394. +
  4395. +# Check for command to grab the raw symbol name followed by C symbol from nm.
  4396. +echo "$as_me:$LINENO: checking command to parse $NM output" >&5
  4397. +echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
  4398. +if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  4399. + echo $ECHO_N "(cached) $ECHO_C" >&6
  4400. +else
  4401. +
  4402. +# These are sane defaults that work on at least a few old systems.
  4403. +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  4404. +
  4405. +# Character class describing NM global symbol codes.
  4406. +symcode='[BCDEGRST]'
  4407. +
  4408. +# Regexp to match symbols that can be accessed directly from C.
  4409. +sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  4410. +
  4411. +# Transform the above into a raw symbol and a C symbol.
  4412. +symxfrm='\1 \2\3 \3'
  4413. +
  4414. +# Transform an extracted symbol line into a proper C declaration
  4415. +lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
  4416. +
  4417. +# Transform an extracted symbol line into symbol name and symbol address
  4418. +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'"
  4419. +
  4420. +# Define system-specific variables.
  4421. +case $host_os in
  4422. +aix*)
  4423. + symcode='[BCDT]'
  4424. + ;;
  4425. +cygwin* | mingw* | pw32*)
  4426. + symcode='[ABCDGISTW]'
  4427. + ;;
  4428. +hpux*) # Its linker distinguishes data from code symbols
  4429. + lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  4430. + 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'"
  4431. + ;;
  4432. +irix* | nonstopux*)
  4433. + symcode='[BCDEGRST]'
  4434. + ;;
  4435. +osf*)
  4436. + symcode='[BCDEGQRST]'
  4437. + ;;
  4438. +solaris* | sysv5*)
  4439. + symcode='[BDT]'
  4440. + ;;
  4441. +sysv4)
  4442. + symcode='[DFNSTU]'
  4443. + ;;
  4444. +esac
  4445. +
  4446. +# Handle CRLF in mingw tool chain
  4447. +opt_cr=
  4448. +case $host_os in
  4449. +mingw*)
  4450. + opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  4451. + ;;
  4452. +esac
  4453. +
  4454. +# If we're using GNU nm, then use its standard symbol codes.
  4455. +if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
  4456. + symcode='[ABCDGISTW]'
  4457. +fi
  4458. +
  4459. +# Try without a prefix undercore, then with it.
  4460. +for ac_symprfx in "" "_"; do
  4461. +
  4462. + # Write the raw and C identifiers.
  4463. +lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
  4464. +
  4465. + # Check to see that the pipe works correctly.
  4466. + pipe_works=no
  4467. + rm -f conftest*
  4468. cat > conftest.$ac_ext <<EOF
  4469. -#line 1193 "configure"
  4470. -#include "confdefs.h"
  4471. -/* System header to define __stub macros and hopefully few prototypes,
  4472. - which can conflict with char $ac_func(); below. */
  4473. -#include <assert.h>
  4474. -/* Override any gcc2 internal prototype to avoid an error. */
  4475. -/* We use char because int might match the return type of a gcc2
  4476. - builtin and then its argument prototype would still apply. */
  4477. -char $ac_func();
  4478. +#ifdef __cplusplus
  4479. +extern "C" {
  4480. +#endif
  4481. +char nm_test_var;
  4482. +void nm_test_func(){}
  4483. +#ifdef __cplusplus
  4484. +}
  4485. +#endif
  4486. +int main(){nm_test_var='a';nm_test_func();return(0);}
  4487. +EOF
  4488. -int main() {
  4489. + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4490. + (eval $ac_compile) 2>&5
  4491. + ac_status=$?
  4492. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4493. + (exit $ac_status); }; then
  4494. + # Now try to grab the symbols.
  4495. + nlist=conftest.nm
  4496. + if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  4497. + (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  4498. + ac_status=$?
  4499. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4500. + (exit $ac_status); } && test -s "$nlist"; then
  4501. + # Try sorting and uniquifying the output.
  4502. + if sort "$nlist" | uniq > "$nlist"T; then
  4503. + mv -f "$nlist"T "$nlist"
  4504. + else
  4505. + rm -f "$nlist"T
  4506. + fi
  4507. -/* The GNU C library defines this for functions which it implements
  4508. - to always fail with ENOSYS. Some functions are actually named
  4509. - something starting with __ and the normal name is an alias. */
  4510. -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  4511. -choke me
  4512. + # Make sure that we snagged all the symbols we need.
  4513. + if egrep ' nm_test_var$' "$nlist" >/dev/null; then
  4514. + if egrep ' nm_test_func$' "$nlist" >/dev/null; then
  4515. + cat <<EOF > conftest.$ac_ext
  4516. +#ifdef __cplusplus
  4517. +extern "C" {
  4518. +#endif
  4519. +
  4520. +EOF
  4521. + # Now generate the symbol file.
  4522. + eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
  4523. +
  4524. + cat <<EOF >> conftest.$ac_ext
  4525. +#if defined (__STDC__) && __STDC__
  4526. +# define lt_ptr void *
  4527. #else
  4528. -$ac_func();
  4529. +# define lt_ptr char *
  4530. +# define const
  4531. #endif
  4532. -; return 0; }
  4533. +/* The mapping between symbol names and symbols. */
  4534. +const struct {
  4535. + const char *name;
  4536. + lt_ptr address;
  4537. +}
  4538. +lt_preloaded_symbols[] =
  4539. +{
  4540. EOF
  4541. -if { (eval echo configure:1216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4542. - rm -rf conftest*
  4543. - eval "ac_cv_func_$ac_func=yes"
  4544. + sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
  4545. + cat <<\EOF >> conftest.$ac_ext
  4546. + {0, (lt_ptr) 0}
  4547. +};
  4548. +
  4549. +#ifdef __cplusplus
  4550. +}
  4551. +#endif
  4552. +EOF
  4553. + # Now try linking the two files.
  4554. + mv conftest.$ac_objext conftstm.$ac_objext
  4555. + save_LIBS="$LIBS"
  4556. + save_CFLAGS="$CFLAGS"
  4557. + LIBS="conftstm.$ac_objext"
  4558. + CFLAGS="$CFLAGS$no_builtin_flag"
  4559. + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4560. + (eval $ac_link) 2>&5
  4561. + ac_status=$?
  4562. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4563. + (exit $ac_status); } && test -s conftest$ac_exeext; then
  4564. + pipe_works=yes
  4565. + fi
  4566. + LIBS="$save_LIBS"
  4567. + CFLAGS="$save_CFLAGS"
  4568. + else
  4569. + echo "cannot find nm_test_func in $nlist" >&5
  4570. + fi
  4571. + else
  4572. + echo "cannot find nm_test_var in $nlist" >&5
  4573. + fi
  4574. + else
  4575. + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  4576. + fi
  4577. + else
  4578. + echo "$progname: failed program was:" >&5
  4579. + cat conftest.$ac_ext >&5
  4580. + fi
  4581. + rm -f conftest* conftst*
  4582. +
  4583. + # Do not use the global_symbol_pipe unless it works.
  4584. + if test "$pipe_works" = yes; then
  4585. + break
  4586. + else
  4587. + lt_cv_sys_global_symbol_pipe=
  4588. + fi
  4589. +done
  4590. +
  4591. +fi
  4592. +
  4593. +global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
  4594. +if test -z "$lt_cv_sys_global_symbol_pipe"; then
  4595. + global_symbol_to_cdecl=
  4596. + global_symbol_to_c_name_address=
  4597. else
  4598. - echo "configure: failed program was:" >&5
  4599. - cat conftest.$ac_ext >&5
  4600. - rm -rf conftest*
  4601. - eval "ac_cv_func_$ac_func=no"
  4602. + global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
  4603. + global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
  4604. fi
  4605. -rm -f conftest*
  4606. +if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
  4607. +then
  4608. + echo "$as_me:$LINENO: result: failed" >&5
  4609. +echo "${ECHO_T}failed" >&6
  4610. +else
  4611. + echo "$as_me:$LINENO: result: ok" >&5
  4612. +echo "${ECHO_T}ok" >&6
  4613. fi
  4614. -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  4615. - echo "$ac_t""yes" 1>&6
  4616. - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  4617. - cat >> confdefs.h <<EOF
  4618. -#define $ac_tr_func 1
  4619. -EOF
  4620. -
  4621. +ac_ext=c
  4622. +ac_cpp='$CPP $CPPFLAGS'
  4623. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4624. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4625. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4626. +echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  4627. +echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  4628. +# On Suns, sometimes $CPP names a directory.
  4629. +if test -n "$CPP" && test -d "$CPP"; then
  4630. + CPP=
  4631. +fi
  4632. +if test -z "$CPP"; then
  4633. + if test "${ac_cv_prog_CPP+set}" = set; then
  4634. + echo $ECHO_N "(cached) $ECHO_C" >&6
  4635. else
  4636. - echo "$ac_t""no" 1>&6
  4637. + # Double quotes because CPP needs to be expanded
  4638. + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4639. + do
  4640. + ac_preproc_ok=false
  4641. +for ac_c_preproc_warn_flag in '' yes
  4642. +do
  4643. + # Use a header file that comes with gcc, so configuring glibc
  4644. + # with a fresh cross-compiler works.
  4645. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4646. + # <limits.h> exists even on freestanding compilers.
  4647. + # On the NeXT, cc -E runs the code through the compiler's parser,
  4648. + # not just through cpp. "Syntax error" is here to catch this case.
  4649. + cat >conftest.$ac_ext <<_ACEOF
  4650. +/* confdefs.h. */
  4651. +_ACEOF
  4652. +cat confdefs.h >>conftest.$ac_ext
  4653. +cat >>conftest.$ac_ext <<_ACEOF
  4654. +/* end confdefs.h. */
  4655. +#ifdef __STDC__
  4656. +# include <limits.h>
  4657. +#else
  4658. +# include <assert.h>
  4659. +#endif
  4660. + Syntax error
  4661. +_ACEOF
  4662. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4663. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4664. + ac_status=$?
  4665. + grep -v '^ *+' conftest.er1 >conftest.err
  4666. + rm -f conftest.er1
  4667. + cat conftest.err >&5
  4668. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4669. + (exit $ac_status); } >/dev/null; then
  4670. + if test -s conftest.err; then
  4671. + ac_cpp_err=$ac_c_preproc_warn_flag
  4672. + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4673. + else
  4674. + ac_cpp_err=
  4675. + fi
  4676. +else
  4677. + ac_cpp_err=yes
  4678. +fi
  4679. +if test -z "$ac_cpp_err"; then
  4680. + :
  4681. +else
  4682. + echo "$as_me: failed program was:" >&5
  4683. +sed 's/^/| /' conftest.$ac_ext >&5
  4684. +
  4685. + # Broken: fails on valid input.
  4686. +continue
  4687. fi
  4688. +rm -f conftest.err conftest.$ac_ext
  4689. +
  4690. + # OK, works on sane cases. Now check whether non-existent headers
  4691. + # can be detected and how.
  4692. + cat >conftest.$ac_ext <<_ACEOF
  4693. +/* confdefs.h. */
  4694. +_ACEOF
  4695. +cat confdefs.h >>conftest.$ac_ext
  4696. +cat >>conftest.$ac_ext <<_ACEOF
  4697. +/* end confdefs.h. */
  4698. +#include <ac_nonexistent.h>
  4699. +_ACEOF
  4700. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4701. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4702. + ac_status=$?
  4703. + grep -v '^ *+' conftest.er1 >conftest.err
  4704. + rm -f conftest.er1
  4705. + cat conftest.err >&5
  4706. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4707. + (exit $ac_status); } >/dev/null; then
  4708. + if test -s conftest.err; then
  4709. + ac_cpp_err=$ac_c_preproc_warn_flag
  4710. + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4711. + else
  4712. + ac_cpp_err=
  4713. + fi
  4714. +else
  4715. + ac_cpp_err=yes
  4716. +fi
  4717. +if test -z "$ac_cpp_err"; then
  4718. + # Broken: success on invalid input.
  4719. +continue
  4720. +else
  4721. + echo "$as_me: failed program was:" >&5
  4722. +sed 's/^/| /' conftest.$ac_ext >&5
  4723. +
  4724. + # Passes both tests.
  4725. +ac_preproc_ok=:
  4726. +break
  4727. +fi
  4728. +rm -f conftest.err conftest.$ac_ext
  4729. +
  4730. done
  4731. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4732. +rm -f conftest.err conftest.$ac_ext
  4733. +if $ac_preproc_ok; then
  4734. + break
  4735. +fi
  4736. + done
  4737. + ac_cv_prog_CPP=$CPP
  4738. -echo $ac_n "checking for pcap_open_live in -lpcap""... $ac_c" 1>&6
  4739. -echo "configure:1242: checking for pcap_open_live in -lpcap" >&5
  4740. -ac_lib_var=`echo pcap'_'pcap_open_live | sed 'y%./+-%__p_%'`
  4741. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  4742. - echo $ac_n "(cached) $ac_c" 1>&6
  4743. +fi
  4744. + CPP=$ac_cv_prog_CPP
  4745. else
  4746. - ac_save_LIBS="$LIBS"
  4747. -LIBS="-lpcap $LIBS"
  4748. -cat > conftest.$ac_ext <<EOF
  4749. -#line 1250 "configure"
  4750. -#include "confdefs.h"
  4751. -/* Override any gcc2 internal prototype to avoid an error. */
  4752. -/* We use char because int might match the return type of a gcc2
  4753. - builtin and then its argument prototype would still apply. */
  4754. -char pcap_open_live();
  4755. + ac_cv_prog_CPP=$CPP
  4756. +fi
  4757. +echo "$as_me:$LINENO: result: $CPP" >&5
  4758. +echo "${ECHO_T}$CPP" >&6
  4759. +ac_preproc_ok=false
  4760. +for ac_c_preproc_warn_flag in '' yes
  4761. +do
  4762. + # Use a header file that comes with gcc, so configuring glibc
  4763. + # with a fresh cross-compiler works.
  4764. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4765. + # <limits.h> exists even on freestanding compilers.
  4766. + # On the NeXT, cc -E runs the code through the compiler's parser,
  4767. + # not just through cpp. "Syntax error" is here to catch this case.
  4768. + cat >conftest.$ac_ext <<_ACEOF
  4769. +/* confdefs.h. */
  4770. +_ACEOF
  4771. +cat confdefs.h >>conftest.$ac_ext
  4772. +cat >>conftest.$ac_ext <<_ACEOF
  4773. +/* end confdefs.h. */
  4774. +#ifdef __STDC__
  4775. +# include <limits.h>
  4776. +#else
  4777. +# include <assert.h>
  4778. +#endif
  4779. + Syntax error
  4780. +_ACEOF
  4781. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4782. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4783. + ac_status=$?
  4784. + grep -v '^ *+' conftest.er1 >conftest.err
  4785. + rm -f conftest.er1
  4786. + cat conftest.err >&5
  4787. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4788. + (exit $ac_status); } >/dev/null; then
  4789. + if test -s conftest.err; then
  4790. + ac_cpp_err=$ac_c_preproc_warn_flag
  4791. + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4792. + else
  4793. + ac_cpp_err=
  4794. + fi
  4795. +else
  4796. + ac_cpp_err=yes
  4797. +fi
  4798. +if test -z "$ac_cpp_err"; then
  4799. + :
  4800. +else
  4801. + echo "$as_me: failed program was:" >&5
  4802. +sed 's/^/| /' conftest.$ac_ext >&5
  4803. -int main() {
  4804. -pcap_open_live()
  4805. -; return 0; }
  4806. -EOF
  4807. -if { (eval echo configure:1261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  4808. - rm -rf conftest*
  4809. - eval "ac_cv_lib_$ac_lib_var=yes"
  4810. + # Broken: fails on valid input.
  4811. +continue
  4812. +fi
  4813. +rm -f conftest.err conftest.$ac_ext
  4814. +
  4815. + # OK, works on sane cases. Now check whether non-existent headers
  4816. + # can be detected and how.
  4817. + cat >conftest.$ac_ext <<_ACEOF
  4818. +/* confdefs.h. */
  4819. +_ACEOF
  4820. +cat confdefs.h >>conftest.$ac_ext
  4821. +cat >>conftest.$ac_ext <<_ACEOF
  4822. +/* end confdefs.h. */
  4823. +#include <ac_nonexistent.h>
  4824. +_ACEOF
  4825. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4826. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4827. + ac_status=$?
  4828. + grep -v '^ *+' conftest.er1 >conftest.err
  4829. + rm -f conftest.er1
  4830. + cat conftest.err >&5
  4831. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4832. + (exit $ac_status); } >/dev/null; then
  4833. + if test -s conftest.err; then
  4834. + ac_cpp_err=$ac_c_preproc_warn_flag
  4835. + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4836. + else
  4837. + ac_cpp_err=
  4838. + fi
  4839. else
  4840. - echo "configure: failed program was:" >&5
  4841. - cat conftest.$ac_ext >&5
  4842. - rm -rf conftest*
  4843. - eval "ac_cv_lib_$ac_lib_var=no"
  4844. + ac_cpp_err=yes
  4845. +fi
  4846. +if test -z "$ac_cpp_err"; then
  4847. + # Broken: success on invalid input.
  4848. +continue
  4849. +else
  4850. + echo "$as_me: failed program was:" >&5
  4851. +sed 's/^/| /' conftest.$ac_ext >&5
  4852. +
  4853. + # Passes both tests.
  4854. +ac_preproc_ok=:
  4855. +break
  4856. +fi
  4857. +rm -f conftest.err conftest.$ac_ext
  4858. +
  4859. +done
  4860. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4861. +rm -f conftest.err conftest.$ac_ext
  4862. +if $ac_preproc_ok; then
  4863. + :
  4864. +else
  4865. + { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  4866. +See \`config.log' for more details." >&5
  4867. +echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  4868. +See \`config.log' for more details." >&2;}
  4869. + { (exit 1); exit 1; }; }
  4870. +fi
  4871. +
  4872. +ac_ext=c
  4873. +ac_cpp='$CPP $CPPFLAGS'
  4874. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4875. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4876. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4877. +
  4878. +
  4879. +echo "$as_me:$LINENO: checking for egrep" >&5
  4880. +echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  4881. +if test "${ac_cv_prog_egrep+set}" = set; then
  4882. + echo $ECHO_N "(cached) $ECHO_C" >&6
  4883. +else
  4884. + if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  4885. + then ac_cv_prog_egrep='grep -E'
  4886. + else ac_cv_prog_egrep='egrep'
  4887. + fi
  4888. +fi
  4889. +echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  4890. +echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  4891. + EGREP=$ac_cv_prog_egrep
  4892. +
  4893. +
  4894. +echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  4895. +echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  4896. +if test "${ac_cv_header_stdc+set}" = set; then
  4897. + echo $ECHO_N "(cached) $ECHO_C" >&6
  4898. +else
  4899. + cat >conftest.$ac_ext <<_ACEOF
  4900. +/* confdefs.h. */
  4901. +_ACEOF
  4902. +cat confdefs.h >>conftest.$ac_ext
  4903. +cat >>conftest.$ac_ext <<_ACEOF
  4904. +/* end confdefs.h. */
  4905. +#include <stdlib.h>
  4906. +#include <stdarg.h>
  4907. +#include <string.h>
  4908. +#include <float.h>
  4909. +
  4910. +int
  4911. +main ()
  4912. +{
  4913. +
  4914. + ;
  4915. + return 0;
  4916. +}
  4917. +_ACEOF
  4918. +rm -f conftest.$ac_objext
  4919. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4920. + (eval $ac_compile) 2>conftest.er1
  4921. + ac_status=$?
  4922. + grep -v '^ *+' conftest.er1 >conftest.err
  4923. + rm -f conftest.er1
  4924. + cat conftest.err >&5
  4925. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4926. + (exit $ac_status); } &&
  4927. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4928. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4929. + (eval $ac_try) 2>&5
  4930. + ac_status=$?
  4931. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4932. + (exit $ac_status); }; } &&
  4933. + { ac_try='test -s conftest.$ac_objext'
  4934. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4935. + (eval $ac_try) 2>&5
  4936. + ac_status=$?
  4937. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4938. + (exit $ac_status); }; }; then
  4939. + ac_cv_header_stdc=yes
  4940. +else
  4941. + echo "$as_me: failed program was:" >&5
  4942. +sed 's/^/| /' conftest.$ac_ext >&5
  4943. +
  4944. +ac_cv_header_stdc=no
  4945. +fi
  4946. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4947. +
  4948. +if test $ac_cv_header_stdc = yes; then
  4949. + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4950. + cat >conftest.$ac_ext <<_ACEOF
  4951. +/* confdefs.h. */
  4952. +_ACEOF
  4953. +cat confdefs.h >>conftest.$ac_ext
  4954. +cat >>conftest.$ac_ext <<_ACEOF
  4955. +/* end confdefs.h. */
  4956. +#include <string.h>
  4957. +
  4958. +_ACEOF
  4959. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4960. + $EGREP "memchr" >/dev/null 2>&1; then
  4961. + :
  4962. +else
  4963. + ac_cv_header_stdc=no
  4964. fi
  4965. rm -f conftest*
  4966. -LIBS="$ac_save_LIBS"
  4967. fi
  4968. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  4969. - echo "$ac_t""yes" 1>&6
  4970. - cat >> confdefs.h <<\EOF
  4971. -#define HAVE_LIB_PCAP 1
  4972. +
  4973. +if test $ac_cv_header_stdc = yes; then
  4974. + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4975. + cat >conftest.$ac_ext <<_ACEOF
  4976. +/* confdefs.h. */
  4977. +_ACEOF
  4978. +cat confdefs.h >>conftest.$ac_ext
  4979. +cat >>conftest.$ac_ext <<_ACEOF
  4980. +/* end confdefs.h. */
  4981. +#include <stdlib.h>
  4982. +
  4983. +_ACEOF
  4984. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4985. + $EGREP "free" >/dev/null 2>&1; then
  4986. + :
  4987. +else
  4988. + ac_cv_header_stdc=no
  4989. +fi
  4990. +rm -f conftest*
  4991. +
  4992. +fi
  4993. +
  4994. +if test $ac_cv_header_stdc = yes; then
  4995. + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4996. + if test "$cross_compiling" = yes; then
  4997. + :
  4998. +else
  4999. + cat >conftest.$ac_ext <<_ACEOF
  5000. +/* confdefs.h. */
  5001. +_ACEOF
  5002. +cat confdefs.h >>conftest.$ac_ext
  5003. +cat >>conftest.$ac_ext <<_ACEOF
  5004. +/* end confdefs.h. */
  5005. +#include <ctype.h>
  5006. +#if ((' ' & 0x0FF) == 0x020)
  5007. +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5008. +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5009. +#else
  5010. +# define ISLOWER(c) \
  5011. + (('a' <= (c) && (c) <= 'i') \
  5012. + || ('j' <= (c) && (c) <= 'r') \
  5013. + || ('s' <= (c) && (c) <= 'z'))
  5014. +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5015. +#endif
  5016. +
  5017. +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5018. +int
  5019. +main ()
  5020. +{
  5021. + int i;
  5022. + for (i = 0; i < 256; i++)
  5023. + if (XOR (islower (i), ISLOWER (i))
  5024. + || toupper (i) != TOUPPER (i))
  5025. + exit(2);
  5026. + exit (0);
  5027. +}
  5028. +_ACEOF
  5029. +rm -f conftest$ac_exeext
  5030. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5031. + (eval $ac_link) 2>&5
  5032. + ac_status=$?
  5033. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5034. + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5035. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5036. + (eval $ac_try) 2>&5
  5037. + ac_status=$?
  5038. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5039. + (exit $ac_status); }; }; then
  5040. + :
  5041. +else
  5042. + echo "$as_me: program exited with status $ac_status" >&5
  5043. +echo "$as_me: failed program was:" >&5
  5044. +sed 's/^/| /' conftest.$ac_ext >&5
  5045. +
  5046. +( exit $ac_status )
  5047. +ac_cv_header_stdc=no
  5048. +fi
  5049. +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5050. +fi
  5051. +fi
  5052. +fi
  5053. +echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  5054. +echo "${ECHO_T}$ac_cv_header_stdc" >&6
  5055. +if test $ac_cv_header_stdc = yes; then
  5056. +
  5057. +cat >>confdefs.h <<\_ACEOF
  5058. +#define STDC_HEADERS 1
  5059. +_ACEOF
  5060. +
  5061. +fi
  5062. +
  5063. +# On IRIX 5.3, sys/types and inttypes.h are conflicting.
  5064. +
  5065. +
  5066. +
  5067. +
  5068. +
  5069. +
  5070. +
  5071. +
  5072. +
  5073. +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  5074. + inttypes.h stdint.h unistd.h
  5075. +do
  5076. +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5077. +echo "$as_me:$LINENO: checking for $ac_header" >&5
  5078. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5079. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5080. + echo $ECHO_N "(cached) $ECHO_C" >&6
  5081. +else
  5082. + cat >conftest.$ac_ext <<_ACEOF
  5083. +/* confdefs.h. */
  5084. +_ACEOF
  5085. +cat confdefs.h >>conftest.$ac_ext
  5086. +cat >>conftest.$ac_ext <<_ACEOF
  5087. +/* end confdefs.h. */
  5088. +$ac_includes_default
  5089. +
  5090. +#include <$ac_header>
  5091. +_ACEOF
  5092. +rm -f conftest.$ac_objext
  5093. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5094. + (eval $ac_compile) 2>conftest.er1
  5095. + ac_status=$?
  5096. + grep -v '^ *+' conftest.er1 >conftest.err
  5097. + rm -f conftest.er1
  5098. + cat conftest.err >&5
  5099. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5100. + (exit $ac_status); } &&
  5101. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5102. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5103. + (eval $ac_try) 2>&5
  5104. + ac_status=$?
  5105. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5106. + (exit $ac_status); }; } &&
  5107. + { ac_try='test -s conftest.$ac_objext'
  5108. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5109. + (eval $ac_try) 2>&5
  5110. + ac_status=$?
  5111. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5112. + (exit $ac_status); }; }; then
  5113. + eval "$as_ac_Header=yes"
  5114. +else
  5115. + echo "$as_me: failed program was:" >&5
  5116. +sed 's/^/| /' conftest.$ac_ext >&5
  5117. +
  5118. +eval "$as_ac_Header=no"
  5119. +fi
  5120. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5121. +fi
  5122. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5123. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5124. +if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5125. + cat >>confdefs.h <<_ACEOF
  5126. +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5127. +_ACEOF
  5128. +
  5129. +fi
  5130. +
  5131. +done
  5132. +
  5133. +
  5134. +
  5135. +for ac_header in dlfcn.h
  5136. +do
  5137. +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5138. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5139. + echo "$as_me:$LINENO: checking for $ac_header" >&5
  5140. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5141. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5142. + echo $ECHO_N "(cached) $ECHO_C" >&6
  5143. +fi
  5144. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5145. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5146. +else
  5147. + # Is the header compilable?
  5148. +echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5149. +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5150. +cat >conftest.$ac_ext <<_ACEOF
  5151. +/* confdefs.h. */
  5152. +_ACEOF
  5153. +cat confdefs.h >>conftest.$ac_ext
  5154. +cat >>conftest.$ac_ext <<_ACEOF
  5155. +/* end confdefs.h. */
  5156. +$ac_includes_default
  5157. +#include <$ac_header>
  5158. +_ACEOF
  5159. +rm -f conftest.$ac_objext
  5160. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5161. + (eval $ac_compile) 2>conftest.er1
  5162. + ac_status=$?
  5163. + grep -v '^ *+' conftest.er1 >conftest.err
  5164. + rm -f conftest.er1
  5165. + cat conftest.err >&5
  5166. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5167. + (exit $ac_status); } &&
  5168. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5169. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5170. + (eval $ac_try) 2>&5
  5171. + ac_status=$?
  5172. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5173. + (exit $ac_status); }; } &&
  5174. + { ac_try='test -s conftest.$ac_objext'
  5175. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5176. + (eval $ac_try) 2>&5
  5177. + ac_status=$?
  5178. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5179. + (exit $ac_status); }; }; then
  5180. + ac_header_compiler=yes
  5181. +else
  5182. + echo "$as_me: failed program was:" >&5
  5183. +sed 's/^/| /' conftest.$ac_ext >&5
  5184. +
  5185. +ac_header_compiler=no
  5186. +fi
  5187. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5188. +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5189. +echo "${ECHO_T}$ac_header_compiler" >&6
  5190. +
  5191. +# Is the header present?
  5192. +echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5193. +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5194. +cat >conftest.$ac_ext <<_ACEOF
  5195. +/* confdefs.h. */
  5196. +_ACEOF
  5197. +cat confdefs.h >>conftest.$ac_ext
  5198. +cat >>conftest.$ac_ext <<_ACEOF
  5199. +/* end confdefs.h. */
  5200. +#include <$ac_header>
  5201. +_ACEOF
  5202. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5203. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5204. + ac_status=$?
  5205. + grep -v '^ *+' conftest.er1 >conftest.err
  5206. + rm -f conftest.er1
  5207. + cat conftest.err >&5
  5208. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5209. + (exit $ac_status); } >/dev/null; then
  5210. + if test -s conftest.err; then
  5211. + ac_cpp_err=$ac_c_preproc_warn_flag
  5212. + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5213. + else
  5214. + ac_cpp_err=
  5215. + fi
  5216. +else
  5217. + ac_cpp_err=yes
  5218. +fi
  5219. +if test -z "$ac_cpp_err"; then
  5220. + ac_header_preproc=yes
  5221. +else
  5222. + echo "$as_me: failed program was:" >&5
  5223. +sed 's/^/| /' conftest.$ac_ext >&5
  5224. +
  5225. + ac_header_preproc=no
  5226. +fi
  5227. +rm -f conftest.err conftest.$ac_ext
  5228. +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5229. +echo "${ECHO_T}$ac_header_preproc" >&6
  5230. +
  5231. +# So? What about this header?
  5232. +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5233. + yes:no: )
  5234. + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5235. +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5236. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5237. +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5238. + ac_header_preproc=yes
  5239. + ;;
  5240. + no:yes:* )
  5241. + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5242. +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5243. + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5244. +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5245. + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5246. +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5247. + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5248. +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5249. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5250. +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5251. + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5252. +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5253. + (
  5254. + cat <<\_ASBOX
  5255. +## ------------------------------------------ ##
  5256. +## Report this to the AC_PACKAGE_NAME lists. ##
  5257. +## ------------------------------------------ ##
  5258. +_ASBOX
  5259. + ) |
  5260. + sed "s/^/$as_me: WARNING: /" >&2
  5261. + ;;
  5262. +esac
  5263. +echo "$as_me:$LINENO: checking for $ac_header" >&5
  5264. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5265. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5266. + echo $ECHO_N "(cached) $ECHO_C" >&6
  5267. +else
  5268. + eval "$as_ac_Header=\$ac_header_preproc"
  5269. +fi
  5270. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5271. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5272. +
  5273. +fi
  5274. +if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5275. + cat >>confdefs.h <<_ACEOF
  5276. +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5277. +_ACEOF
  5278. +
  5279. +fi
  5280. +
  5281. +done
  5282. +
  5283. +
  5284. +
  5285. +
  5286. +
  5287. +
  5288. +# Only perform the check for file, if the check method requires it
  5289. +case $deplibs_check_method in
  5290. +file_magic*)
  5291. + if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  5292. + echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  5293. +echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
  5294. +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  5295. + echo $ECHO_N "(cached) $ECHO_C" >&6
  5296. +else
  5297. + case $MAGIC_CMD in
  5298. + /*)
  5299. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  5300. + ;;
  5301. + ?:/*)
  5302. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
  5303. + ;;
  5304. + *)
  5305. + ac_save_MAGIC_CMD="$MAGIC_CMD"
  5306. + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  5307. + ac_dummy="/usr/bin:$PATH"
  5308. + for ac_dir in $ac_dummy; do
  5309. + test -z "$ac_dir" && ac_dir=.
  5310. + if test -f $ac_dir/${ac_tool_prefix}file; then
  5311. + lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  5312. + if test -n "$file_magic_test_file"; then
  5313. + case $deplibs_check_method in
  5314. + "file_magic "*)
  5315. + file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  5316. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5317. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  5318. + egrep "$file_magic_regex" > /dev/null; then
  5319. + :
  5320. + else
  5321. + cat <<EOF 1>&2
  5322. +
  5323. +*** Warning: the command libtool uses to detect shared libraries,
  5324. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  5325. +*** The result is that libtool may fail to recognize shared libraries
  5326. +*** as such. This will affect the creation of libtool libraries that
  5327. +*** depend on shared libraries, but programs linked with such libtool
  5328. +*** libraries will work regardless of this problem. Nevertheless, you
  5329. +*** may want to report the problem to your system manager and/or to
  5330. +*** bug-libtool@gnu.org
  5331. +
  5332. EOF
  5333. + fi ;;
  5334. + esac
  5335. + fi
  5336. + break
  5337. + fi
  5338. + done
  5339. + IFS="$ac_save_ifs"
  5340. + MAGIC_CMD="$ac_save_MAGIC_CMD"
  5341. + ;;
  5342. +esac
  5343. +fi
  5344. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5345. +if test -n "$MAGIC_CMD"; then
  5346. + echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  5347. +echo "${ECHO_T}$MAGIC_CMD" >&6
  5348. else
  5349. - echo "$ac_t""no" 1>&6
  5350. + echo "$as_me:$LINENO: result: no" >&5
  5351. +echo "${ECHO_T}no" >&6
  5352. fi
  5353. +if test -z "$lt_cv_path_MAGIC_CMD"; then
  5354. + if test -n "$ac_tool_prefix"; then
  5355. + echo "$as_me:$LINENO: checking for file" >&5
  5356. +echo $ECHO_N "checking for file... $ECHO_C" >&6
  5357. +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  5358. + echo $ECHO_N "(cached) $ECHO_C" >&6
  5359. +else
  5360. + case $MAGIC_CMD in
  5361. + /*)
  5362. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  5363. + ;;
  5364. + ?:/*)
  5365. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
  5366. + ;;
  5367. + *)
  5368. + ac_save_MAGIC_CMD="$MAGIC_CMD"
  5369. + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  5370. + ac_dummy="/usr/bin:$PATH"
  5371. + for ac_dir in $ac_dummy; do
  5372. + test -z "$ac_dir" && ac_dir=.
  5373. + if test -f $ac_dir/file; then
  5374. + lt_cv_path_MAGIC_CMD="$ac_dir/file"
  5375. + if test -n "$file_magic_test_file"; then
  5376. + case $deplibs_check_method in
  5377. + "file_magic "*)
  5378. + file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  5379. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5380. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  5381. + egrep "$file_magic_regex" > /dev/null; then
  5382. + :
  5383. + else
  5384. + cat <<EOF 1>&2
  5385. -echo $ac_n "checking low-level packet interface type""... $ac_c" 1>&6
  5386. -echo "configure:1286: checking low-level packet interface type" >&5
  5387. +*** Warning: the command libtool uses to detect shared libraries,
  5388. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  5389. +*** The result is that libtool may fail to recognize shared libraries
  5390. +*** as such. This will affect the creation of libtool libraries that
  5391. +*** depend on shared libraries, but programs linked with such libtool
  5392. +*** libraries will work regardless of this problem. Nevertheless, you
  5393. +*** may want to report the problem to your system manager and/or to
  5394. +*** bug-libtool@gnu.org
  5395. -if test -r /dev/bpf0 ; then
  5396. - LL_INT_TYPE=bpf
  5397. - echo "$ac_t""found bpf" 1>&6
  5398. -elif test -r /usr/include/net/pfilt.h ; then
  5399. - LL_INT_TYPE=pf
  5400. - echo "$ac_t""found pf" 1>&6
  5401. -elif test -r /dev/nit ; then
  5402. - LL_INT_TYPE=snit
  5403. - echo "$ac_t""found snit" 1>&6
  5404. -elif test -r /usr/include/sys/net/nit.h ; then
  5405. - LL_INT_TYPE=nit
  5406. - echo "$ac_t""found nit" 1>&6
  5407. -elif test -r /usr/include/net/raw.h ; then
  5408. - LL_INT_TYPE=snoop
  5409. - echo "$ac_t""found snoop" 1>&6
  5410. -elif test -r /usr/include/sys/dlpi.h ; then
  5411. - LL_INT_TYPE=dlpi
  5412. - echo "$ac_t""found dlpi" 1>&6
  5413. - cat >> confdefs.h <<\EOF
  5414. -#define HAVE_DLPI 1
  5415. EOF
  5416. + fi ;;
  5417. + esac
  5418. + fi
  5419. + break
  5420. + fi
  5421. + done
  5422. + IFS="$ac_save_ifs"
  5423. + MAGIC_CMD="$ac_save_MAGIC_CMD"
  5424. + ;;
  5425. +esac
  5426. +fi
  5427. -elif test -r /usr/include/linux/socket.h ; then
  5428. - LL_INT_TYPE=sockpacket
  5429. - echo "$ac_t""found SOCK_PACKET" 1>&6
  5430. - if test $with_pf_packet = yes; then
  5431. -
  5432. - echo $ac_n "checking for PF_PACKET""... $ac_c" 1>&6
  5433. -echo "configure:1316: checking for PF_PACKET" >&5
  5434. - if eval "test \"`echo '$''{'ac_libnet_have_pf_packet'+set}'`\" = set"; then
  5435. - echo $ac_n "(cached) $ac_c" 1>&6
  5436. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  5437. +if test -n "$MAGIC_CMD"; then
  5438. + echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  5439. +echo "${ECHO_T}$MAGIC_CMD" >&6
  5440. else
  5441. - case "$target_os" in
  5442. + echo "$as_me:$LINENO: result: no" >&5
  5443. +echo "${ECHO_T}no" >&6
  5444. +fi
  5445. - linux)
  5446. - ac_libnet_have_pf_packet = no
  5447. - ;;
  5448. - *)
  5449. + else
  5450. + MAGIC_CMD=:
  5451. + fi
  5452. +fi
  5453. +
  5454. + fi
  5455. + ;;
  5456. +esac
  5457. +
  5458. +if test -n "$ac_tool_prefix"; then
  5459. + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5460. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5461. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  5462. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5463. +if test "${ac_cv_prog_RANLIB+set}" = set; then
  5464. + echo $ECHO_N "(cached) $ECHO_C" >&6
  5465. +else
  5466. + if test -n "$RANLIB"; then
  5467. + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5468. +else
  5469. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5470. +for as_dir in $PATH
  5471. +do
  5472. + IFS=$as_save_IFS
  5473. + test -z "$as_dir" && as_dir=.
  5474. + for ac_exec_ext in '' $ac_executable_extensions; do
  5475. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5476. + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5477. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5478. + break 2
  5479. + fi
  5480. +done
  5481. +done
  5482. +
  5483. +fi
  5484. +fi
  5485. +RANLIB=$ac_cv_prog_RANLIB
  5486. +if test -n "$RANLIB"; then
  5487. + echo "$as_me:$LINENO: result: $RANLIB" >&5
  5488. +echo "${ECHO_T}$RANLIB" >&6
  5489. +else
  5490. + echo "$as_me:$LINENO: result: no" >&5
  5491. +echo "${ECHO_T}no" >&6
  5492. +fi
  5493. +
  5494. +fi
  5495. +if test -z "$ac_cv_prog_RANLIB"; then
  5496. + ac_ct_RANLIB=$RANLIB
  5497. + # Extract the first word of "ranlib", so it can be a program name with args.
  5498. +set dummy ranlib; ac_word=$2
  5499. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  5500. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5501. +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  5502. + echo $ECHO_N "(cached) $ECHO_C" >&6
  5503. +else
  5504. + if test -n "$ac_ct_RANLIB"; then
  5505. + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5506. +else
  5507. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5508. +for as_dir in $PATH
  5509. +do
  5510. + IFS=$as_save_IFS
  5511. + test -z "$as_dir" && as_dir=.
  5512. + for ac_exec_ext in '' $ac_executable_extensions; do
  5513. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5514. + ac_cv_prog_ac_ct_RANLIB="ranlib"
  5515. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5516. + break 2
  5517. + fi
  5518. +done
  5519. +done
  5520. +
  5521. + test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  5522. +fi
  5523. +fi
  5524. +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5525. +if test -n "$ac_ct_RANLIB"; then
  5526. + echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  5527. +echo "${ECHO_T}$ac_ct_RANLIB" >&6
  5528. +else
  5529. + echo "$as_me:$LINENO: result: no" >&5
  5530. +echo "${ECHO_T}no" >&6
  5531. +fi
  5532. +
  5533. + RANLIB=$ac_ct_RANLIB
  5534. +else
  5535. + RANLIB="$ac_cv_prog_RANLIB"
  5536. +fi
  5537. +
  5538. +if test -n "$ac_tool_prefix"; then
  5539. + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5540. +set dummy ${ac_tool_prefix}strip; ac_word=$2
  5541. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  5542. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5543. +if test "${ac_cv_prog_STRIP+set}" = set; then
  5544. + echo $ECHO_N "(cached) $ECHO_C" >&6
  5545. +else
  5546. + if test -n "$STRIP"; then
  5547. + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5548. +else
  5549. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5550. +for as_dir in $PATH
  5551. +do
  5552. + IFS=$as_save_IFS
  5553. + test -z "$as_dir" && as_dir=.
  5554. + for ac_exec_ext in '' $ac_executable_extensions; do
  5555. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5556. + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5557. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5558. + break 2
  5559. + fi
  5560. +done
  5561. +done
  5562. +
  5563. +fi
  5564. +fi
  5565. +STRIP=$ac_cv_prog_STRIP
  5566. +if test -n "$STRIP"; then
  5567. + echo "$as_me:$LINENO: result: $STRIP" >&5
  5568. +echo "${ECHO_T}$STRIP" >&6
  5569. +else
  5570. + echo "$as_me:$LINENO: result: no" >&5
  5571. +echo "${ECHO_T}no" >&6
  5572. +fi
  5573. +
  5574. +fi
  5575. +if test -z "$ac_cv_prog_STRIP"; then
  5576. + ac_ct_STRIP=$STRIP
  5577. + # Extract the first word of "strip", so it can be a program name with args.
  5578. +set dummy strip; ac_word=$2
  5579. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  5580. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  5581. +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  5582. + echo $ECHO_N "(cached) $ECHO_C" >&6
  5583. +else
  5584. + if test -n "$ac_ct_STRIP"; then
  5585. + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5586. +else
  5587. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5588. +for as_dir in $PATH
  5589. +do
  5590. + IFS=$as_save_IFS
  5591. + test -z "$as_dir" && as_dir=.
  5592. + for ac_exec_ext in '' $ac_executable_extensions; do
  5593. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5594. + ac_cv_prog_ac_ct_STRIP="strip"
  5595. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5596. + break 2
  5597. + fi
  5598. +done
  5599. +done
  5600. +
  5601. + test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  5602. +fi
  5603. +fi
  5604. +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5605. +if test -n "$ac_ct_STRIP"; then
  5606. + echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  5607. +echo "${ECHO_T}$ac_ct_STRIP" >&6
  5608. +else
  5609. + echo "$as_me:$LINENO: result: no" >&5
  5610. +echo "${ECHO_T}no" >&6
  5611. +fi
  5612. +
  5613. + STRIP=$ac_ct_STRIP
  5614. +else
  5615. + STRIP="$ac_cv_prog_STRIP"
  5616. +fi
  5617. +
  5618. +
  5619. +enable_dlopen=no
  5620. +enable_win32_dll=no
  5621. +
  5622. +# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  5623. +if test "${enable_libtool_lock+set}" = set; then
  5624. + enableval="$enable_libtool_lock"
  5625. +
  5626. +fi;
  5627. +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5628. +
  5629. +# Some flags need to be propagated to the compiler or linker for good
  5630. +# libtool support.
  5631. +case $host in
  5632. +*-*-irix6*)
  5633. + # Find out which ABI we are using.
  5634. + echo '#line 5125 "configure"' > conftest.$ac_ext
  5635. + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5636. + (eval $ac_compile) 2>&5
  5637. + ac_status=$?
  5638. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5639. + (exit $ac_status); }; then
  5640. + case `/usr/bin/file conftest.$ac_objext` in
  5641. + *32-bit*)
  5642. + LD="${LD-ld} -32"
  5643. + ;;
  5644. + *N32*)
  5645. + LD="${LD-ld} -n32"
  5646. + ;;
  5647. + *64-bit*)
  5648. + LD="${LD-ld} -64"
  5649. + ;;
  5650. + esac
  5651. + fi
  5652. + rm -rf conftest*
  5653. + ;;
  5654. +
  5655. +*-*-sco3.2v5*)
  5656. + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5657. + SAVE_CFLAGS="$CFLAGS"
  5658. + CFLAGS="$CFLAGS -belf"
  5659. + echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  5660. +echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
  5661. +if test "${lt_cv_cc_needs_belf+set}" = set; then
  5662. + echo $ECHO_N "(cached) $ECHO_C" >&6
  5663. +else
  5664. - cat > pf_packet-test.c << EOF
  5665. -#include <net/if.h>
  5666. -#if (__GLIBC__)
  5667. -#include <netinet/if_ether.h>
  5668. -#include <net/if_arp.h>
  5669. -#else
  5670. -#include <linux/if_arp.h>
  5671. -#include <linux/if_ether.h>
  5672. -#endif
  5673. -#if (PF_PACKET)
  5674. -#ifndef SOL_PACKET
  5675. -#define SOL_PACKET 263
  5676. -#endif /* SOL_PACKET */
  5677. -#include <linux/if_packet.h>
  5678. -#endif
  5679. -#include <stdlib.h>
  5680. -#include <linux/sockios.h>
  5681. +
  5682. + ac_ext=c
  5683. +ac_cpp='$CPP $CPPFLAGS'
  5684. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5685. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5686. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5687. +
  5688. + cat >conftest.$ac_ext <<_ACEOF
  5689. +/* confdefs.h. */
  5690. +_ACEOF
  5691. +cat confdefs.h >>conftest.$ac_ext
  5692. +cat >>conftest.$ac_ext <<_ACEOF
  5693. +/* end confdefs.h. */
  5694. int
  5695. -main()
  5696. +main ()
  5697. {
  5698. -#if (PF_PACKET)
  5699. - int fd;
  5700. - struct sockaddr_ll sa;
  5701. - struct ifreq ifr;
  5702. - struct packet_mreq mr;
  5703. - char *device ="lo";
  5704. - fd = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL));
  5705. - if (fd == -1)
  5706. - {
  5707. - printf("choked");
  5708. - exit (EXIT_FAILURE);
  5709. - }
  5710. + ;
  5711. + return 0;
  5712. +}
  5713. +_ACEOF
  5714. +rm -f conftest.$ac_objext conftest$ac_exeext
  5715. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5716. + (eval $ac_link) 2>conftest.er1
  5717. + ac_status=$?
  5718. + grep -v '^ *+' conftest.er1 >conftest.err
  5719. + rm -f conftest.er1
  5720. + cat conftest.err >&5
  5721. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5722. + (exit $ac_status); } &&
  5723. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5724. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5725. + (eval $ac_try) 2>&5
  5726. + ac_status=$?
  5727. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5728. + (exit $ac_status); }; } &&
  5729. + { ac_try='test -s conftest$ac_exeext'
  5730. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5731. + (eval $ac_try) 2>&5
  5732. + ac_status=$?
  5733. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5734. + (exit $ac_status); }; }; then
  5735. + lt_cv_cc_needs_belf=yes
  5736. +else
  5737. + echo "$as_me: failed program was:" >&5
  5738. +sed 's/^/| /' conftest.$ac_ext >&5
  5739. - memset(&sa, 0, sizeof(sa));
  5740. - strcpy(ifr.ifr_name, device);
  5741. - if (ioctl(fd, SIOCGIFINDEX, &ifr) < 0)
  5742. - {
  5743. - printf("choked");
  5744. - exit (EXIT_FAILURE);
  5745. - }
  5746. - sa.sll_family = AF_PACKET;
  5747. - sa.sll_ifindex = ifr.ifr_ifindex;
  5748. - sa.sll_protocol = htons(ETH_P_ALL);
  5749. +lt_cv_cc_needs_belf=no
  5750. +fi
  5751. +rm -f conftest.err conftest.$ac_objext \
  5752. + conftest$ac_exeext conftest.$ac_ext
  5753. + ac_ext=c
  5754. +ac_cpp='$CPP $CPPFLAGS'
  5755. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5756. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5757. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5758. - memset(&mr, 0, sizeof (mr));
  5759. - mr.mr_ifindex = sa.sll_ifindex;
  5760. - mr.mr_type = PACKET_MR_ALLMULTI;
  5761. +fi
  5762. +echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  5763. +echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
  5764. + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5765. + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5766. + CFLAGS="$SAVE_CFLAGS"
  5767. + fi
  5768. + ;;
  5769. - if (setsockopt(fd, SOL_PACKET, PACKET_ADD_MEMBERSHIP, (char *)&mr,
  5770. - sizeof (mr)) < 0)
  5771. - {
  5772. - printf("choked\n");
  5773. - exit (EXIT_FAILURE);
  5774. - }
  5775. - /* yay. we made it and it workz! */
  5776. - printf("yes");
  5777. -#else /* PF_PACKET */
  5778. - printf("no");
  5779. -#endif
  5780. - exit (EXIT_SUCCESS);
  5781. +
  5782. +esac
  5783. +
  5784. +# Sed substitution that helps us do robust quoting. It backslashifies
  5785. +# metacharacters that are still active within double-quoted strings.
  5786. +Xsed='sed -e s/^X//'
  5787. +sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  5788. +
  5789. +# Same as above, but do not quote variable references.
  5790. +double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  5791. +
  5792. +# Sed substitution to delay expansion of an escaped shell variable in a
  5793. +# double_quote_subst'ed string.
  5794. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  5795. +
  5796. +# Constants:
  5797. +rm="rm -f"
  5798. +
  5799. +# Global variables:
  5800. +default_ofile=libtool
  5801. +can_build_shared=yes
  5802. +
  5803. +# All known linkers require a `.a' archive for static linking (except M$VC,
  5804. +# which needs '.lib').
  5805. +libext=a
  5806. +ltmain="$ac_aux_dir/ltmain.sh"
  5807. +ofile="$default_ofile"
  5808. +with_gnu_ld="$lt_cv_prog_gnu_ld"
  5809. +need_locks="$enable_libtool_lock"
  5810. +
  5811. +old_CC="$CC"
  5812. +old_CFLAGS="$CFLAGS"
  5813. +
  5814. +# Set sane defaults for various variables
  5815. +test -z "$AR" && AR=ar
  5816. +test -z "$AR_FLAGS" && AR_FLAGS=cru
  5817. +test -z "$AS" && AS=as
  5818. +test -z "$CC" && CC=cc
  5819. +test -z "$DLLTOOL" && DLLTOOL=dlltool
  5820. +test -z "$LD" && LD=ld
  5821. +test -z "$LN_S" && LN_S="ln -s"
  5822. +test -z "$MAGIC_CMD" && MAGIC_CMD=file
  5823. +test -z "$NM" && NM=nm
  5824. +test -z "$OBJDUMP" && OBJDUMP=objdump
  5825. +test -z "$RANLIB" && RANLIB=:
  5826. +test -z "$STRIP" && STRIP=:
  5827. +test -z "$ac_objext" && ac_objext=o
  5828. +
  5829. +if test x"$host" != x"$build"; then
  5830. + ac_tool_prefix=${host_alias}-
  5831. +else
  5832. + ac_tool_prefix=
  5833. +fi
  5834. +
  5835. +# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
  5836. +case $host_os in
  5837. +linux-gnu*) ;;
  5838. +linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
  5839. +esac
  5840. +
  5841. +case $host_os in
  5842. +aix3*)
  5843. + # AIX sometimes has problems with the GCC collect2 program. For some
  5844. + # reason, if we set the COLLECT_NAMES environment variable, the problems
  5845. + # vanish in a puff of smoke.
  5846. + if test "X${COLLECT_NAMES+set}" != Xset; then
  5847. + COLLECT_NAMES=
  5848. + export COLLECT_NAMES
  5849. + fi
  5850. + ;;
  5851. +esac
  5852. +
  5853. +# Determine commands to create old-style static archives.
  5854. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  5855. +old_postinstall_cmds='chmod 644 $oldlib'
  5856. +old_postuninstall_cmds=
  5857. +
  5858. +if test -n "$RANLIB"; then
  5859. + case $host_os in
  5860. + openbsd*)
  5861. + old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
  5862. + ;;
  5863. + *)
  5864. + old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
  5865. + ;;
  5866. + esac
  5867. + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5868. +fi
  5869. +
  5870. +# Allow CC to be a program name with arguments.
  5871. +set dummy $CC
  5872. +compiler="$2"
  5873. +
  5874. +echo "$as_me:$LINENO: checking for objdir" >&5
  5875. +echo $ECHO_N "checking for objdir... $ECHO_C" >&6
  5876. +rm -f .libs 2>/dev/null
  5877. +mkdir .libs 2>/dev/null
  5878. +if test -d .libs; then
  5879. + objdir=.libs
  5880. +else
  5881. + # MS-DOS does not allow filenames that begin with a dot.
  5882. + objdir=_libs
  5883. +fi
  5884. +rmdir .libs 2>/dev/null
  5885. +echo "$as_me:$LINENO: result: $objdir" >&5
  5886. +echo "${ECHO_T}$objdir" >&6
  5887. +
  5888. +
  5889. +
  5890. +# Check whether --with-pic or --without-pic was given.
  5891. +if test "${with_pic+set}" = set; then
  5892. + withval="$with_pic"
  5893. + pic_mode="$withval"
  5894. +else
  5895. + pic_mode=default
  5896. +fi;
  5897. +test -z "$pic_mode" && pic_mode=default
  5898. +
  5899. +# We assume here that the value for lt_cv_prog_cc_pic will not be cached
  5900. +# in isolation, and that seeing it set (from the cache) indicates that
  5901. +# the associated values are set (in the cache) correctly too.
  5902. +echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  5903. +echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  5904. +if test "${lt_cv_prog_cc_pic+set}" = set; then
  5905. + echo $ECHO_N "(cached) $ECHO_C" >&6
  5906. +else
  5907. + lt_cv_prog_cc_pic=
  5908. + lt_cv_prog_cc_shlib=
  5909. + lt_cv_prog_cc_wl=
  5910. + lt_cv_prog_cc_static=
  5911. + lt_cv_prog_cc_no_builtin=
  5912. + lt_cv_prog_cc_can_build_shared=$can_build_shared
  5913. +
  5914. + if test "$GCC" = yes; then
  5915. + lt_cv_prog_cc_wl='-Wl,'
  5916. + lt_cv_prog_cc_static='-static'
  5917. +
  5918. + case $host_os in
  5919. + aix*)
  5920. + # Below there is a dirty hack to force normal static linking with -ldl
  5921. + # The problem is because libdl dynamically linked with both libc and
  5922. + # libC (AIX C++ library), which obviously doesn't included in libraries
  5923. + # list by gcc. This cause undefined symbols with -static flags.
  5924. + # This hack allows C programs to be linked with "-static -ldl", but
  5925. + # not sure about C++ programs.
  5926. + lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
  5927. + ;;
  5928. + amigaos*)
  5929. + # FIXME: we need at least 68020 code to build shared libraries, but
  5930. + # adding the `-m68020' flag to GCC prevents building anything better,
  5931. + # like `-m68040'.
  5932. + lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
  5933. + ;;
  5934. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  5935. + # PIC is the default for these OSes.
  5936. + ;;
  5937. + darwin* | rhapsody*)
  5938. + # PIC is the default on this platform
  5939. + # Common symbols not allowed in MH_DYLIB files
  5940. + lt_cv_prog_cc_pic='-fno-common'
  5941. + ;;
  5942. + cygwin* | mingw* | pw32* | os2*)
  5943. + # This hack is so that the source file can tell whether it is being
  5944. + # built for inclusion in a dll (and should export symbols for example).
  5945. + lt_cv_prog_cc_pic='-DDLL_EXPORT'
  5946. + ;;
  5947. + sysv4*MP*)
  5948. + if test -d /usr/nec; then
  5949. + lt_cv_prog_cc_pic=-Kconform_pic
  5950. + fi
  5951. + ;;
  5952. + *)
  5953. + lt_cv_prog_cc_pic='-fPIC'
  5954. + ;;
  5955. + esac
  5956. + else
  5957. + # PORTME Check for PIC flags for the system compiler.
  5958. + case $host_os in
  5959. + aix3* | aix4* | aix5*)
  5960. + lt_cv_prog_cc_wl='-Wl,'
  5961. + # All AIX code is PIC.
  5962. + if test "$host_cpu" = ia64; then
  5963. + # AIX 5 now supports IA64 processor
  5964. + lt_cv_prog_cc_static='-Bstatic'
  5965. + else
  5966. + lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
  5967. + fi
  5968. + ;;
  5969. +
  5970. + hpux9* | hpux10* | hpux11*)
  5971. + # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
  5972. + lt_cv_prog_cc_wl='-Wl,'
  5973. + lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
  5974. + lt_cv_prog_cc_pic='+Z'
  5975. + ;;
  5976. +
  5977. + irix5* | irix6* | nonstopux*)
  5978. + lt_cv_prog_cc_wl='-Wl,'
  5979. + lt_cv_prog_cc_static='-non_shared'
  5980. + # PIC (with -KPIC) is the default.
  5981. + ;;
  5982. +
  5983. + cygwin* | mingw* | pw32* | os2*)
  5984. + # This hack is so that the source file can tell whether it is being
  5985. + # built for inclusion in a dll (and should export symbols for example).
  5986. + lt_cv_prog_cc_pic='-DDLL_EXPORT'
  5987. + ;;
  5988. +
  5989. + newsos6)
  5990. + lt_cv_prog_cc_pic='-KPIC'
  5991. + lt_cv_prog_cc_static='-Bstatic'
  5992. + ;;
  5993. +
  5994. + osf3* | osf4* | osf5*)
  5995. + # All OSF/1 code is PIC.
  5996. + lt_cv_prog_cc_wl='-Wl,'
  5997. + lt_cv_prog_cc_static='-non_shared'
  5998. + ;;
  5999. +
  6000. + sco3.2v5*)
  6001. + lt_cv_prog_cc_pic='-Kpic'
  6002. + lt_cv_prog_cc_static='-dn'
  6003. + lt_cv_prog_cc_shlib='-belf'
  6004. + ;;
  6005. +
  6006. + solaris*)
  6007. + lt_cv_prog_cc_pic='-KPIC'
  6008. + lt_cv_prog_cc_static='-Bstatic'
  6009. + lt_cv_prog_cc_wl='-Wl,'
  6010. + ;;
  6011. +
  6012. + sunos4*)
  6013. + lt_cv_prog_cc_pic='-PIC'
  6014. + lt_cv_prog_cc_static='-Bstatic'
  6015. + lt_cv_prog_cc_wl='-Qoption ld '
  6016. + ;;
  6017. +
  6018. + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  6019. + lt_cv_prog_cc_pic='-KPIC'
  6020. + lt_cv_prog_cc_static='-Bstatic'
  6021. + lt_cv_prog_cc_wl='-Wl,'
  6022. + ;;
  6023. +
  6024. + uts4*)
  6025. + lt_cv_prog_cc_pic='-pic'
  6026. + lt_cv_prog_cc_static='-Bstatic'
  6027. + ;;
  6028. +
  6029. + sysv4*MP*)
  6030. + if test -d /usr/nec ;then
  6031. + lt_cv_prog_cc_pic='-Kconform_pic'
  6032. + lt_cv_prog_cc_static='-Bstatic'
  6033. + fi
  6034. + ;;
  6035. +
  6036. + *)
  6037. + lt_cv_prog_cc_can_build_shared=no
  6038. + ;;
  6039. + esac
  6040. + fi
  6041. +
  6042. +fi
  6043. +
  6044. +if test -z "$lt_cv_prog_cc_pic"; then
  6045. + echo "$as_me:$LINENO: result: none" >&5
  6046. +echo "${ECHO_T}none" >&6
  6047. +else
  6048. + echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
  6049. +echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
  6050. +
  6051. + # Check to make sure the pic_flag actually works.
  6052. + echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
  6053. +echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
  6054. + if test "${lt_cv_prog_cc_pic_works+set}" = set; then
  6055. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6056. +else
  6057. + save_CFLAGS="$CFLAGS"
  6058. + CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
  6059. + cat >conftest.$ac_ext <<_ACEOF
  6060. +/* confdefs.h. */
  6061. +_ACEOF
  6062. +cat confdefs.h >>conftest.$ac_ext
  6063. +cat >>conftest.$ac_ext <<_ACEOF
  6064. +/* end confdefs.h. */
  6065. +
  6066. +int
  6067. +main ()
  6068. +{
  6069. +
  6070. + ;
  6071. + return 0;
  6072. }
  6073. +_ACEOF
  6074. +rm -f conftest.$ac_objext
  6075. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6076. + (eval $ac_compile) 2>conftest.er1
  6077. + ac_status=$?
  6078. + grep -v '^ *+' conftest.er1 >conftest.err
  6079. + rm -f conftest.er1
  6080. + cat conftest.err >&5
  6081. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6082. + (exit $ac_status); } &&
  6083. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6084. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6085. + (eval $ac_try) 2>&5
  6086. + ac_status=$?
  6087. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6088. + (exit $ac_status); }; } &&
  6089. + { ac_try='test -s conftest.$ac_objext'
  6090. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6091. + (eval $ac_try) 2>&5
  6092. + ac_status=$?
  6093. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6094. + (exit $ac_status); }; }; then
  6095. + case $host_os in
  6096. + hpux9* | hpux10* | hpux11*)
  6097. + # On HP-UX, both CC and GCC only warn that PIC is supported... then
  6098. + # they create non-PIC objects. So, if there were any warnings, we
  6099. + # assume that PIC is not supported.
  6100. + if test -s conftest.err; then
  6101. + lt_cv_prog_cc_pic_works=no
  6102. + else
  6103. + lt_cv_prog_cc_pic_works=yes
  6104. + fi
  6105. + ;;
  6106. + *)
  6107. + lt_cv_prog_cc_pic_works=yes
  6108. + ;;
  6109. + esac
  6110. +
  6111. +else
  6112. + echo "$as_me: failed program was:" >&5
  6113. +sed 's/^/| /' conftest.$ac_ext >&5
  6114. +
  6115. + lt_cv_prog_cc_pic_works=no
  6116. +
  6117. +fi
  6118. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6119. + CFLAGS="$save_CFLAGS"
  6120. +
  6121. +fi
  6122. +
  6123. +
  6124. + if test "X$lt_cv_prog_cc_pic_works" = Xno; then
  6125. + lt_cv_prog_cc_pic=
  6126. + lt_cv_prog_cc_can_build_shared=no
  6127. + else
  6128. + lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
  6129. + fi
  6130. +
  6131. + echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
  6132. +echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
  6133. +fi
  6134. +
  6135. +# Check for any special shared library compilation flags.
  6136. +if test -n "$lt_cv_prog_cc_shlib"; then
  6137. + { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
  6138. +echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
  6139. + if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
  6140. + else
  6141. + { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
  6142. +echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
  6143. + lt_cv_prog_cc_can_build_shared=no
  6144. + fi
  6145. +fi
  6146. +
  6147. +echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
  6148. +echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
  6149. +if test "${lt_cv_prog_cc_static_works+set}" = set; then
  6150. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6151. +else
  6152. + lt_cv_prog_cc_static_works=no
  6153. + save_LDFLAGS="$LDFLAGS"
  6154. + LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
  6155. + cat >conftest.$ac_ext <<_ACEOF
  6156. +/* confdefs.h. */
  6157. +_ACEOF
  6158. +cat confdefs.h >>conftest.$ac_ext
  6159. +cat >>conftest.$ac_ext <<_ACEOF
  6160. +/* end confdefs.h. */
  6161. +
  6162. +int
  6163. +main ()
  6164. +{
  6165. +
  6166. + ;
  6167. + return 0;
  6168. +}
  6169. +_ACEOF
  6170. +rm -f conftest.$ac_objext conftest$ac_exeext
  6171. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6172. + (eval $ac_link) 2>conftest.er1
  6173. + ac_status=$?
  6174. + grep -v '^ *+' conftest.er1 >conftest.err
  6175. + rm -f conftest.er1
  6176. + cat conftest.err >&5
  6177. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6178. + (exit $ac_status); } &&
  6179. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6180. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6181. + (eval $ac_try) 2>&5
  6182. + ac_status=$?
  6183. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6184. + (exit $ac_status); }; } &&
  6185. + { ac_try='test -s conftest$ac_exeext'
  6186. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6187. + (eval $ac_try) 2>&5
  6188. + ac_status=$?
  6189. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6190. + (exit $ac_status); }; }; then
  6191. + lt_cv_prog_cc_static_works=yes
  6192. +else
  6193. + echo "$as_me: failed program was:" >&5
  6194. +sed 's/^/| /' conftest.$ac_ext >&5
  6195. +
  6196. +fi
  6197. +rm -f conftest.err conftest.$ac_objext \
  6198. + conftest$ac_exeext conftest.$ac_ext
  6199. + LDFLAGS="$save_LDFLAGS"
  6200. +
  6201. +fi
  6202. +
  6203. +
  6204. +# Belt *and* braces to stop my trousers falling down:
  6205. +test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
  6206. +echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
  6207. +echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
  6208. +
  6209. +pic_flag="$lt_cv_prog_cc_pic"
  6210. +special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
  6211. +wl="$lt_cv_prog_cc_wl"
  6212. +link_static_flag="$lt_cv_prog_cc_static"
  6213. +no_builtin_flag="$lt_cv_prog_cc_no_builtin"
  6214. +can_build_shared="$lt_cv_prog_cc_can_build_shared"
  6215. +
  6216. +
  6217. +# Check to see if options -o and -c are simultaneously supported by compiler
  6218. +echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  6219. +echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  6220. +if test "${lt_cv_compiler_c_o+set}" = set; then
  6221. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6222. +else
  6223. +
  6224. +$rm -r conftest 2>/dev/null
  6225. +mkdir conftest
  6226. +cd conftest
  6227. +echo "int some_variable = 0;" > conftest.$ac_ext
  6228. +mkdir out
  6229. +# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
  6230. +# that will create temporary files in the current directory regardless of
  6231. +# the output directory. Thus, making CWD read-only will cause this test
  6232. +# to fail, enabling locking or at least warning the user not to do parallel
  6233. +# builds.
  6234. +chmod -w .
  6235. +save_CFLAGS="$CFLAGS"
  6236. +CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
  6237. +compiler_c_o=no
  6238. +if { (eval echo configure:5680: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
  6239. + # The compiler can only warn and ignore the option if not recognized
  6240. + # So say no if there are warnings
  6241. + if test -s out/conftest.err; then
  6242. + lt_cv_compiler_c_o=no
  6243. + else
  6244. + lt_cv_compiler_c_o=yes
  6245. + fi
  6246. +else
  6247. + # Append any errors to the config.log.
  6248. + cat out/conftest.err 1>&5
  6249. + lt_cv_compiler_c_o=no
  6250. +fi
  6251. +CFLAGS="$save_CFLAGS"
  6252. +chmod u+w .
  6253. +$rm conftest* out/*
  6254. +rmdir out
  6255. +cd ..
  6256. +rmdir conftest
  6257. +$rm -r conftest 2>/dev/null
  6258. +
  6259. +fi
  6260. +
  6261. +compiler_c_o=$lt_cv_compiler_c_o
  6262. +echo "$as_me:$LINENO: result: $compiler_c_o" >&5
  6263. +echo "${ECHO_T}$compiler_c_o" >&6
  6264. +
  6265. +if test x"$compiler_c_o" = x"yes"; then
  6266. + # Check to see if we can write to a .lo
  6267. + echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
  6268. +echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
  6269. + if test "${lt_cv_compiler_o_lo+set}" = set; then
  6270. + echo $ECHO_N "(cached) $ECHO_C" >&6
  6271. +else
  6272. +
  6273. + lt_cv_compiler_o_lo=no
  6274. + save_CFLAGS="$CFLAGS"
  6275. + CFLAGS="$CFLAGS -c -o conftest.lo"
  6276. + save_objext="$ac_objext"
  6277. + ac_objext=lo
  6278. + cat >conftest.$ac_ext <<_ACEOF
  6279. +/* confdefs.h. */
  6280. +_ACEOF
  6281. +cat confdefs.h >>conftest.$ac_ext
  6282. +cat >>conftest.$ac_ext <<_ACEOF
  6283. +/* end confdefs.h. */
  6284. +
  6285. +int
  6286. +main ()
  6287. +{
  6288. +int some_variable = 0;
  6289. + ;
  6290. + return 0;
  6291. +}
  6292. +_ACEOF
  6293. +rm -f conftest.$ac_objext
  6294. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6295. + (eval $ac_compile) 2>conftest.er1
  6296. + ac_status=$?
  6297. + grep -v '^ *+' conftest.er1 >conftest.err
  6298. + rm -f conftest.er1
  6299. + cat conftest.err >&5
  6300. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6301. + (exit $ac_status); } &&
  6302. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6303. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6304. + (eval $ac_try) 2>&5
  6305. + ac_status=$?
  6306. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6307. + (exit $ac_status); }; } &&
  6308. + { ac_try='test -s conftest.$ac_objext'
  6309. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6310. + (eval $ac_try) 2>&5
  6311. + ac_status=$?
  6312. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6313. + (exit $ac_status); }; }; then
  6314. + # The compiler can only warn and ignore the option if not recognized
  6315. + # So say no if there are warnings
  6316. + if test -s conftest.err; then
  6317. + lt_cv_compiler_o_lo=no
  6318. + else
  6319. + lt_cv_compiler_o_lo=yes
  6320. + fi
  6321. +
  6322. +else
  6323. + echo "$as_me: failed program was:" >&5
  6324. +sed 's/^/| /' conftest.$ac_ext >&5
  6325. +
  6326. +fi
  6327. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6328. + ac_objext="$save_objext"
  6329. + CFLAGS="$save_CFLAGS"
  6330. +
  6331. +fi
  6332. +
  6333. + compiler_o_lo=$lt_cv_compiler_o_lo
  6334. + echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
  6335. +echo "${ECHO_T}$compiler_o_lo" >&6
  6336. +else
  6337. + compiler_o_lo=no
  6338. +fi
  6339. +
  6340. +# Check to see if we can do hard links to lock some files if needed
  6341. +hard_links="nottested"
  6342. +if test "$compiler_c_o" = no && test "$need_locks" != no; then
  6343. + # do not overwrite the value of need_locks provided by the user
  6344. + echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  6345. +echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  6346. + hard_links=yes
  6347. + $rm conftest*
  6348. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6349. + touch conftest.a
  6350. + ln conftest.a conftest.b 2>&5 || hard_links=no
  6351. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  6352. + echo "$as_me:$LINENO: result: $hard_links" >&5
  6353. +echo "${ECHO_T}$hard_links" >&6
  6354. + if test "$hard_links" = no; then
  6355. + { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  6356. +echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  6357. + need_locks=warn
  6358. + fi
  6359. +else
  6360. + need_locks=no
  6361. +fi
  6362. +
  6363. +if test "$GCC" = yes; then
  6364. + # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
  6365. + echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6366. +echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
  6367. + echo "int some_variable = 0;" > conftest.$ac_ext
  6368. + save_CFLAGS="$CFLAGS"
  6369. + CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
  6370. + compiler_rtti_exceptions=no
  6371. + cat >conftest.$ac_ext <<_ACEOF
  6372. +/* confdefs.h. */
  6373. +_ACEOF
  6374. +cat confdefs.h >>conftest.$ac_ext
  6375. +cat >>conftest.$ac_ext <<_ACEOF
  6376. +/* end confdefs.h. */
  6377. +
  6378. +int
  6379. +main ()
  6380. +{
  6381. +int some_variable = 0;
  6382. + ;
  6383. + return 0;
  6384. +}
  6385. +_ACEOF
  6386. +rm -f conftest.$ac_objext
  6387. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6388. + (eval $ac_compile) 2>conftest.er1
  6389. + ac_status=$?
  6390. + grep -v '^ *+' conftest.er1 >conftest.err
  6391. + rm -f conftest.er1
  6392. + cat conftest.err >&5
  6393. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6394. + (exit $ac_status); } &&
  6395. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6396. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6397. + (eval $ac_try) 2>&5
  6398. + ac_status=$?
  6399. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6400. + (exit $ac_status); }; } &&
  6401. + { ac_try='test -s conftest.$ac_objext'
  6402. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6403. + (eval $ac_try) 2>&5
  6404. + ac_status=$?
  6405. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6406. + (exit $ac_status); }; }; then
  6407. + # The compiler can only warn and ignore the option if not recognized
  6408. + # So say no if there are warnings
  6409. + if test -s conftest.err; then
  6410. + compiler_rtti_exceptions=no
  6411. + else
  6412. + compiler_rtti_exceptions=yes
  6413. + fi
  6414. +
  6415. +else
  6416. + echo "$as_me: failed program was:" >&5
  6417. +sed 's/^/| /' conftest.$ac_ext >&5
  6418. +
  6419. +fi
  6420. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6421. + CFLAGS="$save_CFLAGS"
  6422. + echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
  6423. +echo "${ECHO_T}$compiler_rtti_exceptions" >&6
  6424. +
  6425. + if test "$compiler_rtti_exceptions" = "yes"; then
  6426. + no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
  6427. + else
  6428. + no_builtin_flag=' -fno-builtin'
  6429. + fi
  6430. +fi
  6431. +
  6432. +# See if the linker supports building shared libraries.
  6433. +echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
  6434. +echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
  6435. +
  6436. +allow_undefined_flag=
  6437. +no_undefined_flag=
  6438. +need_lib_prefix=unknown
  6439. +need_version=unknown
  6440. +# when you set need_version to no, make sure it does not cause -set_version
  6441. +# flags to be left without arguments
  6442. +archive_cmds=
  6443. +archive_expsym_cmds=
  6444. +old_archive_from_new_cmds=
  6445. +old_archive_from_expsyms_cmds=
  6446. +export_dynamic_flag_spec=
  6447. +whole_archive_flag_spec=
  6448. +thread_safe_flag_spec=
  6449. +hardcode_into_libs=no
  6450. +hardcode_libdir_flag_spec=
  6451. +hardcode_libdir_separator=
  6452. +hardcode_direct=no
  6453. +hardcode_minus_L=no
  6454. +hardcode_shlibpath_var=unsupported
  6455. +runpath_var=
  6456. +link_all_deplibs=unknown
  6457. +always_export_symbols=no
  6458. +export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
  6459. +# include_expsyms should be a list of space-separated symbols to be *always*
  6460. +# included in the symbol list
  6461. +include_expsyms=
  6462. +# exclude_expsyms can be an egrep regular expression of symbols to exclude
  6463. +# it will be wrapped by ` (' and `)$', so one must not match beginning or
  6464. +# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  6465. +# as well as any symbol that contains `d'.
  6466. +exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  6467. +# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  6468. +# platforms (ab)use it in PIC code, but their linkers get confused if
  6469. +# the symbol is explicitly referenced. Since portable code cannot
  6470. +# rely on this symbol name, it's probably fine to never include it in
  6471. +# preloaded symbol tables.
  6472. +extract_expsyms_cmds=
  6473. +
  6474. +case $host_os in
  6475. +cygwin* | mingw* | pw32*)
  6476. + # FIXME: the MSVC++ port hasn't been tested in a loooong time
  6477. + # When not using gcc, we currently assume that we are using
  6478. + # Microsoft Visual C++.
  6479. + if test "$GCC" != yes; then
  6480. + with_gnu_ld=no
  6481. + fi
  6482. + ;;
  6483. +openbsd*)
  6484. + with_gnu_ld=no
  6485. + ;;
  6486. +esac
  6487. +
  6488. +ld_shlibs=yes
  6489. +if test "$with_gnu_ld" = yes; then
  6490. + # If archive_cmds runs LD, not CC, wlarc should be empty
  6491. + wlarc='${wl}'
  6492. +
  6493. + # See if GNU ld supports shared libraries.
  6494. + case $host_os in
  6495. + aix3* | aix4* | aix5*)
  6496. + # On AIX, the GNU linker is very broken
  6497. + # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
  6498. + ld_shlibs=no
  6499. + cat <<EOF 1>&2
  6500. +
  6501. +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  6502. +*** to be unable to reliably create shared libraries on AIX.
  6503. +*** Therefore, libtool is disabling shared libraries support. If you
  6504. +*** really care for shared libraries, you may want to modify your PATH
  6505. +*** so that a non-GNU linker is found, and then restart.
  6506. +
  6507. EOF
  6508. - ${CC-cc} -o pf_packet-test $CFLAGS pf_packet-test.c >/dev/null 2>&1
  6509. + ;;
  6510. - # Oopz 4.3 BSD doesn't have this. Sorry.
  6511. - if test ! -x ./pf_packet-test ; then
  6512. - ac_libnet_have_pf_packet=choked
  6513. + amigaos*)
  6514. + archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  6515. + hardcode_libdir_flag_spec='-L$libdir'
  6516. + hardcode_minus_L=yes
  6517. +
  6518. + # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  6519. + # that the semantics of dynamic libraries on AmigaOS, at least up
  6520. + # to version 4, is to share data among multiple programs linked
  6521. + # with the same dynamic library. Since this doesn't match the
  6522. + # behavior of shared libraries on other platforms, we can use
  6523. + # them.
  6524. + ld_shlibs=no
  6525. + ;;
  6526. +
  6527. + beos*)
  6528. + if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  6529. + allow_undefined_flag=unsupported
  6530. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  6531. + # support --undefined. This deserves some investigation. FIXME
  6532. + archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6533. else
  6534. - ac_libnet_have_pf_packet=`./pf_packet-test`;
  6535. + ld_shlibs=no
  6536. fi
  6537. + ;;
  6538. +
  6539. + cygwin* | mingw* | pw32*)
  6540. + # hardcode_libdir_flag_spec is actually meaningless, as there is
  6541. + # no search path for DLLs.
  6542. + hardcode_libdir_flag_spec='-L$libdir'
  6543. + allow_undefined_flag=unsupported
  6544. + always_export_symbols=yes
  6545. +
  6546. + extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
  6547. + sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
  6548. + test -f $output_objdir/impgen.exe || (cd $output_objdir && \
  6549. + if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
  6550. + else $CC -o impgen impgen.c ; fi)~
  6551. + $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
  6552. +
  6553. + old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
  6554. +
  6555. + # cygwin and mingw dlls have different entry points and sets of symbols
  6556. + # to exclude.
  6557. + # FIXME: what about values for MSVC?
  6558. + dll_entry=__cygwin_dll_entry@12
  6559. + dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
  6560. + case $host_os in
  6561. + mingw*)
  6562. + # mingw values
  6563. + dll_entry=_DllMainCRTStartup@12
  6564. + dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
  6565. + ;;
  6566. + esac
  6567. +
  6568. + # mingw and cygwin differ, and it's simplest to just exclude the union
  6569. + # of the two symbol sets.
  6570. + dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
  6571. +
  6572. + # recent cygwin and mingw systems supply a stub DllMain which the user
  6573. + # can override, but on older systems we have to supply one (in ltdll.c)
  6574. + if test "x$lt_cv_need_dllmain" = "xyes"; then
  6575. + ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
  6576. + 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~
  6577. + test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
  6578. + else
  6579. + ltdll_obj=
  6580. + ltdll_cmds=
  6581. + fi
  6582. +
  6583. + # Extract the symbol export list from an `--export-all' def file,
  6584. + # then regenerate the def file from the symbol export list, so that
  6585. + # the compiled dll only exports the symbol export list.
  6586. + # Be careful not to strip the DATA tag left be newer dlltools.
  6587. + export_symbols_cmds="$ltdll_cmds"'
  6588. + $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
  6589. + sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
  6590. +
  6591. + # If the export-symbols file already is a .def file (1st line
  6592. + # is EXPORTS), use it as is.
  6593. + # If DATA tags from a recent dlltool are present, honour them!
  6594. + archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
  6595. + cp $export_symbols $output_objdir/$soname-def;
  6596. + else
  6597. + echo EXPORTS > $output_objdir/$soname-def;
  6598. + _lt_hint=1;
  6599. + cat $export_symbols | while read symbol; do
  6600. + set dummy \$symbol;
  6601. + case \$# in
  6602. + 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
  6603. + 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
  6604. + *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
  6605. + esac;
  6606. + _lt_hint=`expr 1 + \$_lt_hint`;
  6607. + done;
  6608. + fi~
  6609. + '"$ltdll_cmds"'
  6610. + $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~
  6611. + $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
  6612. + $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
  6613. + $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
  6614. + $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
  6615. + ;;
  6616. +
  6617. + netbsd*)
  6618. + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  6619. + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  6620. + wlarc=
  6621. + else
  6622. + archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6623. + archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6624. + fi
  6625. + ;;
  6626. +
  6627. + solaris* | sysv5*)
  6628. + if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
  6629. + ld_shlibs=no
  6630. + cat <<EOF 1>&2
  6631. +
  6632. +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  6633. +*** create shared libraries on Solaris systems. Therefore, libtool
  6634. +*** is disabling shared libraries support. We urge you to upgrade GNU
  6635. +*** binutils to release 2.9.1 or newer. Another option is to modify
  6636. +*** your PATH or compiler configuration so that the native linker is
  6637. +*** used, and then restart.
  6638. - if test $ac_libnet_have_pf_packet = choked; then
  6639. - echo "$ac_t""test program choked... assuming no" 1>&6
  6640. - elif test $ac_libnet_have_pf_packet = yes; then
  6641. - cat >> confdefs.h <<\EOF
  6642. -#define HAVE_PF_PACKET 1
  6643. EOF
  6644. + elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  6645. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6646. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6647. + else
  6648. + ld_shlibs=no
  6649. + fi
  6650. + ;;
  6651. - LIBNET_CONFIG_DEFINES="$LIBNET_CONFIG_DEFINES -DHAVE_PF_PACKET"
  6652. + sunos4*)
  6653. + archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6654. + wlarc=
  6655. + hardcode_direct=yes
  6656. + hardcode_shlibpath_var=no
  6657. + ;;
  6658. +
  6659. + *)
  6660. + if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  6661. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6662. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6663. + else
  6664. + ld_shlibs=no
  6665. fi
  6666. + ;;
  6667. + esac
  6668. - if test $ac_libnet_have_pf_packet != choked; then
  6669. - echo "$ac_t""$ac_libnet_have_pf_packet" 1>&6
  6670. + if test "$ld_shlibs" = yes; then
  6671. + runpath_var=LD_RUN_PATH
  6672. + hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  6673. + export_dynamic_flag_spec='${wl}--export-dynamic'
  6674. + case $host_os in
  6675. + cygwin* | mingw* | pw32*)
  6676. + # dlltool doesn't understand --whole-archive et. al.
  6677. + whole_archive_flag_spec=
  6678. + ;;
  6679. + *)
  6680. + # ancient GNU ld didn't support --whole-archive et. al.
  6681. + if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
  6682. + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  6683. + else
  6684. + whole_archive_flag_spec=
  6685. + fi
  6686. + ;;
  6687. + esac
  6688. + fi
  6689. +else
  6690. + # PORTME fill in a description of your system's linker (not GNU ld)
  6691. + case $host_os in
  6692. + aix3*)
  6693. + allow_undefined_flag=unsupported
  6694. + always_export_symbols=yes
  6695. + archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  6696. + # Note: this linker hardcodes the directories in LIBPATH if there
  6697. + # are no directories specified by -L.
  6698. + hardcode_minus_L=yes
  6699. + if test "$GCC" = yes && test -z "$link_static_flag"; then
  6700. + # Neither direct hardcoding nor static linking is supported with a
  6701. + # broken collect2.
  6702. + hardcode_direct=unsupported
  6703. fi
  6704. - rm -f pf_packet-test* core core.pf_packet-test
  6705. ;;
  6706. +
  6707. + aix4* | aix5*)
  6708. + if test "$host_cpu" = ia64; then
  6709. + # On IA64, the linker does run time linking by default, so we don't
  6710. + # have to do anything special.
  6711. + aix_use_runtimelinking=no
  6712. + exp_sym_flag='-Bexport'
  6713. + no_entry_flag=""
  6714. + else
  6715. + aix_use_runtimelinking=no
  6716. +
  6717. + # Test if we are trying to use run time linking or normal
  6718. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  6719. + # need to do runtime linking.
  6720. + case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  6721. + for ld_flag in $LDFLAGS; do
  6722. + case $ld_flag in
  6723. + *-brtl*)
  6724. + aix_use_runtimelinking=yes
  6725. + break
  6726. + ;;
  6727. + esac
  6728. + done
  6729. + esac
  6730. +
  6731. + exp_sym_flag='-bexport'
  6732. + no_entry_flag='-bnoentry'
  6733. + fi
  6734. +
  6735. + # When large executables or shared objects are built, AIX ld can
  6736. + # have problems creating the table of contents. If linking a library
  6737. + # or program results in "error TOC overflow" add -mminimal-toc to
  6738. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  6739. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  6740. +
  6741. + hardcode_direct=yes
  6742. + archive_cmds=''
  6743. + hardcode_libdir_separator=':'
  6744. + if test "$GCC" = yes; then
  6745. + case $host_os in aix4.[012]|aix4.[012].*)
  6746. + collect2name=`${CC} -print-prog-name=collect2`
  6747. + if test -f "$collect2name" && \
  6748. + strings "$collect2name" | grep resolve_lib_name >/dev/null
  6749. + then
  6750. + # We have reworked collect2
  6751. + hardcode_direct=yes
  6752. + else
  6753. + # We have old collect2
  6754. + hardcode_direct=unsupported
  6755. + # It fails to find uninstalled libraries when the uninstalled
  6756. + # path is not listed in the libpath. Setting hardcode_minus_L
  6757. + # to unsupported forces relinking
  6758. + hardcode_minus_L=yes
  6759. + hardcode_libdir_flag_spec='-L$libdir'
  6760. + hardcode_libdir_separator=
  6761. + fi
  6762. + esac
  6763. +
  6764. + shared_flag='-shared'
  6765. + else
  6766. + # not using gcc
  6767. + if test "$host_cpu" = ia64; then
  6768. + shared_flag='${wl}-G'
  6769. + else
  6770. + if test "$aix_use_runtimelinking" = yes; then
  6771. + shared_flag='${wl}-G'
  6772. + else
  6773. + shared_flag='${wl}-bM:SRE'
  6774. + fi
  6775. + fi
  6776. + fi
  6777. +
  6778. + # It seems that -bexpall can do strange things, so it is better to
  6779. + # generate a list of symbols to export.
  6780. + always_export_symbols=yes
  6781. + if test "$aix_use_runtimelinking" = yes; then
  6782. + # Warning - without using the other runtime loading flags (-brtl),
  6783. + # -berok will link without error, but may produce a broken library.
  6784. + allow_undefined_flag='-berok'
  6785. + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
  6786. + 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"
  6787. + else
  6788. + if test "$host_cpu" = ia64; then
  6789. + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  6790. + allow_undefined_flag="-z nodefs"
  6791. + 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"
  6792. + else
  6793. + hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
  6794. + # Warning - without using the other run time loading flags,
  6795. + # -berok will link without error, but may produce a broken library.
  6796. + allow_undefined_flag='${wl}-berok'
  6797. + # This is a bit strange, but is similar to how AIX traditionally builds
  6798. + # it's shared libraries.
  6799. + 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'
  6800. + fi
  6801. + fi
  6802. + ;;
  6803. +
  6804. + amigaos*)
  6805. + archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  6806. + hardcode_libdir_flag_spec='-L$libdir'
  6807. + hardcode_minus_L=yes
  6808. + # see comment about different semantics on the GNU ld section
  6809. + ld_shlibs=no
  6810. + ;;
  6811. +
  6812. + cygwin* | mingw* | pw32*)
  6813. + # When not using gcc, we currently assume that we are using
  6814. + # Microsoft Visual C++.
  6815. + # hardcode_libdir_flag_spec is actually meaningless, as there is
  6816. + # no search path for DLLs.
  6817. + hardcode_libdir_flag_spec=' '
  6818. + allow_undefined_flag=unsupported
  6819. + # Tell ltmain to make .lib files, not .a files.
  6820. + libext=lib
  6821. + # FIXME: Setting linknames here is a bad hack.
  6822. + archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  6823. + # The linker will automatically build a .lib file if we build a DLL.
  6824. + old_archive_from_new_cmds='true'
  6825. + # FIXME: Should let the user specify the lib program.
  6826. + old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
  6827. + fix_srcfile_path='`cygpath -w "$srcfile"`'
  6828. + ;;
  6829. +
  6830. + darwin* | rhapsody*)
  6831. + case "$host_os" in
  6832. + rhapsody* | darwin1.[012])
  6833. + allow_undefined_flag='-undefined suppress'
  6834. + ;;
  6835. + *) # Darwin 1.3 on
  6836. + allow_undefined_flag='-flat_namespace -undefined suppress'
  6837. + ;;
  6838. esac
  6839. + # FIXME: Relying on posixy $() will cause problems for
  6840. + # cross-compilation, but unfortunately the echo tests do not
  6841. + # yet detect zsh echo's removal of \ escapes. Also zsh mangles
  6842. + # `"' quotes if we put them in here... so don't!
  6843. + 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)'
  6844. + # We need to add '_' to the symbols in $export_symbols first
  6845. + #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
  6846. + hardcode_direct=yes
  6847. + hardcode_shlibpath_var=no
  6848. + whole_archive_flag_spec='-all_load $convenience'
  6849. + ;;
  6850. +
  6851. + freebsd1*)
  6852. + ld_shlibs=no
  6853. + ;;
  6854. +
  6855. + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  6856. + # support. Future versions do this automatically, but an explicit c++rt0.o
  6857. + # does not break anything, and helps significantly (at the cost of a little
  6858. + # extra space).
  6859. + freebsd2.2*)
  6860. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  6861. + hardcode_libdir_flag_spec='-R$libdir'
  6862. + hardcode_direct=yes
  6863. + hardcode_shlibpath_var=no
  6864. + ;;
  6865. +
  6866. + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  6867. + freebsd2*)
  6868. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6869. + hardcode_direct=yes
  6870. + hardcode_minus_L=yes
  6871. + hardcode_shlibpath_var=no
  6872. + ;;
  6873. +
  6874. + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  6875. + freebsd*)
  6876. + archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  6877. + hardcode_libdir_flag_spec='-R$libdir'
  6878. + hardcode_direct=yes
  6879. + hardcode_shlibpath_var=no
  6880. + ;;
  6881. +
  6882. + hpux9* | hpux10* | hpux11*)
  6883. + case $host_os in
  6884. + hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
  6885. + *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
  6886. + esac
  6887. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  6888. + hardcode_libdir_separator=:
  6889. + hardcode_direct=yes
  6890. + hardcode_minus_L=yes # Not in the search PATH, but as the default
  6891. + # location of the library.
  6892. + export_dynamic_flag_spec='${wl}-E'
  6893. + ;;
  6894. +
  6895. + irix5* | irix6* | nonstopux*)
  6896. + if test "$GCC" = yes; then
  6897. + 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'
  6898. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6899. + else
  6900. + 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'
  6901. + hardcode_libdir_flag_spec='-rpath $libdir'
  6902. + fi
  6903. + hardcode_libdir_separator=:
  6904. + link_all_deplibs=yes
  6905. + ;;
  6906. +
  6907. + netbsd*)
  6908. + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  6909. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  6910. + else
  6911. + archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  6912. + fi
  6913. + hardcode_libdir_flag_spec='-R$libdir'
  6914. + hardcode_direct=yes
  6915. + hardcode_shlibpath_var=no
  6916. + ;;
  6917. +
  6918. + newsos6)
  6919. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6920. + hardcode_direct=yes
  6921. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6922. + hardcode_libdir_separator=:
  6923. + hardcode_shlibpath_var=no
  6924. + ;;
  6925. +
  6926. + openbsd*)
  6927. + hardcode_direct=yes
  6928. + hardcode_shlibpath_var=no
  6929. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6930. + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  6931. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  6932. + export_dynamic_flag_spec='${wl}-E'
  6933. + else
  6934. + case "$host_os" in
  6935. + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  6936. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6937. + hardcode_libdir_flag_spec='-R$libdir'
  6938. + ;;
  6939. + *)
  6940. + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  6941. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  6942. + ;;
  6943. + esac
  6944. + fi
  6945. + ;;
  6946. +
  6947. + os2*)
  6948. + hardcode_libdir_flag_spec='-L$libdir'
  6949. + hardcode_minus_L=yes
  6950. + allow_undefined_flag=unsupported
  6951. + archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  6952. + old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  6953. + ;;
  6954. +
  6955. + osf3*)
  6956. + if test "$GCC" = yes; then
  6957. + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  6958. + archive_cmds='$CC -shared${allow_undefined_flag} $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'
  6959. + else
  6960. + allow_undefined_flag=' -expect_unresolved \*'
  6961. + archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  6962. + fi
  6963. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6964. + hardcode_libdir_separator=:
  6965. + ;;
  6966. +
  6967. + osf4* | osf5*) # as osf3* with the addition of -msym flag
  6968. + if test "$GCC" = yes; then
  6969. + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  6970. + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  6971. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  6972. + else
  6973. + allow_undefined_flag=' -expect_unresolved \*'
  6974. + archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  6975. + archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  6976. + $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
  6977. +
  6978. + #Both c and cxx compiler support -rpath directly
  6979. + hardcode_libdir_flag_spec='-rpath $libdir'
  6980. + fi
  6981. + hardcode_libdir_separator=:
  6982. + ;;
  6983. +
  6984. + sco3.2v5*)
  6985. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6986. + hardcode_shlibpath_var=no
  6987. + runpath_var=LD_RUN_PATH
  6988. + hardcode_runpath_var=yes
  6989. + export_dynamic_flag_spec='${wl}-Bexport'
  6990. + ;;
  6991. +
  6992. + solaris*)
  6993. + # gcc --version < 3.0 without binutils cannot create self contained
  6994. + # shared libraries reliably, requiring libgcc.a to resolve some of
  6995. + # the object symbols generated in some cases. Libraries that use
  6996. + # assert need libgcc.a to resolve __eprintf, for example. Linking
  6997. + # a copy of libgcc.a into every shared library to guarantee resolving
  6998. + # such symbols causes other problems: According to Tim Van Holder
  6999. + # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
  7000. + # (to the application) exception stack for one thing.
  7001. + no_undefined_flag=' -z defs'
  7002. + if test "$GCC" = yes; then
  7003. + case `$CC --version 2>/dev/null` in
  7004. + [12].*)
  7005. + cat <<EOF 1>&2
  7006. +
  7007. +*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
  7008. +*** create self contained shared libraries on Solaris systems, without
  7009. +*** introducing a dependency on libgcc.a. Therefore, libtool is disabling
  7010. +*** -no-undefined support, which will at least allow you to build shared
  7011. +*** libraries. However, you may find that when you link such libraries
  7012. +*** into an application without using GCC, you have to manually add
  7013. +*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
  7014. +*** upgrade to a newer version of GCC. Another option is to rebuild your
  7015. +*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
  7016. +
  7017. +EOF
  7018. + no_undefined_flag=
  7019. + ;;
  7020. + esac
  7021. + fi
  7022. + # $CC -shared without GNU ld will not create a library from C++
  7023. + # object files and a static libstdc++, better avoid it by now
  7024. + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7025. + archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  7026. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  7027. + hardcode_libdir_flag_spec='-R$libdir'
  7028. + hardcode_shlibpath_var=no
  7029. + case $host_os in
  7030. + solaris2.[0-5] | solaris2.[0-5].*) ;;
  7031. + *) # Supported since Solaris 2.6 (maybe 2.5.1?)
  7032. + whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
  7033. + esac
  7034. + link_all_deplibs=yes
  7035. + ;;
  7036. +
  7037. + sunos4*)
  7038. + if test "x$host_vendor" = xsequent; then
  7039. + # Use $CC to link under sequent, because it throws in some extra .o
  7040. + # files that make .init and .fini sections work.
  7041. + archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7042. + else
  7043. + archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  7044. + fi
  7045. + hardcode_libdir_flag_spec='-L$libdir'
  7046. + hardcode_direct=yes
  7047. + hardcode_minus_L=yes
  7048. + hardcode_shlibpath_var=no
  7049. + ;;
  7050. +
  7051. + sysv4)
  7052. + case $host_vendor in
  7053. + sni)
  7054. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7055. + hardcode_direct=yes # is this really true???
  7056. + ;;
  7057. + siemens)
  7058. + ## LD is ld it makes a PLAMLIB
  7059. + ## CC just makes a GrossModule.
  7060. + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  7061. + reload_cmds='$CC -r -o $output$reload_objs'
  7062. + hardcode_direct=no
  7063. + ;;
  7064. + motorola)
  7065. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7066. + hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  7067. + ;;
  7068. + esac
  7069. + runpath_var='LD_RUN_PATH'
  7070. + hardcode_shlibpath_var=no
  7071. + ;;
  7072. +
  7073. + sysv4.3*)
  7074. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7075. + hardcode_shlibpath_var=no
  7076. + export_dynamic_flag_spec='-Bexport'
  7077. + ;;
  7078. +
  7079. + sysv5*)
  7080. + no_undefined_flag=' -z text'
  7081. + # $CC -shared without GNU ld will not create a library from C++
  7082. + # object files and a static libstdc++, better avoid it by now
  7083. + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7084. + archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  7085. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  7086. + hardcode_libdir_flag_spec=
  7087. + hardcode_shlibpath_var=no
  7088. + runpath_var='LD_RUN_PATH'
  7089. + ;;
  7090. +
  7091. + uts4*)
  7092. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7093. + hardcode_libdir_flag_spec='-L$libdir'
  7094. + hardcode_shlibpath_var=no
  7095. + ;;
  7096. +
  7097. + dgux*)
  7098. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7099. + hardcode_libdir_flag_spec='-L$libdir'
  7100. + hardcode_shlibpath_var=no
  7101. + ;;
  7102. +
  7103. + sysv4*MP*)
  7104. + if test -d /usr/nec; then
  7105. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7106. + hardcode_shlibpath_var=no
  7107. + runpath_var=LD_RUN_PATH
  7108. + hardcode_runpath_var=yes
  7109. + ld_shlibs=yes
  7110. + fi
  7111. + ;;
  7112. +
  7113. + sysv4.2uw2*)
  7114. + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  7115. + hardcode_direct=yes
  7116. + hardcode_minus_L=no
  7117. + hardcode_shlibpath_var=no
  7118. + hardcode_runpath_var=yes
  7119. + runpath_var=LD_RUN_PATH
  7120. + ;;
  7121. +
  7122. + sysv5uw7* | unixware7*)
  7123. + no_undefined_flag='${wl}-z ${wl}text'
  7124. + if test "$GCC" = yes; then
  7125. + archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7126. + else
  7127. + archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7128. + fi
  7129. + runpath_var='LD_RUN_PATH'
  7130. + hardcode_shlibpath_var=no
  7131. + ;;
  7132. +
  7133. + *)
  7134. + ld_shlibs=no
  7135. + ;;
  7136. + esac
  7137. fi
  7138. +echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  7139. +echo "${ECHO_T}$ld_shlibs" >&6
  7140. +test "$ld_shlibs" = no && can_build_shared=no
  7141. +# Check hardcoding attributes.
  7142. +echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  7143. +echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  7144. +hardcode_action=
  7145. +if test -n "$hardcode_libdir_flag_spec" || \
  7146. + test -n "$runpath_var"; then
  7147. + # We can hardcode non-existant directories.
  7148. + if test "$hardcode_direct" != no &&
  7149. + # If the only mechanism to avoid hardcoding is shlibpath_var, we
  7150. + # have to relink, otherwise we might link with an installed library
  7151. + # when we should be linking with a yet-to-be-installed one
  7152. + ## test "$hardcode_shlibpath_var" != no &&
  7153. + test "$hardcode_minus_L" != no; then
  7154. + # Linking always hardcodes the temporary library directory.
  7155. + hardcode_action=relink
  7156. + else
  7157. + # We can link without hardcoding, and we can hardcode nonexisting dirs.
  7158. + hardcode_action=immediate
  7159. + fi
  7160. +else
  7161. + # We cannot hardcode anything, or else we can only hardcode existing
  7162. + # directories.
  7163. + hardcode_action=unsupported
  7164. +fi
  7165. +echo "$as_me:$LINENO: result: $hardcode_action" >&5
  7166. +echo "${ECHO_T}$hardcode_action" >&6
  7167. +
  7168. +striplib=
  7169. +old_striplib=
  7170. +echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  7171. +echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  7172. +if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  7173. + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  7174. + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  7175. + echo "$as_me:$LINENO: result: yes" >&5
  7176. +echo "${ECHO_T}yes" >&6
  7177. +else
  7178. + echo "$as_me:$LINENO: result: no" >&5
  7179. +echo "${ECHO_T}no" >&6
  7180. +fi
  7181. +
  7182. +reload_cmds='$LD$reload_flag -o $output$reload_objs'
  7183. +test -z "$deplibs_check_method" && deplibs_check_method=unknown
  7184. +
  7185. +# PORTME Fill in your ld.so characteristics
  7186. +echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  7187. +echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  7188. +library_names_spec=
  7189. +libname_spec='lib$name'
  7190. +soname_spec=
  7191. +postinstall_cmds=
  7192. +postuninstall_cmds=
  7193. +finish_cmds=
  7194. +finish_eval=
  7195. +shlibpath_var=
  7196. +shlibpath_overrides_runpath=unknown
  7197. +version_type=none
  7198. +dynamic_linker="$host_os ld.so"
  7199. +sys_lib_dlsearch_path_spec="/lib /usr/lib"
  7200. +sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  7201. +
  7202. +case $host_os in
  7203. +aix3*)
  7204. + version_type=linux
  7205. + library_names_spec='${libname}${release}.so$versuffix $libname.a'
  7206. + shlibpath_var=LIBPATH
  7207. +
  7208. + # AIX has no versioning support, so we append a major version to the name.
  7209. + soname_spec='${libname}${release}.so$major'
  7210. + ;;
  7211. +
  7212. +aix4* | aix5*)
  7213. + version_type=linux
  7214. + need_lib_prefix=no
  7215. + need_version=no
  7216. + hardcode_into_libs=yes
  7217. + if test "$host_cpu" = ia64; then
  7218. + # AIX 5 supports IA64
  7219. + library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
  7220. + shlibpath_var=LD_LIBRARY_PATH
  7221. + else
  7222. + # With GCC up to 2.95.x, collect2 would create an import file
  7223. + # for dependence libraries. The import file would start with
  7224. + # the line `#! .'. This would cause the generated library to
  7225. + # depend on `.', always an invalid library. This was fixed in
  7226. + # development snapshots of GCC prior to 3.0.
  7227. + case $host_os in
  7228. + aix4 | aix4.[01] | aix4.[01].*)
  7229. + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  7230. + echo ' yes '
  7231. + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  7232. + :
  7233. + else
  7234. + can_build_shared=no
  7235. + fi
  7236. + ;;
  7237. + esac
  7238. + # AIX (on Power*) has no versioning support, so currently we can
  7239. + # not hardcode correct soname into executable. Probably we can
  7240. + # add versioning support to collect2, so additional links can
  7241. + # be useful in future.
  7242. + if test "$aix_use_runtimelinking" = yes; then
  7243. + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  7244. + # instead of lib<name>.a to let people know that these are not
  7245. + # typical AIX shared libraries.
  7246. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  7247. + else
  7248. + # We preserve .a as extension for shared libraries through AIX4.2
  7249. + # and later when we are not doing run time linking.
  7250. + library_names_spec='${libname}${release}.a $libname.a'
  7251. + soname_spec='${libname}${release}.so$major'
  7252. fi
  7253. -elif test -c /dev/bpf0 ; then # check again in case not readable
  7254. - LL_INT_TYPE=bpf
  7255. - echo "$ac_t""found bpf" 1>&6
  7256. -elif test -c /dev/enet ; then # check again in case not readable
  7257. - LL_INT_TYPE=enet
  7258. - echo "$ac_t""found enet" 1>&6
  7259. -elif test -c /dev/nit ; then # check again in case not readable
  7260. - LL_INT_TYPE=snit
  7261. - echo "$ac_t""found snit" 1>&6
  7262. + shlibpath_var=LIBPATH
  7263. + fi
  7264. + hardcode_into_libs=yes
  7265. + ;;
  7266. +
  7267. +amigaos*)
  7268. + library_names_spec='$libname.ixlibrary $libname.a'
  7269. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  7270. + 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'
  7271. + ;;
  7272. +
  7273. +beos*)
  7274. + library_names_spec='${libname}.so'
  7275. + dynamic_linker="$host_os ld.so"
  7276. + shlibpath_var=LIBRARY_PATH
  7277. + ;;
  7278. +
  7279. +bsdi4*)
  7280. + version_type=linux
  7281. + need_version=no
  7282. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  7283. + soname_spec='${libname}${release}.so$major'
  7284. + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  7285. + shlibpath_var=LD_LIBRARY_PATH
  7286. + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  7287. + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  7288. + export_dynamic_flag_spec=-rdynamic
  7289. + # the default ld.so.conf also contains /usr/contrib/lib and
  7290. + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  7291. + # libtool to hard-code these into programs
  7292. + ;;
  7293. +
  7294. +cygwin* | mingw* | pw32*)
  7295. + version_type=windows
  7296. + need_version=no
  7297. + need_lib_prefix=no
  7298. + case $GCC,$host_os in
  7299. + yes,cygwin*)
  7300. + library_names_spec='$libname.dll.a'
  7301. + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
  7302. + postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
  7303. + dldir=$destdir/`dirname \$dlpath`~
  7304. + test -d \$dldir || mkdir -p \$dldir~
  7305. + $install_prog .libs/$dlname \$dldir/$dlname'
  7306. + postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
  7307. + dlpath=$dir/\$dldll~
  7308. + $rm \$dlpath'
  7309. + ;;
  7310. + yes,mingw*)
  7311. + library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
  7312. + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
  7313. + ;;
  7314. + yes,pw32*)
  7315. + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
  7316. + ;;
  7317. + *)
  7318. + library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
  7319. + ;;
  7320. + esac
  7321. + dynamic_linker='Win32 ld.exe'
  7322. + # FIXME: first we should search . and the directory the executable is in
  7323. + shlibpath_var=PATH
  7324. + ;;
  7325. +
  7326. +darwin* | rhapsody*)
  7327. + dynamic_linker="$host_os dyld"
  7328. + version_type=darwin
  7329. + need_lib_prefix=no
  7330. + need_version=no
  7331. + # FIXME: Relying on posixy $() will cause problems for
  7332. + # cross-compilation, but unfortunately the echo tests do not
  7333. + # yet detect zsh echo's removal of \ escapes.
  7334. + library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
  7335. + soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
  7336. + shlibpath_overrides_runpath=yes
  7337. + shlibpath_var=DYLD_LIBRARY_PATH
  7338. + ;;
  7339. +
  7340. +freebsd1*)
  7341. + dynamic_linker=no
  7342. + ;;
  7343. +
  7344. +kfreebsd*-gnu*)
  7345. + version_type=linux
  7346. + need_lib_prefix=no
  7347. + need_version=no
  7348. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  7349. + soname_spec='${libname}${release}.so$major'
  7350. + shlibpath_var=LD_LIBRARY_PATH
  7351. + shlibpath_overrides_runpath=no
  7352. + hardcode_into_libs=yes
  7353. + dynamic_linker='GNU/FreeBSD ld.so'
  7354. + ;;
  7355. +
  7356. +freebsd*)
  7357. + objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  7358. + version_type=freebsd-$objformat
  7359. + case $version_type in
  7360. + freebsd-elf*)
  7361. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
  7362. + need_version=no
  7363. + need_lib_prefix=no
  7364. + ;;
  7365. + freebsd-*)
  7366. + library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
  7367. + need_version=yes
  7368. + ;;
  7369. + esac
  7370. + shlibpath_var=LD_LIBRARY_PATH
  7371. + case $host_os in
  7372. + freebsd2*)
  7373. + shlibpath_overrides_runpath=yes
  7374. + ;;
  7375. + *)
  7376. + shlibpath_overrides_runpath=no
  7377. + hardcode_into_libs=yes
  7378. + ;;
  7379. + esac
  7380. + ;;
  7381. +
  7382. +gnu*)
  7383. + version_type=linux
  7384. + need_lib_prefix=no
  7385. + need_version=no
  7386. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
  7387. + soname_spec='${libname}${release}.so$major'
  7388. + shlibpath_var=LD_LIBRARY_PATH
  7389. + hardcode_into_libs=yes
  7390. + ;;
  7391. +
  7392. +hpux9* | hpux10* | hpux11*)
  7393. + # Give a soname corresponding to the major version so that dld.sl refuses to
  7394. + # link against other versions.
  7395. + dynamic_linker="$host_os dld.sl"
  7396. + version_type=sunos
  7397. + need_lib_prefix=no
  7398. + need_version=no
  7399. + shlibpath_var=SHLIB_PATH
  7400. + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  7401. + library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
  7402. + soname_spec='${libname}${release}.sl$major'
  7403. + # HP-UX runs *really* slowly unless shared libraries are mode 555.
  7404. + postinstall_cmds='chmod 555 $lib'
  7405. + ;;
  7406. +
  7407. +irix5* | irix6* | nonstopux*)
  7408. + case $host_os in
  7409. + nonstopux*) version_type=nonstopux ;;
  7410. + *) version_type=irix ;;
  7411. + esac
  7412. + need_lib_prefix=no
  7413. + need_version=no
  7414. + soname_spec='${libname}${release}.so$major'
  7415. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
  7416. + case $host_os in
  7417. + irix5* | nonstopux*)
  7418. + libsuff= shlibsuff=
  7419. + ;;
  7420. + *)
  7421. + case $LD in # libtool.m4 will add one of these switches to LD
  7422. + *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
  7423. + *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
  7424. + *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
  7425. + *) libsuff= shlibsuff= libmagic=never-match;;
  7426. + esac
  7427. + ;;
  7428. + esac
  7429. + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  7430. + shlibpath_overrides_runpath=no
  7431. + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  7432. + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  7433. + ;;
  7434. +
  7435. +# No shared lib support for Linux oldld, aout, or coff.
  7436. +linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
  7437. + dynamic_linker=no
  7438. + ;;
  7439. +
  7440. +# This must be Linux ELF.
  7441. +linux-gnu*)
  7442. + version_type=linux
  7443. + need_lib_prefix=no
  7444. + need_version=no
  7445. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  7446. + soname_spec='${libname}${release}.so$major'
  7447. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  7448. + shlibpath_var=LD_LIBRARY_PATH
  7449. + shlibpath_overrides_runpath=no
  7450. + # This implies no fast_install, which is unacceptable.
  7451. + # Some rework will be needed to allow for fast_install
  7452. + # before this can be enabled.
  7453. + hardcode_into_libs=yes
  7454. +
  7455. + # We used to test for /lib/ld.so.1 and disable shared libraries on
  7456. + # powerpc, because MkLinux only supported shared libraries with the
  7457. + # GNU dynamic linker. Since this was broken with cross compilers,
  7458. + # most powerpc-linux boxes support dynamic linking these days and
  7459. + # people can always --disable-shared, the test was removed, and we
  7460. + # assume the GNU/Linux dynamic linker is in use.
  7461. + dynamic_linker='GNU/Linux ld.so'
  7462. + ;;
  7463. +
  7464. +netbsd*)
  7465. + version_type=sunos
  7466. + need_lib_prefix=no
  7467. + need_version=no
  7468. + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  7469. + library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
  7470. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  7471. + dynamic_linker='NetBSD (a.out) ld.so'
  7472. + else
  7473. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
  7474. + soname_spec='${libname}${release}.so$major'
  7475. + dynamic_linker='NetBSD ld.elf_so'
  7476. + fi
  7477. + shlibpath_var=LD_LIBRARY_PATH
  7478. + shlibpath_overrides_runpath=yes
  7479. + hardcode_into_libs=yes
  7480. + ;;
  7481. +
  7482. +newsos6)
  7483. + version_type=linux
  7484. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  7485. + shlibpath_var=LD_LIBRARY_PATH
  7486. + shlibpath_overrides_runpath=yes
  7487. + ;;
  7488. +
  7489. +openbsd*)
  7490. + version_type=sunos
  7491. + need_lib_prefix=no
  7492. + need_version=no
  7493. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7494. + case "$host_os" in
  7495. + openbsd2.[89] | openbsd2.[89].*)
  7496. + shlibpath_overrides_runpath=no
  7497. + ;;
  7498. + *)
  7499. + shlibpath_overrides_runpath=yes
  7500. + ;;
  7501. + esac
  7502. + else
  7503. + shlibpath_overrides_runpath=yes
  7504. + fi
  7505. + library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
  7506. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  7507. + shlibpath_var=LD_LIBRARY_PATH
  7508. + ;;
  7509. +
  7510. +os2*)
  7511. + libname_spec='$name'
  7512. + need_lib_prefix=no
  7513. + library_names_spec='$libname.dll $libname.a'
  7514. + dynamic_linker='OS/2 ld.exe'
  7515. + shlibpath_var=LIBPATH
  7516. + ;;
  7517. +
  7518. +osf3* | osf4* | osf5*)
  7519. + version_type=osf
  7520. + need_version=no
  7521. + need_lib_prefix=no
  7522. + soname_spec='${libname}${release}.so$major'
  7523. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  7524. + shlibpath_var=LD_LIBRARY_PATH
  7525. + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  7526. + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  7527. + hardcode_into_libs=yes
  7528. + ;;
  7529. +
  7530. +sco3.2v5*)
  7531. + version_type=osf
  7532. + soname_spec='${libname}${release}.so$major'
  7533. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  7534. + shlibpath_var=LD_LIBRARY_PATH
  7535. + ;;
  7536. +
  7537. +solaris*)
  7538. + version_type=linux
  7539. + need_lib_prefix=no
  7540. + need_version=no
  7541. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  7542. + soname_spec='${libname}${release}.so$major'
  7543. + shlibpath_var=LD_LIBRARY_PATH
  7544. + shlibpath_overrides_runpath=yes
  7545. + hardcode_into_libs=yes
  7546. + # ldd complains unless libraries are executable
  7547. + postinstall_cmds='chmod +x $lib'
  7548. + ;;
  7549. +
  7550. +sunos4*)
  7551. + version_type=sunos
  7552. + library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
  7553. + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  7554. + shlibpath_var=LD_LIBRARY_PATH
  7555. + shlibpath_overrides_runpath=yes
  7556. + if test "$with_gnu_ld" = yes; then
  7557. + need_lib_prefix=no
  7558. + fi
  7559. + need_version=yes
  7560. + ;;
  7561. +
  7562. +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  7563. + version_type=linux
  7564. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  7565. + soname_spec='${libname}${release}.so$major'
  7566. + shlibpath_var=LD_LIBRARY_PATH
  7567. + case $host_vendor in
  7568. + sni)
  7569. + shlibpath_overrides_runpath=no
  7570. + need_lib_prefix=no
  7571. + export_dynamic_flag_spec='${wl}-Blargedynsym'
  7572. + runpath_var=LD_RUN_PATH
  7573. + ;;
  7574. + siemens)
  7575. + need_lib_prefix=no
  7576. + ;;
  7577. + motorola)
  7578. + need_lib_prefix=no
  7579. + need_version=no
  7580. + shlibpath_overrides_runpath=no
  7581. + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  7582. + ;;
  7583. + esac
  7584. + ;;
  7585. +
  7586. +uts4*)
  7587. + version_type=linux
  7588. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  7589. + soname_spec='${libname}${release}.so$major'
  7590. + shlibpath_var=LD_LIBRARY_PATH
  7591. + ;;
  7592. +
  7593. +dgux*)
  7594. + version_type=linux
  7595. + need_lib_prefix=no
  7596. + need_version=no
  7597. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  7598. + soname_spec='${libname}${release}.so$major'
  7599. + shlibpath_var=LD_LIBRARY_PATH
  7600. + ;;
  7601. +
  7602. +sysv4*MP*)
  7603. + if test -d /usr/nec ;then
  7604. + version_type=linux
  7605. + library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
  7606. + soname_spec='$libname.so.$major'
  7607. + shlibpath_var=LD_LIBRARY_PATH
  7608. + fi
  7609. + ;;
  7610. +
  7611. +*)
  7612. + dynamic_linker=no
  7613. + ;;
  7614. +esac
  7615. +echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  7616. +echo "${ECHO_T}$dynamic_linker" >&6
  7617. +test "$dynamic_linker" = no && can_build_shared=no
  7618. +
  7619. +# Report the final consequences.
  7620. +echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  7621. +echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
  7622. +echo "$as_me:$LINENO: result: $can_build_shared" >&5
  7623. +echo "${ECHO_T}$can_build_shared" >&6
  7624. +
  7625. +echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  7626. +echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
  7627. +test "$can_build_shared" = "no" && enable_shared=no
  7628. +
  7629. +# On AIX, shared libraries and static libraries use the same namespace, and
  7630. +# are all built from PIC.
  7631. +case "$host_os" in
  7632. +aix3*)
  7633. + test "$enable_shared" = yes && enable_static=no
  7634. + if test -n "$RANLIB"; then
  7635. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  7636. + postinstall_cmds='$RANLIB $lib'
  7637. + fi
  7638. + ;;
  7639. +
  7640. +aix4*)
  7641. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  7642. + test "$enable_shared" = yes && enable_static=no
  7643. + fi
  7644. + ;;
  7645. +esac
  7646. +echo "$as_me:$LINENO: result: $enable_shared" >&5
  7647. +echo "${ECHO_T}$enable_shared" >&6
  7648. +
  7649. +echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  7650. +echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
  7651. +# Make sure either enable_shared or enable_static is yes.
  7652. +test "$enable_shared" = yes || enable_static=yes
  7653. +echo "$as_me:$LINENO: result: $enable_static" >&5
  7654. +echo "${ECHO_T}$enable_static" >&6
  7655. +
  7656. +if test "$hardcode_action" = relink; then
  7657. + # Fast installation is not supported
  7658. + enable_fast_install=no
  7659. +elif test "$shlibpath_overrides_runpath" = yes ||
  7660. + test "$enable_shared" = no; then
  7661. + # Fast installation is not necessary
  7662. + enable_fast_install=needless
  7663. +fi
  7664. +
  7665. +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  7666. +if test "$GCC" = yes; then
  7667. + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  7668. +fi
  7669. +
  7670. +if test "x$enable_dlopen" != xyes; then
  7671. + enable_dlopen=unknown
  7672. + enable_dlopen_self=unknown
  7673. + enable_dlopen_self_static=unknown
  7674. else
  7675. - LL_INT_TYPE=null
  7676. - echo "configure: warning: could not find a low level packet interface" 1>&2
  7677. - echo "configure: warning: low level packet creation API will not be added to the library" 1>&2
  7678. + lt_cv_dlopen=no
  7679. + lt_cv_dlopen_libs=
  7680. +
  7681. + case $host_os in
  7682. + beos*)
  7683. + lt_cv_dlopen="load_add_on"
  7684. + lt_cv_dlopen_libs=
  7685. + lt_cv_dlopen_self=yes
  7686. + ;;
  7687. +
  7688. + cygwin* | mingw* | pw32*)
  7689. + lt_cv_dlopen="LoadLibrary"
  7690. + lt_cv_dlopen_libs=
  7691. + ;;
  7692. +
  7693. + *)
  7694. + echo "$as_me:$LINENO: checking for shl_load" >&5
  7695. +echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
  7696. +if test "${ac_cv_func_shl_load+set}" = set; then
  7697. + echo $ECHO_N "(cached) $ECHO_C" >&6
  7698. +else
  7699. + cat >conftest.$ac_ext <<_ACEOF
  7700. +/* confdefs.h. */
  7701. +_ACEOF
  7702. +cat confdefs.h >>conftest.$ac_ext
  7703. +cat >>conftest.$ac_ext <<_ACEOF
  7704. +/* end confdefs.h. */
  7705. +/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  7706. + For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7707. +#define shl_load innocuous_shl_load
  7708. +
  7709. +/* System header to define __stub macros and hopefully few prototypes,
  7710. + which can conflict with char shl_load (); below.
  7711. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7712. + <limits.h> exists even on freestanding compilers. */
  7713. +
  7714. +#ifdef __STDC__
  7715. +# include <limits.h>
  7716. +#else
  7717. +# include <assert.h>
  7718. +#endif
  7719. +
  7720. +#undef shl_load
  7721. +
  7722. +/* Override any gcc2 internal prototype to avoid an error. */
  7723. +#ifdef __cplusplus
  7724. +extern "C"
  7725. +{
  7726. +#endif
  7727. +/* We use char because int might match the return type of a gcc2
  7728. + builtin and then its argument prototype would still apply. */
  7729. +char shl_load ();
  7730. +/* The GNU C library defines this for functions which it implements
  7731. + to always fail with ENOSYS. Some functions are actually named
  7732. + something starting with __ and the normal name is an alias. */
  7733. +#if defined (__stub_shl_load) || defined (__stub___shl_load)
  7734. +choke me
  7735. +#else
  7736. +char (*f) () = shl_load;
  7737. +#endif
  7738. +#ifdef __cplusplus
  7739. +}
  7740. +#endif
  7741. +
  7742. +int
  7743. +main ()
  7744. +{
  7745. +return f != shl_load;
  7746. + ;
  7747. + return 0;
  7748. +}
  7749. +_ACEOF
  7750. +rm -f conftest.$ac_objext conftest$ac_exeext
  7751. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7752. + (eval $ac_link) 2>conftest.er1
  7753. + ac_status=$?
  7754. + grep -v '^ *+' conftest.er1 >conftest.err
  7755. + rm -f conftest.er1
  7756. + cat conftest.err >&5
  7757. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7758. + (exit $ac_status); } &&
  7759. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7760. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7761. + (eval $ac_try) 2>&5
  7762. + ac_status=$?
  7763. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7764. + (exit $ac_status); }; } &&
  7765. + { ac_try='test -s conftest$ac_exeext'
  7766. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7767. + (eval $ac_try) 2>&5
  7768. + ac_status=$?
  7769. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7770. + (exit $ac_status); }; }; then
  7771. + ac_cv_func_shl_load=yes
  7772. +else
  7773. + echo "$as_me: failed program was:" >&5
  7774. +sed 's/^/| /' conftest.$ac_ext >&5
  7775. +
  7776. +ac_cv_func_shl_load=no
  7777. +fi
  7778. +rm -f conftest.err conftest.$ac_objext \
  7779. + conftest$ac_exeext conftest.$ac_ext
  7780. fi
  7781. +echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  7782. +echo "${ECHO_T}$ac_cv_func_shl_load" >&6
  7783. +if test $ac_cv_func_shl_load = yes; then
  7784. + lt_cv_dlopen="shl_load"
  7785. +else
  7786. + echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  7787. +echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  7788. +if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  7789. + echo $ECHO_N "(cached) $ECHO_C" >&6
  7790. +else
  7791. + ac_check_lib_save_LIBS=$LIBS
  7792. +LIBS="-ldld $LIBS"
  7793. +cat >conftest.$ac_ext <<_ACEOF
  7794. +/* confdefs.h. */
  7795. +_ACEOF
  7796. +cat confdefs.h >>conftest.$ac_ext
  7797. +cat >>conftest.$ac_ext <<_ACEOF
  7798. +/* end confdefs.h. */
  7799. -LL_INT_TYPE_UC=`echo $LL_INT_TYPE | tr a-z A-Z`
  7800. +/* Override any gcc2 internal prototype to avoid an error. */
  7801. +#ifdef __cplusplus
  7802. +extern "C"
  7803. +#endif
  7804. +/* We use char because int might match the return type of a gcc2
  7805. + builtin and then its argument prototype would still apply. */
  7806. +char shl_load ();
  7807. +int
  7808. +main ()
  7809. +{
  7810. +shl_load ();
  7811. + ;
  7812. + return 0;
  7813. +}
  7814. +_ACEOF
  7815. +rm -f conftest.$ac_objext conftest$ac_exeext
  7816. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7817. + (eval $ac_link) 2>conftest.er1
  7818. + ac_status=$?
  7819. + grep -v '^ *+' conftest.er1 >conftest.err
  7820. + rm -f conftest.er1
  7821. + cat conftest.err >&5
  7822. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7823. + (exit $ac_status); } &&
  7824. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7825. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7826. + (eval $ac_try) 2>&5
  7827. + ac_status=$?
  7828. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7829. + (exit $ac_status); }; } &&
  7830. + { ac_try='test -s conftest$ac_exeext'
  7831. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7832. + (eval $ac_try) 2>&5
  7833. + ac_status=$?
  7834. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7835. + (exit $ac_status); }; }; then
  7836. + ac_cv_lib_dld_shl_load=yes
  7837. +else
  7838. + echo "$as_me: failed program was:" >&5
  7839. +sed 's/^/| /' conftest.$ac_ext >&5
  7840. +ac_cv_lib_dld_shl_load=no
  7841. +fi
  7842. +rm -f conftest.err conftest.$ac_objext \
  7843. + conftest$ac_exeext conftest.$ac_ext
  7844. +LIBS=$ac_check_lib_save_LIBS
  7845. +fi
  7846. +echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  7847. +echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  7848. +if test $ac_cv_lib_dld_shl_load = yes; then
  7849. + lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  7850. +else
  7851. + echo "$as_me:$LINENO: checking for dlopen" >&5
  7852. +echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
  7853. +if test "${ac_cv_func_dlopen+set}" = set; then
  7854. + echo $ECHO_N "(cached) $ECHO_C" >&6
  7855. +else
  7856. + cat >conftest.$ac_ext <<_ACEOF
  7857. +/* confdefs.h. */
  7858. +_ACEOF
  7859. +cat confdefs.h >>conftest.$ac_ext
  7860. +cat >>conftest.$ac_ext <<_ACEOF
  7861. +/* end confdefs.h. */
  7862. +/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  7863. + For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7864. +#define dlopen innocuous_dlopen
  7865. -case "$target_os" in
  7866. +/* System header to define __stub macros and hopefully few prototypes,
  7867. + which can conflict with char dlopen (); below.
  7868. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7869. + <limits.h> exists even on freestanding compilers. */
  7870. -*linux*)
  7871. - cat >> confdefs.h <<\EOF
  7872. -#define _BSD_SOURCE 1
  7873. -EOF
  7874. +#ifdef __STDC__
  7875. +# include <limits.h>
  7876. +#else
  7877. +# include <assert.h>
  7878. +#endif
  7879. - cat >> confdefs.h <<\EOF
  7880. -#define __BSD_SOURCE 1
  7881. -EOF
  7882. +#undef dlopen
  7883. - cat >> confdefs.h <<\EOF
  7884. -#define __FAVOR_BSD 1
  7885. -EOF
  7886. +/* Override any gcc2 internal prototype to avoid an error. */
  7887. +#ifdef __cplusplus
  7888. +extern "C"
  7889. +{
  7890. +#endif
  7891. +/* We use char because int might match the return type of a gcc2
  7892. + builtin and then its argument prototype would still apply. */
  7893. +char dlopen ();
  7894. +/* The GNU C library defines this for functions which it implements
  7895. + to always fail with ENOSYS. Some functions are actually named
  7896. + something starting with __ and the normal name is an alias. */
  7897. +#if defined (__stub_dlopen) || defined (__stub___dlopen)
  7898. +choke me
  7899. +#else
  7900. +char (*f) () = dlopen;
  7901. +#endif
  7902. +#ifdef __cplusplus
  7903. +}
  7904. +#endif
  7905. - LIBNET_CONFIG_DEFINES="-D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD"
  7906. - echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  7907. -echo "configure:1455: checking how to run the C preprocessor" >&5
  7908. -# On Suns, sometimes $CPP names a directory.
  7909. -if test -n "$CPP" && test -d "$CPP"; then
  7910. - CPP=
  7911. +int
  7912. +main ()
  7913. +{
  7914. +return f != dlopen;
  7915. + ;
  7916. + return 0;
  7917. +}
  7918. +_ACEOF
  7919. +rm -f conftest.$ac_objext conftest$ac_exeext
  7920. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7921. + (eval $ac_link) 2>conftest.er1
  7922. + ac_status=$?
  7923. + grep -v '^ *+' conftest.er1 >conftest.err
  7924. + rm -f conftest.er1
  7925. + cat conftest.err >&5
  7926. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7927. + (exit $ac_status); } &&
  7928. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7929. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7930. + (eval $ac_try) 2>&5
  7931. + ac_status=$?
  7932. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7933. + (exit $ac_status); }; } &&
  7934. + { ac_try='test -s conftest$ac_exeext'
  7935. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7936. + (eval $ac_try) 2>&5
  7937. + ac_status=$?
  7938. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7939. + (exit $ac_status); }; }; then
  7940. + ac_cv_func_dlopen=yes
  7941. +else
  7942. + echo "$as_me: failed program was:" >&5
  7943. +sed 's/^/| /' conftest.$ac_ext >&5
  7944. +
  7945. +ac_cv_func_dlopen=no
  7946. fi
  7947. -if test -z "$CPP"; then
  7948. -if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  7949. - echo $ac_n "(cached) $ac_c" 1>&6
  7950. +rm -f conftest.err conftest.$ac_objext \
  7951. + conftest$ac_exeext conftest.$ac_ext
  7952. +fi
  7953. +echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  7954. +echo "${ECHO_T}$ac_cv_func_dlopen" >&6
  7955. +if test $ac_cv_func_dlopen = yes; then
  7956. + lt_cv_dlopen="dlopen"
  7957. else
  7958. - # This must be in double quotes, not single quotes, because CPP may get
  7959. - # substituted into the Makefile and "${CC-cc}" will confuse make.
  7960. - CPP="${CC-cc} -E"
  7961. - # On the NeXT, cc -E runs the code through the compiler's parser,
  7962. - # not just through cpp.
  7963. + echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  7964. +echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  7965. +if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  7966. + echo $ECHO_N "(cached) $ECHO_C" >&6
  7967. +else
  7968. + ac_check_lib_save_LIBS=$LIBS
  7969. +LIBS="-ldl $LIBS"
  7970. +cat >conftest.$ac_ext <<_ACEOF
  7971. +/* confdefs.h. */
  7972. +_ACEOF
  7973. +cat confdefs.h >>conftest.$ac_ext
  7974. +cat >>conftest.$ac_ext <<_ACEOF
  7975. +/* end confdefs.h. */
  7976. +
  7977. +/* Override any gcc2 internal prototype to avoid an error. */
  7978. +#ifdef __cplusplus
  7979. +extern "C"
  7980. +#endif
  7981. +/* We use char because int might match the return type of a gcc2
  7982. + builtin and then its argument prototype would still apply. */
  7983. +char dlopen ();
  7984. +int
  7985. +main ()
  7986. +{
  7987. +dlopen ();
  7988. + ;
  7989. + return 0;
  7990. +}
  7991. +_ACEOF
  7992. +rm -f conftest.$ac_objext conftest$ac_exeext
  7993. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7994. + (eval $ac_link) 2>conftest.er1
  7995. + ac_status=$?
  7996. + grep -v '^ *+' conftest.er1 >conftest.err
  7997. + rm -f conftest.er1
  7998. + cat conftest.err >&5
  7999. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8000. + (exit $ac_status); } &&
  8001. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8002. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8003. + (eval $ac_try) 2>&5
  8004. + ac_status=$?
  8005. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8006. + (exit $ac_status); }; } &&
  8007. + { ac_try='test -s conftest$ac_exeext'
  8008. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8009. + (eval $ac_try) 2>&5
  8010. + ac_status=$?
  8011. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8012. + (exit $ac_status); }; }; then
  8013. + ac_cv_lib_dl_dlopen=yes
  8014. +else
  8015. + echo "$as_me: failed program was:" >&5
  8016. +sed 's/^/| /' conftest.$ac_ext >&5
  8017. +
  8018. +ac_cv_lib_dl_dlopen=no
  8019. +fi
  8020. +rm -f conftest.err conftest.$ac_objext \
  8021. + conftest$ac_exeext conftest.$ac_ext
  8022. +LIBS=$ac_check_lib_save_LIBS
  8023. +fi
  8024. +echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  8025. +echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  8026. +if test $ac_cv_lib_dl_dlopen = yes; then
  8027. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8028. +else
  8029. + echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  8030. +echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
  8031. +if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  8032. + echo $ECHO_N "(cached) $ECHO_C" >&6
  8033. +else
  8034. + ac_check_lib_save_LIBS=$LIBS
  8035. +LIBS="-lsvld $LIBS"
  8036. +cat >conftest.$ac_ext <<_ACEOF
  8037. +/* confdefs.h. */
  8038. +_ACEOF
  8039. +cat confdefs.h >>conftest.$ac_ext
  8040. +cat >>conftest.$ac_ext <<_ACEOF
  8041. +/* end confdefs.h. */
  8042. +
  8043. +/* Override any gcc2 internal prototype to avoid an error. */
  8044. +#ifdef __cplusplus
  8045. +extern "C"
  8046. +#endif
  8047. +/* We use char because int might match the return type of a gcc2
  8048. + builtin and then its argument prototype would still apply. */
  8049. +char dlopen ();
  8050. +int
  8051. +main ()
  8052. +{
  8053. +dlopen ();
  8054. + ;
  8055. + return 0;
  8056. +}
  8057. +_ACEOF
  8058. +rm -f conftest.$ac_objext conftest$ac_exeext
  8059. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8060. + (eval $ac_link) 2>conftest.er1
  8061. + ac_status=$?
  8062. + grep -v '^ *+' conftest.er1 >conftest.err
  8063. + rm -f conftest.er1
  8064. + cat conftest.err >&5
  8065. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8066. + (exit $ac_status); } &&
  8067. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8068. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8069. + (eval $ac_try) 2>&5
  8070. + ac_status=$?
  8071. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8072. + (exit $ac_status); }; } &&
  8073. + { ac_try='test -s conftest$ac_exeext'
  8074. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8075. + (eval $ac_try) 2>&5
  8076. + ac_status=$?
  8077. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8078. + (exit $ac_status); }; }; then
  8079. + ac_cv_lib_svld_dlopen=yes
  8080. +else
  8081. + echo "$as_me: failed program was:" >&5
  8082. +sed 's/^/| /' conftest.$ac_ext >&5
  8083. +
  8084. +ac_cv_lib_svld_dlopen=no
  8085. +fi
  8086. +rm -f conftest.err conftest.$ac_objext \
  8087. + conftest$ac_exeext conftest.$ac_ext
  8088. +LIBS=$ac_check_lib_save_LIBS
  8089. +fi
  8090. +echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  8091. +echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
  8092. +if test $ac_cv_lib_svld_dlopen = yes; then
  8093. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  8094. +else
  8095. + echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  8096. +echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
  8097. +if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  8098. + echo $ECHO_N "(cached) $ECHO_C" >&6
  8099. +else
  8100. + ac_check_lib_save_LIBS=$LIBS
  8101. +LIBS="-ldld $LIBS"
  8102. +cat >conftest.$ac_ext <<_ACEOF
  8103. +/* confdefs.h. */
  8104. +_ACEOF
  8105. +cat confdefs.h >>conftest.$ac_ext
  8106. +cat >>conftest.$ac_ext <<_ACEOF
  8107. +/* end confdefs.h. */
  8108. +
  8109. +/* Override any gcc2 internal prototype to avoid an error. */
  8110. +#ifdef __cplusplus
  8111. +extern "C"
  8112. +#endif
  8113. +/* We use char because int might match the return type of a gcc2
  8114. + builtin and then its argument prototype would still apply. */
  8115. +char dld_link ();
  8116. +int
  8117. +main ()
  8118. +{
  8119. +dld_link ();
  8120. + ;
  8121. + return 0;
  8122. +}
  8123. +_ACEOF
  8124. +rm -f conftest.$ac_objext conftest$ac_exeext
  8125. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8126. + (eval $ac_link) 2>conftest.er1
  8127. + ac_status=$?
  8128. + grep -v '^ *+' conftest.er1 >conftest.err
  8129. + rm -f conftest.er1
  8130. + cat conftest.err >&5
  8131. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8132. + (exit $ac_status); } &&
  8133. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8134. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8135. + (eval $ac_try) 2>&5
  8136. + ac_status=$?
  8137. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8138. + (exit $ac_status); }; } &&
  8139. + { ac_try='test -s conftest$ac_exeext'
  8140. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8141. + (eval $ac_try) 2>&5
  8142. + ac_status=$?
  8143. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8144. + (exit $ac_status); }; }; then
  8145. + ac_cv_lib_dld_dld_link=yes
  8146. +else
  8147. + echo "$as_me: failed program was:" >&5
  8148. +sed 's/^/| /' conftest.$ac_ext >&5
  8149. +
  8150. +ac_cv_lib_dld_dld_link=no
  8151. +fi
  8152. +rm -f conftest.err conftest.$ac_objext \
  8153. + conftest$ac_exeext conftest.$ac_ext
  8154. +LIBS=$ac_check_lib_save_LIBS
  8155. +fi
  8156. +echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  8157. +echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
  8158. +if test $ac_cv_lib_dld_dld_link = yes; then
  8159. + lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  8160. +fi
  8161. +
  8162. +
  8163. +fi
  8164. +
  8165. +
  8166. +fi
  8167. +
  8168. +
  8169. +fi
  8170. +
  8171. +
  8172. +fi
  8173. +
  8174. +
  8175. +fi
  8176. +
  8177. + ;;
  8178. + esac
  8179. +
  8180. + if test "x$lt_cv_dlopen" != xno; then
  8181. + enable_dlopen=yes
  8182. + else
  8183. + enable_dlopen=no
  8184. + fi
  8185. +
  8186. + case $lt_cv_dlopen in
  8187. + dlopen)
  8188. + save_CPPFLAGS="$CPPFLAGS"
  8189. + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  8190. +
  8191. + save_LDFLAGS="$LDFLAGS"
  8192. + eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  8193. +
  8194. + save_LIBS="$LIBS"
  8195. + LIBS="$lt_cv_dlopen_libs $LIBS"
  8196. +
  8197. + echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  8198. +echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
  8199. +if test "${lt_cv_dlopen_self+set}" = set; then
  8200. + echo $ECHO_N "(cached) $ECHO_C" >&6
  8201. +else
  8202. + if test "$cross_compiling" = yes; then :
  8203. + lt_cv_dlopen_self=cross
  8204. +else
  8205. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  8206. + lt_status=$lt_dlunknown
  8207. cat > conftest.$ac_ext <<EOF
  8208. -#line 1470 "configure"
  8209. +#line 7611 "configure"
  8210. #include "confdefs.h"
  8211. -#include <assert.h>
  8212. -Syntax Error
  8213. +
  8214. +#if HAVE_DLFCN_H
  8215. +#include <dlfcn.h>
  8216. +#endif
  8217. +
  8218. +#include <stdio.h>
  8219. +
  8220. +#ifdef RTLD_GLOBAL
  8221. +# define LT_DLGLOBAL RTLD_GLOBAL
  8222. +#else
  8223. +# ifdef DL_GLOBAL
  8224. +# define LT_DLGLOBAL DL_GLOBAL
  8225. +# else
  8226. +# define LT_DLGLOBAL 0
  8227. +# endif
  8228. +#endif
  8229. +
  8230. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  8231. + find out it does not work in some platform. */
  8232. +#ifndef LT_DLLAZY_OR_NOW
  8233. +# ifdef RTLD_LAZY
  8234. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  8235. +# else
  8236. +# ifdef DL_LAZY
  8237. +# define LT_DLLAZY_OR_NOW DL_LAZY
  8238. +# else
  8239. +# ifdef RTLD_NOW
  8240. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  8241. +# else
  8242. +# ifdef DL_NOW
  8243. +# define LT_DLLAZY_OR_NOW DL_NOW
  8244. +# else
  8245. +# define LT_DLLAZY_OR_NOW 0
  8246. +# endif
  8247. +# endif
  8248. +# endif
  8249. +# endif
  8250. +#endif
  8251. +
  8252. +#ifdef __cplusplus
  8253. +extern "C" void exit (int);
  8254. +#endif
  8255. +
  8256. +void fnord() { int i=42;}
  8257. +int main ()
  8258. +{
  8259. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  8260. + int status = $lt_dlunknown;
  8261. +
  8262. + if (self)
  8263. + {
  8264. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  8265. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  8266. + /* dlclose (self); */
  8267. + }
  8268. +
  8269. + exit (status);
  8270. +}
  8271. EOF
  8272. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  8273. -{ (eval echo configure:1476: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  8274. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  8275. -if test -z "$ac_err"; then
  8276. - :
  8277. + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8278. + (eval $ac_link) 2>&5
  8279. + ac_status=$?
  8280. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8281. + (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  8282. + (./conftest; exit; ) 2>/dev/null
  8283. + lt_status=$?
  8284. + case x$lt_status in
  8285. + x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  8286. + x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  8287. + x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  8288. + esac
  8289. + else :
  8290. + # compilation failed
  8291. + lt_cv_dlopen_self=no
  8292. + fi
  8293. +fi
  8294. +rm -fr conftest*
  8295. +
  8296. +
  8297. +fi
  8298. +echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  8299. +echo "${ECHO_T}$lt_cv_dlopen_self" >&6
  8300. +
  8301. + if test "x$lt_cv_dlopen_self" = xyes; then
  8302. + LDFLAGS="$LDFLAGS $link_static_flag"
  8303. + echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  8304. +echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
  8305. +if test "${lt_cv_dlopen_self_static+set}" = set; then
  8306. + echo $ECHO_N "(cached) $ECHO_C" >&6
  8307. else
  8308. - echo "$ac_err" >&5
  8309. - echo "configure: failed program was:" >&5
  8310. - cat conftest.$ac_ext >&5
  8311. - rm -rf conftest*
  8312. - CPP="${CC-cc} -E -traditional-cpp"
  8313. + if test "$cross_compiling" = yes; then :
  8314. + lt_cv_dlopen_self_static=cross
  8315. +else
  8316. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  8317. + lt_status=$lt_dlunknown
  8318. cat > conftest.$ac_ext <<EOF
  8319. -#line 1487 "configure"
  8320. +#line 7709 "configure"
  8321. #include "confdefs.h"
  8322. -#include <assert.h>
  8323. -Syntax Error
  8324. +
  8325. +#if HAVE_DLFCN_H
  8326. +#include <dlfcn.h>
  8327. +#endif
  8328. +
  8329. +#include <stdio.h>
  8330. +
  8331. +#ifdef RTLD_GLOBAL
  8332. +# define LT_DLGLOBAL RTLD_GLOBAL
  8333. +#else
  8334. +# ifdef DL_GLOBAL
  8335. +# define LT_DLGLOBAL DL_GLOBAL
  8336. +# else
  8337. +# define LT_DLGLOBAL 0
  8338. +# endif
  8339. +#endif
  8340. +
  8341. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  8342. + find out it does not work in some platform. */
  8343. +#ifndef LT_DLLAZY_OR_NOW
  8344. +# ifdef RTLD_LAZY
  8345. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  8346. +# else
  8347. +# ifdef DL_LAZY
  8348. +# define LT_DLLAZY_OR_NOW DL_LAZY
  8349. +# else
  8350. +# ifdef RTLD_NOW
  8351. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  8352. +# else
  8353. +# ifdef DL_NOW
  8354. +# define LT_DLLAZY_OR_NOW DL_NOW
  8355. +# else
  8356. +# define LT_DLLAZY_OR_NOW 0
  8357. +# endif
  8358. +# endif
  8359. +# endif
  8360. +# endif
  8361. +#endif
  8362. +
  8363. +#ifdef __cplusplus
  8364. +extern "C" void exit (int);
  8365. +#endif
  8366. +
  8367. +void fnord() { int i=42;}
  8368. +int main ()
  8369. +{
  8370. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  8371. + int status = $lt_dlunknown;
  8372. +
  8373. + if (self)
  8374. + {
  8375. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  8376. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  8377. + /* dlclose (self); */
  8378. + }
  8379. +
  8380. + exit (status);
  8381. +}
  8382. EOF
  8383. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  8384. -{ (eval echo configure:1493: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  8385. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  8386. -if test -z "$ac_err"; then
  8387. + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8388. + (eval $ac_link) 2>&5
  8389. + ac_status=$?
  8390. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8391. + (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  8392. + (./conftest; exit; ) 2>/dev/null
  8393. + lt_status=$?
  8394. + case x$lt_status in
  8395. + x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  8396. + x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  8397. + x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  8398. + esac
  8399. + else :
  8400. + # compilation failed
  8401. + lt_cv_dlopen_self_static=no
  8402. + fi
  8403. +fi
  8404. +rm -fr conftest*
  8405. +
  8406. +
  8407. +fi
  8408. +echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  8409. +echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
  8410. + fi
  8411. +
  8412. + CPPFLAGS="$save_CPPFLAGS"
  8413. + LDFLAGS="$save_LDFLAGS"
  8414. + LIBS="$save_LIBS"
  8415. + ;;
  8416. + esac
  8417. +
  8418. + case $lt_cv_dlopen_self in
  8419. + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  8420. + *) enable_dlopen_self=unknown ;;
  8421. + esac
  8422. +
  8423. + case $lt_cv_dlopen_self_static in
  8424. + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  8425. + *) enable_dlopen_self_static=unknown ;;
  8426. + esac
  8427. +fi
  8428. +
  8429. +
  8430. +if test "$enable_shared" = yes && test "$GCC" = yes; then
  8431. + case $archive_cmds in
  8432. + *'~'*)
  8433. + # FIXME: we may have to deal with multi-command sequences.
  8434. + ;;
  8435. + '$CC '*)
  8436. + # Test whether the compiler implicitly links with -lc since on some
  8437. + # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8438. + # to ld, don't add -lc before -lgcc.
  8439. + echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  8440. +echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  8441. + if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
  8442. + echo $ECHO_N "(cached) $ECHO_C" >&6
  8443. +else
  8444. + $rm conftest*
  8445. + echo 'static int dummy;' > conftest.$ac_ext
  8446. +
  8447. + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8448. + (eval $ac_compile) 2>&5
  8449. + ac_status=$?
  8450. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8451. + (exit $ac_status); }; then
  8452. + soname=conftest
  8453. + lib=conftest
  8454. + libobjs=conftest.$ac_objext
  8455. + deplibs=
  8456. + wl=$lt_cv_prog_cc_wl
  8457. + compiler_flags=-v
  8458. + linker_flags=-v
  8459. + verstring=
  8460. + output_objdir=.
  8461. + libname=conftest
  8462. + save_allow_undefined_flag=$allow_undefined_flag
  8463. + allow_undefined_flag=
  8464. + if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  8465. + (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8466. + ac_status=$?
  8467. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8468. + (exit $ac_status); }
  8469. + then
  8470. + lt_cv_archive_cmds_need_lc=no
  8471. + else
  8472. + lt_cv_archive_cmds_need_lc=yes
  8473. + fi
  8474. + allow_undefined_flag=$save_allow_undefined_flag
  8475. + else
  8476. + cat conftest.err 1>&5
  8477. + fi
  8478. +fi
  8479. +
  8480. + echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
  8481. +echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
  8482. + ;;
  8483. + esac
  8484. +fi
  8485. +need_lc=${lt_cv_archive_cmds_need_lc-yes}
  8486. +
  8487. +# The second clause should only fire when bootstrapping the
  8488. +# libtool distribution, otherwise you forgot to ship ltmain.sh
  8489. +# with your package, and you will get complaints that there are
  8490. +# no rules to generate ltmain.sh.
  8491. +if test -f "$ltmain"; then
  8492. :
  8493. else
  8494. - echo "$ac_err" >&5
  8495. - echo "configure: failed program was:" >&5
  8496. - cat conftest.$ac_ext >&5
  8497. - rm -rf conftest*
  8498. - CPP="${CC-cc} -nologo -E"
  8499. - cat > conftest.$ac_ext <<EOF
  8500. -#line 1504 "configure"
  8501. -#include "confdefs.h"
  8502. -#include <assert.h>
  8503. -Syntax Error
  8504. + # If there is no Makefile yet, we rely on a make rule to execute
  8505. + # `config.status --recheck' to rerun these tests and create the
  8506. + # libtool script then.
  8507. + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  8508. + if test -f "$ltmain_in"; then
  8509. + test -f Makefile && make "$ltmain"
  8510. + fi
  8511. +fi
  8512. +
  8513. +if test -f "$ltmain"; then
  8514. + trap "$rm \"${ofile}T\"; exit 1" 1 2 15
  8515. + $rm -f "${ofile}T"
  8516. +
  8517. + echo creating $ofile
  8518. +
  8519. + # Now quote all the things that may contain metacharacters while being
  8520. + # careful not to overquote the AC_SUBSTed values. We take copies of the
  8521. + # variables and quote the copies for generation of the libtool script.
  8522. + for var in echo old_CC old_CFLAGS SED \
  8523. + AR AR_FLAGS CC LD LN_S NM SHELL STRIP \
  8524. + reload_flag reload_cmds wl \
  8525. + pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
  8526. + thread_safe_flag_spec whole_archive_flag_spec libname_spec \
  8527. + library_names_spec soname_spec \
  8528. + RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
  8529. + old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
  8530. + postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
  8531. + old_striplib striplib file_magic_cmd export_symbols_cmds \
  8532. + deplibs_check_method allow_undefined_flag no_undefined_flag \
  8533. + finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
  8534. + global_symbol_to_c_name_address \
  8535. + hardcode_libdir_flag_spec hardcode_libdir_separator \
  8536. + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  8537. + compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
  8538. +
  8539. + case $var in
  8540. + reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
  8541. + old_postinstall_cmds | old_postuninstall_cmds | \
  8542. + export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
  8543. + extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
  8544. + postinstall_cmds | postuninstall_cmds | \
  8545. + finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  8546. + # Double-quote double-evaled strings.
  8547. + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  8548. + ;;
  8549. + *)
  8550. + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  8551. + ;;
  8552. + esac
  8553. + done
  8554. +
  8555. + cat <<__EOF__ > "${ofile}T"
  8556. +#! $SHELL
  8557. +
  8558. +# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  8559. +# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  8560. +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  8561. +#
  8562. +# Copyright (C) 1996-2000 Free Software Foundation, Inc.
  8563. +# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  8564. +#
  8565. +# This program is free software; you can redistribute it and/or modify
  8566. +# it under the terms of the GNU General Public License as published by
  8567. +# the Free Software Foundation; either version 2 of the License, or
  8568. +# (at your option) any later version.
  8569. +#
  8570. +# This program is distributed in the hope that it will be useful, but
  8571. +# WITHOUT ANY WARRANTY; without even the implied warranty of
  8572. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  8573. +# General Public License for more details.
  8574. +#
  8575. +# You should have received a copy of the GNU General Public License
  8576. +# along with this program; if not, write to the Free Software
  8577. +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  8578. +#
  8579. +# As a special exception to the GNU General Public License, if you
  8580. +# distribute this file as part of a program that contains a
  8581. +# configuration script generated by Autoconf, you may include it under
  8582. +# the same distribution terms that you use for the rest of that program.
  8583. +
  8584. +# A sed that does not truncate output.
  8585. +SED=$lt_SED
  8586. +
  8587. +# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  8588. +Xsed="${SED} -e s/^X//"
  8589. +
  8590. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  8591. +# if CDPATH is set.
  8592. +if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
  8593. +
  8594. +# ### BEGIN LIBTOOL CONFIG
  8595. +
  8596. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  8597. +
  8598. +# Shell to use when invoking shell scripts.
  8599. +SHELL=$lt_SHELL
  8600. +
  8601. +# Whether or not to build shared libraries.
  8602. +build_libtool_libs=$enable_shared
  8603. +
  8604. +# Whether or not to build static libraries.
  8605. +build_old_libs=$enable_static
  8606. +
  8607. +# Whether or not to add -lc for building shared libraries.
  8608. +build_libtool_need_lc=$need_lc
  8609. +
  8610. +# Whether or not to optimize for fast installation.
  8611. +fast_install=$enable_fast_install
  8612. +
  8613. +# The host system.
  8614. +host_alias=$host_alias
  8615. +host=$host
  8616. +
  8617. +# An echo program that does not interpret backslashes.
  8618. +echo=$lt_echo
  8619. +
  8620. +# The archiver.
  8621. +AR=$lt_AR
  8622. +AR_FLAGS=$lt_AR_FLAGS
  8623. +
  8624. +# The default C compiler.
  8625. +CC=$lt_CC
  8626. +
  8627. +# Is the compiler the GNU C compiler?
  8628. +with_gcc=$GCC
  8629. +
  8630. +# The linker used to build libraries.
  8631. +LD=$lt_LD
  8632. +
  8633. +# Whether we need hard or soft links.
  8634. +LN_S=$lt_LN_S
  8635. +
  8636. +# A BSD-compatible nm program.
  8637. +NM=$lt_NM
  8638. +
  8639. +# A symbol stripping program
  8640. +STRIP=$lt_STRIP
  8641. +
  8642. +# Used to examine libraries when file_magic_cmd begins "file"
  8643. +MAGIC_CMD=$MAGIC_CMD
  8644. +
  8645. +# Used on cygwin: DLL creation program.
  8646. +DLLTOOL="$DLLTOOL"
  8647. +
  8648. +# Used on cygwin: object dumper.
  8649. +OBJDUMP="$OBJDUMP"
  8650. +
  8651. +# Used on cygwin: assembler.
  8652. +AS="$AS"
  8653. +
  8654. +# The name of the directory that contains temporary libtool files.
  8655. +objdir=$objdir
  8656. +
  8657. +# How to create reloadable object files.
  8658. +reload_flag=$lt_reload_flag
  8659. +reload_cmds=$lt_reload_cmds
  8660. +
  8661. +# How to pass a linker flag through the compiler.
  8662. +wl=$lt_wl
  8663. +
  8664. +# Object file suffix (normally "o").
  8665. +objext="$ac_objext"
  8666. +
  8667. +# Old archive suffix (normally "a").
  8668. +libext="$libext"
  8669. +
  8670. +# Executable file suffix (normally "").
  8671. +exeext="$exeext"
  8672. +
  8673. +# Additional compiler flags for building library objects.
  8674. +pic_flag=$lt_pic_flag
  8675. +pic_mode=$pic_mode
  8676. +
  8677. +# Does compiler simultaneously support -c and -o options?
  8678. +compiler_c_o=$lt_compiler_c_o
  8679. +
  8680. +# Can we write directly to a .lo ?
  8681. +compiler_o_lo=$lt_compiler_o_lo
  8682. +
  8683. +# Must we lock files when doing compilation ?
  8684. +need_locks=$lt_need_locks
  8685. +
  8686. +# Do we need the lib prefix for modules?
  8687. +need_lib_prefix=$need_lib_prefix
  8688. +
  8689. +# Do we need a version for libraries?
  8690. +need_version=$need_version
  8691. +
  8692. +# Whether dlopen is supported.
  8693. +dlopen_support=$enable_dlopen
  8694. +
  8695. +# Whether dlopen of programs is supported.
  8696. +dlopen_self=$enable_dlopen_self
  8697. +
  8698. +# Whether dlopen of statically linked programs is supported.
  8699. +dlopen_self_static=$enable_dlopen_self_static
  8700. +
  8701. +# Compiler flag to prevent dynamic linking.
  8702. +link_static_flag=$lt_link_static_flag
  8703. +
  8704. +# Compiler flag to turn off builtin functions.
  8705. +no_builtin_flag=$lt_no_builtin_flag
  8706. +
  8707. +# Compiler flag to allow reflexive dlopens.
  8708. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  8709. +
  8710. +# Compiler flag to generate shared objects directly from archives.
  8711. +whole_archive_flag_spec=$lt_whole_archive_flag_spec
  8712. +
  8713. +# Compiler flag to generate thread-safe objects.
  8714. +thread_safe_flag_spec=$lt_thread_safe_flag_spec
  8715. +
  8716. +# Library versioning type.
  8717. +version_type=$version_type
  8718. +
  8719. +# Format of library name prefix.
  8720. +libname_spec=$lt_libname_spec
  8721. +
  8722. +# List of archive names. First name is the real one, the rest are links.
  8723. +# The last name is the one that the linker finds with -lNAME.
  8724. +library_names_spec=$lt_library_names_spec
  8725. +
  8726. +# The coded name of the library, if different from the real name.
  8727. +soname_spec=$lt_soname_spec
  8728. +
  8729. +# Commands used to build and install an old-style archive.
  8730. +RANLIB=$lt_RANLIB
  8731. +old_archive_cmds=$lt_old_archive_cmds
  8732. +old_postinstall_cmds=$lt_old_postinstall_cmds
  8733. +old_postuninstall_cmds=$lt_old_postuninstall_cmds
  8734. +
  8735. +# Create an old-style archive from a shared archive.
  8736. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  8737. +
  8738. +# Create a temporary old-style archive to link instead of a shared archive.
  8739. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  8740. +
  8741. +# Commands used to build and install a shared archive.
  8742. +archive_cmds=$lt_archive_cmds
  8743. +archive_expsym_cmds=$lt_archive_expsym_cmds
  8744. +postinstall_cmds=$lt_postinstall_cmds
  8745. +postuninstall_cmds=$lt_postuninstall_cmds
  8746. +
  8747. +# Commands to strip libraries.
  8748. +old_striplib=$lt_old_striplib
  8749. +striplib=$lt_striplib
  8750. +
  8751. +# Method to check whether dependent libraries are shared objects.
  8752. +deplibs_check_method=$lt_deplibs_check_method
  8753. +
  8754. +# Command to use when deplibs_check_method == file_magic.
  8755. +file_magic_cmd=$lt_file_magic_cmd
  8756. +
  8757. +# Flag that allows shared libraries with undefined symbols to be built.
  8758. +allow_undefined_flag=$lt_allow_undefined_flag
  8759. +
  8760. +# Flag that forces no undefined symbols.
  8761. +no_undefined_flag=$lt_no_undefined_flag
  8762. +
  8763. +# Commands used to finish a libtool library installation in a directory.
  8764. +finish_cmds=$lt_finish_cmds
  8765. +
  8766. +# Same as above, but a single script fragment to be evaled but not shown.
  8767. +finish_eval=$lt_finish_eval
  8768. +
  8769. +# Take the output of nm and produce a listing of raw symbols and C names.
  8770. +global_symbol_pipe=$lt_global_symbol_pipe
  8771. +
  8772. +# Transform the output of nm in a proper C declaration
  8773. +global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
  8774. +
  8775. +# Transform the output of nm in a C name address pair
  8776. +global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
  8777. +
  8778. +# This is the shared library runtime path variable.
  8779. +runpath_var=$runpath_var
  8780. +
  8781. +# This is the shared library path variable.
  8782. +shlibpath_var=$shlibpath_var
  8783. +
  8784. +# Is shlibpath searched before the hard-coded library search path?
  8785. +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  8786. +
  8787. +# How to hardcode a shared library path into an executable.
  8788. +hardcode_action=$hardcode_action
  8789. +
  8790. +# Whether we should hardcode library paths into libraries.
  8791. +hardcode_into_libs=$hardcode_into_libs
  8792. +
  8793. +# Flag to hardcode \$libdir into a binary during linking.
  8794. +# This must work even if \$libdir does not exist.
  8795. +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  8796. +
  8797. +# Whether we need a single -rpath flag with a separated argument.
  8798. +hardcode_libdir_separator=$lt_hardcode_libdir_separator
  8799. +
  8800. +# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
  8801. +# resulting binary.
  8802. +hardcode_direct=$hardcode_direct
  8803. +
  8804. +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  8805. +# resulting binary.
  8806. +hardcode_minus_L=$hardcode_minus_L
  8807. +
  8808. +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  8809. +# the resulting binary.
  8810. +hardcode_shlibpath_var=$hardcode_shlibpath_var
  8811. +
  8812. +# Variables whose values should be saved in libtool wrapper scripts and
  8813. +# restored at relink time.
  8814. +variables_saved_for_relink="$variables_saved_for_relink"
  8815. +
  8816. +# Whether libtool must link a program against all its dependency libraries.
  8817. +link_all_deplibs=$link_all_deplibs
  8818. +
  8819. +# Compile-time system search path for libraries
  8820. +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  8821. +
  8822. +# Run-time system search path for libraries
  8823. +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  8824. +
  8825. +# Fix the shell variable \$srcfile for the compiler.
  8826. +fix_srcfile_path="$fix_srcfile_path"
  8827. +
  8828. +# Set to yes if exported symbols are required.
  8829. +always_export_symbols=$always_export_symbols
  8830. +
  8831. +# The commands to list exported symbols.
  8832. +export_symbols_cmds=$lt_export_symbols_cmds
  8833. +
  8834. +# The commands to extract the exported symbol list from a shared archive.
  8835. +extract_expsyms_cmds=$lt_extract_expsyms_cmds
  8836. +
  8837. +# Symbols that should not be listed in the preloaded symbols.
  8838. +exclude_expsyms=$lt_exclude_expsyms
  8839. +
  8840. +# Symbols that must always be exported.
  8841. +include_expsyms=$lt_include_expsyms
  8842. +
  8843. +# ### END LIBTOOL CONFIG
  8844. +
  8845. +__EOF__
  8846. +
  8847. + case $host_os in
  8848. + aix3*)
  8849. + cat <<\EOF >> "${ofile}T"
  8850. +
  8851. +# AIX sometimes has problems with the GCC collect2 program. For some
  8852. +# reason, if we set the COLLECT_NAMES environment variable, the problems
  8853. +# vanish in a puff of smoke.
  8854. +if test "X${COLLECT_NAMES+set}" != Xset; then
  8855. + COLLECT_NAMES=
  8856. + export COLLECT_NAMES
  8857. +fi
  8858. EOF
  8859. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  8860. -{ (eval echo configure:1510: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  8861. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  8862. -if test -z "$ac_err"; then
  8863. - :
  8864. + ;;
  8865. + esac
  8866. +
  8867. + case $host_os in
  8868. + cygwin* | mingw* | pw32* | os2*)
  8869. + cat <<'EOF' >> "${ofile}T"
  8870. + # This is a source program that is used to create dlls on Windows
  8871. + # Don't remove nor modify the starting and closing comments
  8872. +# /* ltdll.c starts here */
  8873. +# #define WIN32_LEAN_AND_MEAN
  8874. +# #include <windows.h>
  8875. +# #undef WIN32_LEAN_AND_MEAN
  8876. +# #include <stdio.h>
  8877. +#
  8878. +# #ifndef __CYGWIN__
  8879. +# # ifdef __CYGWIN32__
  8880. +# # define __CYGWIN__ __CYGWIN32__
  8881. +# # endif
  8882. +# #endif
  8883. +#
  8884. +# #ifdef __cplusplus
  8885. +# extern "C" {
  8886. +# #endif
  8887. +# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
  8888. +# #ifdef __cplusplus
  8889. +# }
  8890. +# #endif
  8891. +#
  8892. +# #ifdef __CYGWIN__
  8893. +# #include <cygwin/cygwin_dll.h>
  8894. +# DECLARE_CYGWIN_DLL( DllMain );
  8895. +# #endif
  8896. +# HINSTANCE __hDllInstance_base;
  8897. +#
  8898. +# BOOL APIENTRY
  8899. +# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
  8900. +# {
  8901. +# __hDllInstance_base = hInst;
  8902. +# return TRUE;
  8903. +# }
  8904. +# /* ltdll.c ends here */
  8905. + # This is a source program that is used to create import libraries
  8906. + # on Windows for dlls which lack them. Don't remove nor modify the
  8907. + # starting and closing comments
  8908. +# /* impgen.c starts here */
  8909. +# /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
  8910. +#
  8911. +# This file is part of GNU libtool.
  8912. +#
  8913. +# This program is free software; you can redistribute it and/or modify
  8914. +# it under the terms of the GNU General Public License as published by
  8915. +# the Free Software Foundation; either version 2 of the License, or
  8916. +# (at your option) any later version.
  8917. +#
  8918. +# This program is distributed in the hope that it will be useful,
  8919. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  8920. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  8921. +# GNU General Public License for more details.
  8922. +#
  8923. +# You should have received a copy of the GNU General Public License
  8924. +# along with this program; if not, write to the Free Software
  8925. +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  8926. +# */
  8927. +#
  8928. +# #include <stdio.h> /* for printf() */
  8929. +# #include <unistd.h> /* for open(), lseek(), read() */
  8930. +# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
  8931. +# #include <string.h> /* for strdup() */
  8932. +#
  8933. +# /* O_BINARY isn't required (or even defined sometimes) under Unix */
  8934. +# #ifndef O_BINARY
  8935. +# #define O_BINARY 0
  8936. +# #endif
  8937. +#
  8938. +# static unsigned int
  8939. +# pe_get16 (fd, offset)
  8940. +# int fd;
  8941. +# int offset;
  8942. +# {
  8943. +# unsigned char b[2];
  8944. +# lseek (fd, offset, SEEK_SET);
  8945. +# read (fd, b, 2);
  8946. +# return b[0] + (b[1]<<8);
  8947. +# }
  8948. +#
  8949. +# static unsigned int
  8950. +# pe_get32 (fd, offset)
  8951. +# int fd;
  8952. +# int offset;
  8953. +# {
  8954. +# unsigned char b[4];
  8955. +# lseek (fd, offset, SEEK_SET);
  8956. +# read (fd, b, 4);
  8957. +# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
  8958. +# }
  8959. +#
  8960. +# static unsigned int
  8961. +# pe_as32 (ptr)
  8962. +# void *ptr;
  8963. +# {
  8964. +# unsigned char *b = ptr;
  8965. +# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
  8966. +# }
  8967. +#
  8968. +# int
  8969. +# main (argc, argv)
  8970. +# int argc;
  8971. +# char *argv[];
  8972. +# {
  8973. +# int dll;
  8974. +# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
  8975. +# unsigned long export_rva, export_size, nsections, secptr, expptr;
  8976. +# unsigned long name_rvas, nexp;
  8977. +# unsigned char *expdata, *erva;
  8978. +# char *filename, *dll_name;
  8979. +#
  8980. +# filename = argv[1];
  8981. +#
  8982. +# dll = open(filename, O_RDONLY|O_BINARY);
  8983. +# if (dll < 1)
  8984. +# return 1;
  8985. +#
  8986. +# dll_name = filename;
  8987. +#
  8988. +# for (i=0; filename[i]; i++)
  8989. +# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
  8990. +# dll_name = filename + i +1;
  8991. +#
  8992. +# pe_header_offset = pe_get32 (dll, 0x3c);
  8993. +# opthdr_ofs = pe_header_offset + 4 + 20;
  8994. +# num_entries = pe_get32 (dll, opthdr_ofs + 92);
  8995. +#
  8996. +# if (num_entries < 1) /* no exports */
  8997. +# return 1;
  8998. +#
  8999. +# export_rva = pe_get32 (dll, opthdr_ofs + 96);
  9000. +# export_size = pe_get32 (dll, opthdr_ofs + 100);
  9001. +# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
  9002. +# secptr = (pe_header_offset + 4 + 20 +
  9003. +# pe_get16 (dll, pe_header_offset + 4 + 16));
  9004. +#
  9005. +# expptr = 0;
  9006. +# for (i = 0; i < nsections; i++)
  9007. +# {
  9008. +# char sname[8];
  9009. +# unsigned long secptr1 = secptr + 40 * i;
  9010. +# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
  9011. +# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
  9012. +# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
  9013. +# lseek(dll, secptr1, SEEK_SET);
  9014. +# read(dll, sname, 8);
  9015. +# if (vaddr <= export_rva && vaddr+vsize > export_rva)
  9016. +# {
  9017. +# expptr = fptr + (export_rva - vaddr);
  9018. +# if (export_rva + export_size > vaddr + vsize)
  9019. +# export_size = vsize - (export_rva - vaddr);
  9020. +# break;
  9021. +# }
  9022. +# }
  9023. +#
  9024. +# expdata = (unsigned char*)malloc(export_size);
  9025. +# lseek (dll, expptr, SEEK_SET);
  9026. +# read (dll, expdata, export_size);
  9027. +# erva = expdata - export_rva;
  9028. +#
  9029. +# nexp = pe_as32 (expdata+24);
  9030. +# name_rvas = pe_as32 (expdata+32);
  9031. +#
  9032. +# printf ("EXPORTS\n");
  9033. +# for (i = 0; i<nexp; i++)
  9034. +# {
  9035. +# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
  9036. +# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
  9037. +# }
  9038. +#
  9039. +# return 0;
  9040. +# }
  9041. +# /* impgen.c ends here */
  9042. +
  9043. +EOF
  9044. + ;;
  9045. + esac
  9046. +
  9047. + # We use sed instead of cat because bash on DJGPP gets confused if
  9048. + # if finds mixed CR/LF and LF-only lines. Since sed operates in
  9049. + # text mode, it properly converts lines to CR/LF. This bash problem
  9050. + # is reportedly fixed, but why not run on old versions too?
  9051. + sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
  9052. +
  9053. + mv -f "${ofile}T" "$ofile" || \
  9054. + (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
  9055. + chmod +x "$ofile"
  9056. +fi
  9057. +
  9058. +
  9059. +
  9060. +
  9061. +
  9062. +# This can be used to rebuild libtool when needed
  9063. +LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  9064. +
  9065. +# Always use our own libtool.
  9066. +LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  9067. +
  9068. +# Prevent multiple expansion
  9069. +
  9070. +
  9071. +
  9072. +
  9073. +for ac_func in strerror
  9074. +do
  9075. +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9076. +echo "$as_me:$LINENO: checking for $ac_func" >&5
  9077. +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9078. +if eval "test \"\${$as_ac_var+set}\" = set"; then
  9079. + echo $ECHO_N "(cached) $ECHO_C" >&6
  9080. else
  9081. - echo "$ac_err" >&5
  9082. - echo "configure: failed program was:" >&5
  9083. - cat conftest.$ac_ext >&5
  9084. - rm -rf conftest*
  9085. - CPP=/lib/cpp
  9086. + cat >conftest.$ac_ext <<_ACEOF
  9087. +/* confdefs.h. */
  9088. +_ACEOF
  9089. +cat confdefs.h >>conftest.$ac_ext
  9090. +cat >>conftest.$ac_ext <<_ACEOF
  9091. +/* end confdefs.h. */
  9092. +/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9093. + For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9094. +#define $ac_func innocuous_$ac_func
  9095. +
  9096. +/* System header to define __stub macros and hopefully few prototypes,
  9097. + which can conflict with char $ac_func (); below.
  9098. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9099. + <limits.h> exists even on freestanding compilers. */
  9100. +
  9101. +#ifdef __STDC__
  9102. +# include <limits.h>
  9103. +#else
  9104. +# include <assert.h>
  9105. +#endif
  9106. +
  9107. +#undef $ac_func
  9108. +
  9109. +/* Override any gcc2 internal prototype to avoid an error. */
  9110. +#ifdef __cplusplus
  9111. +extern "C"
  9112. +{
  9113. +#endif
  9114. +/* We use char because int might match the return type of a gcc2
  9115. + builtin and then its argument prototype would still apply. */
  9116. +char $ac_func ();
  9117. +/* The GNU C library defines this for functions which it implements
  9118. + to always fail with ENOSYS. Some functions are actually named
  9119. + something starting with __ and the normal name is an alias. */
  9120. +#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9121. +choke me
  9122. +#else
  9123. +char (*f) () = $ac_func;
  9124. +#endif
  9125. +#ifdef __cplusplus
  9126. +}
  9127. +#endif
  9128. +
  9129. +int
  9130. +main ()
  9131. +{
  9132. +return f != $ac_func;
  9133. + ;
  9134. + return 0;
  9135. +}
  9136. +_ACEOF
  9137. +rm -f conftest.$ac_objext conftest$ac_exeext
  9138. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9139. + (eval $ac_link) 2>conftest.er1
  9140. + ac_status=$?
  9141. + grep -v '^ *+' conftest.er1 >conftest.err
  9142. + rm -f conftest.er1
  9143. + cat conftest.err >&5
  9144. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9145. + (exit $ac_status); } &&
  9146. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9147. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9148. + (eval $ac_try) 2>&5
  9149. + ac_status=$?
  9150. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9151. + (exit $ac_status); }; } &&
  9152. + { ac_try='test -s conftest$ac_exeext'
  9153. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9154. + (eval $ac_try) 2>&5
  9155. + ac_status=$?
  9156. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9157. + (exit $ac_status); }; }; then
  9158. + eval "$as_ac_var=yes"
  9159. +else
  9160. + echo "$as_me: failed program was:" >&5
  9161. +sed 's/^/| /' conftest.$ac_ext >&5
  9162. +
  9163. +eval "$as_ac_var=no"
  9164. fi
  9165. -rm -f conftest*
  9166. +rm -f conftest.err conftest.$ac_objext \
  9167. + conftest$ac_exeext conftest.$ac_ext
  9168. fi
  9169. -rm -f conftest*
  9170. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9171. +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9172. +if test `eval echo '${'$as_ac_var'}'` = yes; then
  9173. + cat >>confdefs.h <<_ACEOF
  9174. +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9175. +_ACEOF
  9176. +
  9177. fi
  9178. -rm -f conftest*
  9179. - ac_cv_prog_CPP="$CPP"
  9180. +done
  9181. +
  9182. +
  9183. +echo "$as_me:$LINENO: checking for pcap_open_live in -lpcap" >&5
  9184. +echo $ECHO_N "checking for pcap_open_live in -lpcap... $ECHO_C" >&6
  9185. +if test "${ac_cv_lib_pcap_pcap_open_live+set}" = set; then
  9186. + echo $ECHO_N "(cached) $ECHO_C" >&6
  9187. +else
  9188. + ac_check_lib_save_LIBS=$LIBS
  9189. +LIBS="-lpcap $LIBS"
  9190. +cat >conftest.$ac_ext <<_ACEOF
  9191. +/* confdefs.h. */
  9192. +_ACEOF
  9193. +cat confdefs.h >>conftest.$ac_ext
  9194. +cat >>conftest.$ac_ext <<_ACEOF
  9195. +/* end confdefs.h. */
  9196. +
  9197. +/* Override any gcc2 internal prototype to avoid an error. */
  9198. +#ifdef __cplusplus
  9199. +extern "C"
  9200. +#endif
  9201. +/* We use char because int might match the return type of a gcc2
  9202. + builtin and then its argument prototype would still apply. */
  9203. +char pcap_open_live ();
  9204. +int
  9205. +main ()
  9206. +{
  9207. +pcap_open_live ();
  9208. + ;
  9209. + return 0;
  9210. +}
  9211. +_ACEOF
  9212. +rm -f conftest.$ac_objext conftest$ac_exeext
  9213. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9214. + (eval $ac_link) 2>conftest.er1
  9215. + ac_status=$?
  9216. + grep -v '^ *+' conftest.er1 >conftest.err
  9217. + rm -f conftest.er1
  9218. + cat conftest.err >&5
  9219. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9220. + (exit $ac_status); } &&
  9221. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9222. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9223. + (eval $ac_try) 2>&5
  9224. + ac_status=$?
  9225. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9226. + (exit $ac_status); }; } &&
  9227. + { ac_try='test -s conftest$ac_exeext'
  9228. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9229. + (eval $ac_try) 2>&5
  9230. + ac_status=$?
  9231. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9232. + (exit $ac_status); }; }; then
  9233. + ac_cv_lib_pcap_pcap_open_live=yes
  9234. +else
  9235. + echo "$as_me: failed program was:" >&5
  9236. +sed 's/^/| /' conftest.$ac_ext >&5
  9237. +
  9238. +ac_cv_lib_pcap_pcap_open_live=no
  9239. fi
  9240. - CPP="$ac_cv_prog_CPP"
  9241. +rm -f conftest.err conftest.$ac_objext \
  9242. + conftest$ac_exeext conftest.$ac_ext
  9243. +LIBS=$ac_check_lib_save_LIBS
  9244. +fi
  9245. +echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_pcap_open_live" >&5
  9246. +echo "${ECHO_T}$ac_cv_lib_pcap_pcap_open_live" >&6
  9247. +if test $ac_cv_lib_pcap_pcap_open_live = yes; then
  9248. + cat >>confdefs.h <<\_ACEOF
  9249. +#define HAVE_LIB_PCAP 1
  9250. +_ACEOF
  9251. +
  9252. +fi
  9253. +
  9254. +
  9255. +echo "$as_me:$LINENO: checking low-level packet interface type" >&5
  9256. +echo $ECHO_N "checking low-level packet interface type... $ECHO_C" >&6
  9257. +
  9258. +if test $ac_libnet_have_pf_packet = yes -o $ac_libnet_have_pf_packet = probably; then
  9259. + cat >>confdefs.h <<\_ACEOF
  9260. +#define HAVE_PF_PACKET 1
  9261. +_ACEOF
  9262. + LL_INT_TYPE=sockpacket
  9263. else
  9264. - ac_cv_prog_CPP="$CPP"
  9265. + LL_INT_TYPE=null
  9266. + { echo "$as_me:$LINENO: WARNING: could not find a low level packet interface" >&5
  9267. +echo "$as_me: WARNING: could not find a low level packet interface" >&2;}
  9268. + { echo "$as_me:$LINENO: WARNING: low level packet creation API will not be added to the library" >&5
  9269. +echo "$as_me: WARNING: low level packet creation API will not be added to the library" >&2;}
  9270. fi
  9271. -echo "$ac_t""$CPP" 1>&6
  9272. -for ac_hdr in net/ethernet.h
  9273. +LL_INT_TYPE_UC=`echo $LL_INT_TYPE | tr a-z A-Z`
  9274. +
  9275. +
  9276. +case "$target_os" in
  9277. +
  9278. +*linux*)
  9279. + cat >>confdefs.h <<\_ACEOF
  9280. +#define _BSD_SOURCE 1
  9281. +_ACEOF
  9282. +
  9283. + cat >>confdefs.h <<\_ACEOF
  9284. +#define __BSD_SOURCE 1
  9285. +_ACEOF
  9286. +
  9287. + cat >>confdefs.h <<\_ACEOF
  9288. +#define __FAVOR_BSD 1
  9289. +_ACEOF
  9290. +
  9291. + LIBNET_CONFIG_DEFINES="-D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD"
  9292. +
  9293. +for ac_header in net/ethernet.h
  9294. do
  9295. -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  9296. -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  9297. -echo "configure:1538: checking for $ac_hdr" >&5
  9298. -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  9299. - echo $ac_n "(cached) $ac_c" 1>&6
  9300. +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9301. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9302. + echo "$as_me:$LINENO: checking for $ac_header" >&5
  9303. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9304. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9305. + echo $ECHO_N "(cached) $ECHO_C" >&6
  9306. +fi
  9307. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9308. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9309. else
  9310. - cat > conftest.$ac_ext <<EOF
  9311. -#line 1543 "configure"
  9312. -#include "confdefs.h"
  9313. -#include <$ac_hdr>
  9314. -EOF
  9315. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  9316. -{ (eval echo configure:1548: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  9317. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  9318. -if test -z "$ac_err"; then
  9319. - rm -rf conftest*
  9320. - eval "ac_cv_header_$ac_safe=yes"
  9321. + # Is the header compilable?
  9322. +echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9323. +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9324. +cat >conftest.$ac_ext <<_ACEOF
  9325. +/* confdefs.h. */
  9326. +_ACEOF
  9327. +cat confdefs.h >>conftest.$ac_ext
  9328. +cat >>conftest.$ac_ext <<_ACEOF
  9329. +/* end confdefs.h. */
  9330. +$ac_includes_default
  9331. +#include <$ac_header>
  9332. +_ACEOF
  9333. +rm -f conftest.$ac_objext
  9334. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9335. + (eval $ac_compile) 2>conftest.er1
  9336. + ac_status=$?
  9337. + grep -v '^ *+' conftest.er1 >conftest.err
  9338. + rm -f conftest.er1
  9339. + cat conftest.err >&5
  9340. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9341. + (exit $ac_status); } &&
  9342. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9343. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9344. + (eval $ac_try) 2>&5
  9345. + ac_status=$?
  9346. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9347. + (exit $ac_status); }; } &&
  9348. + { ac_try='test -s conftest.$ac_objext'
  9349. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9350. + (eval $ac_try) 2>&5
  9351. + ac_status=$?
  9352. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9353. + (exit $ac_status); }; }; then
  9354. + ac_header_compiler=yes
  9355. else
  9356. - echo "$ac_err" >&5
  9357. - echo "configure: failed program was:" >&5
  9358. - cat conftest.$ac_ext >&5
  9359. - rm -rf conftest*
  9360. - eval "ac_cv_header_$ac_safe=no"
  9361. + echo "$as_me: failed program was:" >&5
  9362. +sed 's/^/| /' conftest.$ac_ext >&5
  9363. +
  9364. +ac_header_compiler=no
  9365. fi
  9366. -rm -f conftest*
  9367. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9368. +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9369. +echo "${ECHO_T}$ac_header_compiler" >&6
  9370. +
  9371. +# Is the header present?
  9372. +echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9373. +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9374. +cat >conftest.$ac_ext <<_ACEOF
  9375. +/* confdefs.h. */
  9376. +_ACEOF
  9377. +cat confdefs.h >>conftest.$ac_ext
  9378. +cat >>conftest.$ac_ext <<_ACEOF
  9379. +/* end confdefs.h. */
  9380. +#include <$ac_header>
  9381. +_ACEOF
  9382. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9383. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9384. + ac_status=$?
  9385. + grep -v '^ *+' conftest.er1 >conftest.err
  9386. + rm -f conftest.er1
  9387. + cat conftest.err >&5
  9388. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9389. + (exit $ac_status); } >/dev/null; then
  9390. + if test -s conftest.err; then
  9391. + ac_cpp_err=$ac_c_preproc_warn_flag
  9392. + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9393. + else
  9394. + ac_cpp_err=
  9395. + fi
  9396. +else
  9397. + ac_cpp_err=yes
  9398. fi
  9399. -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  9400. - echo "$ac_t""yes" 1>&6
  9401. - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  9402. - cat >> confdefs.h <<EOF
  9403. -#define $ac_tr_hdr 1
  9404. -EOF
  9405. +if test -z "$ac_cpp_err"; then
  9406. + ac_header_preproc=yes
  9407. +else
  9408. + echo "$as_me: failed program was:" >&5
  9409. +sed 's/^/| /' conftest.$ac_ext >&5
  9410. +
  9411. + ac_header_preproc=no
  9412. +fi
  9413. +rm -f conftest.err conftest.$ac_ext
  9414. +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9415. +echo "${ECHO_T}$ac_header_preproc" >&6
  9416. +
  9417. +# So? What about this header?
  9418. +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9419. + yes:no: )
  9420. + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9421. +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9422. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9423. +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9424. + ac_header_preproc=yes
  9425. + ;;
  9426. + no:yes:* )
  9427. + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9428. +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9429. + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9430. +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9431. + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9432. +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9433. + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9434. +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9435. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9436. +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9437. + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9438. +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9439. + (
  9440. + cat <<\_ASBOX
  9441. +## ------------------------------------------ ##
  9442. +## Report this to the AC_PACKAGE_NAME lists. ##
  9443. +## ------------------------------------------ ##
  9444. +_ASBOX
  9445. + ) |
  9446. + sed "s/^/$as_me: WARNING: /" >&2
  9447. + ;;
  9448. +esac
  9449. +echo "$as_me:$LINENO: checking for $ac_header" >&5
  9450. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9451. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9452. + echo $ECHO_N "(cached) $ECHO_C" >&6
  9453. +else
  9454. + eval "$as_ac_Header=\$ac_header_preproc"
  9455. +fi
  9456. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9457. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9458. +
  9459. +fi
  9460. +if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9461. + cat >>confdefs.h <<_ACEOF
  9462. +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9463. +_ACEOF
  9464. \
  9465. LIBNET_CONFIG_DEFINES="$LIBNET_CONFIG_DEFINES -DHAVE_NET_ETHERNET_H"
  9466. -else
  9467. - echo "$ac_t""no" 1>&6
  9468. fi
  9469. +
  9470. done
  9471. - MAN_PREFIX="$prefix/man/man3/"
  9472. + MAN_PREFIX="$mandir/man3/"
  9473. LIB_PREFIX="$prefix/lib/"
  9474. INC_PREFIX="$prefix/include/"
  9475. BIN_PREFIX="$prefix/bin/"
  9476. ;;
  9477. *freebsd*)
  9478. - cat >> confdefs.h <<\EOF
  9479. + cat >>confdefs.h <<\_ACEOF
  9480. #define LIBNET_BSDISH_OS 1
  9481. -EOF
  9482. +_ACEOF
  9483. - cat >> confdefs.h <<\EOF
  9484. + cat >>confdefs.h <<\_ACEOF
  9485. #define LIBNET_BSD_BYTE_SWAP 1
  9486. -EOF
  9487. +_ACEOF
  9488. - cat >> confdefs.h <<\EOF
  9489. + cat >>confdefs.h <<\_ACEOF
  9490. #define HAVE_SOCKADDR_SA_LEN 1
  9491. -EOF
  9492. +_ACEOF
  9493. LIBNET_CONFIG_DEFINES="-DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP \
  9494. -DHAVE_SOCKADDR_SA_LEN"
  9495. @@ -1596,19 +8820,21 @@ EOF
  9496. LIB_PREFIX="$prefix/lib/aout"
  9497. INC_PREFIX="$prefix/include/"
  9498. BIN_PREFIX="$prefix/bin/"
  9499. - echo "$ac_t""Note: support/bpf-lkm/etherspoof contains the lkm source \
  9500. -required to spoof ethernet frames" 1>&6
  9501. + echo "$as_me:$LINENO: result: Note: support/bpf-lkm/etherspoof contains the lkm source \
  9502. +required to spoof ethernet frames" >&5
  9503. +echo "${ECHO_T}Note: support/bpf-lkm/etherspoof contains the lkm source \
  9504. +required to spoof ethernet frames" >&6
  9505. ln -sf FreeBSD support/bpf-lkm/etherspoof
  9506. ;;
  9507. *netbsd*)
  9508. - cat >> confdefs.h <<\EOF
  9509. + cat >>confdefs.h <<\_ACEOF
  9510. #define LIBNET_BSDISH_OS 1
  9511. -EOF
  9512. +_ACEOF
  9513. - cat >> confdefs.h <<\EOF
  9514. + cat >>confdefs.h <<\_ACEOF
  9515. #define LIBNET_BSD_BYTE_SWAP 1
  9516. -EOF
  9517. +_ACEOF
  9518. LIBNET_CONFIG_DEFINES="-DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP"
  9519. MAN_PREFIX="$prefix/man/man3/"
  9520. @@ -1618,32 +8844,34 @@ EOF
  9521. ;;
  9522. *openbsd*)
  9523. - cat >> confdefs.h <<\EOF
  9524. + cat >>confdefs.h <<\_ACEOF
  9525. #define LIBNET_BSDISH_OS 1
  9526. -EOF
  9527. +_ACEOF
  9528. - cat >> confdefs.h <<\EOF
  9529. + cat >>confdefs.h <<\_ACEOF
  9530. #define HAVE_SOCKADDR_SA_LEN 1
  9531. -EOF
  9532. +_ACEOF
  9533. LIBNET_CONFIG_DEFINES="-DLIBNET_BSDISH_OS"
  9534. MAN_PREFIX="$prefix/man/man3/"
  9535. LIB_PREFIX="$prefix/lib/"
  9536. INC_PREFIX="$prefix/include/"
  9537. BIN_PREFIX="$prefix/bin/"
  9538. - echo "$ac_t""Note: support/bpf-lkm/etherspoof contains the lkm required \
  9539. -to spoof ethernet frames" 1>&6
  9540. + echo "$as_me:$LINENO: result: Note: support/bpf-lkm/etherspoof contains the lkm required \
  9541. +to spoof ethernet frames" >&5
  9542. +echo "${ECHO_T}Note: support/bpf-lkm/etherspoof contains the lkm required \
  9543. +to spoof ethernet frames" >&6
  9544. ln -sf OpenBSD support/bpf-lkm/etherspoof
  9545. ;;
  9546. *bsdi*)
  9547. - cat >> confdefs.h <<\EOF
  9548. + cat >>confdefs.h <<\_ACEOF
  9549. #define LIBNET_BSDISH_OS 1
  9550. -EOF
  9551. +_ACEOF
  9552. - cat >> confdefs.h <<\EOF
  9553. + cat >>confdefs.h <<\_ACEOF
  9554. #define LIBNET_BSD_BYTE_SWAP 1
  9555. -EOF
  9556. +_ACEOF
  9557. LIBNET_CONFIG_DEFINES="-DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP"
  9558. MAN_PREFIX="$prefix/man/man3/"
  9559. @@ -1653,181 +8881,353 @@ EOF
  9560. ;;
  9561. *solaris*)
  9562. - cat >> confdefs.h <<\EOF
  9563. + cat >>confdefs.h <<\_ACEOF
  9564. #define HAVE_SOLARIS 1
  9565. -EOF
  9566. +_ACEOF
  9567. - for ac_hdr in sys/bufmod.h sys/dlpi_ext.h
  9568. +
  9569. +
  9570. +for ac_header in sys/bufmod.h sys/dlpi_ext.h
  9571. do
  9572. -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  9573. -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  9574. -echo "configure:1665: checking for $ac_hdr" >&5
  9575. -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  9576. - echo $ac_n "(cached) $ac_c" 1>&6
  9577. +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9578. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9579. + echo "$as_me:$LINENO: checking for $ac_header" >&5
  9580. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9581. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9582. + echo $ECHO_N "(cached) $ECHO_C" >&6
  9583. +fi
  9584. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9585. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9586. else
  9587. - cat > conftest.$ac_ext <<EOF
  9588. -#line 1670 "configure"
  9589. -#include "confdefs.h"
  9590. -#include <$ac_hdr>
  9591. -EOF
  9592. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  9593. -{ (eval echo configure:1675: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  9594. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  9595. -if test -z "$ac_err"; then
  9596. - rm -rf conftest*
  9597. - eval "ac_cv_header_$ac_safe=yes"
  9598. + # Is the header compilable?
  9599. +echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9600. +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9601. +cat >conftest.$ac_ext <<_ACEOF
  9602. +/* confdefs.h. */
  9603. +_ACEOF
  9604. +cat confdefs.h >>conftest.$ac_ext
  9605. +cat >>conftest.$ac_ext <<_ACEOF
  9606. +/* end confdefs.h. */
  9607. +$ac_includes_default
  9608. +#include <$ac_header>
  9609. +_ACEOF
  9610. +rm -f conftest.$ac_objext
  9611. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9612. + (eval $ac_compile) 2>conftest.er1
  9613. + ac_status=$?
  9614. + grep -v '^ *+' conftest.er1 >conftest.err
  9615. + rm -f conftest.er1
  9616. + cat conftest.err >&5
  9617. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9618. + (exit $ac_status); } &&
  9619. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9620. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9621. + (eval $ac_try) 2>&5
  9622. + ac_status=$?
  9623. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9624. + (exit $ac_status); }; } &&
  9625. + { ac_try='test -s conftest.$ac_objext'
  9626. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9627. + (eval $ac_try) 2>&5
  9628. + ac_status=$?
  9629. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9630. + (exit $ac_status); }; }; then
  9631. + ac_header_compiler=yes
  9632. else
  9633. - echo "$ac_err" >&5
  9634. - echo "configure: failed program was:" >&5
  9635. - cat conftest.$ac_ext >&5
  9636. - rm -rf conftest*
  9637. - eval "ac_cv_header_$ac_safe=no"
  9638. + echo "$as_me: failed program was:" >&5
  9639. +sed 's/^/| /' conftest.$ac_ext >&5
  9640. +
  9641. +ac_header_compiler=no
  9642. fi
  9643. -rm -f conftest*
  9644. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9645. +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9646. +echo "${ECHO_T}$ac_header_compiler" >&6
  9647. +
  9648. +# Is the header present?
  9649. +echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9650. +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9651. +cat >conftest.$ac_ext <<_ACEOF
  9652. +/* confdefs.h. */
  9653. +_ACEOF
  9654. +cat confdefs.h >>conftest.$ac_ext
  9655. +cat >>conftest.$ac_ext <<_ACEOF
  9656. +/* end confdefs.h. */
  9657. +#include <$ac_header>
  9658. +_ACEOF
  9659. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9660. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9661. + ac_status=$?
  9662. + grep -v '^ *+' conftest.er1 >conftest.err
  9663. + rm -f conftest.er1
  9664. + cat conftest.err >&5
  9665. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9666. + (exit $ac_status); } >/dev/null; then
  9667. + if test -s conftest.err; then
  9668. + ac_cpp_err=$ac_c_preproc_warn_flag
  9669. + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9670. + else
  9671. + ac_cpp_err=
  9672. + fi
  9673. +else
  9674. + ac_cpp_err=yes
  9675. fi
  9676. -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  9677. - echo "$ac_t""yes" 1>&6
  9678. - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  9679. - cat >> confdefs.h <<EOF
  9680. -#define $ac_tr_hdr 1
  9681. -EOF
  9682. -
  9683. +if test -z "$ac_cpp_err"; then
  9684. + ac_header_preproc=yes
  9685. else
  9686. - echo "$ac_t""no" 1>&6
  9687. + echo "$as_me: failed program was:" >&5
  9688. +sed 's/^/| /' conftest.$ac_ext >&5
  9689. +
  9690. + ac_header_preproc=no
  9691. fi
  9692. +rm -f conftest.err conftest.$ac_ext
  9693. +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9694. +echo "${ECHO_T}$ac_header_preproc" >&6
  9695. +
  9696. +# So? What about this header?
  9697. +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9698. + yes:no: )
  9699. + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9700. +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9701. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9702. +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9703. + ac_header_preproc=yes
  9704. + ;;
  9705. + no:yes:* )
  9706. + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9707. +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9708. + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9709. +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9710. + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9711. +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9712. + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9713. +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9714. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9715. +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9716. + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9717. +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9718. + (
  9719. + cat <<\_ASBOX
  9720. +## ------------------------------------------ ##
  9721. +## Report this to the AC_PACKAGE_NAME lists. ##
  9722. +## ------------------------------------------ ##
  9723. +_ASBOX
  9724. + ) |
  9725. + sed "s/^/$as_me: WARNING: /" >&2
  9726. + ;;
  9727. +esac
  9728. +echo "$as_me:$LINENO: checking for $ac_header" >&5
  9729. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9730. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9731. + echo $ECHO_N "(cached) $ECHO_C" >&6
  9732. +else
  9733. + eval "$as_ac_Header=\$ac_header_preproc"
  9734. +fi
  9735. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9736. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9737. +
  9738. +fi
  9739. +if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9740. + cat >>confdefs.h <<_ACEOF
  9741. +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9742. +_ACEOF
  9743. +
  9744. +fi
  9745. +
  9746. done
  9747. - echo $ac_n "checking for /dev/dlpi device""... $ac_c" 1>&6
  9748. -echo "configure:1702: checking for /dev/dlpi device" >&5
  9749. + echo "$as_me:$LINENO: checking for /dev/dlpi device" >&5
  9750. +echo $ECHO_N "checking for /dev/dlpi device... $ECHO_C" >&6
  9751. if test -c /dev/dlpi; then
  9752. - echo "$ac_t""yes" 1>&6
  9753. - cat >> confdefs.h <<\EOF
  9754. + echo "$as_me:$LINENO: result: yes" >&5
  9755. +echo "${ECHO_T}yes" >&6
  9756. + cat >>confdefs.h <<\_ACEOF
  9757. #define HAVE_DEV_DLPI 1
  9758. -EOF
  9759. +_ACEOF
  9760. else
  9761. - echo "$ac_t""no" 1>&6
  9762. + echo "$as_me:$LINENO: result: no" >&5
  9763. +echo "${ECHO_T}no" >&6
  9764. dir="/dev/dlpi"
  9765. - echo $ac_n "checking for $dir directory""... $ac_c" 1>&6
  9766. -echo "configure:1713: checking for $dir directory" >&5
  9767. + echo "$as_me:$LINENO: checking for $dir directory" >&5
  9768. +echo $ECHO_N "checking for $dir directory... $ECHO_C" >&6
  9769. if test -d $dir ; then
  9770. - echo "$ac_t""yes" 1>&6
  9771. - cat >> confdefs.h <<EOF
  9772. + echo "$as_me:$LINENO: result: yes" >&5
  9773. +echo "${ECHO_T}yes" >&6
  9774. + cat >>confdefs.h <<_ACEOF
  9775. #define DLPI_DEV_PREFIX "$dir"
  9776. -EOF
  9777. +_ACEOF
  9778. else
  9779. - echo "$ac_t""no" 1>&6
  9780. + echo "$as_me:$LINENO: result: no" >&5
  9781. +echo "${ECHO_T}no" >&6
  9782. fi
  9783. fi
  9784. - echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
  9785. -echo "configure:1725: checking for socket in -lsocket" >&5
  9786. -ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
  9787. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  9788. - echo $ac_n "(cached) $ac_c" 1>&6
  9789. +
  9790. +echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
  9791. +echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
  9792. +if test "${ac_cv_lib_socket_socket+set}" = set; then
  9793. + echo $ECHO_N "(cached) $ECHO_C" >&6
  9794. else
  9795. - ac_save_LIBS="$LIBS"
  9796. + ac_check_lib_save_LIBS=$LIBS
  9797. LIBS="-lsocket $LIBS"
  9798. -cat > conftest.$ac_ext <<EOF
  9799. -#line 1733 "configure"
  9800. -#include "confdefs.h"
  9801. +cat >conftest.$ac_ext <<_ACEOF
  9802. +/* confdefs.h. */
  9803. +_ACEOF
  9804. +cat confdefs.h >>conftest.$ac_ext
  9805. +cat >>conftest.$ac_ext <<_ACEOF
  9806. +/* end confdefs.h. */
  9807. +
  9808. /* Override any gcc2 internal prototype to avoid an error. */
  9809. +#ifdef __cplusplus
  9810. +extern "C"
  9811. +#endif
  9812. /* We use char because int might match the return type of a gcc2
  9813. - builtin and then its argument prototype would still apply. */
  9814. -char socket();
  9815. -
  9816. -int main() {
  9817. -socket()
  9818. -; return 0; }
  9819. -EOF
  9820. -if { (eval echo configure:1744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9821. - rm -rf conftest*
  9822. - eval "ac_cv_lib_$ac_lib_var=yes"
  9823. + builtin and then its argument prototype would still apply. */
  9824. +char socket ();
  9825. +int
  9826. +main ()
  9827. +{
  9828. +socket ();
  9829. + ;
  9830. + return 0;
  9831. +}
  9832. +_ACEOF
  9833. +rm -f conftest.$ac_objext conftest$ac_exeext
  9834. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9835. + (eval $ac_link) 2>conftest.er1
  9836. + ac_status=$?
  9837. + grep -v '^ *+' conftest.er1 >conftest.err
  9838. + rm -f conftest.er1
  9839. + cat conftest.err >&5
  9840. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9841. + (exit $ac_status); } &&
  9842. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9843. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9844. + (eval $ac_try) 2>&5
  9845. + ac_status=$?
  9846. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9847. + (exit $ac_status); }; } &&
  9848. + { ac_try='test -s conftest$ac_exeext'
  9849. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9850. + (eval $ac_try) 2>&5
  9851. + ac_status=$?
  9852. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9853. + (exit $ac_status); }; }; then
  9854. + ac_cv_lib_socket_socket=yes
  9855. else
  9856. - echo "configure: failed program was:" >&5
  9857. - cat conftest.$ac_ext >&5
  9858. - rm -rf conftest*
  9859. - eval "ac_cv_lib_$ac_lib_var=no"
  9860. -fi
  9861. -rm -f conftest*
  9862. -LIBS="$ac_save_LIBS"
  9863. + echo "$as_me: failed program was:" >&5
  9864. +sed 's/^/| /' conftest.$ac_ext >&5
  9865. +ac_cv_lib_socket_socket=no
  9866. fi
  9867. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9868. - echo "$ac_t""yes" 1>&6
  9869. - ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  9870. - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  9871. - cat >> confdefs.h <<EOF
  9872. -#define $ac_tr_lib 1
  9873. -EOF
  9874. +rm -f conftest.err conftest.$ac_objext \
  9875. + conftest$ac_exeext conftest.$ac_ext
  9876. +LIBS=$ac_check_lib_save_LIBS
  9877. +fi
  9878. +echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
  9879. +echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
  9880. +if test $ac_cv_lib_socket_socket = yes; then
  9881. + cat >>confdefs.h <<_ACEOF
  9882. +#define HAVE_LIBSOCKET 1
  9883. +_ACEOF
  9884. LIBS="-lsocket $LIBS"
  9885. else
  9886. - echo "$ac_t""no" 1>&6
  9887. -{ echo "configure: error: libsocket not found." 1>&2; exit 1; }
  9888. + { { echo "$as_me:$LINENO: error: libsocket not found." >&5
  9889. +echo "$as_me: error: libsocket not found." >&2;}
  9890. + { (exit 1); exit 1; }; }
  9891. fi
  9892. - echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
  9893. -echo "configure:1773: checking for gethostbyname in -lnsl" >&5
  9894. -ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
  9895. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  9896. - echo $ac_n "(cached) $ac_c" 1>&6
  9897. +
  9898. +echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
  9899. +echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
  9900. +if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
  9901. + echo $ECHO_N "(cached) $ECHO_C" >&6
  9902. else
  9903. - ac_save_LIBS="$LIBS"
  9904. + ac_check_lib_save_LIBS=$LIBS
  9905. LIBS="-lnsl $LIBS"
  9906. -cat > conftest.$ac_ext <<EOF
  9907. -#line 1781 "configure"
  9908. -#include "confdefs.h"
  9909. +cat >conftest.$ac_ext <<_ACEOF
  9910. +/* confdefs.h. */
  9911. +_ACEOF
  9912. +cat confdefs.h >>conftest.$ac_ext
  9913. +cat >>conftest.$ac_ext <<_ACEOF
  9914. +/* end confdefs.h. */
  9915. +
  9916. /* Override any gcc2 internal prototype to avoid an error. */
  9917. +#ifdef __cplusplus
  9918. +extern "C"
  9919. +#endif
  9920. /* We use char because int might match the return type of a gcc2
  9921. - builtin and then its argument prototype would still apply. */
  9922. -char gethostbyname();
  9923. -
  9924. -int main() {
  9925. -gethostbyname()
  9926. -; return 0; }
  9927. -EOF
  9928. -if { (eval echo configure:1792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9929. - rm -rf conftest*
  9930. - eval "ac_cv_lib_$ac_lib_var=yes"
  9931. + builtin and then its argument prototype would still apply. */
  9932. +char gethostbyname ();
  9933. +int
  9934. +main ()
  9935. +{
  9936. +gethostbyname ();
  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>conftest.er1
  9944. + ac_status=$?
  9945. + grep -v '^ *+' conftest.er1 >conftest.err
  9946. + rm -f conftest.er1
  9947. + cat conftest.err >&5
  9948. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9949. + (exit $ac_status); } &&
  9950. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9951. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9952. + (eval $ac_try) 2>&5
  9953. + ac_status=$?
  9954. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9955. + (exit $ac_status); }; } &&
  9956. + { ac_try='test -s conftest$ac_exeext'
  9957. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9958. + (eval $ac_try) 2>&5
  9959. + ac_status=$?
  9960. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9961. + (exit $ac_status); }; }; then
  9962. + ac_cv_lib_nsl_gethostbyname=yes
  9963. else
  9964. - echo "configure: failed program was:" >&5
  9965. - cat conftest.$ac_ext >&5
  9966. - rm -rf conftest*
  9967. - eval "ac_cv_lib_$ac_lib_var=no"
  9968. -fi
  9969. -rm -f conftest*
  9970. -LIBS="$ac_save_LIBS"
  9971. + echo "$as_me: failed program was:" >&5
  9972. +sed 's/^/| /' conftest.$ac_ext >&5
  9973. +ac_cv_lib_nsl_gethostbyname=no
  9974. fi
  9975. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9976. - echo "$ac_t""yes" 1>&6
  9977. - ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  9978. - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  9979. - cat >> confdefs.h <<EOF
  9980. -#define $ac_tr_lib 1
  9981. -EOF
  9982. +rm -f conftest.err conftest.$ac_objext \
  9983. + conftest$ac_exeext conftest.$ac_ext
  9984. +LIBS=$ac_check_lib_save_LIBS
  9985. +fi
  9986. +echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
  9987. +echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
  9988. +if test $ac_cv_lib_nsl_gethostbyname = yes; then
  9989. + cat >>confdefs.h <<_ACEOF
  9990. +#define HAVE_LIBNSL 1
  9991. +_ACEOF
  9992. LIBS="-lnsl $LIBS"
  9993. else
  9994. - echo "$ac_t""no" 1>&6
  9995. -{ echo "configure: error: libnsl not found." 1>&2; exit 1; }
  9996. + { { echo "$as_me:$LINENO: error: libnsl not found." >&5
  9997. +echo "$as_me: error: libnsl not found." >&2;}
  9998. + { (exit 1); exit 1; }; }
  9999. fi
  10000. case "`uname -r`" in
  10001. 5.4)
  10002. - cat >> confdefs.h <<\EOF
  10003. + cat >>confdefs.h <<\_ACEOF
  10004. #define STUPID_SOLARIS_CHECKSUM_BUG 1
  10005. -EOF
  10006. +_ACEOF
  10007. ;;
  10008. 5.5*)
  10009. - cat >> confdefs.h <<\EOF
  10010. + cat >>confdefs.h <<\_ACEOF
  10011. #define STUPID_SOLARIS_CHECKSUM_BUG 1
  10012. -EOF
  10013. +_ACEOF
  10014. ;;
  10015. @@ -1842,73 +9242,112 @@ EOF
  10016. ;;
  10017. *)
  10018. - echo "configure: warning: apparently your OS is not officially supported yet" 1>&2
  10019. - echo "configure: warning: this may not work" 1>&2
  10020. - echo "$ac_t""you'll have to edit the makefile by hand" 1>&6
  10021. - echo "$ac_t""please send diffs to mike@infonexus.com" 1>&6
  10022. + { echo "$as_me:$LINENO: WARNING: apparently your OS is not officially supported yet" >&5
  10023. +echo "$as_me: WARNING: apparently your OS is not officially supported yet" >&2;}
  10024. + { echo "$as_me:$LINENO: WARNING: this may not work" >&5
  10025. +echo "$as_me: WARNING: this may not work" >&2;}
  10026. + echo "$as_me:$LINENO: result: you'll have to edit the makefile by hand" >&5
  10027. +echo "${ECHO_T}you'll have to edit the makefile by hand" >&6
  10028. + echo "$as_me:$LINENO: result: please send diffs to mike@infonexus.com" >&5
  10029. +echo "${ECHO_T}please send diffs to mike@infonexus.com" >&6
  10030. ;;
  10031. esac
  10032. - echo $ac_n "checking for libnet_build_ip in -lnet""... $ac_c" 1>&6
  10033. -echo "configure:1856: checking for libnet_build_ip in -lnet" >&5
  10034. -ac_lib_var=`echo net'_'libnet_build_ip | sed 'y%./+-%__p_%'`
  10035. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  10036. - echo $ac_n "(cached) $ac_c" 1>&6
  10037. + echo "$as_me:$LINENO: checking for libnet_build_ip in -lnet" >&5
  10038. +echo $ECHO_N "checking for libnet_build_ip in -lnet... $ECHO_C" >&6
  10039. +if test "${ac_cv_lib_net_libnet_build_ip+set}" = set; then
  10040. + echo $ECHO_N "(cached) $ECHO_C" >&6
  10041. else
  10042. - ac_save_LIBS="$LIBS"
  10043. + ac_check_lib_save_LIBS=$LIBS
  10044. LIBS="-lnet $LIBS"
  10045. -cat > conftest.$ac_ext <<EOF
  10046. -#line 1864 "configure"
  10047. -#include "confdefs.h"
  10048. +cat >conftest.$ac_ext <<_ACEOF
  10049. +/* confdefs.h. */
  10050. +_ACEOF
  10051. +cat confdefs.h >>conftest.$ac_ext
  10052. +cat >>conftest.$ac_ext <<_ACEOF
  10053. +/* end confdefs.h. */
  10054. +
  10055. /* Override any gcc2 internal prototype to avoid an error. */
  10056. +#ifdef __cplusplus
  10057. +extern "C"
  10058. +#endif
  10059. /* We use char because int might match the return type of a gcc2
  10060. - builtin and then its argument prototype would still apply. */
  10061. -char libnet_build_ip();
  10062. -
  10063. -int main() {
  10064. -libnet_build_ip()
  10065. -; return 0; }
  10066. -EOF
  10067. -if { (eval echo configure:1875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10068. - rm -rf conftest*
  10069. - eval "ac_cv_lib_$ac_lib_var=yes"
  10070. + builtin and then its argument prototype would still apply. */
  10071. +char libnet_build_ip ();
  10072. +int
  10073. +main ()
  10074. +{
  10075. +libnet_build_ip ();
  10076. + ;
  10077. + return 0;
  10078. +}
  10079. +_ACEOF
  10080. +rm -f conftest.$ac_objext conftest$ac_exeext
  10081. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10082. + (eval $ac_link) 2>conftest.er1
  10083. + ac_status=$?
  10084. + grep -v '^ *+' conftest.er1 >conftest.err
  10085. + rm -f conftest.er1
  10086. + cat conftest.err >&5
  10087. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10088. + (exit $ac_status); } &&
  10089. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10090. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10091. + (eval $ac_try) 2>&5
  10092. + ac_status=$?
  10093. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10094. + (exit $ac_status); }; } &&
  10095. + { ac_try='test -s conftest$ac_exeext'
  10096. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10097. + (eval $ac_try) 2>&5
  10098. + ac_status=$?
  10099. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10100. + (exit $ac_status); }; }; then
  10101. + ac_cv_lib_net_libnet_build_ip=yes
  10102. else
  10103. - echo "configure: failed program was:" >&5
  10104. - cat conftest.$ac_ext >&5
  10105. - rm -rf conftest*
  10106. - eval "ac_cv_lib_$ac_lib_var=no"
  10107. -fi
  10108. -rm -f conftest*
  10109. -LIBS="$ac_save_LIBS"
  10110. + echo "$as_me: failed program was:" >&5
  10111. +sed 's/^/| /' conftest.$ac_ext >&5
  10112. +ac_cv_lib_net_libnet_build_ip=no
  10113. fi
  10114. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  10115. - echo "$ac_t""yes" 1>&6
  10116. - echo $ac_n "checking version""... $ac_c" 1>&6
  10117. -echo "configure:1891: checking version" >&5 \
  10118. +rm -f conftest.err conftest.$ac_objext \
  10119. + conftest$ac_exeext conftest.$ac_ext
  10120. +LIBS=$ac_check_lib_save_LIBS
  10121. +fi
  10122. +echo "$as_me:$LINENO: result: $ac_cv_lib_net_libnet_build_ip" >&5
  10123. +echo "${ECHO_T}$ac_cv_lib_net_libnet_build_ip" >&6
  10124. +if test $ac_cv_lib_net_libnet_build_ip = yes; then
  10125. + echo "$as_me:$LINENO: checking version" >&5
  10126. +echo $ECHO_N "checking version... $ECHO_C" >&6 \
  10127. if [ ! -f $LIB_PREFIX/libnet.a ] ; then
  10128. - echo "$ac_t""$LIB_PREFIX/libnet.a doesn't exist" 1>&6
  10129. - echo "$ac_t""previous libnet install lives elsewhere" 1>&6
  10130. + echo "$as_me:$LINENO: result: $LIB_PREFIX/libnet.a doesn't exist" >&5
  10131. +echo "${ECHO_T}$LIB_PREFIX/libnet.a doesn't exist" >&6
  10132. + echo "$as_me:$LINENO: result: previous libnet install lives elsewhere" >&5
  10133. +echo "${ECHO_T}previous libnet install lives elsewhere" >&6
  10134. else
  10135. __LIBNET_VERSION=`strings $LIB_PREFIX/libnet.a | grep "libnet version"\
  10136. | cut -f3 -d" "`;\
  10137. if test -z "$__LIBNET_VERSION"; then
  10138. - echo "$ac_t""<0.8" 1>&6
  10139. + echo "$as_me:$LINENO: result: <0.8" >&5
  10140. +echo "${ECHO_T}<0.8" >&6
  10141. else
  10142. - echo "$ac_t""$__LIBNET_VERSION" 1>&6
  10143. + echo "$as_me:$LINENO: result: $__LIBNET_VERSION" >&5
  10144. +echo "${ECHO_T}$__LIBNET_VERSION" >&6
  10145. fi
  10146. fi\
  10147. -
  10148. -else
  10149. - echo "$ac_t""no" 1>&6
  10150. +
  10151. fi
  10152. -echo $ac_n "checking machine endianess""... $ac_c" 1>&6
  10153. -echo "configure:1912: checking machine endianess" >&5
  10154. +echo "$as_me:$LINENO: checking machine endianess" >&5
  10155. +echo $ECHO_N "checking machine endianess... $ECHO_C" >&6
  10156. + if test "${ac_cv_libnet_endianess+set}" = set; then
  10157. + echo $ECHO_N "(cached) $ECHO_C" >&6
  10158. +else
  10159. +
  10160. cat > conftest.c << EOF
  10161. # include <stdio.h>
  10162. @@ -1957,30 +9396,34 @@ EOF
  10163. ac_cv_libnet_endianess=lil
  10164. else
  10165. ac_cv_libnet_endianess=unknown
  10166. - fi
  10167. + fi
  10168. fi
  10169. rm -f conftest* core core.conftest
  10170. - echo "$ac_t""$ac_cv_libnet_endianess" 1>&6
  10171. +
  10172. +fi
  10173. +
  10174. + echo "$as_me:$LINENO: result: $ac_cv_libnet_endianess" >&5
  10175. +echo "${ECHO_T}$ac_cv_libnet_endianess" >&6
  10176. if test $ac_cv_libnet_endianess = big ; then
  10177. - cat >> confdefs.h <<\EOF
  10178. + cat >>confdefs.h <<\_ACEOF
  10179. #define LIBNET_BIG_ENDIAN 1
  10180. -EOF
  10181. +_ACEOF
  10182. LIBNET_CONFIG_DEFINES="$LIBNET_CONFIG_DEFINES -DLIBNET_BIG_ENDIAN"
  10183. elif test $ac_cv_libnet_endianess = lil ; then
  10184. - cat >> confdefs.h <<\EOF
  10185. + cat >>confdefs.h <<\_ACEOF
  10186. #define LIBNET_LIL_ENDIAN 1
  10187. -EOF
  10188. +_ACEOF
  10189. LIBNET_CONFIG_DEFINES="$LIBNET_CONFIG_DEFINES -DLIBNET_LIL_ENDIAN"
  10190. fi
  10191. -
  10192. -echo $ac_n "checking if unaligned accesses fail""... $ac_c" 1>&6
  10193. -echo "configure:1982: checking if unaligned accesses fail" >&5
  10194. - if eval "test \"`echo '$''{'ac_cv_lbl_unaligned_fail'+set}'`\" = set"; then
  10195. - echo $ac_n "(cached) $ac_c" 1>&6
  10196. +
  10197. +echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5
  10198. +echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6
  10199. + if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
  10200. + echo $ECHO_N "(cached) $ECHO_C" >&6
  10201. else
  10202. case "$target_cpu" in
  10203. @@ -2039,446 +9482,1598 @@ EOF
  10204. esac
  10205. fi
  10206. - echo "$ac_t""$ac_cv_lbl_unaligned_fail" 1>&6
  10207. + echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5
  10208. +echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6
  10209. if test $ac_cv_lbl_unaligned_fail = yes ; then
  10210. - cat >> confdefs.h <<\EOF
  10211. + cat >>confdefs.h <<\_ACEOF
  10212. #define LBL_ALIGN 1
  10213. -EOF
  10214. +_ACEOF
  10215. fi
  10216. -for ac_hdr in sys/sockio.h
  10217. +
  10218. +for ac_header in sys/sockio.h
  10219. do
  10220. -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  10221. -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  10222. -echo "configure:2056: checking for $ac_hdr" >&5
  10223. -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  10224. - echo $ac_n "(cached) $ac_c" 1>&6
  10225. +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10226. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  10227. + echo "$as_me:$LINENO: checking for $ac_header" >&5
  10228. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  10229. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  10230. + echo $ECHO_N "(cached) $ECHO_C" >&6
  10231. +fi
  10232. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  10233. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  10234. else
  10235. - cat > conftest.$ac_ext <<EOF
  10236. -#line 2061 "configure"
  10237. -#include "confdefs.h"
  10238. -#include <$ac_hdr>
  10239. -EOF
  10240. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  10241. -{ (eval echo configure:2066: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  10242. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  10243. -if test -z "$ac_err"; then
  10244. - rm -rf conftest*
  10245. - eval "ac_cv_header_$ac_safe=yes"
  10246. + # Is the header compilable?
  10247. +echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10248. +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  10249. +cat >conftest.$ac_ext <<_ACEOF
  10250. +/* confdefs.h. */
  10251. +_ACEOF
  10252. +cat confdefs.h >>conftest.$ac_ext
  10253. +cat >>conftest.$ac_ext <<_ACEOF
  10254. +/* end confdefs.h. */
  10255. +$ac_includes_default
  10256. +#include <$ac_header>
  10257. +_ACEOF
  10258. +rm -f conftest.$ac_objext
  10259. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10260. + (eval $ac_compile) 2>conftest.er1
  10261. + ac_status=$?
  10262. + grep -v '^ *+' conftest.er1 >conftest.err
  10263. + rm -f conftest.er1
  10264. + cat conftest.err >&5
  10265. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10266. + (exit $ac_status); } &&
  10267. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10268. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10269. + (eval $ac_try) 2>&5
  10270. + ac_status=$?
  10271. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10272. + (exit $ac_status); }; } &&
  10273. + { ac_try='test -s conftest.$ac_objext'
  10274. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10275. + (eval $ac_try) 2>&5
  10276. + ac_status=$?
  10277. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10278. + (exit $ac_status); }; }; then
  10279. + ac_header_compiler=yes
  10280. else
  10281. - echo "$ac_err" >&5
  10282. - echo "configure: failed program was:" >&5
  10283. - cat conftest.$ac_ext >&5
  10284. - rm -rf conftest*
  10285. - eval "ac_cv_header_$ac_safe=no"
  10286. + echo "$as_me: failed program was:" >&5
  10287. +sed 's/^/| /' conftest.$ac_ext >&5
  10288. +
  10289. +ac_header_compiler=no
  10290. fi
  10291. -rm -f conftest*
  10292. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  10293. +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10294. +echo "${ECHO_T}$ac_header_compiler" >&6
  10295. +
  10296. +# Is the header present?
  10297. +echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10298. +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  10299. +cat >conftest.$ac_ext <<_ACEOF
  10300. +/* confdefs.h. */
  10301. +_ACEOF
  10302. +cat confdefs.h >>conftest.$ac_ext
  10303. +cat >>conftest.$ac_ext <<_ACEOF
  10304. +/* end confdefs.h. */
  10305. +#include <$ac_header>
  10306. +_ACEOF
  10307. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  10308. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  10309. + ac_status=$?
  10310. + grep -v '^ *+' conftest.er1 >conftest.err
  10311. + rm -f conftest.er1
  10312. + cat conftest.err >&5
  10313. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10314. + (exit $ac_status); } >/dev/null; then
  10315. + if test -s conftest.err; then
  10316. + ac_cpp_err=$ac_c_preproc_warn_flag
  10317. + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  10318. + else
  10319. + ac_cpp_err=
  10320. + fi
  10321. +else
  10322. + ac_cpp_err=yes
  10323. fi
  10324. -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  10325. - echo "$ac_t""yes" 1>&6
  10326. - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  10327. - cat >> confdefs.h <<EOF
  10328. -#define $ac_tr_hdr 1
  10329. -EOF
  10330. -
  10331. +if test -z "$ac_cpp_err"; then
  10332. + ac_header_preproc=yes
  10333. else
  10334. - echo "$ac_t""no" 1>&6
  10335. + echo "$as_me: failed program was:" >&5
  10336. +sed 's/^/| /' conftest.$ac_ext >&5
  10337. +
  10338. + ac_header_preproc=no
  10339. fi
  10340. +rm -f conftest.err conftest.$ac_ext
  10341. +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10342. +echo "${ECHO_T}$ac_header_preproc" >&6
  10343. +
  10344. +# So? What about this header?
  10345. +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  10346. + yes:no: )
  10347. + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10348. +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10349. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10350. +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10351. + ac_header_preproc=yes
  10352. + ;;
  10353. + no:yes:* )
  10354. + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10355. +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10356. + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10357. +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10358. + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10359. +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10360. + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10361. +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10362. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10363. +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10364. + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10365. +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10366. + (
  10367. + cat <<\_ASBOX
  10368. +## ------------------------------------------ ##
  10369. +## Report this to the AC_PACKAGE_NAME lists. ##
  10370. +## ------------------------------------------ ##
  10371. +_ASBOX
  10372. + ) |
  10373. + sed "s/^/$as_me: WARNING: /" >&2
  10374. + ;;
  10375. +esac
  10376. +echo "$as_me:$LINENO: checking for $ac_header" >&5
  10377. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  10378. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  10379. + echo $ECHO_N "(cached) $ECHO_C" >&6
  10380. +else
  10381. + eval "$as_ac_Header=\$ac_header_preproc"
  10382. +fi
  10383. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  10384. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  10385. +
  10386. +fi
  10387. +if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10388. + cat >>confdefs.h <<_ACEOF
  10389. +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10390. +_ACEOF
  10391. +
  10392. +fi
  10393. +
  10394. done
  10395. + ac_config_headers="$ac_config_headers include/config.h"
  10396. -trap '' 1 2 15
  10397. -cat > confcache <<\EOF
  10398. + ac_config_files="$ac_config_files Makefile src/Makefile include/Makefile include/libnet/Makefile libnet-config"
  10399. +cat >confcache <<\_ACEOF
  10400. # This file is a shell script that caches the results of configure
  10401. # tests run on this system so they can be shared between configure
  10402. -# scripts and configure runs. It is not useful on other systems.
  10403. -# If it contains results you don't want to keep, you may remove or edit it.
  10404. +# scripts and configure runs, see configure's option --config-cache.
  10405. +# It is not useful on other systems. If it contains results you don't
  10406. +# want to keep, you may remove or edit it.
  10407. #
  10408. -# By default, configure uses ./config.cache as the cache file,
  10409. -# creating it if it does not exist already. You can give configure
  10410. -# the --cache-file=FILE option to use a different cache file; that is
  10411. -# what configure does when it calls configure scripts in
  10412. -# subdirectories, so they share the cache.
  10413. -# Giving --cache-file=/dev/null disables caching, for debugging configure.
  10414. -# config.status only pays attention to the cache file if you give it the
  10415. -# --recheck option to rerun configure.
  10416. +# config.status only pays attention to the cache file if you give it
  10417. +# the --recheck option to rerun configure.
  10418. #
  10419. -EOF
  10420. +# `ac_cv_env_foo' variables (set or unset) will be overridden when
  10421. +# loading this file, other *unset* `ac_cv_foo' will be assigned the
  10422. +# following values.
  10423. +
  10424. +_ACEOF
  10425. +
  10426. # The following way of writing the cache mishandles newlines in values,
  10427. # but we know of no workaround that is simple, portable, and efficient.
  10428. # So, don't put newlines in cache variables' values.
  10429. # Ultrix sh set writes to stderr and can't be redirected directly,
  10430. # and sets the high bit in the cache file unless we assign to the vars.
  10431. -(set) 2>&1 |
  10432. - case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10433. - *ac_space=\ *)
  10434. - # `set' does not quote correctly, so add quotes (double-quote substitution
  10435. - # turns \\\\ into \\, and sed turns \\ into \).
  10436. - sed -n \
  10437. - -e "s/'/'\\\\''/g" \
  10438. - -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  10439. - ;;
  10440. - *)
  10441. - # `set' quotes correctly as required by POSIX, so do not add quotes.
  10442. - sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  10443. - ;;
  10444. - esac >> confcache
  10445. -if cmp -s $cache_file confcache; then
  10446. - :
  10447. -else
  10448. +{
  10449. + (set) 2>&1 |
  10450. + case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10451. + *ac_space=\ *)
  10452. + # `set' does not quote correctly, so add quotes (double-quote
  10453. + # substitution turns \\\\ into \\, and sed turns \\ into \).
  10454. + sed -n \
  10455. + "s/'/'\\\\''/g;
  10456. + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10457. + ;;
  10458. + *)
  10459. + # `set' quotes correctly as required by POSIX, so do not add quotes.
  10460. + sed -n \
  10461. + "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10462. + ;;
  10463. + esac;
  10464. +} |
  10465. + sed '
  10466. + t clear
  10467. + : clear
  10468. + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10469. + t end
  10470. + /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10471. + : end' >>confcache
  10472. +if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10473. if test -w $cache_file; then
  10474. - echo "updating cache $cache_file"
  10475. - cat confcache > $cache_file
  10476. + test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  10477. + cat confcache >$cache_file
  10478. else
  10479. echo "not updating unwritable cache $cache_file"
  10480. fi
  10481. fi
  10482. rm -f confcache
  10483. -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  10484. -
  10485. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  10486. # Let make expand exec_prefix.
  10487. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  10488. -# Any assignment to VPATH causes Sun make to only execute
  10489. -# the first set of double-colon rules, so remove it if not needed.
  10490. -# If there is a colon in the path, we need to keep it.
  10491. +# VPATH may cause trouble with some makes, so we remove $(srcdir),
  10492. +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  10493. +# trailing colons and then remove the whole line if VPATH becomes empty
  10494. +# (actually we leave an empty line to preserve line numbers).
  10495. if test "x$srcdir" = x.; then
  10496. - ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
  10497. + ac_vpsub='/^[ ]*VPATH[ ]*=/{
  10498. +s/:*\$(srcdir):*/:/;
  10499. +s/:*\${srcdir}:*/:/;
  10500. +s/:*@srcdir@:*/:/;
  10501. +s/^\([^=]*=[ ]*\):*/\1/;
  10502. +s/:*$//;
  10503. +s/^[^=]*=[ ]*$//;
  10504. +}'
  10505. fi
  10506. -trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  10507. -
  10508. DEFS=-DHAVE_CONFIG_H
  10509. -# Without the "./", some shells look in PATH for config.status.
  10510. -: ${CONFIG_STATUS=./config.status}
  10511. +ac_libobjs=
  10512. +ac_ltlibobjs=
  10513. +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  10514. + # 1. Remove the extension, and $U if already installed.
  10515. + ac_i=`echo "$ac_i" |
  10516. + sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  10517. + # 2. Add them.
  10518. + ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  10519. + ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  10520. +done
  10521. +LIBOBJS=$ac_libobjs
  10522. -echo creating $CONFIG_STATUS
  10523. -rm -f $CONFIG_STATUS
  10524. -cat > $CONFIG_STATUS <<EOF
  10525. -#! /bin/sh
  10526. -# Generated automatically by configure.
  10527. +LTLIBOBJS=$ac_ltlibobjs
  10528. +
  10529. +
  10530. +if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  10531. + { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  10532. +Usually this means the macro was only invoked conditionally." >&5
  10533. +echo "$as_me: error: conditional \"AMDEP\" was never defined.
  10534. +Usually this means the macro was only invoked conditionally." >&2;}
  10535. + { (exit 1); exit 1; }; }
  10536. +fi
  10537. +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  10538. + { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  10539. +Usually this means the macro was only invoked conditionally." >&5
  10540. +echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  10541. +Usually this means the macro was only invoked conditionally." >&2;}
  10542. + { (exit 1); exit 1; }; }
  10543. +fi
  10544. +
  10545. +: ${CONFIG_STATUS=./config.status}
  10546. +ac_clean_files_save=$ac_clean_files
  10547. +ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  10548. +{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  10549. +echo "$as_me: creating $CONFIG_STATUS" >&6;}
  10550. +cat >$CONFIG_STATUS <<_ACEOF
  10551. +#! $SHELL
  10552. +# Generated by $as_me.
  10553. # Run this file to recreate the current configuration.
  10554. -# This directory was configured as follows,
  10555. -# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  10556. -#
  10557. -# $0 $ac_configure_args
  10558. -#
  10559. # Compiler output produced by configure, useful for debugging
  10560. -# configure, is in ./config.log if it exists.
  10561. +# configure, is in config.log if it exists.
  10562. -ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  10563. -for ac_option
  10564. +debug=false
  10565. +ac_cs_recheck=false
  10566. +ac_cs_silent=false
  10567. +SHELL=\${CONFIG_SHELL-$SHELL}
  10568. +_ACEOF
  10569. +
  10570. +cat >>$CONFIG_STATUS <<\_ACEOF
  10571. +## --------------------- ##
  10572. +## M4sh Initialization. ##
  10573. +## --------------------- ##
  10574. +
  10575. +# Be Bourne compatible
  10576. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  10577. + emulate sh
  10578. + NULLCMD=:
  10579. + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  10580. + # is contrary to our usage. Disable this feature.
  10581. + alias -g '${1+"$@"}'='"$@"'
  10582. +elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  10583. + set -o posix
  10584. +fi
  10585. +DUALCASE=1; export DUALCASE # for MKS sh
  10586. +
  10587. +# Support unset when possible.
  10588. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  10589. + as_unset=unset
  10590. +else
  10591. + as_unset=false
  10592. +fi
  10593. +
  10594. +
  10595. +# Work around bugs in pre-3.0 UWIN ksh.
  10596. +$as_unset ENV MAIL MAILPATH
  10597. +PS1='$ '
  10598. +PS2='> '
  10599. +PS4='+ '
  10600. +
  10601. +# NLS nuisances.
  10602. +for as_var in \
  10603. + LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  10604. + LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  10605. + LC_TELEPHONE LC_TIME
  10606. do
  10607. - case "\$ac_option" in
  10608. - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  10609. - echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  10610. - exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  10611. - -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  10612. - echo "$CONFIG_STATUS generated by autoconf version 2.13"
  10613. - exit 0 ;;
  10614. - -help | --help | --hel | --he | --h)
  10615. - echo "\$ac_cs_usage"; exit 0 ;;
  10616. - *) echo "\$ac_cs_usage"; exit 1 ;;
  10617. - esac
  10618. + if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  10619. + eval $as_var=C; export $as_var
  10620. + else
  10621. + $as_unset $as_var
  10622. + fi
  10623. done
  10624. -ac_given_srcdir=$srcdir
  10625. -ac_given_INSTALL="$INSTALL"
  10626. +# Required to use basename.
  10627. +if expr a : '\(a\)' >/dev/null 2>&1; then
  10628. + as_expr=expr
  10629. +else
  10630. + as_expr=false
  10631. +fi
  10632. -trap 'rm -fr `echo "Makefile test/Makefile test/TCP/Makefile test/Ethernet/Makefile \
  10633. - test/UDP/Makefile test/ICMP/Makefile test/Random/Makefile \
  10634. - test/OSPF/Makefile util/Makefile util/Get-mac/Makefile example/Makefile \
  10635. - libnet-config include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  10636. -EOF
  10637. -cat >> $CONFIG_STATUS <<EOF
  10638. +if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  10639. + as_basename=basename
  10640. +else
  10641. + as_basename=false
  10642. +fi
  10643. -# Protect against being on the right side of a sed subst in config.status.
  10644. -sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  10645. - s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  10646. -$ac_vpsub
  10647. -$extrasub
  10648. -s%@SHELL@%$SHELL%g
  10649. -s%@CFLAGS@%$CFLAGS%g
  10650. -s%@CPPFLAGS@%$CPPFLAGS%g
  10651. -s%@CXXFLAGS@%$CXXFLAGS%g
  10652. -s%@FFLAGS@%$FFLAGS%g
  10653. -s%@DEFS@%$DEFS%g
  10654. -s%@LDFLAGS@%$LDFLAGS%g
  10655. -s%@LIBS@%$LIBS%g
  10656. -s%@exec_prefix@%$exec_prefix%g
  10657. -s%@prefix@%$prefix%g
  10658. -s%@program_transform_name@%$program_transform_name%g
  10659. -s%@bindir@%$bindir%g
  10660. -s%@sbindir@%$sbindir%g
  10661. -s%@libexecdir@%$libexecdir%g
  10662. -s%@datadir@%$datadir%g
  10663. -s%@sysconfdir@%$sysconfdir%g
  10664. -s%@sharedstatedir@%$sharedstatedir%g
  10665. -s%@localstatedir@%$localstatedir%g
  10666. -s%@libdir@%$libdir%g
  10667. -s%@includedir@%$includedir%g
  10668. -s%@oldincludedir@%$oldincludedir%g
  10669. -s%@infodir@%$infodir%g
  10670. -s%@mandir@%$mandir%g
  10671. -s%@LL_INT_TYPE_UC@%$LL_INT_TYPE_UC%g
  10672. -s%@LL_INT_TYPE@%$LL_INT_TYPE%g
  10673. -s%@LIB_PREFIX@%$LIB_PREFIX%g
  10674. -s%@INC_PREFIX@%$INC_PREFIX%g
  10675. -s%@MAN_PREFIX@%$MAN_PREFIX%g
  10676. -s%@BIN_PREFIX@%$BIN_PREFIX%g
  10677. -s%@RANLIB@%$RANLIB%g
  10678. -s%@AR@%$AR%g
  10679. -s%@LN@%$LN%g
  10680. -s%@ADDITIONAL_LIBS@%$ADDITIONAL_LIBS%g
  10681. -s%@LIBNET_CONFIG_DEFINES@%$LIBNET_CONFIG_DEFINES%g
  10682. -s%@LIBNET_CONFIG_LIBS@%$LIBNET_CONFIG_LIBS%g
  10683. -s%@LIBNET_CONFIG_CFLAGS@%$LIBNET_CONFIG_CFLAGS%g
  10684. -s%@host@%$host%g
  10685. -s%@host_alias@%$host_alias%g
  10686. -s%@host_cpu@%$host_cpu%g
  10687. -s%@host_vendor@%$host_vendor%g
  10688. -s%@host_os@%$host_os%g
  10689. -s%@target@%$target%g
  10690. -s%@target_alias@%$target_alias%g
  10691. -s%@target_cpu@%$target_cpu%g
  10692. -s%@target_vendor@%$target_vendor%g
  10693. -s%@target_os@%$target_os%g
  10694. -s%@build@%$build%g
  10695. -s%@build_alias@%$build_alias%g
  10696. -s%@build_cpu@%$build_cpu%g
  10697. -s%@build_vendor@%$build_vendor%g
  10698. -s%@build_os@%$build_os%g
  10699. -s%@CC@%$CC%g
  10700. -s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  10701. -s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
  10702. -s%@INSTALL_DATA@%$INSTALL_DATA%g
  10703. -s%@SET_MAKE@%$SET_MAKE%g
  10704. -s%@CPP@%$CPP%g
  10705. -CEOF
  10706. -EOF
  10707. +# Name of the executable.
  10708. +as_me=`$as_basename "$0" ||
  10709. +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  10710. + X"$0" : 'X\(//\)$' \| \
  10711. + X"$0" : 'X\(/\)$' \| \
  10712. + . : '\(.\)' 2>/dev/null ||
  10713. +echo X/"$0" |
  10714. + sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  10715. + /^X\/\(\/\/\)$/{ s//\1/; q; }
  10716. + /^X\/\(\/\).*/{ s//\1/; q; }
  10717. + s/.*/./; q'`
  10718. -cat >> $CONFIG_STATUS <<\EOF
  10719. -# Split the substitutions into bite-sized pieces for seds with
  10720. -# small command number limits, like on Digital OSF/1 and HP-UX.
  10721. -ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  10722. -ac_file=1 # Number of current file.
  10723. -ac_beg=1 # First line for current file.
  10724. -ac_end=$ac_max_sed_cmds # Line after last line for current file.
  10725. -ac_more_lines=:
  10726. -ac_sed_cmds=""
  10727. -while $ac_more_lines; do
  10728. - if test $ac_beg -gt 1; then
  10729. - sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  10730. +# PATH needs CR, and LINENO needs CR and PATH.
  10731. +# Avoid depending upon Character Ranges.
  10732. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  10733. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  10734. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  10735. +as_cr_digits='0123456789'
  10736. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  10737. +
  10738. +# The user is always right.
  10739. +if test "${PATH_SEPARATOR+set}" != set; then
  10740. + echo "#! /bin/sh" >conf$$.sh
  10741. + echo "exit 0" >>conf$$.sh
  10742. + chmod +x conf$$.sh
  10743. + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  10744. + PATH_SEPARATOR=';'
  10745. else
  10746. - sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  10747. + PATH_SEPARATOR=:
  10748. fi
  10749. - if test ! -s conftest.s$ac_file; then
  10750. - ac_more_lines=false
  10751. - rm -f conftest.s$ac_file
  10752. + rm -f conf$$.sh
  10753. +fi
  10754. +
  10755. +
  10756. + as_lineno_1=$LINENO
  10757. + as_lineno_2=$LINENO
  10758. + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  10759. + test "x$as_lineno_1" != "x$as_lineno_2" &&
  10760. + test "x$as_lineno_3" = "x$as_lineno_2" || {
  10761. + # Find who we are. Look in the path if we contain no path at all
  10762. + # relative or not.
  10763. + case $0 in
  10764. + *[\\/]* ) as_myself=$0 ;;
  10765. + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10766. +for as_dir in $PATH
  10767. +do
  10768. + IFS=$as_save_IFS
  10769. + test -z "$as_dir" && as_dir=.
  10770. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  10771. +done
  10772. +
  10773. + ;;
  10774. + esac
  10775. + # We did not find ourselves, most probably we were run as `sh COMMAND'
  10776. + # in which case we are not to be found in the path.
  10777. + if test "x$as_myself" = x; then
  10778. + as_myself=$0
  10779. + fi
  10780. + if test ! -f "$as_myself"; then
  10781. + { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  10782. +echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  10783. + { (exit 1); exit 1; }; }
  10784. + fi
  10785. + case $CONFIG_SHELL in
  10786. + '')
  10787. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10788. +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  10789. +do
  10790. + IFS=$as_save_IFS
  10791. + test -z "$as_dir" && as_dir=.
  10792. + for as_base in sh bash ksh sh5; do
  10793. + case $as_dir in
  10794. + /*)
  10795. + if ("$as_dir/$as_base" -c '
  10796. + as_lineno_1=$LINENO
  10797. + as_lineno_2=$LINENO
  10798. + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  10799. + test "x$as_lineno_1" != "x$as_lineno_2" &&
  10800. + test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  10801. + $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  10802. + $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  10803. + CONFIG_SHELL=$as_dir/$as_base
  10804. + export CONFIG_SHELL
  10805. + exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  10806. + fi;;
  10807. + esac
  10808. + done
  10809. +done
  10810. +;;
  10811. + esac
  10812. +
  10813. + # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  10814. + # uniformly replaced by the line number. The first 'sed' inserts a
  10815. + # line-number line before each line; the second 'sed' does the real
  10816. + # work. The second script uses 'N' to pair each line-number line
  10817. + # with the numbered line, and appends trailing '-' during
  10818. + # substitution so that $LINENO is not a special case at line end.
  10819. + # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  10820. + # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  10821. + sed '=' <$as_myself |
  10822. + sed '
  10823. + N
  10824. + s,$,-,
  10825. + : loop
  10826. + s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  10827. + t loop
  10828. + s,-$,,
  10829. + s,^['$as_cr_digits']*\n,,
  10830. + ' >$as_me.lineno &&
  10831. + chmod +x $as_me.lineno ||
  10832. + { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  10833. +echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  10834. + { (exit 1); exit 1; }; }
  10835. +
  10836. + # Don't try to exec as it changes $[0], causing all sort of problems
  10837. + # (the dirname of $[0] is not the place where we might find the
  10838. + # original and so on. Autoconf is especially sensible to this).
  10839. + . ./$as_me.lineno
  10840. + # Exit status is that of the last command.
  10841. + exit
  10842. +}
  10843. +
  10844. +
  10845. +case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  10846. + *c*,-n*) ECHO_N= ECHO_C='
  10847. +' ECHO_T=' ' ;;
  10848. + *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  10849. + *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  10850. +esac
  10851. +
  10852. +if expr a : '\(a\)' >/dev/null 2>&1; then
  10853. + as_expr=expr
  10854. +else
  10855. + as_expr=false
  10856. +fi
  10857. +
  10858. +rm -f conf$$ conf$$.exe conf$$.file
  10859. +echo >conf$$.file
  10860. +if ln -s conf$$.file conf$$ 2>/dev/null; then
  10861. + # We could just check for DJGPP; but this test a) works b) is more generic
  10862. + # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  10863. + if test -f conf$$.exe; then
  10864. + # Don't use ln at all; we don't have any links
  10865. + as_ln_s='cp -p'
  10866. else
  10867. - if test -z "$ac_sed_cmds"; then
  10868. - ac_sed_cmds="sed -f conftest.s$ac_file"
  10869. - else
  10870. - ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  10871. - fi
  10872. - ac_file=`expr $ac_file + 1`
  10873. - ac_beg=$ac_end
  10874. - ac_end=`expr $ac_end + $ac_max_sed_cmds`
  10875. + as_ln_s='ln -s'
  10876. fi
  10877. +elif ln conf$$.file conf$$ 2>/dev/null; then
  10878. + as_ln_s=ln
  10879. +else
  10880. + as_ln_s='cp -p'
  10881. +fi
  10882. +rm -f conf$$ conf$$.exe conf$$.file
  10883. +
  10884. +if mkdir -p . 2>/dev/null; then
  10885. + as_mkdir_p=:
  10886. +else
  10887. + test -d ./-p && rmdir ./-p
  10888. + as_mkdir_p=false
  10889. +fi
  10890. +
  10891. +as_executable_p="test -f"
  10892. +
  10893. +# Sed expression to map a string onto a valid CPP name.
  10894. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  10895. +
  10896. +# Sed expression to map a string onto a valid variable name.
  10897. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  10898. +
  10899. +
  10900. +# IFS
  10901. +# We need space, tab and new line, in precisely that order.
  10902. +as_nl='
  10903. +'
  10904. +IFS=" $as_nl"
  10905. +
  10906. +# CDPATH.
  10907. +$as_unset CDPATH
  10908. +
  10909. +exec 6>&1
  10910. +
  10911. +# Open the log real soon, to keep \$[0] and so on meaningful, and to
  10912. +# report actual input values of CONFIG_FILES etc. instead of their
  10913. +# values after options handling. Logging --version etc. is OK.
  10914. +exec 5>>config.log
  10915. +{
  10916. + echo
  10917. + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  10918. +## Running $as_me. ##
  10919. +_ASBOX
  10920. +} >&5
  10921. +cat >&5 <<_CSEOF
  10922. +
  10923. +This file was extended by $as_me, which was
  10924. +generated by GNU Autoconf 2.59. Invocation command line was
  10925. +
  10926. + CONFIG_FILES = $CONFIG_FILES
  10927. + CONFIG_HEADERS = $CONFIG_HEADERS
  10928. + CONFIG_LINKS = $CONFIG_LINKS
  10929. + CONFIG_COMMANDS = $CONFIG_COMMANDS
  10930. + $ $0 $@
  10931. +
  10932. +_CSEOF
  10933. +echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  10934. +echo >&5
  10935. +_ACEOF
  10936. +
  10937. +# Files that config.status was made for.
  10938. +if test -n "$ac_config_files"; then
  10939. + echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  10940. +fi
  10941. +
  10942. +if test -n "$ac_config_headers"; then
  10943. + echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  10944. +fi
  10945. +
  10946. +if test -n "$ac_config_links"; then
  10947. + echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  10948. +fi
  10949. +
  10950. +if test -n "$ac_config_commands"; then
  10951. + echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  10952. +fi
  10953. +
  10954. +cat >>$CONFIG_STATUS <<\_ACEOF
  10955. +
  10956. +ac_cs_usage="\
  10957. +\`$as_me' instantiates files from templates according to the
  10958. +current configuration.
  10959. +
  10960. +Usage: $0 [OPTIONS] [FILE]...
  10961. +
  10962. + -h, --help print this help, then exit
  10963. + -V, --version print version number, then exit
  10964. + -q, --quiet do not print progress messages
  10965. + -d, --debug don't remove temporary files
  10966. + --recheck update $as_me by reconfiguring in the same conditions
  10967. + --file=FILE[:TEMPLATE]
  10968. + instantiate the configuration file FILE
  10969. + --header=FILE[:TEMPLATE]
  10970. + instantiate the configuration header FILE
  10971. +
  10972. +Configuration files:
  10973. +$config_files
  10974. +
  10975. +Configuration headers:
  10976. +$config_headers
  10977. +
  10978. +Configuration commands:
  10979. +$config_commands
  10980. +
  10981. +Report bugs to <bug-autoconf@gnu.org>."
  10982. +_ACEOF
  10983. +
  10984. +cat >>$CONFIG_STATUS <<_ACEOF
  10985. +ac_cs_version="\\
  10986. +config.status
  10987. +configured by $0, generated by GNU Autoconf 2.59,
  10988. + with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  10989. +
  10990. +Copyright (C) 2003 Free Software Foundation, Inc.
  10991. +This config.status script is free software; the Free Software Foundation
  10992. +gives unlimited permission to copy, distribute and modify it."
  10993. +srcdir=$srcdir
  10994. +INSTALL="$INSTALL"
  10995. +_ACEOF
  10996. +
  10997. +cat >>$CONFIG_STATUS <<\_ACEOF
  10998. +# If no file are specified by the user, then we need to provide default
  10999. +# value. By we need to know if files were specified by the user.
  11000. +ac_need_defaults=:
  11001. +while test $# != 0
  11002. +do
  11003. + case $1 in
  11004. + --*=*)
  11005. + ac_option=`expr "x$1" : 'x\([^=]*\)='`
  11006. + ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  11007. + ac_shift=:
  11008. + ;;
  11009. + -*)
  11010. + ac_option=$1
  11011. + ac_optarg=$2
  11012. + ac_shift=shift
  11013. + ;;
  11014. + *) # This is not an option, so the user has probably given explicit
  11015. + # arguments.
  11016. + ac_option=$1
  11017. + ac_need_defaults=false;;
  11018. + esac
  11019. +
  11020. + case $ac_option in
  11021. + # Handling of the options.
  11022. +_ACEOF
  11023. +cat >>$CONFIG_STATUS <<\_ACEOF
  11024. + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11025. + ac_cs_recheck=: ;;
  11026. + --version | --vers* | -V )
  11027. + echo "$ac_cs_version"; exit 0 ;;
  11028. + --he | --h)
  11029. + # Conflict between --help and --header
  11030. + { { echo "$as_me:$LINENO: error: ambiguous option: $1
  11031. +Try \`$0 --help' for more information." >&5
  11032. +echo "$as_me: error: ambiguous option: $1
  11033. +Try \`$0 --help' for more information." >&2;}
  11034. + { (exit 1); exit 1; }; };;
  11035. + --help | --hel | -h )
  11036. + echo "$ac_cs_usage"; exit 0 ;;
  11037. + --debug | --d* | -d )
  11038. + debug=: ;;
  11039. + --file | --fil | --fi | --f )
  11040. + $ac_shift
  11041. + CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  11042. + ac_need_defaults=false;;
  11043. + --header | --heade | --head | --hea )
  11044. + $ac_shift
  11045. + CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  11046. + ac_need_defaults=false;;
  11047. + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  11048. + | -silent | --silent | --silen | --sile | --sil | --si | --s)
  11049. + ac_cs_silent=: ;;
  11050. +
  11051. + # This is an error.
  11052. + -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  11053. +Try \`$0 --help' for more information." >&5
  11054. +echo "$as_me: error: unrecognized option: $1
  11055. +Try \`$0 --help' for more information." >&2;}
  11056. + { (exit 1); exit 1; }; } ;;
  11057. +
  11058. + *) ac_config_targets="$ac_config_targets $1" ;;
  11059. +
  11060. + esac
  11061. + shift
  11062. done
  11063. -if test -z "$ac_sed_cmds"; then
  11064. - ac_sed_cmds=cat
  11065. +
  11066. +ac_configure_extra_args=
  11067. +
  11068. +if $ac_cs_silent; then
  11069. + exec 6>/dev/null
  11070. + ac_configure_extra_args="$ac_configure_extra_args --silent"
  11071. fi
  11072. -EOF
  11073. -cat >> $CONFIG_STATUS <<EOF
  11074. +_ACEOF
  11075. +cat >>$CONFIG_STATUS <<_ACEOF
  11076. +if \$ac_cs_recheck; then
  11077. + echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  11078. + exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  11079. +fi
  11080. -CONFIG_FILES=\${CONFIG_FILES-"Makefile test/Makefile test/TCP/Makefile test/Ethernet/Makefile \
  11081. - test/UDP/Makefile test/ICMP/Makefile test/Random/Makefile \
  11082. - test/OSPF/Makefile util/Makefile util/Get-mac/Makefile example/Makefile \
  11083. - libnet-config"}
  11084. -EOF
  11085. -cat >> $CONFIG_STATUS <<\EOF
  11086. -for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  11087. - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11088. - case "$ac_file" in
  11089. - *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  11090. - ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  11091. - *) ac_file_in="${ac_file}.in" ;;
  11092. +_ACEOF
  11093. +
  11094. +cat >>$CONFIG_STATUS <<_ACEOF
  11095. +#
  11096. +# INIT-COMMANDS section.
  11097. +#
  11098. +
  11099. +AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  11100. +
  11101. +_ACEOF
  11102. +
  11103. +
  11104. +
  11105. +cat >>$CONFIG_STATUS <<\_ACEOF
  11106. +for ac_config_target in $ac_config_targets
  11107. +do
  11108. + case "$ac_config_target" in
  11109. + # Handling of arguments.
  11110. + "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  11111. + "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  11112. + "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
  11113. + "include/libnet/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/libnet/Makefile" ;;
  11114. + "libnet-config" ) CONFIG_FILES="$CONFIG_FILES libnet-config" ;;
  11115. + "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  11116. + "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
  11117. + *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  11118. +echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  11119. + { (exit 1); exit 1; }; };;
  11120. esac
  11121. +done
  11122. - # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  11123. +# If the user did not use the arguments to specify the items to instantiate,
  11124. +# then the envvar interface is used. Set only those that are not.
  11125. +# We use the long form for the default assignment because of an extremely
  11126. +# bizarre bug on SunOS 4.1.3.
  11127. +if $ac_need_defaults; then
  11128. + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  11129. + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  11130. + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  11131. +fi
  11132. - # Remove last slash and all that follows it. Not all systems have dirname.
  11133. - ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  11134. - if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  11135. - # The file is in a subdirectory.
  11136. - test ! -d "$ac_dir" && mkdir "$ac_dir"
  11137. - ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  11138. - # A "../" for each directory in $ac_dir_suffix.
  11139. - ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  11140. - else
  11141. - ac_dir_suffix= ac_dots=
  11142. +# Have a temporary directory for convenience. Make it in the build tree
  11143. +# simply because there is no reason to put it here, and in addition,
  11144. +# creating and moving files from /tmp can sometimes cause problems.
  11145. +# Create a temporary directory, and hook for its removal unless debugging.
  11146. +$debug ||
  11147. +{
  11148. + trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  11149. + trap '{ (exit 1); exit 1; }' 1 2 13 15
  11150. +}
  11151. +
  11152. +# Create a (secure) tmp directory for tmp files.
  11153. +
  11154. +{
  11155. + tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  11156. + test -n "$tmp" && test -d "$tmp"
  11157. +} ||
  11158. +{
  11159. + tmp=./confstat$$-$RANDOM
  11160. + (umask 077 && mkdir $tmp)
  11161. +} ||
  11162. +{
  11163. + echo "$me: cannot create a temporary directory in ." >&2
  11164. + { (exit 1); exit 1; }
  11165. +}
  11166. +
  11167. +_ACEOF
  11168. +
  11169. +cat >>$CONFIG_STATUS <<_ACEOF
  11170. +
  11171. +#
  11172. +# CONFIG_FILES section.
  11173. +#
  11174. +
  11175. +# No need to generate the scripts if there are no CONFIG_FILES.
  11176. +# This happens for instance when ./config.status config.h
  11177. +if test -n "\$CONFIG_FILES"; then
  11178. + # Protect against being on the right side of a sed subst in config.status.
  11179. + sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  11180. + s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  11181. +s,@SHELL@,$SHELL,;t t
  11182. +s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  11183. +s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  11184. +s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  11185. +s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  11186. +s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  11187. +s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  11188. +s,@exec_prefix@,$exec_prefix,;t t
  11189. +s,@prefix@,$prefix,;t t
  11190. +s,@program_transform_name@,$program_transform_name,;t t
  11191. +s,@bindir@,$bindir,;t t
  11192. +s,@sbindir@,$sbindir,;t t
  11193. +s,@libexecdir@,$libexecdir,;t t
  11194. +s,@datadir@,$datadir,;t t
  11195. +s,@sysconfdir@,$sysconfdir,;t t
  11196. +s,@sharedstatedir@,$sharedstatedir,;t t
  11197. +s,@localstatedir@,$localstatedir,;t t
  11198. +s,@libdir@,$libdir,;t t
  11199. +s,@includedir@,$includedir,;t t
  11200. +s,@oldincludedir@,$oldincludedir,;t t
  11201. +s,@infodir@,$infodir,;t t
  11202. +s,@mandir@,$mandir,;t t
  11203. +s,@build_alias@,$build_alias,;t t
  11204. +s,@host_alias@,$host_alias,;t t
  11205. +s,@target_alias@,$target_alias,;t t
  11206. +s,@DEFS@,$DEFS,;t t
  11207. +s,@ECHO_C@,$ECHO_C,;t t
  11208. +s,@ECHO_N@,$ECHO_N,;t t
  11209. +s,@ECHO_T@,$ECHO_T,;t t
  11210. +s,@LIBS@,$LIBS,;t t
  11211. +s,@build@,$build,;t t
  11212. +s,@build_cpu@,$build_cpu,;t t
  11213. +s,@build_vendor@,$build_vendor,;t t
  11214. +s,@build_os@,$build_os,;t t
  11215. +s,@host@,$host,;t t
  11216. +s,@host_cpu@,$host_cpu,;t t
  11217. +s,@host_vendor@,$host_vendor,;t t
  11218. +s,@host_os@,$host_os,;t t
  11219. +s,@target@,$target,;t t
  11220. +s,@target_cpu@,$target_cpu,;t t
  11221. +s,@target_vendor@,$target_vendor,;t t
  11222. +s,@target_os@,$target_os,;t t
  11223. +s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  11224. +s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  11225. +s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  11226. +s,@CYGPATH_W@,$CYGPATH_W,;t t
  11227. +s,@PACKAGE@,$PACKAGE,;t t
  11228. +s,@VERSION@,$VERSION,;t t
  11229. +s,@ACLOCAL@,$ACLOCAL,;t t
  11230. +s,@AUTOCONF@,$AUTOCONF,;t t
  11231. +s,@AUTOMAKE@,$AUTOMAKE,;t t
  11232. +s,@AUTOHEADER@,$AUTOHEADER,;t t
  11233. +s,@MAKEINFO@,$MAKEINFO,;t t
  11234. +s,@AMTAR@,$AMTAR,;t t
  11235. +s,@install_sh@,$install_sh,;t t
  11236. +s,@STRIP@,$STRIP,;t t
  11237. +s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
  11238. +s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
  11239. +s,@mkdir_p@,$mkdir_p,;t t
  11240. +s,@AWK@,$AWK,;t t
  11241. +s,@SET_MAKE@,$SET_MAKE,;t t
  11242. +s,@am__leading_dot@,$am__leading_dot,;t t
  11243. +s,@LL_INT_TYPE_UC@,$LL_INT_TYPE_UC,;t t
  11244. +s,@LL_INT_TYPE@,$LL_INT_TYPE,;t t
  11245. +s,@LIB_PREFIX@,$LIB_PREFIX,;t t
  11246. +s,@INC_PREFIX@,$INC_PREFIX,;t t
  11247. +s,@MAN_PREFIX@,$MAN_PREFIX,;t t
  11248. +s,@BIN_PREFIX@,$BIN_PREFIX,;t t
  11249. +s,@RANLIB@,$RANLIB,;t t
  11250. +s,@AR@,$AR,;t t
  11251. +s,@LN@,$LN,;t t
  11252. +s,@ADDITIONAL_LIBS@,$ADDITIONAL_LIBS,;t t
  11253. +s,@LIBNET_CONFIG_DEFINES@,$LIBNET_CONFIG_DEFINES,;t t
  11254. +s,@LIBNET_CONFIG_LIBS@,$LIBNET_CONFIG_LIBS,;t t
  11255. +s,@LIBNET_CONFIG_CFLAGS@,$LIBNET_CONFIG_CFLAGS,;t t
  11256. +s,@CC@,$CC,;t t
  11257. +s,@CFLAGS@,$CFLAGS,;t t
  11258. +s,@LDFLAGS@,$LDFLAGS,;t t
  11259. +s,@CPPFLAGS@,$CPPFLAGS,;t t
  11260. +s,@ac_ct_CC@,$ac_ct_CC,;t t
  11261. +s,@EXEEXT@,$EXEEXT,;t t
  11262. +s,@OBJEXT@,$OBJEXT,;t t
  11263. +s,@DEPDIR@,$DEPDIR,;t t
  11264. +s,@am__include@,$am__include,;t t
  11265. +s,@am__quote@,$am__quote,;t t
  11266. +s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
  11267. +s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
  11268. +s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
  11269. +s,@CCDEPMODE@,$CCDEPMODE,;t t
  11270. +s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
  11271. +s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
  11272. +s,@LN_S@,$LN_S,;t t
  11273. +s,@ECHO@,$ECHO,;t t
  11274. +s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
  11275. +s,@CPP@,$CPP,;t t
  11276. +s,@EGREP@,$EGREP,;t t
  11277. +s,@LIBTOOL@,$LIBTOOL,;t t
  11278. +s,@LIBOBJS@,$LIBOBJS,;t t
  11279. +s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  11280. +CEOF
  11281. +
  11282. +_ACEOF
  11283. +
  11284. + cat >>$CONFIG_STATUS <<\_ACEOF
  11285. + # Split the substitutions into bite-sized pieces for seds with
  11286. + # small command number limits, like on Digital OSF/1 and HP-UX.
  11287. + ac_max_sed_lines=48
  11288. + ac_sed_frag=1 # Number of current file.
  11289. + ac_beg=1 # First line for current file.
  11290. + ac_end=$ac_max_sed_lines # Line after last line for current file.
  11291. + ac_more_lines=:
  11292. + ac_sed_cmds=
  11293. + while $ac_more_lines; do
  11294. + if test $ac_beg -gt 1; then
  11295. + sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  11296. + else
  11297. + sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  11298. + fi
  11299. + if test ! -s $tmp/subs.frag; then
  11300. + ac_more_lines=false
  11301. + else
  11302. + # The purpose of the label and of the branching condition is to
  11303. + # speed up the sed processing (if there are no `@' at all, there
  11304. + # is no need to browse any of the substitutions).
  11305. + # These are the two extra sed commands mentioned above.
  11306. + (echo ':t
  11307. + /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  11308. + if test -z "$ac_sed_cmds"; then
  11309. + ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  11310. + else
  11311. + ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  11312. + fi
  11313. + ac_sed_frag=`expr $ac_sed_frag + 1`
  11314. + ac_beg=$ac_end
  11315. + ac_end=`expr $ac_end + $ac_max_sed_lines`
  11316. + fi
  11317. + done
  11318. + if test -z "$ac_sed_cmds"; then
  11319. + ac_sed_cmds=cat
  11320. fi
  11321. +fi # test -n "$CONFIG_FILES"
  11322. - case "$ac_given_srcdir" in
  11323. - .) srcdir=.
  11324. - if test -z "$ac_dots"; then top_srcdir=.
  11325. - else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  11326. - /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  11327. - *) # Relative path.
  11328. - srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  11329. - top_srcdir="$ac_dots$ac_given_srcdir" ;;
  11330. +_ACEOF
  11331. +cat >>$CONFIG_STATUS <<\_ACEOF
  11332. +for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  11333. + # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11334. + case $ac_file in
  11335. + - | *:- | *:-:* ) # input from stdin
  11336. + cat >$tmp/stdin
  11337. + ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11338. + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11339. + *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11340. + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11341. + * ) ac_file_in=$ac_file.in ;;
  11342. esac
  11343. - case "$ac_given_INSTALL" in
  11344. - [/$]*) INSTALL="$ac_given_INSTALL" ;;
  11345. - *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  11346. - esac
  11347. + # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  11348. + ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  11349. +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11350. + X"$ac_file" : 'X\(//\)[^/]' \| \
  11351. + X"$ac_file" : 'X\(//\)$' \| \
  11352. + X"$ac_file" : 'X\(/\)' \| \
  11353. + . : '\(.\)' 2>/dev/null ||
  11354. +echo X"$ac_file" |
  11355. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11356. + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11357. + /^X\(\/\/\)$/{ s//\1/; q; }
  11358. + /^X\(\/\).*/{ s//\1/; q; }
  11359. + s/.*/./; q'`
  11360. + { if $as_mkdir_p; then
  11361. + mkdir -p "$ac_dir"
  11362. + else
  11363. + as_dir="$ac_dir"
  11364. + as_dirs=
  11365. + while test ! -d "$as_dir"; do
  11366. + as_dirs="$as_dir $as_dirs"
  11367. + as_dir=`(dirname "$as_dir") 2>/dev/null ||
  11368. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11369. + X"$as_dir" : 'X\(//\)[^/]' \| \
  11370. + X"$as_dir" : 'X\(//\)$' \| \
  11371. + X"$as_dir" : 'X\(/\)' \| \
  11372. + . : '\(.\)' 2>/dev/null ||
  11373. +echo X"$as_dir" |
  11374. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11375. + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11376. + /^X\(\/\/\)$/{ s//\1/; q; }
  11377. + /^X\(\/\).*/{ s//\1/; q; }
  11378. + s/.*/./; q'`
  11379. + done
  11380. + test ! -n "$as_dirs" || mkdir $as_dirs
  11381. + fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  11382. +echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  11383. + { (exit 1); exit 1; }; }; }
  11384. - echo creating "$ac_file"
  11385. - rm -f "$ac_file"
  11386. - configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  11387. - case "$ac_file" in
  11388. - *Makefile*) ac_comsub="1i\\
  11389. -# $configure_input" ;;
  11390. - *) ac_comsub= ;;
  11391. + ac_builddir=.
  11392. +
  11393. +if test "$ac_dir" != .; then
  11394. + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  11395. + # A "../" for each directory in $ac_dir_suffix.
  11396. + ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  11397. +else
  11398. + ac_dir_suffix= ac_top_builddir=
  11399. +fi
  11400. +
  11401. +case $srcdir in
  11402. + .) # No --srcdir option. We are building in place.
  11403. + ac_srcdir=.
  11404. + if test -z "$ac_top_builddir"; then
  11405. + ac_top_srcdir=.
  11406. + else
  11407. + ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  11408. + fi ;;
  11409. + [\\/]* | ?:[\\/]* ) # Absolute path.
  11410. + ac_srcdir=$srcdir$ac_dir_suffix;
  11411. + ac_top_srcdir=$srcdir ;;
  11412. + *) # Relative path.
  11413. + ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  11414. + ac_top_srcdir=$ac_top_builddir$srcdir ;;
  11415. +esac
  11416. +
  11417. +# Do not use `cd foo && pwd` to compute absolute paths, because
  11418. +# the directories may not exist.
  11419. +case `pwd` in
  11420. +.) ac_abs_builddir="$ac_dir";;
  11421. +*)
  11422. + case "$ac_dir" in
  11423. + .) ac_abs_builddir=`pwd`;;
  11424. + [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  11425. + *) ac_abs_builddir=`pwd`/"$ac_dir";;
  11426. + esac;;
  11427. +esac
  11428. +case $ac_abs_builddir in
  11429. +.) ac_abs_top_builddir=${ac_top_builddir}.;;
  11430. +*)
  11431. + case ${ac_top_builddir}. in
  11432. + .) ac_abs_top_builddir=$ac_abs_builddir;;
  11433. + [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  11434. + *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  11435. + esac;;
  11436. +esac
  11437. +case $ac_abs_builddir in
  11438. +.) ac_abs_srcdir=$ac_srcdir;;
  11439. +*)
  11440. + case $ac_srcdir in
  11441. + .) ac_abs_srcdir=$ac_abs_builddir;;
  11442. + [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  11443. + *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  11444. + esac;;
  11445. +esac
  11446. +case $ac_abs_builddir in
  11447. +.) ac_abs_top_srcdir=$ac_top_srcdir;;
  11448. +*)
  11449. + case $ac_top_srcdir in
  11450. + .) ac_abs_top_srcdir=$ac_abs_builddir;;
  11451. + [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  11452. + *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  11453. + esac;;
  11454. +esac
  11455. +
  11456. +
  11457. + case $INSTALL in
  11458. + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  11459. + *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  11460. esac
  11461. - ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  11462. - sed -e "$ac_comsub
  11463. -s%@configure_input@%$configure_input%g
  11464. -s%@srcdir@%$srcdir%g
  11465. -s%@top_srcdir@%$top_srcdir%g
  11466. -s%@INSTALL@%$INSTALL%g
  11467. -" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  11468. -fi; done
  11469. -rm -f conftest.s*
  11470. + # Let's still pretend it is `configure' which instantiates (i.e., don't
  11471. + # use $as_me), people would be surprised to read:
  11472. + # /* config.h. Generated by config.status. */
  11473. + if test x"$ac_file" = x-; then
  11474. + configure_input=
  11475. + else
  11476. + configure_input="$ac_file. "
  11477. + fi
  11478. + configure_input=$configure_input"Generated from `echo $ac_file_in |
  11479. + sed 's,.*/,,'` by configure."
  11480. +
  11481. + # First look for the input files in the build tree, otherwise in the
  11482. + # src tree.
  11483. + ac_file_inputs=`IFS=:
  11484. + for f in $ac_file_in; do
  11485. + case $f in
  11486. + -) echo $tmp/stdin ;;
  11487. + [\\/$]*)
  11488. + # Absolute (can't be DOS-style, as IFS=:)
  11489. + test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11490. +echo "$as_me: error: cannot find input file: $f" >&2;}
  11491. + { (exit 1); exit 1; }; }
  11492. + echo "$f";;
  11493. + *) # Relative
  11494. + if test -f "$f"; then
  11495. + # Build tree
  11496. + echo "$f"
  11497. + elif test -f "$srcdir/$f"; then
  11498. + # Source tree
  11499. + echo "$srcdir/$f"
  11500. + else
  11501. + # /dev/null tree
  11502. + { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11503. +echo "$as_me: error: cannot find input file: $f" >&2;}
  11504. + { (exit 1); exit 1; }; }
  11505. + fi;;
  11506. + esac
  11507. + done` || { (exit 1); exit 1; }
  11508. +
  11509. + if test x"$ac_file" != x-; then
  11510. + { echo "$as_me:$LINENO: creating $ac_file" >&5
  11511. +echo "$as_me: creating $ac_file" >&6;}
  11512. + rm -f "$ac_file"
  11513. + fi
  11514. +_ACEOF
  11515. +cat >>$CONFIG_STATUS <<_ACEOF
  11516. + sed "$ac_vpsub
  11517. +$extrasub
  11518. +_ACEOF
  11519. +cat >>$CONFIG_STATUS <<\_ACEOF
  11520. +:t
  11521. +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  11522. +s,@configure_input@,$configure_input,;t t
  11523. +s,@srcdir@,$ac_srcdir,;t t
  11524. +s,@abs_srcdir@,$ac_abs_srcdir,;t t
  11525. +s,@top_srcdir@,$ac_top_srcdir,;t t
  11526. +s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  11527. +s,@builddir@,$ac_builddir,;t t
  11528. +s,@abs_builddir@,$ac_abs_builddir,;t t
  11529. +s,@top_builddir@,$ac_top_builddir,;t t
  11530. +s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  11531. +s,@INSTALL@,$ac_INSTALL,;t t
  11532. +" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  11533. + rm -f $tmp/stdin
  11534. + if test x"$ac_file" != x-; then
  11535. + mv $tmp/out $ac_file
  11536. + else
  11537. + cat $tmp/out
  11538. + rm -f $tmp/out
  11539. + fi
  11540. +
  11541. +done
  11542. +_ACEOF
  11543. +cat >>$CONFIG_STATUS <<\_ACEOF
  11544. +
  11545. +#
  11546. +# CONFIG_HEADER section.
  11547. +#
  11548. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  11549. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  11550. #
  11551. # ac_d sets the value in "#define NAME VALUE" lines.
  11552. -ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  11553. -ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
  11554. -ac_dC='\3'
  11555. -ac_dD='%g'
  11556. -# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  11557. -ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  11558. -ac_uB='\([ ]\)%\1#\2define\3'
  11559. +ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  11560. +ac_dB='[ ].*$,\1#\2'
  11561. +ac_dC=' '
  11562. +ac_dD=',;t'
  11563. +# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  11564. +ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  11565. +ac_uB='$,\1#\2define\3'
  11566. ac_uC=' '
  11567. -ac_uD='\4%g'
  11568. -# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  11569. -ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  11570. -ac_eB='$%\1#\2define\3'
  11571. -ac_eC=' '
  11572. -ac_eD='%g'
  11573. +ac_uD=',;t'
  11574. -if test "${CONFIG_HEADERS+set}" != set; then
  11575. -EOF
  11576. -cat >> $CONFIG_STATUS <<EOF
  11577. - CONFIG_HEADERS="include/config.h"
  11578. -EOF
  11579. -cat >> $CONFIG_STATUS <<\EOF
  11580. -fi
  11581. -for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  11582. +for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  11583. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11584. - case "$ac_file" in
  11585. - *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  11586. - ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  11587. - *) ac_file_in="${ac_file}.in" ;;
  11588. + case $ac_file in
  11589. + - | *:- | *:-:* ) # input from stdin
  11590. + cat >$tmp/stdin
  11591. + ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11592. + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11593. + *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11594. + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11595. + * ) ac_file_in=$ac_file.in ;;
  11596. esac
  11597. - echo creating $ac_file
  11598. + test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  11599. +echo "$as_me: creating $ac_file" >&6;}
  11600. - rm -f conftest.frag conftest.in conftest.out
  11601. - ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  11602. - cat $ac_file_inputs > conftest.in
  11603. + # First look for the input files in the build tree, otherwise in the
  11604. + # src tree.
  11605. + ac_file_inputs=`IFS=:
  11606. + for f in $ac_file_in; do
  11607. + case $f in
  11608. + -) echo $tmp/stdin ;;
  11609. + [\\/$]*)
  11610. + # Absolute (can't be DOS-style, as IFS=:)
  11611. + test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11612. +echo "$as_me: error: cannot find input file: $f" >&2;}
  11613. + { (exit 1); exit 1; }; }
  11614. + # Do quote $f, to prevent DOS paths from being IFS'd.
  11615. + echo "$f";;
  11616. + *) # Relative
  11617. + if test -f "$f"; then
  11618. + # Build tree
  11619. + echo "$f"
  11620. + elif test -f "$srcdir/$f"; then
  11621. + # Source tree
  11622. + echo "$srcdir/$f"
  11623. + else
  11624. + # /dev/null tree
  11625. + { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11626. +echo "$as_me: error: cannot find input file: $f" >&2;}
  11627. + { (exit 1); exit 1; }; }
  11628. + fi;;
  11629. + esac
  11630. + done` || { (exit 1); exit 1; }
  11631. + # Remove the trailing spaces.
  11632. + sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  11633. -EOF
  11634. +_ACEOF
  11635. -# Transform confdefs.h into a sed script conftest.vals that substitutes
  11636. -# the proper values into config.h.in to produce config.h. And first:
  11637. -# Protect against being on the right side of a sed subst in config.status.
  11638. -# Protect against being in an unquoted here document in config.status.
  11639. -rm -f conftest.vals
  11640. -cat > conftest.hdr <<\EOF
  11641. -s/[\\&%]/\\&/g
  11642. -s%[\\$`]%\\&%g
  11643. -s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  11644. -s%ac_d%ac_u%gp
  11645. -s%ac_u%ac_e%gp
  11646. -EOF
  11647. -sed -n -f conftest.hdr confdefs.h > conftest.vals
  11648. -rm -f conftest.hdr
  11649. +# Transform confdefs.h into two sed scripts, `conftest.defines' and
  11650. +# `conftest.undefs', that substitutes the proper values into
  11651. +# config.h.in to produce config.h. The first handles `#define'
  11652. +# templates, and the second `#undef' templates.
  11653. +# And first: Protect against being on the right side of a sed subst in
  11654. +# config.status. Protect against being in an unquoted here document
  11655. +# in config.status.
  11656. +rm -f conftest.defines conftest.undefs
  11657. +# Using a here document instead of a string reduces the quoting nightmare.
  11658. +# Putting comments in sed scripts is not portable.
  11659. +#
  11660. +# `end' is used to avoid that the second main sed command (meant for
  11661. +# 0-ary CPP macros) applies to n-ary macro definitions.
  11662. +# See the Autoconf documentation for `clear'.
  11663. +cat >confdef2sed.sed <<\_ACEOF
  11664. +s/[\\&,]/\\&/g
  11665. +s,[\\$`],\\&,g
  11666. +t clear
  11667. +: clear
  11668. +s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  11669. +t end
  11670. +s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  11671. +: end
  11672. +_ACEOF
  11673. +# If some macros were called several times there might be several times
  11674. +# the same #defines, which is useless. Nevertheless, we may not want to
  11675. +# sort them, since we want the *last* AC-DEFINE to be honored.
  11676. +uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  11677. +sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  11678. +rm -f confdef2sed.sed
  11679. # This sed command replaces #undef with comments. This is necessary, for
  11680. # example, in the case of _POSIX_SOURCE, which is predefined and required
  11681. # on some systems where configure will not decide to define it.
  11682. -cat >> conftest.vals <<\EOF
  11683. -s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  11684. -EOF
  11685. +cat >>conftest.undefs <<\_ACEOF
  11686. +s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  11687. +_ACEOF
  11688. -# Break up conftest.vals because some shells have a limit on
  11689. -# the size of here documents, and old seds have small limits too.
  11690. +# Break up conftest.defines because some shells have a limit on the size
  11691. +# of here documents, and old seds have small limits too (100 cmds).
  11692. +echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  11693. +echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  11694. +echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  11695. +echo ' :' >>$CONFIG_STATUS
  11696. +rm -f conftest.tail
  11697. +while grep . conftest.defines >/dev/null
  11698. +do
  11699. + # Write a limited-size here document to $tmp/defines.sed.
  11700. + echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  11701. + # Speed up: don't consider the non `#define' lines.
  11702. + echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  11703. + # Work around the forget-to-reset-the-flag bug.
  11704. + echo 't clr' >>$CONFIG_STATUS
  11705. + echo ': clr' >>$CONFIG_STATUS
  11706. + sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  11707. + echo 'CEOF
  11708. + sed -f $tmp/defines.sed $tmp/in >$tmp/out
  11709. + rm -f $tmp/in
  11710. + mv $tmp/out $tmp/in
  11711. +' >>$CONFIG_STATUS
  11712. + sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  11713. + rm -f conftest.defines
  11714. + mv conftest.tail conftest.defines
  11715. +done
  11716. +rm -f conftest.defines
  11717. +echo ' fi # grep' >>$CONFIG_STATUS
  11718. +echo >>$CONFIG_STATUS
  11719. +# Break up conftest.undefs because some shells have a limit on the size
  11720. +# of here documents, and old seds have small limits too (100 cmds).
  11721. +echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  11722. rm -f conftest.tail
  11723. -while :
  11724. +while grep . conftest.undefs >/dev/null
  11725. do
  11726. - ac_lines=`grep -c . conftest.vals`
  11727. - # grep -c gives empty output for an empty file on some AIX systems.
  11728. - if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  11729. - # Write a limited-size here document to conftest.frag.
  11730. - echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  11731. - sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  11732. + # Write a limited-size here document to $tmp/undefs.sed.
  11733. + echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  11734. + # Speed up: don't consider the non `#undef'
  11735. + echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  11736. + # Work around the forget-to-reset-the-flag bug.
  11737. + echo 't clr' >>$CONFIG_STATUS
  11738. + echo ': clr' >>$CONFIG_STATUS
  11739. + sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  11740. echo 'CEOF
  11741. - sed -f conftest.frag conftest.in > conftest.out
  11742. - rm -f conftest.in
  11743. - mv conftest.out conftest.in
  11744. -' >> $CONFIG_STATUS
  11745. - sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  11746. - rm -f conftest.vals
  11747. - mv conftest.tail conftest.vals
  11748. + sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  11749. + rm -f $tmp/in
  11750. + mv $tmp/out $tmp/in
  11751. +' >>$CONFIG_STATUS
  11752. + sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  11753. + rm -f conftest.undefs
  11754. + mv conftest.tail conftest.undefs
  11755. done
  11756. -rm -f conftest.vals
  11757. +rm -f conftest.undefs
  11758. -cat >> $CONFIG_STATUS <<\EOF
  11759. - rm -f conftest.frag conftest.h
  11760. - echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
  11761. - cat conftest.in >> conftest.h
  11762. - rm -f conftest.in
  11763. - if cmp -s $ac_file conftest.h 2>/dev/null; then
  11764. - echo "$ac_file is unchanged"
  11765. - rm -f conftest.h
  11766. +cat >>$CONFIG_STATUS <<\_ACEOF
  11767. + # Let's still pretend it is `configure' which instantiates (i.e., don't
  11768. + # use $as_me), people would be surprised to read:
  11769. + # /* config.h. Generated by config.status. */
  11770. + if test x"$ac_file" = x-; then
  11771. + echo "/* Generated by configure. */" >$tmp/config.h
  11772. else
  11773. - # Remove last slash and all that follows it. Not all systems have dirname.
  11774. - ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  11775. - if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  11776. - # The file is in a subdirectory.
  11777. - test ! -d "$ac_dir" && mkdir "$ac_dir"
  11778. + echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  11779. + fi
  11780. + cat $tmp/in >>$tmp/config.h
  11781. + rm -f $tmp/in
  11782. + if test x"$ac_file" != x-; then
  11783. + if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  11784. + { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  11785. +echo "$as_me: $ac_file is unchanged" >&6;}
  11786. + else
  11787. + ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  11788. +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11789. + X"$ac_file" : 'X\(//\)[^/]' \| \
  11790. + X"$ac_file" : 'X\(//\)$' \| \
  11791. + X"$ac_file" : 'X\(/\)' \| \
  11792. + . : '\(.\)' 2>/dev/null ||
  11793. +echo X"$ac_file" |
  11794. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11795. + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11796. + /^X\(\/\/\)$/{ s//\1/; q; }
  11797. + /^X\(\/\).*/{ s//\1/; q; }
  11798. + s/.*/./; q'`
  11799. + { if $as_mkdir_p; then
  11800. + mkdir -p "$ac_dir"
  11801. + else
  11802. + as_dir="$ac_dir"
  11803. + as_dirs=
  11804. + while test ! -d "$as_dir"; do
  11805. + as_dirs="$as_dir $as_dirs"
  11806. + as_dir=`(dirname "$as_dir") 2>/dev/null ||
  11807. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11808. + X"$as_dir" : 'X\(//\)[^/]' \| \
  11809. + X"$as_dir" : 'X\(//\)$' \| \
  11810. + X"$as_dir" : 'X\(/\)' \| \
  11811. + . : '\(.\)' 2>/dev/null ||
  11812. +echo X"$as_dir" |
  11813. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11814. + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11815. + /^X\(\/\/\)$/{ s//\1/; q; }
  11816. + /^X\(\/\).*/{ s//\1/; q; }
  11817. + s/.*/./; q'`
  11818. + done
  11819. + test ! -n "$as_dirs" || mkdir $as_dirs
  11820. + fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  11821. +echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  11822. + { (exit 1); exit 1; }; }; }
  11823. +
  11824. + rm -f $ac_file
  11825. + mv $tmp/config.h $ac_file
  11826. fi
  11827. - rm -f $ac_file
  11828. - mv conftest.h $ac_file
  11829. + else
  11830. + cat $tmp/config.h
  11831. + rm -f $tmp/config.h
  11832. fi
  11833. -fi; done
  11834. +# Compute $ac_file's index in $config_headers.
  11835. +_am_stamp_count=1
  11836. +for _am_header in $config_headers :; do
  11837. + case $_am_header in
  11838. + $ac_file | $ac_file:* )
  11839. + break ;;
  11840. + * )
  11841. + _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  11842. + esac
  11843. +done
  11844. +echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
  11845. +$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11846. + X$ac_file : 'X\(//\)[^/]' \| \
  11847. + X$ac_file : 'X\(//\)$' \| \
  11848. + X$ac_file : 'X\(/\)' \| \
  11849. + . : '\(.\)' 2>/dev/null ||
  11850. +echo X$ac_file |
  11851. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11852. + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11853. + /^X\(\/\/\)$/{ s//\1/; q; }
  11854. + /^X\(\/\).*/{ s//\1/; q; }
  11855. + s/.*/./; q'`/stamp-h$_am_stamp_count
  11856. +done
  11857. +_ACEOF
  11858. +cat >>$CONFIG_STATUS <<\_ACEOF
  11859. -EOF
  11860. -cat >> $CONFIG_STATUS <<EOF
  11861. +#
  11862. +# CONFIG_COMMANDS section.
  11863. +#
  11864. +for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  11865. + ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  11866. + ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11867. + ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
  11868. +$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11869. + X"$ac_dest" : 'X\(//\)[^/]' \| \
  11870. + X"$ac_dest" : 'X\(//\)$' \| \
  11871. + X"$ac_dest" : 'X\(/\)' \| \
  11872. + . : '\(.\)' 2>/dev/null ||
  11873. +echo X"$ac_dest" |
  11874. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11875. + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11876. + /^X\(\/\/\)$/{ s//\1/; q; }
  11877. + /^X\(\/\).*/{ s//\1/; q; }
  11878. + s/.*/./; q'`
  11879. + { if $as_mkdir_p; then
  11880. + mkdir -p "$ac_dir"
  11881. + else
  11882. + as_dir="$ac_dir"
  11883. + as_dirs=
  11884. + while test ! -d "$as_dir"; do
  11885. + as_dirs="$as_dir $as_dirs"
  11886. + as_dir=`(dirname "$as_dir") 2>/dev/null ||
  11887. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11888. + X"$as_dir" : 'X\(//\)[^/]' \| \
  11889. + X"$as_dir" : 'X\(//\)$' \| \
  11890. + X"$as_dir" : 'X\(/\)' \| \
  11891. + . : '\(.\)' 2>/dev/null ||
  11892. +echo X"$as_dir" |
  11893. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11894. + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11895. + /^X\(\/\/\)$/{ s//\1/; q; }
  11896. + /^X\(\/\).*/{ s//\1/; q; }
  11897. + s/.*/./; q'`
  11898. + done
  11899. + test ! -n "$as_dirs" || mkdir $as_dirs
  11900. + fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  11901. +echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  11902. + { (exit 1); exit 1; }; }; }
  11903. -EOF
  11904. -cat >> $CONFIG_STATUS <<\EOF
  11905. -chmod +x libnet-config
  11906. -exit 0
  11907. -EOF
  11908. + ac_builddir=.
  11909. +
  11910. +if test "$ac_dir" != .; then
  11911. + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  11912. + # A "../" for each directory in $ac_dir_suffix.
  11913. + ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  11914. +else
  11915. + ac_dir_suffix= ac_top_builddir=
  11916. +fi
  11917. +
  11918. +case $srcdir in
  11919. + .) # No --srcdir option. We are building in place.
  11920. + ac_srcdir=.
  11921. + if test -z "$ac_top_builddir"; then
  11922. + ac_top_srcdir=.
  11923. + else
  11924. + ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  11925. + fi ;;
  11926. + [\\/]* | ?:[\\/]* ) # Absolute path.
  11927. + ac_srcdir=$srcdir$ac_dir_suffix;
  11928. + ac_top_srcdir=$srcdir ;;
  11929. + *) # Relative path.
  11930. + ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  11931. + ac_top_srcdir=$ac_top_builddir$srcdir ;;
  11932. +esac
  11933. +
  11934. +# Do not use `cd foo && pwd` to compute absolute paths, because
  11935. +# the directories may not exist.
  11936. +case `pwd` in
  11937. +.) ac_abs_builddir="$ac_dir";;
  11938. +*)
  11939. + case "$ac_dir" in
  11940. + .) ac_abs_builddir=`pwd`;;
  11941. + [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  11942. + *) ac_abs_builddir=`pwd`/"$ac_dir";;
  11943. + esac;;
  11944. +esac
  11945. +case $ac_abs_builddir in
  11946. +.) ac_abs_top_builddir=${ac_top_builddir}.;;
  11947. +*)
  11948. + case ${ac_top_builddir}. in
  11949. + .) ac_abs_top_builddir=$ac_abs_builddir;;
  11950. + [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  11951. + *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  11952. + esac;;
  11953. +esac
  11954. +case $ac_abs_builddir in
  11955. +.) ac_abs_srcdir=$ac_srcdir;;
  11956. +*)
  11957. + case $ac_srcdir in
  11958. + .) ac_abs_srcdir=$ac_abs_builddir;;
  11959. + [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  11960. + *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  11961. + esac;;
  11962. +esac
  11963. +case $ac_abs_builddir in
  11964. +.) ac_abs_top_srcdir=$ac_top_srcdir;;
  11965. +*)
  11966. + case $ac_top_srcdir in
  11967. + .) ac_abs_top_srcdir=$ac_abs_builddir;;
  11968. + [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  11969. + *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  11970. + esac;;
  11971. +esac
  11972. +
  11973. +
  11974. + { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
  11975. +echo "$as_me: executing $ac_dest commands" >&6;}
  11976. + case $ac_dest in
  11977. + depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  11978. + # Strip MF so we end up with the name of the file.
  11979. + mf=`echo "$mf" | sed -e 's/:.*$//'`
  11980. + # Check whether this is an Automake generated Makefile or not.
  11981. + # We used to match only the files named `Makefile.in', but
  11982. + # some people rename them; so instead we look at the file content.
  11983. + # Grep'ing the first line is not enough: some people post-process
  11984. + # each Makefile.in and add a new line on top of each file to say so.
  11985. + # So let's grep whole file.
  11986. + if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  11987. + dirpart=`(dirname "$mf") 2>/dev/null ||
  11988. +$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11989. + X"$mf" : 'X\(//\)[^/]' \| \
  11990. + X"$mf" : 'X\(//\)$' \| \
  11991. + X"$mf" : 'X\(/\)' \| \
  11992. + . : '\(.\)' 2>/dev/null ||
  11993. +echo X"$mf" |
  11994. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11995. + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11996. + /^X\(\/\/\)$/{ s//\1/; q; }
  11997. + /^X\(\/\).*/{ s//\1/; q; }
  11998. + s/.*/./; q'`
  11999. + else
  12000. + continue
  12001. + fi
  12002. + grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
  12003. + # Extract the definition of DEP_FILES from the Makefile without
  12004. + # running `make'.
  12005. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  12006. + test -z "$DEPDIR" && continue
  12007. + # When using ansi2knr, U may be empty or an underscore; expand it
  12008. + U=`sed -n 's/^U = //p' < "$mf"`
  12009. + test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
  12010. + # We invoke sed twice because it is the simplest approach to
  12011. + # changing $(DEPDIR) to its actual value in the expansion.
  12012. + for file in `sed -n '
  12013. + /^DEP_FILES = .*\\\\$/ {
  12014. + s/^DEP_FILES = //
  12015. + :loop
  12016. + s/\\\\$//
  12017. + p
  12018. + n
  12019. + /\\\\$/ b loop
  12020. + p
  12021. + }
  12022. + /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
  12023. + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  12024. + # Make sure the directory exists.
  12025. + test -f "$dirpart/$file" && continue
  12026. + fdir=`(dirname "$file") 2>/dev/null ||
  12027. +$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12028. + X"$file" : 'X\(//\)[^/]' \| \
  12029. + X"$file" : 'X\(//\)$' \| \
  12030. + X"$file" : 'X\(/\)' \| \
  12031. + . : '\(.\)' 2>/dev/null ||
  12032. +echo X"$file" |
  12033. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  12034. + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  12035. + /^X\(\/\/\)$/{ s//\1/; q; }
  12036. + /^X\(\/\).*/{ s//\1/; q; }
  12037. + s/.*/./; q'`
  12038. + { if $as_mkdir_p; then
  12039. + mkdir -p $dirpart/$fdir
  12040. + else
  12041. + as_dir=$dirpart/$fdir
  12042. + as_dirs=
  12043. + while test ! -d "$as_dir"; do
  12044. + as_dirs="$as_dir $as_dirs"
  12045. + as_dir=`(dirname "$as_dir") 2>/dev/null ||
  12046. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12047. + X"$as_dir" : 'X\(//\)[^/]' \| \
  12048. + X"$as_dir" : 'X\(//\)$' \| \
  12049. + X"$as_dir" : 'X\(/\)' \| \
  12050. + . : '\(.\)' 2>/dev/null ||
  12051. +echo X"$as_dir" |
  12052. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  12053. + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  12054. + /^X\(\/\/\)$/{ s//\1/; q; }
  12055. + /^X\(\/\).*/{ s//\1/; q; }
  12056. + s/.*/./; q'`
  12057. + done
  12058. + test ! -n "$as_dirs" || mkdir $as_dirs
  12059. + fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
  12060. +echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
  12061. + { (exit 1); exit 1; }; }; }
  12062. +
  12063. + # echo "creating $dirpart/$file"
  12064. + echo '# dummy' > "$dirpart/$file"
  12065. + done
  12066. +done
  12067. + ;;
  12068. + esac
  12069. +done
  12070. +_ACEOF
  12071. +
  12072. +cat >>$CONFIG_STATUS <<\_ACEOF
  12073. +
  12074. +{ (exit 0); exit 0; }
  12075. +_ACEOF
  12076. chmod +x $CONFIG_STATUS
  12077. -rm -fr confdefs* $ac_clean_files
  12078. -test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  12079. +ac_clean_files=$ac_clean_files_save
  12080. +
  12081. +
  12082. +# configure is writing to config.log, and then calls config.status.
  12083. +# config.status does its own redirection, appending to config.log.
  12084. +# Unfortunately, on DOS this fails, as config.log is still kept open
  12085. +# by configure, so config.status won't be able to write to it; its
  12086. +# output is simply discarded. So we exec the FD to /dev/null,
  12087. +# effectively closing config.log, so it can be properly (re)opened and
  12088. +# appended to by config.status. When coming back to configure, we
  12089. +# need to make the FD available again.
  12090. +if test "$no_create" != yes; then
  12091. + ac_cs_success=:
  12092. + ac_config_status_args=
  12093. + test "$silent" = yes &&
  12094. + ac_config_status_args="$ac_config_status_args --quiet"
  12095. + exec 5>/dev/null
  12096. + $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  12097. + exec 5>>config.log
  12098. + # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  12099. + # would make configure fail if this is the last instruction.
  12100. + $ac_cs_success || { (exit 1); exit 1; }
  12101. +fi