patch-aclocal_m4 327 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164
  1. --- Libnet-1.0.2a.orig/aclocal.m4 2001-01-07 21:49:29.000000000 +0100
  2. +++ Libnet-1.0.2a/aclocal.m4 2009-08-23 00:39:51.921223744 +0200
  3. @@ -1,358 +1,8868 @@
  4. -dnl aclocal.m4 generated automatically by aclocal 1.4
  5. +# generated automatically by aclocal 1.8.5 -*- Autoconf -*-
  6. -dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
  7. -dnl This file is free software; the Free Software Foundation
  8. -dnl gives unlimited permission to copy and/or distribute it,
  9. -dnl with or without modifications, as long as this notice is preserved.
  10. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
  11. +# Free Software Foundation, Inc.
  12. +# This file is free software; the Free Software Foundation
  13. +# gives unlimited permission to copy and/or distribute it,
  14. +# with or without modifications, as long as this notice is preserved.
  15. -dnl This program is distributed in the hope that it will be useful,
  16. -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
  17. -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  18. -dnl PARTICULAR PURPOSE.
  19. +# This program is distributed in the hope that it will be useful,
  20. +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
  21. +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  22. +# PARTICULAR PURPOSE.
  23. -dnl $Id: aclocal.m4,v 1.1.1.1 2000/05/25 00:28:49 route Exp $
  24. -dnl
  25. -dnl Libnet specific autoconf macros
  26. -dnl Copyright (c) 1998, 1999, 2000 Mike D. Schiffman <mike@infonexus.com>
  27. -dnl All rights reserved.
  28. -dnl
  29. +# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  30. +#
  31. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  32. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  33. +# Written by Gordon Matzigkeit, 1996
  34. +#
  35. +# This file is free software; the Free Software Foundation gives
  36. +# unlimited permission to copy and/or distribute it, with or without
  37. +# modifications, as long as this notice is preserved.
  38. +m4_define([_LT_COPYING], [dnl
  39. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  40. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  41. +# Written by Gordon Matzigkeit, 1996
  42. +#
  43. +# This file is part of GNU Libtool.
  44. +#
  45. +# GNU Libtool is free software; you can redistribute it and/or
  46. +# modify it under the terms of the GNU General Public License as
  47. +# published by the Free Software Foundation; either version 2 of
  48. +# the License, or (at your option) any later version.
  49. +#
  50. +# As a special exception to the GNU General Public License,
  51. +# if you distribute this file as part of a program or library that
  52. +# is built using GNU Libtool, you may include this file under the
  53. +# same distribution terms that you use for the rest of that program.
  54. +#
  55. +# GNU Libtool is distributed in the hope that it will be useful,
  56. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  57. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  58. +# GNU General Public License for more details.
  59. +#
  60. +# You should have received a copy of the GNU General Public License
  61. +# along with GNU Libtool; see the file COPYING. If not, a copy
  62. +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  63. +# obtained by writing to the Free Software Foundation, Inc.,
  64. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  65. +])
  66. +
  67. +# serial 56 LT_INIT
  68. +
  69. +
  70. +# LT_PREREQ(VERSION)
  71. +# ------------------
  72. +# Complain and exit if this libtool version is less that VERSION.
  73. +m4_defun([LT_PREREQ],
  74. +[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
  75. + [m4_default([$3],
  76. + [m4_fatal([Libtool version $1 or higher is required],
  77. + 63)])],
  78. + [$2])])
  79. +
  80. +
  81. +# _LT_CHECK_BUILDDIR
  82. +# ------------------
  83. +# Complain if the absolute build directory name contains unusual characters
  84. +m4_defun([_LT_CHECK_BUILDDIR],
  85. +[case `pwd` in
  86. + *\ * | *\ *)
  87. + AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
  88. +esac
  89. +])
  90. +
  91. +
  92. +# LT_INIT([OPTIONS])
  93. +# ------------------
  94. +AC_DEFUN([LT_INIT],
  95. +[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
  96. +AC_BEFORE([$0], [LT_LANG])dnl
  97. +AC_BEFORE([$0], [LT_OUTPUT])dnl
  98. +AC_BEFORE([$0], [LTDL_INIT])dnl
  99. +m4_require([_LT_CHECK_BUILDDIR])dnl
  100. +
  101. +dnl Autoconf doesn't catch unexpanded LT_ macros by default:
  102. +m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
  103. +m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
  104. +dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
  105. +dnl unless we require an AC_DEFUNed macro:
  106. +AC_REQUIRE([LTOPTIONS_VERSION])dnl
  107. +AC_REQUIRE([LTSUGAR_VERSION])dnl
  108. +AC_REQUIRE([LTVERSION_VERSION])dnl
  109. +AC_REQUIRE([LTOBSOLETE_VERSION])dnl
  110. +m4_require([_LT_PROG_LTMAIN])dnl
  111. +
  112. +dnl Parse OPTIONS
  113. +_LT_SET_OPTIONS([$0], [$1])
  114. +
  115. +# This can be used to rebuild libtool when needed
  116. +LIBTOOL_DEPS="$ltmain"
  117. +
  118. +# Always use our own libtool.
  119. +LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  120. +AC_SUBST(LIBTOOL)dnl
  121. +
  122. +_LT_SETUP
  123. +
  124. +# Only expand once:
  125. +m4_define([LT_INIT])
  126. +])# LT_INIT
  127. +
  128. +# Old names:
  129. +AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
  130. +AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
  131. +dnl aclocal-1.4 backwards compatibility:
  132. +dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
  133. +dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
  134. +
  135. +
  136. +# _LT_CC_BASENAME(CC)
  137. +# -------------------
  138. +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  139. +m4_defun([_LT_CC_BASENAME],
  140. +[for cc_temp in $1""; do
  141. + case $cc_temp in
  142. + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  143. + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  144. + \-*) ;;
  145. + *) break;;
  146. + esac
  147. +done
  148. +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  149. +])
  150. +
  151. +
  152. +# _LT_FILEUTILS_DEFAULTS
  153. +# ----------------------
  154. +# It is okay to use these file commands and assume they have been set
  155. +# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
  156. +m4_defun([_LT_FILEUTILS_DEFAULTS],
  157. +[: ${CP="cp -f"}
  158. +: ${MV="mv -f"}
  159. +: ${RM="rm -f"}
  160. +])# _LT_FILEUTILS_DEFAULTS
  161. +
  162. +
  163. +# _LT_SETUP
  164. +# ---------
  165. +m4_defun([_LT_SETUP],
  166. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  167. +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  168. +_LT_DECL([], [host_alias], [0], [The host system])dnl
  169. +_LT_DECL([], [host], [0])dnl
  170. +_LT_DECL([], [host_os], [0])dnl
  171. dnl
  172. -dnl Checks to see if this linux kernel has a working PF_PACKET
  173. -dnl
  174. -dnl usage:
  175. +_LT_DECL([], [build_alias], [0], [The build system])dnl
  176. +_LT_DECL([], [build], [0])dnl
  177. +_LT_DECL([], [build_os], [0])dnl
  178. dnl
  179. -dnl AC_LIBNET_CHECK_PF_PACKET
  180. +AC_REQUIRE([AC_PROG_CC])dnl
  181. +AC_REQUIRE([LT_PATH_LD])dnl
  182. +AC_REQUIRE([LT_PATH_NM])dnl
  183. dnl
  184. -dnl results:
  185. +AC_REQUIRE([AC_PROG_LN_S])dnl
  186. +test -z "$LN_S" && LN_S="ln -s"
  187. +_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
  188. dnl
  189. -dnl HAVE_PF_PACKET (DEFINED)
  190. +AC_REQUIRE([LT_CMD_MAX_LEN])dnl
  191. +_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
  192. +_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
  193. dnl
  194. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  195. +m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  196. +m4_require([_LT_CMD_RELOAD])dnl
  197. +m4_require([_LT_CHECK_MAGIC_METHOD])dnl
  198. +m4_require([_LT_CMD_OLD_ARCHIVE])dnl
  199. +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  200. -AC_DEFUN(AC_LIBNET_CHECK_PF_PACKET,
  201. +_LT_CONFIG_LIBTOOL_INIT([
  202. +# See if we are running on zsh, and set the options which allow our
  203. +# commands through without removal of \ escapes INIT.
  204. +if test -n "\${ZSH_VERSION+set}" ; then
  205. + setopt NO_GLOB_SUBST
  206. +fi
  207. +])
  208. +if test -n "${ZSH_VERSION+set}" ; then
  209. + setopt NO_GLOB_SUBST
  210. +fi
  211. +
  212. +_LT_CHECK_OBJDIR
  213. +
  214. +m4_require([_LT_TAG_COMPILER])dnl
  215. +_LT_PROG_ECHO_BACKSLASH
  216. +
  217. +case $host_os in
  218. +aix3*)
  219. + # AIX sometimes has problems with the GCC collect2 program. For some
  220. + # reason, if we set the COLLECT_NAMES environment variable, the problems
  221. + # vanish in a puff of smoke.
  222. + if test "X${COLLECT_NAMES+set}" != Xset; then
  223. + COLLECT_NAMES=
  224. + export COLLECT_NAMES
  225. + fi
  226. + ;;
  227. +esac
  228. +
  229. +# Sed substitution that helps us do robust quoting. It backslashifies
  230. +# metacharacters that are still active within double-quoted strings.
  231. +sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
  232. +
  233. +# Same as above, but do not quote variable references.
  234. +double_quote_subst='s/\([["`\\]]\)/\\\1/g'
  235. +
  236. +# Sed substitution to delay expansion of an escaped shell variable in a
  237. +# double_quote_subst'ed string.
  238. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  239. +
  240. +# Sed substitution to delay expansion of an escaped single quote.
  241. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  242. +
  243. +# Sed substitution to avoid accidental globbing in evaled expressions
  244. +no_glob_subst='s/\*/\\\*/g'
  245. +
  246. +# Global variables:
  247. +ofile=libtool
  248. +can_build_shared=yes
  249. +
  250. +# All known linkers require a `.a' archive for static linking (except MSVC,
  251. +# which needs '.lib').
  252. +libext=a
  253. +
  254. +with_gnu_ld="$lt_cv_prog_gnu_ld"
  255. +
  256. +old_CC="$CC"
  257. +old_CFLAGS="$CFLAGS"
  258. +
  259. +# Set sane defaults for various variables
  260. +test -z "$CC" && CC=cc
  261. +test -z "$LTCC" && LTCC=$CC
  262. +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  263. +test -z "$LD" && LD=ld
  264. +test -z "$ac_objext" && ac_objext=o
  265. +
  266. +_LT_CC_BASENAME([$compiler])
  267. +
  268. +# Only perform the check for file, if the check method requires it
  269. +test -z "$MAGIC_CMD" && MAGIC_CMD=file
  270. +case $deplibs_check_method in
  271. +file_magic*)
  272. + if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  273. + _LT_PATH_MAGIC
  274. + fi
  275. + ;;
  276. +esac
  277. +
  278. +# Use C for the default configuration in the libtool script
  279. +LT_SUPPORTED_TAG([CC])
  280. +_LT_LANG_C_CONFIG
  281. +_LT_LANG_DEFAULT_CONFIG
  282. +_LT_CONFIG_COMMANDS
  283. +])# _LT_SETUP
  284. +
  285. +
  286. +# _LT_PROG_LTMAIN
  287. +# ---------------
  288. +# Note that this code is called both from `configure', and `config.status'
  289. +# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
  290. +# `config.status' has no value for ac_aux_dir unless we are using Automake,
  291. +# so we pass a copy along to make sure it has a sensible value anyway.
  292. +m4_defun([_LT_PROG_LTMAIN],
  293. +[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
  294. +_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
  295. +ltmain="$ac_aux_dir/ltmain.sh"
  296. +])# _LT_PROG_LTMAIN
  297. +
  298. +
  299. +
  300. +# So that we can recreate a full libtool script including additional
  301. +# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
  302. +# in macros and then make a single call at the end using the `libtool'
  303. +# label.
  304. +
  305. +
  306. +# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
  307. +# ----------------------------------------
  308. +# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  309. +m4_define([_LT_CONFIG_LIBTOOL_INIT],
  310. +[m4_ifval([$1],
  311. + [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
  312. + [$1
  313. +])])])
  314. +
  315. +# Initialize.
  316. +m4_define([_LT_OUTPUT_LIBTOOL_INIT])
  317. +
  318. +
  319. +# _LT_CONFIG_LIBTOOL([COMMANDS])
  320. +# ------------------------------
  321. +# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  322. +m4_define([_LT_CONFIG_LIBTOOL],
  323. +[m4_ifval([$1],
  324. + [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
  325. + [$1
  326. +])])])
  327. +
  328. +# Initialize.
  329. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
  330. +
  331. +
  332. +# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
  333. +# -----------------------------------------------------
  334. +m4_defun([_LT_CONFIG_SAVE_COMMANDS],
  335. +[_LT_CONFIG_LIBTOOL([$1])
  336. +_LT_CONFIG_LIBTOOL_INIT([$2])
  337. +])
  338. +
  339. +
  340. +# _LT_FORMAT_COMMENT([COMMENT])
  341. +# -----------------------------
  342. +# Add leading comment marks to the start of each line, and a trailing
  343. +# full-stop to the whole comment if one is not present already.
  344. +m4_define([_LT_FORMAT_COMMENT],
  345. +[m4_ifval([$1], [
  346. +m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
  347. + [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
  348. +)])
  349. +
  350. +
  351. +
  352. +
  353. +
  354. +# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
  355. +# -------------------------------------------------------------------
  356. +# CONFIGNAME is the name given to the value in the libtool script.
  357. +# VARNAME is the (base) name used in the configure script.
  358. +# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
  359. +# VARNAME. Any other value will be used directly.
  360. +m4_define([_LT_DECL],
  361. +[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
  362. + [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
  363. + [m4_ifval([$1], [$1], [$2])])
  364. + lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
  365. + m4_ifval([$4],
  366. + [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
  367. + lt_dict_add_subkey([lt_decl_dict], [$2],
  368. + [tagged?], [m4_ifval([$5], [yes], [no])])])
  369. +])
  370. +
  371. +
  372. +# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
  373. +# --------------------------------------------------------
  374. +m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
  375. +
  376. +
  377. +# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
  378. +# ------------------------------------------------
  379. +m4_define([lt_decl_tag_varnames],
  380. +[_lt_decl_filter([tagged?], [yes], $@)])
  381. +
  382. +
  383. +# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
  384. +# ---------------------------------------------------------
  385. +m4_define([_lt_decl_filter],
  386. +[m4_case([$#],
  387. + [0], [m4_fatal([$0: too few arguments: $#])],
  388. + [1], [m4_fatal([$0: too few arguments: $#: $1])],
  389. + [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
  390. + [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
  391. + [lt_dict_filter([lt_decl_dict], $@)])[]dnl
  392. +])
  393. +
  394. +
  395. +# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
  396. +# --------------------------------------------------
  397. +m4_define([lt_decl_quote_varnames],
  398. +[_lt_decl_filter([value], [1], $@)])
  399. +
  400. +
  401. +# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
  402. +# ---------------------------------------------------
  403. +m4_define([lt_decl_dquote_varnames],
  404. +[_lt_decl_filter([value], [2], $@)])
  405. +
  406. +
  407. +# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
  408. +# ---------------------------------------------------
  409. +m4_define([lt_decl_varnames_tagged],
  410. +[m4_assert([$# <= 2])dnl
  411. +_$0(m4_quote(m4_default([$1], [[, ]])),
  412. + m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
  413. + m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
  414. +m4_define([_lt_decl_varnames_tagged],
  415. +[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
  416. +
  417. +
  418. +# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
  419. +# ------------------------------------------------
  420. +m4_define([lt_decl_all_varnames],
  421. +[_$0(m4_quote(m4_default([$1], [[, ]])),
  422. + m4_if([$2], [],
  423. + m4_quote(lt_decl_varnames),
  424. + m4_quote(m4_shift($@))))[]dnl
  425. +])
  426. +m4_define([_lt_decl_all_varnames],
  427. +[lt_join($@, lt_decl_varnames_tagged([$1],
  428. + lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
  429. +])
  430. +
  431. +
  432. +# _LT_CONFIG_STATUS_DECLARE([VARNAME])
  433. +# ------------------------------------
  434. +# Quote a variable value, and forward it to `config.status' so that its
  435. +# declaration there will have the same value as in `configure'. VARNAME
  436. +# must have a single quote delimited value for this to work.
  437. +m4_define([_LT_CONFIG_STATUS_DECLARE],
  438. +[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
  439. +
  440. +
  441. +# _LT_CONFIG_STATUS_DECLARATIONS
  442. +# ------------------------------
  443. +# We delimit libtool config variables with single quotes, so when
  444. +# we write them to config.status, we have to be sure to quote all
  445. +# embedded single quotes properly. In configure, this macro expands
  446. +# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
  447. +#
  448. +# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
  449. +m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
  450. +[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
  451. + [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
  452. +
  453. +
  454. +# _LT_LIBTOOL_TAGS
  455. +# ----------------
  456. +# Output comment and list of tags supported by the script
  457. +m4_defun([_LT_LIBTOOL_TAGS],
  458. +[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
  459. +available_tags="_LT_TAGS"dnl
  460. +])
  461. +
  462. +
  463. +# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
  464. +# -----------------------------------
  465. +# Extract the dictionary values for VARNAME (optionally with TAG) and
  466. +# expand to a commented shell variable setting:
  467. +#
  468. +# # Some comment about what VAR is for.
  469. +# visible_name=$lt_internal_name
  470. +m4_define([_LT_LIBTOOL_DECLARE],
  471. +[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
  472. + [description])))[]dnl
  473. +m4_pushdef([_libtool_name],
  474. + m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
  475. +m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
  476. + [0], [_libtool_name=[$]$1],
  477. + [1], [_libtool_name=$lt_[]$1],
  478. + [2], [_libtool_name=$lt_[]$1],
  479. + [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
  480. +m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
  481. +])
  482. +
  483. +
  484. +# _LT_LIBTOOL_CONFIG_VARS
  485. +# -----------------------
  486. +# Produce commented declarations of non-tagged libtool config variables
  487. +# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
  488. +# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
  489. +# section) are produced by _LT_LIBTOOL_TAG_VARS.
  490. +m4_defun([_LT_LIBTOOL_CONFIG_VARS],
  491. +[m4_foreach([_lt_var],
  492. + m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
  493. + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
  494. +
  495. +
  496. +# _LT_LIBTOOL_TAG_VARS(TAG)
  497. +# -------------------------
  498. +m4_define([_LT_LIBTOOL_TAG_VARS],
  499. +[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
  500. + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
  501. +
  502. +
  503. +# _LT_TAGVAR(VARNAME, [TAGNAME])
  504. +# ------------------------------
  505. +m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
  506. +
  507. +
  508. +# _LT_CONFIG_COMMANDS
  509. +# -------------------
  510. +# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
  511. +# variables for single and double quote escaping we saved from calls
  512. +# to _LT_DECL, we can put quote escaped variables declarations
  513. +# into `config.status', and then the shell code to quote escape them in
  514. +# for loops in `config.status'. Finally, any additional code accumulated
  515. +# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
  516. +m4_defun([_LT_CONFIG_COMMANDS],
  517. +[AC_PROVIDE_IFELSE([LT_OUTPUT],
  518. + dnl If the libtool generation code has been placed in $CONFIG_LT,
  519. + dnl instead of duplicating it all over again into config.status,
  520. + dnl then we will have config.status run $CONFIG_LT later, so it
  521. + dnl needs to know what name is stored there:
  522. + [AC_CONFIG_COMMANDS([libtool],
  523. + [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
  524. + dnl If the libtool generation code is destined for config.status,
  525. + dnl expand the accumulated commands and init code now:
  526. + [AC_CONFIG_COMMANDS([libtool],
  527. + [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
  528. +])#_LT_CONFIG_COMMANDS
  529. +
  530. +
  531. +# Initialize.
  532. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
  533. [
  534. - AC_MSG_CHECKING(for PF_PACKET)
  535. - AC_CACHE_VAL(ac_libnet_have_pf_packet,
  536. - [case "$target_os" in
  537. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  538. +# if CDPATH is set.
  539. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  540. - linux)
  541. - ac_libnet_have_pf_packet = no
  542. - ;;
  543. - *)
  544. +sed_quote_subst='$sed_quote_subst'
  545. +double_quote_subst='$double_quote_subst'
  546. +delay_variable_subst='$delay_variable_subst'
  547. +_LT_CONFIG_STATUS_DECLARATIONS
  548. +LTCC='$LTCC'
  549. +LTCFLAGS='$LTCFLAGS'
  550. +compiler='$compiler_DEFAULT'
  551. - cat > pf_packet-test.c << EOF
  552. -#include <net/if.h>
  553. -#if (__GLIBC__)
  554. -#include <netinet/if_ether.h>
  555. -#include <net/if_arp.h>
  556. +# Quote evaled strings.
  557. +for var in lt_decl_all_varnames([[ \
  558. +]], lt_decl_quote_varnames); do
  559. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  560. + *[[\\\\\\\`\\"\\\$]]*)
  561. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  562. + ;;
  563. + *)
  564. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  565. + ;;
  566. + esac
  567. +done
  568. +
  569. +# Double-quote double-evaled strings.
  570. +for var in lt_decl_all_varnames([[ \
  571. +]], lt_decl_dquote_varnames); do
  572. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  573. + *[[\\\\\\\`\\"\\\$]]*)
  574. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  575. + ;;
  576. + *)
  577. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  578. + ;;
  579. + esac
  580. +done
  581. +
  582. +# Fix-up fallback echo if it was mangled by the above quoting rules.
  583. +case \$lt_ECHO in
  584. +*'\\\[$]0 --fallback-echo"')dnl "
  585. + lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
  586. + ;;
  587. +esac
  588. +
  589. +_LT_OUTPUT_LIBTOOL_INIT
  590. +])
  591. +
  592. +
  593. +# LT_OUTPUT
  594. +# ---------
  595. +# This macro allows early generation of the libtool script (before
  596. +# AC_OUTPUT is called), incase it is used in configure for compilation
  597. +# tests.
  598. +AC_DEFUN([LT_OUTPUT],
  599. +[: ${CONFIG_LT=./config.lt}
  600. +AC_MSG_NOTICE([creating $CONFIG_LT])
  601. +cat >"$CONFIG_LT" <<_LTEOF
  602. +#! $SHELL
  603. +# Generated by $as_me.
  604. +# Run this file to recreate a libtool stub with the current configuration.
  605. +
  606. +lt_cl_silent=false
  607. +SHELL=\${CONFIG_SHELL-$SHELL}
  608. +_LTEOF
  609. +
  610. +cat >>"$CONFIG_LT" <<\_LTEOF
  611. +AS_SHELL_SANITIZE
  612. +_AS_PREPARE
  613. +
  614. +exec AS_MESSAGE_FD>&1
  615. +exec AS_MESSAGE_LOG_FD>>config.log
  616. +{
  617. + echo
  618. + AS_BOX([Running $as_me.])
  619. +} >&AS_MESSAGE_LOG_FD
  620. +
  621. +lt_cl_help="\
  622. +\`$as_me' creates a local libtool stub from the current configuration,
  623. +for use in further configure time tests before the real libtool is
  624. +generated.
  625. +
  626. +Usage: $[0] [[OPTIONS]]
  627. +
  628. + -h, --help print this help, then exit
  629. + -V, --version print version number, then exit
  630. + -q, --quiet do not print progress messages
  631. + -d, --debug don't remove temporary files
  632. +
  633. +Report bugs to <bug-libtool@gnu.org>."
  634. +
  635. +lt_cl_version="\
  636. +m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
  637. +m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
  638. +configured by $[0], generated by m4_PACKAGE_STRING.
  639. +
  640. +Copyright (C) 2008 Free Software Foundation, Inc.
  641. +This config.lt script is free software; the Free Software Foundation
  642. +gives unlimited permision to copy, distribute and modify it."
  643. +
  644. +while test $[#] != 0
  645. +do
  646. + case $[1] in
  647. + --version | --v* | -V )
  648. + echo "$lt_cl_version"; exit 0 ;;
  649. + --help | --h* | -h )
  650. + echo "$lt_cl_help"; exit 0 ;;
  651. + --debug | --d* | -d )
  652. + debug=: ;;
  653. + --quiet | --q* | --silent | --s* | -q )
  654. + lt_cl_silent=: ;;
  655. +
  656. + -*) AC_MSG_ERROR([unrecognized option: $[1]
  657. +Try \`$[0] --help' for more information.]) ;;
  658. +
  659. + *) AC_MSG_ERROR([unrecognized argument: $[1]
  660. +Try \`$[0] --help' for more information.]) ;;
  661. + esac
  662. + shift
  663. +done
  664. +
  665. +if $lt_cl_silent; then
  666. + exec AS_MESSAGE_FD>/dev/null
  667. +fi
  668. +_LTEOF
  669. +
  670. +cat >>"$CONFIG_LT" <<_LTEOF
  671. +_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
  672. +_LTEOF
  673. +
  674. +cat >>"$CONFIG_LT" <<\_LTEOF
  675. +AC_MSG_NOTICE([creating $ofile])
  676. +_LT_OUTPUT_LIBTOOL_COMMANDS
  677. +AS_EXIT(0)
  678. +_LTEOF
  679. +chmod +x "$CONFIG_LT"
  680. +
  681. +# configure is writing to config.log, but config.lt does its own redirection,
  682. +# appending to config.log, which fails on DOS, as config.log is still kept
  683. +# open by configure. Here we exec the FD to /dev/null, effectively closing
  684. +# config.log, so it can be properly (re)opened and appended to by config.lt.
  685. +if test "$no_create" != yes; then
  686. + lt_cl_success=:
  687. + test "$silent" = yes &&
  688. + lt_config_lt_args="$lt_config_lt_args --quiet"
  689. + exec AS_MESSAGE_LOG_FD>/dev/null
  690. + $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
  691. + exec AS_MESSAGE_LOG_FD>>config.log
  692. + $lt_cl_success || AS_EXIT(1)
  693. +fi
  694. +])# LT_OUTPUT
  695. +
  696. +
  697. +# _LT_CONFIG(TAG)
  698. +# ---------------
  699. +# If TAG is the built-in tag, create an initial libtool script with a
  700. +# default configuration from the untagged config vars. Otherwise add code
  701. +# to config.status for appending the configuration named by TAG from the
  702. +# matching tagged config vars.
  703. +m4_defun([_LT_CONFIG],
  704. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  705. +_LT_CONFIG_SAVE_COMMANDS([
  706. + m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
  707. + m4_if(_LT_TAG, [C], [
  708. + # See if we are running on zsh, and set the options which allow our
  709. + # commands through without removal of \ escapes.
  710. + if test -n "${ZSH_VERSION+set}" ; then
  711. + setopt NO_GLOB_SUBST
  712. + fi
  713. +
  714. + cfgfile="${ofile}T"
  715. + trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  716. + $RM "$cfgfile"
  717. +
  718. + cat <<_LT_EOF >> "$cfgfile"
  719. +#! $SHELL
  720. +
  721. +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  722. +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  723. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  724. +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  725. +#
  726. +_LT_COPYING
  727. +_LT_LIBTOOL_TAGS
  728. +
  729. +# ### BEGIN LIBTOOL CONFIG
  730. +_LT_LIBTOOL_CONFIG_VARS
  731. +_LT_LIBTOOL_TAG_VARS
  732. +# ### END LIBTOOL CONFIG
  733. +
  734. +_LT_EOF
  735. +
  736. + case $host_os in
  737. + aix3*)
  738. + cat <<\_LT_EOF >> "$cfgfile"
  739. +# AIX sometimes has problems with the GCC collect2 program. For some
  740. +# reason, if we set the COLLECT_NAMES environment variable, the problems
  741. +# vanish in a puff of smoke.
  742. +if test "X${COLLECT_NAMES+set}" != Xset; then
  743. + COLLECT_NAMES=
  744. + export COLLECT_NAMES
  745. +fi
  746. +_LT_EOF
  747. + ;;
  748. + esac
  749. +
  750. + _LT_PROG_LTMAIN
  751. +
  752. + # We use sed instead of cat because bash on DJGPP gets confused if
  753. + # if finds mixed CR/LF and LF-only lines. Since sed operates in
  754. + # text mode, it properly converts lines to CR/LF. This bash problem
  755. + # is reportedly fixed, but why not run on old versions too?
  756. + sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  757. + || (rm -f "$cfgfile"; exit 1)
  758. +
  759. + _LT_PROG_XSI_SHELLFNS
  760. +
  761. + sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  762. + || (rm -f "$cfgfile"; exit 1)
  763. +
  764. + mv -f "$cfgfile" "$ofile" ||
  765. + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  766. + chmod +x "$ofile"
  767. +],
  768. +[cat <<_LT_EOF >> "$ofile"
  769. +
  770. +dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
  771. +dnl in a comment (ie after a #).
  772. +# ### BEGIN LIBTOOL TAG CONFIG: $1
  773. +_LT_LIBTOOL_TAG_VARS(_LT_TAG)
  774. +# ### END LIBTOOL TAG CONFIG: $1
  775. +_LT_EOF
  776. +])dnl /m4_if
  777. +],
  778. +[m4_if([$1], [], [
  779. + PACKAGE='$PACKAGE'
  780. + VERSION='$VERSION'
  781. + TIMESTAMP='$TIMESTAMP'
  782. + RM='$RM'
  783. + ofile='$ofile'], [])
  784. +])dnl /_LT_CONFIG_SAVE_COMMANDS
  785. +])# _LT_CONFIG
  786. +
  787. +
  788. +# LT_SUPPORTED_TAG(TAG)
  789. +# ---------------------
  790. +# Trace this macro to discover what tags are supported by the libtool
  791. +# --tag option, using:
  792. +# autoconf --trace 'LT_SUPPORTED_TAG:$1'
  793. +AC_DEFUN([LT_SUPPORTED_TAG], [])
  794. +
  795. +
  796. +# C support is built-in for now
  797. +m4_define([_LT_LANG_C_enabled], [])
  798. +m4_define([_LT_TAGS], [])
  799. +
  800. +
  801. +# LT_LANG(LANG)
  802. +# -------------
  803. +# Enable libtool support for the given language if not already enabled.
  804. +AC_DEFUN([LT_LANG],
  805. +[AC_BEFORE([$0], [LT_OUTPUT])dnl
  806. +m4_case([$1],
  807. + [C], [_LT_LANG(C)],
  808. + [C++], [_LT_LANG(CXX)],
  809. + [Java], [_LT_LANG(GCJ)],
  810. + [Fortran 77], [_LT_LANG(F77)],
  811. + [Fortran], [_LT_LANG(FC)],
  812. + [Windows Resource], [_LT_LANG(RC)],
  813. + [m4_ifdef([_LT_LANG_]$1[_CONFIG],
  814. + [_LT_LANG($1)],
  815. + [m4_fatal([$0: unsupported language: "$1"])])])dnl
  816. +])# LT_LANG
  817. +
  818. +
  819. +# _LT_LANG(LANGNAME)
  820. +# ------------------
  821. +m4_defun([_LT_LANG],
  822. +[m4_ifdef([_LT_LANG_]$1[_enabled], [],
  823. + [LT_SUPPORTED_TAG([$1])dnl
  824. + m4_append([_LT_TAGS], [$1 ])dnl
  825. + m4_define([_LT_LANG_]$1[_enabled], [])dnl
  826. + _LT_LANG_$1_CONFIG($1)])dnl
  827. +])# _LT_LANG
  828. +
  829. +
  830. +# _LT_LANG_DEFAULT_CONFIG
  831. +# -----------------------
  832. +m4_defun([_LT_LANG_DEFAULT_CONFIG],
  833. +[AC_PROVIDE_IFELSE([AC_PROG_CXX],
  834. + [LT_LANG(CXX)],
  835. + [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
  836. +
  837. +AC_PROVIDE_IFELSE([AC_PROG_F77],
  838. + [LT_LANG(F77)],
  839. + [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
  840. +
  841. +AC_PROVIDE_IFELSE([AC_PROG_FC],
  842. + [LT_LANG(FC)],
  843. + [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
  844. +
  845. +dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
  846. +dnl pulling things in needlessly.
  847. +AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  848. + [LT_LANG(GCJ)],
  849. + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  850. + [LT_LANG(GCJ)],
  851. + [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
  852. + [LT_LANG(GCJ)],
  853. + [m4_ifdef([AC_PROG_GCJ],
  854. + [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
  855. + m4_ifdef([A][M_PROG_GCJ],
  856. + [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
  857. + m4_ifdef([LT_PROG_GCJ],
  858. + [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
  859. +
  860. +AC_PROVIDE_IFELSE([LT_PROG_RC],
  861. + [LT_LANG(RC)],
  862. + [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
  863. +])# _LT_LANG_DEFAULT_CONFIG
  864. +
  865. +# Obsolete macros:
  866. +AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
  867. +AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
  868. +AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
  869. +AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
  870. +dnl aclocal-1.4 backwards compatibility:
  871. +dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
  872. +dnl AC_DEFUN([AC_LIBTOOL_F77], [])
  873. +dnl AC_DEFUN([AC_LIBTOOL_FC], [])
  874. +dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
  875. +
  876. +
  877. +# _LT_TAG_COMPILER
  878. +# ----------------
  879. +m4_defun([_LT_TAG_COMPILER],
  880. +[AC_REQUIRE([AC_PROG_CC])dnl
  881. +
  882. +_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
  883. +_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
  884. +_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
  885. +_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
  886. +
  887. +# If no C compiler was specified, use CC.
  888. +LTCC=${LTCC-"$CC"}
  889. +
  890. +# If no C compiler flags were specified, use CFLAGS.
  891. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  892. +
  893. +# Allow CC to be a program name with arguments.
  894. +compiler=$CC
  895. +])# _LT_TAG_COMPILER
  896. +
  897. +
  898. +# _LT_COMPILER_BOILERPLATE
  899. +# ------------------------
  900. +# Check for compiler boilerplate output or warnings with
  901. +# the simple compiler test code.
  902. +m4_defun([_LT_COMPILER_BOILERPLATE],
  903. +[m4_require([_LT_DECL_SED])dnl
  904. +ac_outfile=conftest.$ac_objext
  905. +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  906. +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  907. +_lt_compiler_boilerplate=`cat conftest.err`
  908. +$RM conftest*
  909. +])# _LT_COMPILER_BOILERPLATE
  910. +
  911. +
  912. +# _LT_LINKER_BOILERPLATE
  913. +# ----------------------
  914. +# Check for linker boilerplate output or warnings with
  915. +# the simple link test code.
  916. +m4_defun([_LT_LINKER_BOILERPLATE],
  917. +[m4_require([_LT_DECL_SED])dnl
  918. +ac_outfile=conftest.$ac_objext
  919. +echo "$lt_simple_link_test_code" >conftest.$ac_ext
  920. +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  921. +_lt_linker_boilerplate=`cat conftest.err`
  922. +$RM -r conftest*
  923. +])# _LT_LINKER_BOILERPLATE
  924. +
  925. +# _LT_REQUIRED_DARWIN_CHECKS
  926. +# -------------------------
  927. +m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
  928. + case $host_os in
  929. + rhapsody* | darwin*)
  930. + AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
  931. + AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
  932. + AC_CHECK_TOOL([LIPO], [lipo], [:])
  933. + AC_CHECK_TOOL([OTOOL], [otool], [:])
  934. + AC_CHECK_TOOL([OTOOL64], [otool64], [:])
  935. + _LT_DECL([], [DSYMUTIL], [1],
  936. + [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
  937. + _LT_DECL([], [NMEDIT], [1],
  938. + [Tool to change global to local symbols on Mac OS X])
  939. + _LT_DECL([], [LIPO], [1],
  940. + [Tool to manipulate fat objects and archives on Mac OS X])
  941. + _LT_DECL([], [OTOOL], [1],
  942. + [ldd/readelf like tool for Mach-O binaries on Mac OS X])
  943. + _LT_DECL([], [OTOOL64], [1],
  944. + [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
  945. +
  946. + AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
  947. + [lt_cv_apple_cc_single_mod=no
  948. + if test -z "${LT_MULTI_MODULE}"; then
  949. + # By default we will add the -single_module flag. You can override
  950. + # by either setting the environment variable LT_MULTI_MODULE
  951. + # non-empty at configure time, or by adding -multi_module to the
  952. + # link flags.
  953. + rm -rf libconftest.dylib*
  954. + echo "int foo(void){return 1;}" > conftest.c
  955. + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  956. +-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
  957. + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  958. + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  959. + _lt_result=$?
  960. + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  961. + lt_cv_apple_cc_single_mod=yes
  962. + else
  963. + cat conftest.err >&AS_MESSAGE_LOG_FD
  964. + fi
  965. + rm -rf libconftest.dylib*
  966. + rm -f conftest.*
  967. + fi])
  968. + AC_CACHE_CHECK([for -exported_symbols_list linker flag],
  969. + [lt_cv_ld_exported_symbols_list],
  970. + [lt_cv_ld_exported_symbols_list=no
  971. + save_LDFLAGS=$LDFLAGS
  972. + echo "_main" > conftest.sym
  973. + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  974. + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  975. + [lt_cv_ld_exported_symbols_list=yes],
  976. + [lt_cv_ld_exported_symbols_list=no])
  977. + LDFLAGS="$save_LDFLAGS"
  978. + ])
  979. + case $host_os in
  980. + rhapsody* | darwin1.[[012]])
  981. + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  982. + darwin1.*)
  983. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  984. + darwin*) # darwin 5.x on
  985. + # if running on 10.5 or later, the deployment target defaults
  986. + # to the OS version, if on x86, and 10.4, the deployment
  987. + # target defaults to 10.4. Don't you love it?
  988. + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  989. + 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
  990. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  991. + 10.[[012]]*)
  992. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  993. + 10.*)
  994. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  995. + esac
  996. + ;;
  997. + esac
  998. + if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  999. + _lt_dar_single_mod='$single_module'
  1000. + fi
  1001. + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  1002. + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  1003. + else
  1004. + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  1005. + fi
  1006. + if test "$DSYMUTIL" != ":"; then
  1007. + _lt_dsymutil='~$DSYMUTIL $lib || :'
  1008. + else
  1009. + _lt_dsymutil=
  1010. + fi
  1011. + ;;
  1012. + esac
  1013. +])
  1014. +
  1015. +
  1016. +# _LT_DARWIN_LINKER_FEATURES
  1017. +# --------------------------
  1018. +# Checks for linker and compiler features on darwin
  1019. +m4_defun([_LT_DARWIN_LINKER_FEATURES],
  1020. +[
  1021. + m4_require([_LT_REQUIRED_DARWIN_CHECKS])
  1022. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  1023. + _LT_TAGVAR(hardcode_direct, $1)=no
  1024. + _LT_TAGVAR(hardcode_automatic, $1)=yes
  1025. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  1026. + _LT_TAGVAR(whole_archive_flag_spec, $1)=''
  1027. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  1028. + _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
  1029. + case $cc_basename in
  1030. + ifort*) _lt_dar_can_shared=yes ;;
  1031. + *) _lt_dar_can_shared=$GCC ;;
  1032. + esac
  1033. + if test "$_lt_dar_can_shared" = "yes"; then
  1034. + output_verbose_link_cmd=echo
  1035. + _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  1036. + _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  1037. + _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  1038. + _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  1039. + m4_if([$1], [CXX],
  1040. +[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  1041. + _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
  1042. + _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
  1043. + fi
  1044. +],[])
  1045. + else
  1046. + _LT_TAGVAR(ld_shlibs, $1)=no
  1047. + fi
  1048. +])
  1049. +
  1050. +# _LT_SYS_MODULE_PATH_AIX
  1051. +# -----------------------
  1052. +# Links a minimal program and checks the executable
  1053. +# for the system default hardcoded library path. In most cases,
  1054. +# this is /usr/lib:/lib, but when the MPI compilers are used
  1055. +# the location of the communication and MPI libs are included too.
  1056. +# If we don't find anything, use the default library path according
  1057. +# to the aix ld manual.
  1058. +m4_defun([_LT_SYS_MODULE_PATH_AIX],
  1059. +[m4_require([_LT_DECL_SED])dnl
  1060. +AC_LINK_IFELSE(AC_LANG_PROGRAM,[
  1061. +lt_aix_libpath_sed='
  1062. + /Import File Strings/,/^$/ {
  1063. + /^0/ {
  1064. + s/^0 *\(.*\)$/\1/
  1065. + p
  1066. + }
  1067. + }'
  1068. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  1069. +# Check for a 64-bit object if we didn't find anything.
  1070. +if test -z "$aix_libpath"; then
  1071. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  1072. +fi],[])
  1073. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  1074. +])# _LT_SYS_MODULE_PATH_AIX
  1075. +
  1076. +
  1077. +# _LT_SHELL_INIT(ARG)
  1078. +# -------------------
  1079. +m4_define([_LT_SHELL_INIT],
  1080. +[ifdef([AC_DIVERSION_NOTICE],
  1081. + [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
  1082. + [AC_DIVERT_PUSH(NOTICE)])
  1083. +$1
  1084. +AC_DIVERT_POP
  1085. +])# _LT_SHELL_INIT
  1086. +
  1087. +
  1088. +# _LT_PROG_ECHO_BACKSLASH
  1089. +# -----------------------
  1090. +# Add some code to the start of the generated configure script which
  1091. +# will find an echo command which doesn't interpret backslashes.
  1092. +m4_defun([_LT_PROG_ECHO_BACKSLASH],
  1093. +[_LT_SHELL_INIT([
  1094. +# Check that we are running under the correct shell.
  1095. +SHELL=${CONFIG_SHELL-/bin/sh}
  1096. +
  1097. +case X$lt_ECHO in
  1098. +X*--fallback-echo)
  1099. + # Remove one level of quotation (which was required for Make).
  1100. + ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
  1101. + ;;
  1102. +esac
  1103. +
  1104. +ECHO=${lt_ECHO-echo}
  1105. +if test "X[$]1" = X--no-reexec; then
  1106. + # Discard the --no-reexec flag, and continue.
  1107. + shift
  1108. +elif test "X[$]1" = X--fallback-echo; then
  1109. + # Avoid inline document here, it may be left over
  1110. + :
  1111. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  1112. + # Yippee, $ECHO works!
  1113. + :
  1114. +else
  1115. + # Restart under the correct shell.
  1116. + exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
  1117. +fi
  1118. +
  1119. +if test "X[$]1" = X--fallback-echo; then
  1120. + # used as fallback echo
  1121. + shift
  1122. + cat <<_LT_EOF
  1123. +[$]*
  1124. +_LT_EOF
  1125. + exit 0
  1126. +fi
  1127. +
  1128. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  1129. +# if CDPATH is set.
  1130. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  1131. +
  1132. +if test -z "$lt_ECHO"; then
  1133. + if test "X${echo_test_string+set}" != Xset; then
  1134. + # find a string as large as possible, as long as the shell can cope with it
  1135. + for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
  1136. + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  1137. + if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  1138. + { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  1139. + then
  1140. + break
  1141. + fi
  1142. + done
  1143. + fi
  1144. +
  1145. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  1146. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  1147. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1148. + :
  1149. + else
  1150. + # The Solaris, AIX, and Digital Unix default echo programs unquote
  1151. + # backslashes. This makes it impossible to quote backslashes using
  1152. + # echo "$something" | sed 's/\\/\\\\/g'
  1153. + #
  1154. + # So, first we look for a working echo in the user's PATH.
  1155. +
  1156. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  1157. + for dir in $PATH /usr/ucb; do
  1158. + IFS="$lt_save_ifs"
  1159. + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  1160. + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  1161. + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  1162. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1163. + ECHO="$dir/echo"
  1164. + break
  1165. + fi
  1166. + done
  1167. + IFS="$lt_save_ifs"
  1168. +
  1169. + if test "X$ECHO" = Xecho; then
  1170. + # We didn't find a better echo, so look for alternatives.
  1171. + if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  1172. + echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  1173. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1174. + # This shell has a builtin print -r that does the trick.
  1175. + ECHO='print -r'
  1176. + elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  1177. + test "X$CONFIG_SHELL" != X/bin/ksh; then
  1178. + # If we have ksh, try running configure again with it.
  1179. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  1180. + export ORIGINAL_CONFIG_SHELL
  1181. + CONFIG_SHELL=/bin/ksh
  1182. + export CONFIG_SHELL
  1183. + exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
  1184. + else
  1185. + # Try using printf.
  1186. + ECHO='printf %s\n'
  1187. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  1188. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  1189. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1190. + # Cool, printf works
  1191. + :
  1192. + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  1193. + test "X$echo_testing_string" = 'X\t' &&
  1194. + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  1195. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1196. + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  1197. + export CONFIG_SHELL
  1198. + SHELL="$CONFIG_SHELL"
  1199. + export SHELL
  1200. + ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
  1201. + elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  1202. + test "X$echo_testing_string" = 'X\t' &&
  1203. + echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  1204. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1205. + ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
  1206. + else
  1207. + # maybe with a smaller string...
  1208. + prev=:
  1209. +
  1210. + for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
  1211. + if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  1212. + then
  1213. + break
  1214. + fi
  1215. + prev="$cmd"
  1216. + done
  1217. +
  1218. + if test "$prev" != 'sed 50q "[$]0"'; then
  1219. + echo_test_string=`eval $prev`
  1220. + export echo_test_string
  1221. + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
  1222. + else
  1223. + # Oops. We lost completely, so just stick with echo.
  1224. + ECHO=echo
  1225. + fi
  1226. + fi
  1227. + fi
  1228. + fi
  1229. + fi
  1230. +fi
  1231. +
  1232. +# Copy echo and quote the copy suitably for passing to libtool from
  1233. +# the Makefile, instead of quoting the original, which is used later.
  1234. +lt_ECHO=$ECHO
  1235. +if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
  1236. + lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
  1237. +fi
  1238. +
  1239. +AC_SUBST(lt_ECHO)
  1240. +])
  1241. +_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
  1242. +_LT_DECL([], [ECHO], [1],
  1243. + [An echo program that does not interpret backslashes])
  1244. +])# _LT_PROG_ECHO_BACKSLASH
  1245. +
  1246. +
  1247. +# _LT_ENABLE_LOCK
  1248. +# ---------------
  1249. +m4_defun([_LT_ENABLE_LOCK],
  1250. +[AC_ARG_ENABLE([libtool-lock],
  1251. + [AS_HELP_STRING([--disable-libtool-lock],
  1252. + [avoid locking (might break parallel builds)])])
  1253. +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  1254. +
  1255. +# Some flags need to be propagated to the compiler or linker for good
  1256. +# libtool support.
  1257. +case $host in
  1258. +ia64-*-hpux*)
  1259. + # Find out which ABI we are using.
  1260. + echo 'int i;' > conftest.$ac_ext
  1261. + if AC_TRY_EVAL(ac_compile); then
  1262. + case `/usr/bin/file conftest.$ac_objext` in
  1263. + *ELF-32*)
  1264. + HPUX_IA64_MODE="32"
  1265. + ;;
  1266. + *ELF-64*)
  1267. + HPUX_IA64_MODE="64"
  1268. + ;;
  1269. + esac
  1270. + fi
  1271. + rm -rf conftest*
  1272. + ;;
  1273. +*-*-irix6*)
  1274. + # Find out which ABI we are using.
  1275. + echo '[#]line __oline__ "configure"' > conftest.$ac_ext
  1276. + if AC_TRY_EVAL(ac_compile); then
  1277. + if test "$lt_cv_prog_gnu_ld" = yes; then
  1278. + case `/usr/bin/file conftest.$ac_objext` in
  1279. + *32-bit*)
  1280. + LD="${LD-ld} -melf32bsmip"
  1281. + ;;
  1282. + *N32*)
  1283. + LD="${LD-ld} -melf32bmipn32"
  1284. + ;;
  1285. + *64-bit*)
  1286. + LD="${LD-ld} -melf64bmip"
  1287. + ;;
  1288. + esac
  1289. + else
  1290. + case `/usr/bin/file conftest.$ac_objext` in
  1291. + *32-bit*)
  1292. + LD="${LD-ld} -32"
  1293. + ;;
  1294. + *N32*)
  1295. + LD="${LD-ld} -n32"
  1296. + ;;
  1297. + *64-bit*)
  1298. + LD="${LD-ld} -64"
  1299. + ;;
  1300. + esac
  1301. + fi
  1302. + fi
  1303. + rm -rf conftest*
  1304. + ;;
  1305. +
  1306. +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  1307. +s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  1308. + # Find out which ABI we are using.
  1309. + echo 'int i;' > conftest.$ac_ext
  1310. + if AC_TRY_EVAL(ac_compile); then
  1311. + case `/usr/bin/file conftest.o` in
  1312. + *32-bit*)
  1313. + case $host in
  1314. + x86_64-*kfreebsd*-gnu)
  1315. + LD="${LD-ld} -m elf_i386_fbsd"
  1316. + ;;
  1317. + x86_64-*linux*)
  1318. + LD="${LD-ld} -m elf_i386"
  1319. + ;;
  1320. + ppc64-*linux*|powerpc64-*linux*)
  1321. + LD="${LD-ld} -m elf32ppclinux"
  1322. + ;;
  1323. + s390x-*linux*)
  1324. + LD="${LD-ld} -m elf_s390"
  1325. + ;;
  1326. + sparc64-*linux*)
  1327. + LD="${LD-ld} -m elf32_sparc"
  1328. + ;;
  1329. + esac
  1330. + ;;
  1331. + *64-bit*)
  1332. + case $host in
  1333. + x86_64-*kfreebsd*-gnu)
  1334. + LD="${LD-ld} -m elf_x86_64_fbsd"
  1335. + ;;
  1336. + x86_64-*linux*)
  1337. + LD="${LD-ld} -m elf_x86_64"
  1338. + ;;
  1339. + ppc*-*linux*|powerpc*-*linux*)
  1340. + LD="${LD-ld} -m elf64ppc"
  1341. + ;;
  1342. + s390*-*linux*|s390*-*tpf*)
  1343. + LD="${LD-ld} -m elf64_s390"
  1344. + ;;
  1345. + sparc*-*linux*)
  1346. + LD="${LD-ld} -m elf64_sparc"
  1347. + ;;
  1348. + esac
  1349. + ;;
  1350. + esac
  1351. + fi
  1352. + rm -rf conftest*
  1353. + ;;
  1354. +
  1355. +*-*-sco3.2v5*)
  1356. + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  1357. + SAVE_CFLAGS="$CFLAGS"
  1358. + CFLAGS="$CFLAGS -belf"
  1359. + AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  1360. + [AC_LANG_PUSH(C)
  1361. + AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  1362. + AC_LANG_POP])
  1363. + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  1364. + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  1365. + CFLAGS="$SAVE_CFLAGS"
  1366. + fi
  1367. + ;;
  1368. +sparc*-*solaris*)
  1369. + # Find out which ABI we are using.
  1370. + echo 'int i;' > conftest.$ac_ext
  1371. + if AC_TRY_EVAL(ac_compile); then
  1372. + case `/usr/bin/file conftest.o` in
  1373. + *64-bit*)
  1374. + case $lt_cv_prog_gnu_ld in
  1375. + yes*) LD="${LD-ld} -m elf64_sparc" ;;
  1376. + *)
  1377. + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  1378. + LD="${LD-ld} -64"
  1379. + fi
  1380. + ;;
  1381. + esac
  1382. + ;;
  1383. + esac
  1384. + fi
  1385. + rm -rf conftest*
  1386. + ;;
  1387. +esac
  1388. +
  1389. +need_locks="$enable_libtool_lock"
  1390. +])# _LT_ENABLE_LOCK
  1391. +
  1392. +
  1393. +# _LT_CMD_OLD_ARCHIVE
  1394. +# -------------------
  1395. +m4_defun([_LT_CMD_OLD_ARCHIVE],
  1396. +[AC_CHECK_TOOL(AR, ar, false)
  1397. +test -z "$AR" && AR=ar
  1398. +test -z "$AR_FLAGS" && AR_FLAGS=cru
  1399. +_LT_DECL([], [AR], [1], [The archiver])
  1400. +_LT_DECL([], [AR_FLAGS], [1])
  1401. +
  1402. +AC_CHECK_TOOL(STRIP, strip, :)
  1403. +test -z "$STRIP" && STRIP=:
  1404. +_LT_DECL([], [STRIP], [1], [A symbol stripping program])
  1405. +
  1406. +AC_CHECK_TOOL(RANLIB, ranlib, :)
  1407. +test -z "$RANLIB" && RANLIB=:
  1408. +_LT_DECL([], [RANLIB], [1],
  1409. + [Commands used to install an old-style archive])
  1410. +
  1411. +# Determine commands to create old-style static archives.
  1412. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  1413. +old_postinstall_cmds='chmod 644 $oldlib'
  1414. +old_postuninstall_cmds=
  1415. +
  1416. +if test -n "$RANLIB"; then
  1417. + case $host_os in
  1418. + openbsd*)
  1419. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  1420. + ;;
  1421. + *)
  1422. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  1423. + ;;
  1424. + esac
  1425. + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  1426. +fi
  1427. +_LT_DECL([], [old_postinstall_cmds], [2])
  1428. +_LT_DECL([], [old_postuninstall_cmds], [2])
  1429. +_LT_TAGDECL([], [old_archive_cmds], [2],
  1430. + [Commands used to build an old-style archive])
  1431. +])# _LT_CMD_OLD_ARCHIVE
  1432. +
  1433. +
  1434. +# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1435. +# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  1436. +# ----------------------------------------------------------------
  1437. +# Check whether the given compiler option works
  1438. +AC_DEFUN([_LT_COMPILER_OPTION],
  1439. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1440. +m4_require([_LT_DECL_SED])dnl
  1441. +AC_CACHE_CHECK([$1], [$2],
  1442. + [$2=no
  1443. + m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  1444. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  1445. + lt_compiler_flag="$3"
  1446. + # Insert the option either (1) after the last *FLAGS variable, or
  1447. + # (2) before a word containing "conftest.", or (3) at the end.
  1448. + # Note that $ac_compile itself does not contain backslashes and begins
  1449. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  1450. + # The option is referenced via a variable to avoid confusing sed.
  1451. + lt_compile=`echo "$ac_compile" | $SED \
  1452. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  1453. + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  1454. + -e 's:$: $lt_compiler_flag:'`
  1455. + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  1456. + (eval "$lt_compile" 2>conftest.err)
  1457. + ac_status=$?
  1458. + cat conftest.err >&AS_MESSAGE_LOG_FD
  1459. + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1460. + if (exit $ac_status) && test -s "$ac_outfile"; then
  1461. + # The compiler can only warn and ignore the option if not recognized
  1462. + # So say no if there are warnings other than the usual output.
  1463. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  1464. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  1465. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  1466. + $2=yes
  1467. + fi
  1468. + fi
  1469. + $RM conftest*
  1470. +])
  1471. +
  1472. +if test x"[$]$2" = xyes; then
  1473. + m4_if([$5], , :, [$5])
  1474. +else
  1475. + m4_if([$6], , :, [$6])
  1476. +fi
  1477. +])# _LT_COMPILER_OPTION
  1478. +
  1479. +# Old name:
  1480. +AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
  1481. +dnl aclocal-1.4 backwards compatibility:
  1482. +dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
  1483. +
  1484. +
  1485. +# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1486. +# [ACTION-SUCCESS], [ACTION-FAILURE])
  1487. +# ----------------------------------------------------
  1488. +# Check whether the given linker option works
  1489. +AC_DEFUN([_LT_LINKER_OPTION],
  1490. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1491. +m4_require([_LT_DECL_SED])dnl
  1492. +AC_CACHE_CHECK([$1], [$2],
  1493. + [$2=no
  1494. + save_LDFLAGS="$LDFLAGS"
  1495. + LDFLAGS="$LDFLAGS $3"
  1496. + echo "$lt_simple_link_test_code" > conftest.$ac_ext
  1497. + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  1498. + # The linker can only warn and ignore the option if not recognized
  1499. + # So say no if there are warnings
  1500. + if test -s conftest.err; then
  1501. + # Append any errors to the config.log.
  1502. + cat conftest.err 1>&AS_MESSAGE_LOG_FD
  1503. + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  1504. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  1505. + if diff conftest.exp conftest.er2 >/dev/null; then
  1506. + $2=yes
  1507. + fi
  1508. + else
  1509. + $2=yes
  1510. + fi
  1511. + fi
  1512. + $RM -r conftest*
  1513. + LDFLAGS="$save_LDFLAGS"
  1514. +])
  1515. +
  1516. +if test x"[$]$2" = xyes; then
  1517. + m4_if([$4], , :, [$4])
  1518. +else
  1519. + m4_if([$5], , :, [$5])
  1520. +fi
  1521. +])# _LT_LINKER_OPTION
  1522. +
  1523. +# Old name:
  1524. +AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
  1525. +dnl aclocal-1.4 backwards compatibility:
  1526. +dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
  1527. +
  1528. +
  1529. +# LT_CMD_MAX_LEN
  1530. +#---------------
  1531. +AC_DEFUN([LT_CMD_MAX_LEN],
  1532. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  1533. +# find the maximum length of command line arguments
  1534. +AC_MSG_CHECKING([the maximum length of command line arguments])
  1535. +AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  1536. + i=0
  1537. + teststring="ABCD"
  1538. +
  1539. + case $build_os in
  1540. + msdosdjgpp*)
  1541. + # On DJGPP, this test can blow up pretty badly due to problems in libc
  1542. + # (any single argument exceeding 2000 bytes causes a buffer overrun
  1543. + # during glob expansion). Even if it were fixed, the result of this
  1544. + # check would be larger than it should be.
  1545. + lt_cv_sys_max_cmd_len=12288; # 12K is about right
  1546. + ;;
  1547. +
  1548. + gnu*)
  1549. + # Under GNU Hurd, this test is not required because there is
  1550. + # no limit to the length of command line arguments.
  1551. + # Libtool will interpret -1 as no limit whatsoever
  1552. + lt_cv_sys_max_cmd_len=-1;
  1553. + ;;
  1554. +
  1555. + cygwin* | mingw* | cegcc*)
  1556. + # On Win9x/ME, this test blows up -- it succeeds, but takes
  1557. + # about 5 minutes as the teststring grows exponentially.
  1558. + # Worse, since 9x/ME are not pre-emptively multitasking,
  1559. + # you end up with a "frozen" computer, even though with patience
  1560. + # the test eventually succeeds (with a max line length of 256k).
  1561. + # Instead, let's just punt: use the minimum linelength reported by
  1562. + # all of the supported platforms: 8192 (on NT/2K/XP).
  1563. + lt_cv_sys_max_cmd_len=8192;
  1564. + ;;
  1565. +
  1566. + amigaos*)
  1567. + # On AmigaOS with pdksh, this test takes hours, literally.
  1568. + # So we just punt and use a minimum line length of 8192.
  1569. + lt_cv_sys_max_cmd_len=8192;
  1570. + ;;
  1571. +
  1572. + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  1573. + # This has been around since 386BSD, at least. Likely further.
  1574. + if test -x /sbin/sysctl; then
  1575. + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  1576. + elif test -x /usr/sbin/sysctl; then
  1577. + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  1578. + else
  1579. + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  1580. + fi
  1581. + # And add a safety zone
  1582. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  1583. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  1584. + ;;
  1585. +
  1586. + interix*)
  1587. + # We know the value 262144 and hardcode it with a safety zone (like BSD)
  1588. + lt_cv_sys_max_cmd_len=196608
  1589. + ;;
  1590. +
  1591. + osf*)
  1592. + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  1593. + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  1594. + # nice to cause kernel panics so lets avoid the loop below.
  1595. + # First set a reasonable default.
  1596. + lt_cv_sys_max_cmd_len=16384
  1597. + #
  1598. + if test -x /sbin/sysconfig; then
  1599. + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  1600. + *1*) lt_cv_sys_max_cmd_len=-1 ;;
  1601. + esac
  1602. + fi
  1603. + ;;
  1604. + sco3.2v5*)
  1605. + lt_cv_sys_max_cmd_len=102400
  1606. + ;;
  1607. + sysv5* | sco5v6* | sysv4.2uw2*)
  1608. + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  1609. + if test -n "$kargmax"; then
  1610. + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
  1611. + else
  1612. + lt_cv_sys_max_cmd_len=32768
  1613. + fi
  1614. + ;;
  1615. + *)
  1616. + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  1617. + if test -n "$lt_cv_sys_max_cmd_len"; then
  1618. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  1619. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  1620. + else
  1621. + # Make teststring a little bigger before we do anything with it.
  1622. + # a 1K string should be a reasonable start.
  1623. + for i in 1 2 3 4 5 6 7 8 ; do
  1624. + teststring=$teststring$teststring
  1625. + done
  1626. + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  1627. + # If test is not a shell built-in, we'll probably end up computing a
  1628. + # maximum length that is only half of the actual maximum length, but
  1629. + # we can't tell.
  1630. + while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  1631. + = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  1632. + test $i != 17 # 1/2 MB should be enough
  1633. + do
  1634. + i=`expr $i + 1`
  1635. + teststring=$teststring$teststring
  1636. + done
  1637. + # Only check the string length outside the loop.
  1638. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  1639. + teststring=
  1640. + # Add a significant safety factor because C++ compilers can tack on
  1641. + # massive amounts of additional arguments before passing them to the
  1642. + # linker. It appears as though 1/2 is a usable value.
  1643. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  1644. + fi
  1645. + ;;
  1646. + esac
  1647. +])
  1648. +if test -n $lt_cv_sys_max_cmd_len ; then
  1649. + AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
  1650. +else
  1651. + AC_MSG_RESULT(none)
  1652. +fi
  1653. +max_cmd_len=$lt_cv_sys_max_cmd_len
  1654. +_LT_DECL([], [max_cmd_len], [0],
  1655. + [What is the maximum length of a command?])
  1656. +])# LT_CMD_MAX_LEN
  1657. +
  1658. +# Old name:
  1659. +AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
  1660. +dnl aclocal-1.4 backwards compatibility:
  1661. +dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
  1662. +
  1663. +
  1664. +# _LT_HEADER_DLFCN
  1665. +# ----------------
  1666. +m4_defun([_LT_HEADER_DLFCN],
  1667. +[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
  1668. +])# _LT_HEADER_DLFCN
  1669. +
  1670. +
  1671. +# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  1672. +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  1673. +# ----------------------------------------------------------------
  1674. +m4_defun([_LT_TRY_DLOPEN_SELF],
  1675. +[m4_require([_LT_HEADER_DLFCN])dnl
  1676. +if test "$cross_compiling" = yes; then :
  1677. + [$4]
  1678. +else
  1679. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  1680. + lt_status=$lt_dlunknown
  1681. + cat > conftest.$ac_ext <<_LT_EOF
  1682. +[#line __oline__ "configure"
  1683. +#include "confdefs.h"
  1684. +
  1685. +#if HAVE_DLFCN_H
  1686. +#include <dlfcn.h>
  1687. +#endif
  1688. +
  1689. +#include <stdio.h>
  1690. +
  1691. +#ifdef RTLD_GLOBAL
  1692. +# define LT_DLGLOBAL RTLD_GLOBAL
  1693. #else
  1694. -#include <linux/if_arp.h>
  1695. -#include <linux/if_ether.h>
  1696. +# ifdef DL_GLOBAL
  1697. +# define LT_DLGLOBAL DL_GLOBAL
  1698. +# else
  1699. +# define LT_DLGLOBAL 0
  1700. +# endif
  1701. #endif
  1702. -#if (PF_PACKET)
  1703. -#ifndef SOL_PACKET
  1704. -#define SOL_PACKET 263
  1705. -#endif /* SOL_PACKET */
  1706. -#include <linux/if_packet.h>
  1707. +
  1708. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  1709. + find out it does not work in some platform. */
  1710. +#ifndef LT_DLLAZY_OR_NOW
  1711. +# ifdef RTLD_LAZY
  1712. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  1713. +# else
  1714. +# ifdef DL_LAZY
  1715. +# define LT_DLLAZY_OR_NOW DL_LAZY
  1716. +# else
  1717. +# ifdef RTLD_NOW
  1718. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  1719. +# else
  1720. +# ifdef DL_NOW
  1721. +# define LT_DLLAZY_OR_NOW DL_NOW
  1722. +# else
  1723. +# define LT_DLLAZY_OR_NOW 0
  1724. +# endif
  1725. +# endif
  1726. +# endif
  1727. +# endif
  1728. #endif
  1729. -#include <stdlib.h>
  1730. -#include <linux/sockios.h>
  1731. -int
  1732. -main()
  1733. +void fnord() { int i=42;}
  1734. +int main ()
  1735. {
  1736. -#if (PF_PACKET)
  1737. - int fd;
  1738. - struct sockaddr_ll sa;
  1739. - struct ifreq ifr;
  1740. - struct packet_mreq mr;
  1741. - char *device ="lo";
  1742. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  1743. + int status = $lt_dlunknown;
  1744. - fd = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL));
  1745. - if (fd == -1)
  1746. + if (self)
  1747. {
  1748. - printf("choked");
  1749. - exit (EXIT_FAILURE);
  1750. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  1751. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  1752. + /* dlclose (self); */
  1753. }
  1754. + else
  1755. + puts (dlerror ());
  1756. - memset(&sa, 0, sizeof(sa));
  1757. - strcpy(ifr.ifr_name, device);
  1758. - if (ioctl(fd, SIOCGIFINDEX, &ifr) < 0)
  1759. - {
  1760. - printf("choked");
  1761. - exit (EXIT_FAILURE);
  1762. - }
  1763. - sa.sll_family = AF_PACKET;
  1764. - sa.sll_ifindex = ifr.ifr_ifindex;
  1765. - sa.sll_protocol = htons(ETH_P_ALL);
  1766. + return status;
  1767. +}]
  1768. +_LT_EOF
  1769. + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  1770. + (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
  1771. + lt_status=$?
  1772. + case x$lt_status in
  1773. + x$lt_dlno_uscore) $1 ;;
  1774. + x$lt_dlneed_uscore) $2 ;;
  1775. + x$lt_dlunknown|x*) $3 ;;
  1776. + esac
  1777. + else :
  1778. + # compilation failed
  1779. + $3
  1780. + fi
  1781. +fi
  1782. +rm -fr conftest*
  1783. +])# _LT_TRY_DLOPEN_SELF
  1784. - memset(&mr, 0, sizeof (mr));
  1785. - mr.mr_ifindex = sa.sll_ifindex;
  1786. - mr.mr_type = PACKET_MR_ALLMULTI;
  1787. - if (setsockopt(fd, SOL_PACKET, PACKET_ADD_MEMBERSHIP, (char *)&mr,
  1788. - sizeof (mr)) < 0)
  1789. - {
  1790. - printf("choked\n");
  1791. - exit (EXIT_FAILURE);
  1792. +# LT_SYS_DLOPEN_SELF
  1793. +# ------------------
  1794. +AC_DEFUN([LT_SYS_DLOPEN_SELF],
  1795. +[m4_require([_LT_HEADER_DLFCN])dnl
  1796. +if test "x$enable_dlopen" != xyes; then
  1797. + enable_dlopen=unknown
  1798. + enable_dlopen_self=unknown
  1799. + enable_dlopen_self_static=unknown
  1800. +else
  1801. + lt_cv_dlopen=no
  1802. + lt_cv_dlopen_libs=
  1803. +
  1804. + case $host_os in
  1805. + beos*)
  1806. + lt_cv_dlopen="load_add_on"
  1807. + lt_cv_dlopen_libs=
  1808. + lt_cv_dlopen_self=yes
  1809. + ;;
  1810. +
  1811. + mingw* | pw32* | cegcc*)
  1812. + lt_cv_dlopen="LoadLibrary"
  1813. + lt_cv_dlopen_libs=
  1814. + ;;
  1815. +
  1816. + cygwin*)
  1817. + lt_cv_dlopen="dlopen"
  1818. + lt_cv_dlopen_libs=
  1819. + ;;
  1820. +
  1821. + darwin*)
  1822. + # if libdl is installed we need to link against it
  1823. + AC_CHECK_LIB([dl], [dlopen],
  1824. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
  1825. + lt_cv_dlopen="dyld"
  1826. + lt_cv_dlopen_libs=
  1827. + lt_cv_dlopen_self=yes
  1828. + ])
  1829. + ;;
  1830. +
  1831. + *)
  1832. + AC_CHECK_FUNC([shl_load],
  1833. + [lt_cv_dlopen="shl_load"],
  1834. + [AC_CHECK_LIB([dld], [shl_load],
  1835. + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
  1836. + [AC_CHECK_FUNC([dlopen],
  1837. + [lt_cv_dlopen="dlopen"],
  1838. + [AC_CHECK_LIB([dl], [dlopen],
  1839. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
  1840. + [AC_CHECK_LIB([svld], [dlopen],
  1841. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  1842. + [AC_CHECK_LIB([dld], [dld_link],
  1843. + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
  1844. + ])
  1845. + ])
  1846. + ])
  1847. + ])
  1848. + ])
  1849. + ;;
  1850. + esac
  1851. +
  1852. + if test "x$lt_cv_dlopen" != xno; then
  1853. + enable_dlopen=yes
  1854. + else
  1855. + enable_dlopen=no
  1856. + fi
  1857. +
  1858. + case $lt_cv_dlopen in
  1859. + dlopen)
  1860. + save_CPPFLAGS="$CPPFLAGS"
  1861. + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  1862. +
  1863. + save_LDFLAGS="$LDFLAGS"
  1864. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  1865. +
  1866. + save_LIBS="$LIBS"
  1867. + LIBS="$lt_cv_dlopen_libs $LIBS"
  1868. +
  1869. + AC_CACHE_CHECK([whether a program can dlopen itself],
  1870. + lt_cv_dlopen_self, [dnl
  1871. + _LT_TRY_DLOPEN_SELF(
  1872. + lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  1873. + lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  1874. + ])
  1875. +
  1876. + if test "x$lt_cv_dlopen_self" = xyes; then
  1877. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  1878. + AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  1879. + lt_cv_dlopen_self_static, [dnl
  1880. + _LT_TRY_DLOPEN_SELF(
  1881. + lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  1882. + lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
  1883. + ])
  1884. + fi
  1885. +
  1886. + CPPFLAGS="$save_CPPFLAGS"
  1887. + LDFLAGS="$save_LDFLAGS"
  1888. + LIBS="$save_LIBS"
  1889. + ;;
  1890. + esac
  1891. +
  1892. + case $lt_cv_dlopen_self in
  1893. + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  1894. + *) enable_dlopen_self=unknown ;;
  1895. + esac
  1896. +
  1897. + case $lt_cv_dlopen_self_static in
  1898. + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  1899. + *) enable_dlopen_self_static=unknown ;;
  1900. + esac
  1901. +fi
  1902. +_LT_DECL([dlopen_support], [enable_dlopen], [0],
  1903. + [Whether dlopen is supported])
  1904. +_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
  1905. + [Whether dlopen of programs is supported])
  1906. +_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
  1907. + [Whether dlopen of statically linked programs is supported])
  1908. +])# LT_SYS_DLOPEN_SELF
  1909. +
  1910. +# Old name:
  1911. +AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
  1912. +dnl aclocal-1.4 backwards compatibility:
  1913. +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
  1914. +
  1915. +
  1916. +# _LT_COMPILER_C_O([TAGNAME])
  1917. +# ---------------------------
  1918. +# Check to see if options -c and -o are simultaneously supported by compiler.
  1919. +# This macro does not hard code the compiler like AC_PROG_CC_C_O.
  1920. +m4_defun([_LT_COMPILER_C_O],
  1921. +[m4_require([_LT_DECL_SED])dnl
  1922. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1923. +m4_require([_LT_TAG_COMPILER])dnl
  1924. +AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  1925. + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  1926. + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  1927. + $RM -r conftest 2>/dev/null
  1928. + mkdir conftest
  1929. + cd conftest
  1930. + mkdir out
  1931. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  1932. +
  1933. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  1934. + # Insert the option either (1) after the last *FLAGS variable, or
  1935. + # (2) before a word containing "conftest.", or (3) at the end.
  1936. + # Note that $ac_compile itself does not contain backslashes and begins
  1937. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  1938. + lt_compile=`echo "$ac_compile" | $SED \
  1939. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  1940. + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  1941. + -e 's:$: $lt_compiler_flag:'`
  1942. + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  1943. + (eval "$lt_compile" 2>out/conftest.err)
  1944. + ac_status=$?
  1945. + cat out/conftest.err >&AS_MESSAGE_LOG_FD
  1946. + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1947. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  1948. + then
  1949. + # The compiler can only warn and ignore the option if not recognized
  1950. + # So say no if there are warnings
  1951. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  1952. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  1953. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  1954. + _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  1955. + fi
  1956. + fi
  1957. + chmod u+w . 2>&AS_MESSAGE_LOG_FD
  1958. + $RM conftest*
  1959. + # SGI C++ compiler will create directory out/ii_files/ for
  1960. + # template instantiation
  1961. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  1962. + $RM out/* && rmdir out
  1963. + cd ..
  1964. + $RM -r conftest
  1965. + $RM conftest*
  1966. +])
  1967. +_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
  1968. + [Does compiler simultaneously support -c and -o options?])
  1969. +])# _LT_COMPILER_C_O
  1970. +
  1971. +
  1972. +# _LT_COMPILER_FILE_LOCKS([TAGNAME])
  1973. +# ----------------------------------
  1974. +# Check to see if we can do hard links to lock some files if needed
  1975. +m4_defun([_LT_COMPILER_FILE_LOCKS],
  1976. +[m4_require([_LT_ENABLE_LOCK])dnl
  1977. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1978. +_LT_COMPILER_C_O([$1])
  1979. +
  1980. +hard_links="nottested"
  1981. +if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  1982. + # do not overwrite the value of need_locks provided by the user
  1983. + AC_MSG_CHECKING([if we can lock with hard links])
  1984. + hard_links=yes
  1985. + $RM conftest*
  1986. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  1987. + touch conftest.a
  1988. + ln conftest.a conftest.b 2>&5 || hard_links=no
  1989. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  1990. + AC_MSG_RESULT([$hard_links])
  1991. + if test "$hard_links" = no; then
  1992. + AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
  1993. + need_locks=warn
  1994. + fi
  1995. +else
  1996. + need_locks=no
  1997. +fi
  1998. +_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
  1999. +])# _LT_COMPILER_FILE_LOCKS
  2000. +
  2001. +
  2002. +# _LT_CHECK_OBJDIR
  2003. +# ----------------
  2004. +m4_defun([_LT_CHECK_OBJDIR],
  2005. +[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  2006. +[rm -f .libs 2>/dev/null
  2007. +mkdir .libs 2>/dev/null
  2008. +if test -d .libs; then
  2009. + lt_cv_objdir=.libs
  2010. +else
  2011. + # MS-DOS does not allow filenames that begin with a dot.
  2012. + lt_cv_objdir=_libs
  2013. +fi
  2014. +rmdir .libs 2>/dev/null])
  2015. +objdir=$lt_cv_objdir
  2016. +_LT_DECL([], [objdir], [0],
  2017. + [The name of the directory that contains temporary libtool files])dnl
  2018. +m4_pattern_allow([LT_OBJDIR])dnl
  2019. +AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
  2020. + [Define to the sub-directory in which libtool stores uninstalled libraries.])
  2021. +])# _LT_CHECK_OBJDIR
  2022. +
  2023. +
  2024. +# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
  2025. +# --------------------------------------
  2026. +# Check hardcoding attributes.
  2027. +m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
  2028. +[AC_MSG_CHECKING([how to hardcode library paths into programs])
  2029. +_LT_TAGVAR(hardcode_action, $1)=
  2030. +if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
  2031. + test -n "$_LT_TAGVAR(runpath_var, $1)" ||
  2032. + test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  2033. +
  2034. + # We can hardcode non-existent directories.
  2035. + if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
  2036. + # If the only mechanism to avoid hardcoding is shlibpath_var, we
  2037. + # have to relink, otherwise we might link with an installed library
  2038. + # when we should be linking with a yet-to-be-installed one
  2039. + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  2040. + test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
  2041. + # Linking always hardcodes the temporary library directory.
  2042. + _LT_TAGVAR(hardcode_action, $1)=relink
  2043. + else
  2044. + # We can link without hardcoding, and we can hardcode nonexisting dirs.
  2045. + _LT_TAGVAR(hardcode_action, $1)=immediate
  2046. + fi
  2047. +else
  2048. + # We cannot hardcode anything, or else we can only hardcode existing
  2049. + # directories.
  2050. + _LT_TAGVAR(hardcode_action, $1)=unsupported
  2051. +fi
  2052. +AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
  2053. +
  2054. +if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
  2055. + test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
  2056. + # Fast installation is not supported
  2057. + enable_fast_install=no
  2058. +elif test "$shlibpath_overrides_runpath" = yes ||
  2059. + test "$enable_shared" = no; then
  2060. + # Fast installation is not necessary
  2061. + enable_fast_install=needless
  2062. +fi
  2063. +_LT_TAGDECL([], [hardcode_action], [0],
  2064. + [How to hardcode a shared library path into an executable])
  2065. +])# _LT_LINKER_HARDCODE_LIBPATH
  2066. +
  2067. +
  2068. +# _LT_CMD_STRIPLIB
  2069. +# ----------------
  2070. +m4_defun([_LT_CMD_STRIPLIB],
  2071. +[m4_require([_LT_DECL_EGREP])
  2072. +striplib=
  2073. +old_striplib=
  2074. +AC_MSG_CHECKING([whether stripping libraries is possible])
  2075. +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  2076. + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  2077. + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  2078. + AC_MSG_RESULT([yes])
  2079. +else
  2080. +# FIXME - insert some real tests, host_os isn't really good enough
  2081. + case $host_os in
  2082. + darwin*)
  2083. + if test -n "$STRIP" ; then
  2084. + striplib="$STRIP -x"
  2085. + old_striplib="$STRIP -S"
  2086. + AC_MSG_RESULT([yes])
  2087. + else
  2088. + AC_MSG_RESULT([no])
  2089. + fi
  2090. + ;;
  2091. + *)
  2092. + AC_MSG_RESULT([no])
  2093. + ;;
  2094. + esac
  2095. +fi
  2096. +_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
  2097. +_LT_DECL([], [striplib], [1])
  2098. +])# _LT_CMD_STRIPLIB
  2099. +
  2100. +
  2101. +# _LT_SYS_DYNAMIC_LINKER([TAG])
  2102. +# -----------------------------
  2103. +# PORTME Fill in your ld.so characteristics
  2104. +m4_defun([_LT_SYS_DYNAMIC_LINKER],
  2105. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  2106. +m4_require([_LT_DECL_EGREP])dnl
  2107. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  2108. +m4_require([_LT_DECL_OBJDUMP])dnl
  2109. +m4_require([_LT_DECL_SED])dnl
  2110. +AC_MSG_CHECKING([dynamic linker characteristics])
  2111. +m4_if([$1],
  2112. + [], [
  2113. +if test "$GCC" = yes; then
  2114. + case $host_os in
  2115. + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  2116. + *) lt_awk_arg="/^libraries:/" ;;
  2117. + esac
  2118. + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  2119. + if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  2120. + # if the path contains ";" then we assume it to be the separator
  2121. + # otherwise default to the standard path separator (i.e. ":") - it is
  2122. + # assumed that no part of a normal pathname contains ";" but that should
  2123. + # okay in the real world where ";" in dirpaths is itself problematic.
  2124. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  2125. + else
  2126. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2127. + fi
  2128. + # Ok, now we have the path, separated by spaces, we can step through it
  2129. + # and add multilib dir if necessary.
  2130. + lt_tmp_lt_search_path_spec=
  2131. + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  2132. + for lt_sys_path in $lt_search_path_spec; do
  2133. + if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  2134. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  2135. + else
  2136. + test -d "$lt_sys_path" && \
  2137. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  2138. + fi
  2139. + done
  2140. + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  2141. +BEGIN {RS=" "; FS="/|\n";} {
  2142. + lt_foo="";
  2143. + lt_count=0;
  2144. + for (lt_i = NF; lt_i > 0; lt_i--) {
  2145. + if ($lt_i != "" && $lt_i != ".") {
  2146. + if ($lt_i == "..") {
  2147. + lt_count++;
  2148. + } else {
  2149. + if (lt_count == 0) {
  2150. + lt_foo="/" $lt_i lt_foo;
  2151. + } else {
  2152. + lt_count--;
  2153. + }
  2154. + }
  2155. }
  2156. - /* yay. we made it and it workz! */
  2157. - printf("yes");
  2158. -#else /* PF_PACKET */
  2159. - printf("no");
  2160. -#endif
  2161. - exit (EXIT_SUCCESS);
  2162. -}
  2163. -EOF
  2164. - ${CC-cc} -o pf_packet-test $CFLAGS pf_packet-test.c >/dev/null 2>&1
  2165. + }
  2166. + if (lt_foo != "") { lt_freq[[lt_foo]]++; }
  2167. + if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
  2168. +}'`
  2169. + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  2170. +else
  2171. + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  2172. +fi])
  2173. +library_names_spec=
  2174. +libname_spec='lib$name'
  2175. +soname_spec=
  2176. +shrext_cmds=".so"
  2177. +postinstall_cmds=
  2178. +postuninstall_cmds=
  2179. +finish_cmds=
  2180. +finish_eval=
  2181. +shlibpath_var=
  2182. +shlibpath_overrides_runpath=unknown
  2183. +version_type=none
  2184. +dynamic_linker="$host_os ld.so"
  2185. +sys_lib_dlsearch_path_spec="/lib /usr/lib"
  2186. +need_lib_prefix=unknown
  2187. +hardcode_into_libs=no
  2188. - # Oopz 4.3 BSD doesn't have this. Sorry.
  2189. - if test ! -x ./pf_packet-test ; then
  2190. - ac_libnet_have_pf_packet=choked
  2191. +# when you set need_version to no, make sure it does not cause -set_version
  2192. +# flags to be left without arguments
  2193. +need_version=unknown
  2194. +
  2195. +case $host_os in
  2196. +aix3*)
  2197. + version_type=linux
  2198. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  2199. + shlibpath_var=LIBPATH
  2200. +
  2201. + # AIX 3 has no versioning support, so we append a major version to the name.
  2202. + soname_spec='${libname}${release}${shared_ext}$major'
  2203. + ;;
  2204. +
  2205. +aix[[4-9]]*)
  2206. + version_type=linux
  2207. + need_lib_prefix=no
  2208. + need_version=no
  2209. + hardcode_into_libs=yes
  2210. + if test "$host_cpu" = ia64; then
  2211. + # AIX 5 supports IA64
  2212. + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  2213. + shlibpath_var=LD_LIBRARY_PATH
  2214. + else
  2215. + # With GCC up to 2.95.x, collect2 would create an import file
  2216. + # for dependence libraries. The import file would start with
  2217. + # the line `#! .'. This would cause the generated library to
  2218. + # depend on `.', always an invalid library. This was fixed in
  2219. + # development snapshots of GCC prior to 3.0.
  2220. + case $host_os in
  2221. + aix4 | aix4.[[01]] | aix4.[[01]].*)
  2222. + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  2223. + echo ' yes '
  2224. + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  2225. + :
  2226. + else
  2227. + can_build_shared=no
  2228. + fi
  2229. + ;;
  2230. + esac
  2231. + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  2232. + # soname into executable. Probably we can add versioning support to
  2233. + # collect2, so additional links can be useful in future.
  2234. + if test "$aix_use_runtimelinking" = yes; then
  2235. + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  2236. + # instead of lib<name>.a to let people know that these are not
  2237. + # typical AIX shared libraries.
  2238. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2239. else
  2240. - ac_libnet_have_pf_packet=`./pf_packet-test`;
  2241. + # We preserve .a as extension for shared libraries through AIX4.2
  2242. + # and later when we are not doing run time linking.
  2243. + library_names_spec='${libname}${release}.a $libname.a'
  2244. + soname_spec='${libname}${release}${shared_ext}$major'
  2245. fi
  2246. + shlibpath_var=LIBPATH
  2247. + fi
  2248. + ;;
  2249. - if test $ac_libnet_have_pf_packet = choked; then
  2250. - AC_MSG_RESULT(test program choked... assuming no)
  2251. - elif test $ac_libnet_have_pf_packet = yes; then
  2252. - AC_DEFINE(HAVE_PF_PACKET)
  2253. - LIBNET_CONFIG_DEFINES="$LIBNET_CONFIG_DEFINES -DHAVE_PF_PACKET"
  2254. +amigaos*)
  2255. + case $host_cpu in
  2256. + powerpc)
  2257. + # Since July 2007 AmigaOS4 officially supports .so libraries.
  2258. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  2259. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2260. + ;;
  2261. + m68k)
  2262. + library_names_spec='$libname.ixlibrary $libname.a'
  2263. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  2264. + 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'
  2265. + ;;
  2266. + esac
  2267. + ;;
  2268. +
  2269. +beos*)
  2270. + library_names_spec='${libname}${shared_ext}'
  2271. + dynamic_linker="$host_os ld.so"
  2272. + shlibpath_var=LIBRARY_PATH
  2273. + ;;
  2274. +
  2275. +bsdi[[45]]*)
  2276. + version_type=linux
  2277. + need_version=no
  2278. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2279. + soname_spec='${libname}${release}${shared_ext}$major'
  2280. + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  2281. + shlibpath_var=LD_LIBRARY_PATH
  2282. + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  2283. + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  2284. + # the default ld.so.conf also contains /usr/contrib/lib and
  2285. + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  2286. + # libtool to hard-code these into programs
  2287. + ;;
  2288. +
  2289. +cygwin* | mingw* | pw32* | cegcc*)
  2290. + version_type=windows
  2291. + shrext_cmds=".dll"
  2292. + need_version=no
  2293. + need_lib_prefix=no
  2294. +
  2295. + case $GCC,$host_os in
  2296. + yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  2297. + library_names_spec='$libname.dll.a'
  2298. + # DLL is installed to $(libdir)/../bin by postinstall_cmds
  2299. + postinstall_cmds='base_file=`basename \${file}`~
  2300. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  2301. + dldir=$destdir/`dirname \$dlpath`~
  2302. + test -d \$dldir || mkdir -p \$dldir~
  2303. + $install_prog $dir/$dlname \$dldir/$dlname~
  2304. + chmod a+x \$dldir/$dlname~
  2305. + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  2306. + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  2307. + fi'
  2308. + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  2309. + dlpath=$dir/\$dldll~
  2310. + $RM \$dlpath'
  2311. + shlibpath_overrides_runpath=yes
  2312. +
  2313. + case $host_os in
  2314. + cygwin*)
  2315. + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  2316. + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2317. + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  2318. + ;;
  2319. + mingw* | cegcc*)
  2320. + # MinGW DLLs use traditional 'lib' prefix
  2321. + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2322. + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  2323. + if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
  2324. + # It is most probably a Windows format PATH printed by
  2325. + # mingw gcc, but we are running on Cygwin. Gcc prints its search
  2326. + # path with ; separators, and with drive letters. We can handle the
  2327. + # drive letters (cygwin fileutils understands them), so leave them,
  2328. + # especially as we might pass files found there to a mingw objdump,
  2329. + # which wouldn't understand a cygwinified path. Ahh.
  2330. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  2331. + else
  2332. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2333. + fi
  2334. + ;;
  2335. + pw32*)
  2336. + # pw32 DLLs use 'pw' prefix rather than 'lib'
  2337. + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2338. + ;;
  2339. + esac
  2340. + ;;
  2341. +
  2342. + *)
  2343. + library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
  2344. + ;;
  2345. + esac
  2346. + dynamic_linker='Win32 ld.exe'
  2347. + # FIXME: first we should search . and the directory the executable is in
  2348. + shlibpath_var=PATH
  2349. + ;;
  2350. +
  2351. +darwin* | rhapsody*)
  2352. + dynamic_linker="$host_os dyld"
  2353. + version_type=darwin
  2354. + need_lib_prefix=no
  2355. + need_version=no
  2356. + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  2357. + soname_spec='${libname}${release}${major}$shared_ext'
  2358. + shlibpath_overrides_runpath=yes
  2359. + shlibpath_var=DYLD_LIBRARY_PATH
  2360. + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  2361. +m4_if([$1], [],[
  2362. + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
  2363. + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  2364. + ;;
  2365. +
  2366. +dgux*)
  2367. + version_type=linux
  2368. + need_lib_prefix=no
  2369. + need_version=no
  2370. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  2371. + soname_spec='${libname}${release}${shared_ext}$major'
  2372. + shlibpath_var=LD_LIBRARY_PATH
  2373. + ;;
  2374. +
  2375. +freebsd1*)
  2376. + dynamic_linker=no
  2377. + ;;
  2378. +
  2379. +freebsd* | dragonfly*)
  2380. + # DragonFly does not have aout. When/if they implement a new
  2381. + # versioning mechanism, adjust this.
  2382. + if test -x /usr/bin/objformat; then
  2383. + objformat=`/usr/bin/objformat`
  2384. + else
  2385. + case $host_os in
  2386. + freebsd[[123]]*) objformat=aout ;;
  2387. + *) objformat=elf ;;
  2388. + esac
  2389. + fi
  2390. + # Handle Gentoo/FreeBSD as it was Linux
  2391. + case $host_vendor in
  2392. + gentoo)
  2393. + version_type=linux ;;
  2394. + *)
  2395. + version_type=freebsd-$objformat ;;
  2396. + esac
  2397. +
  2398. + case $version_type in
  2399. + freebsd-elf*)
  2400. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  2401. + need_version=no
  2402. + need_lib_prefix=no
  2403. + ;;
  2404. + freebsd-*)
  2405. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  2406. + need_version=yes
  2407. + ;;
  2408. + linux)
  2409. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2410. + soname_spec='${libname}${release}${shared_ext}$major'
  2411. + need_lib_prefix=no
  2412. + need_version=no
  2413. + ;;
  2414. + esac
  2415. + shlibpath_var=LD_LIBRARY_PATH
  2416. + case $host_os in
  2417. + freebsd2*)
  2418. + shlibpath_overrides_runpath=yes
  2419. + ;;
  2420. + freebsd3.[[01]]* | freebsdelf3.[[01]]*)
  2421. + shlibpath_overrides_runpath=yes
  2422. + hardcode_into_libs=yes
  2423. + ;;
  2424. + freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
  2425. + freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
  2426. + shlibpath_overrides_runpath=no
  2427. + hardcode_into_libs=yes
  2428. + ;;
  2429. + *) # from 4.6 on, and DragonFly
  2430. + shlibpath_overrides_runpath=yes
  2431. + hardcode_into_libs=yes
  2432. + ;;
  2433. + esac
  2434. + ;;
  2435. +
  2436. +gnu*)
  2437. + version_type=linux
  2438. + need_lib_prefix=no
  2439. + need_version=no
  2440. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  2441. + soname_spec='${libname}${release}${shared_ext}$major'
  2442. + shlibpath_var=LD_LIBRARY_PATH
  2443. + hardcode_into_libs=yes
  2444. + ;;
  2445. +
  2446. +hpux9* | hpux10* | hpux11*)
  2447. + # Give a soname corresponding to the major version so that dld.sl refuses to
  2448. + # link against other versions.
  2449. + version_type=sunos
  2450. + need_lib_prefix=no
  2451. + need_version=no
  2452. + case $host_cpu in
  2453. + ia64*)
  2454. + shrext_cmds='.so'
  2455. + hardcode_into_libs=yes
  2456. + dynamic_linker="$host_os dld.so"
  2457. + shlibpath_var=LD_LIBRARY_PATH
  2458. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2459. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2460. + soname_spec='${libname}${release}${shared_ext}$major'
  2461. + if test "X$HPUX_IA64_MODE" = X32; then
  2462. + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  2463. + else
  2464. + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  2465. fi
  2466. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2467. + ;;
  2468. + hppa*64*)
  2469. + shrext_cmds='.sl'
  2470. + hardcode_into_libs=yes
  2471. + dynamic_linker="$host_os dld.sl"
  2472. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  2473. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2474. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2475. + soname_spec='${libname}${release}${shared_ext}$major'
  2476. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  2477. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2478. + ;;
  2479. + *)
  2480. + shrext_cmds='.sl'
  2481. + dynamic_linker="$host_os dld.sl"
  2482. + shlibpath_var=SHLIB_PATH
  2483. + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  2484. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2485. + soname_spec='${libname}${release}${shared_ext}$major'
  2486. + ;;
  2487. + esac
  2488. + # HP-UX runs *really* slowly unless shared libraries are mode 555.
  2489. + postinstall_cmds='chmod 555 $lib'
  2490. + ;;
  2491. - if test $ac_libnet_have_pf_packet != choked; then
  2492. - AC_MSG_RESULT($ac_libnet_have_pf_packet)
  2493. +interix[[3-9]]*)
  2494. + version_type=linux
  2495. + need_lib_prefix=no
  2496. + need_version=no
  2497. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2498. + soname_spec='${libname}${release}${shared_ext}$major'
  2499. + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  2500. + shlibpath_var=LD_LIBRARY_PATH
  2501. + shlibpath_overrides_runpath=no
  2502. + hardcode_into_libs=yes
  2503. + ;;
  2504. +
  2505. +irix5* | irix6* | nonstopux*)
  2506. + case $host_os in
  2507. + nonstopux*) version_type=nonstopux ;;
  2508. + *)
  2509. + if test "$lt_cv_prog_gnu_ld" = yes; then
  2510. + version_type=linux
  2511. + else
  2512. + version_type=irix
  2513. + fi ;;
  2514. + esac
  2515. + need_lib_prefix=no
  2516. + need_version=no
  2517. + soname_spec='${libname}${release}${shared_ext}$major'
  2518. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  2519. + case $host_os in
  2520. + irix5* | nonstopux*)
  2521. + libsuff= shlibsuff=
  2522. + ;;
  2523. + *)
  2524. + case $LD in # libtool.m4 will add one of these switches to LD
  2525. + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  2526. + libsuff= shlibsuff= libmagic=32-bit;;
  2527. + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  2528. + libsuff=32 shlibsuff=N32 libmagic=N32;;
  2529. + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  2530. + libsuff=64 shlibsuff=64 libmagic=64-bit;;
  2531. + *) libsuff= shlibsuff= libmagic=never-match;;
  2532. + esac
  2533. + ;;
  2534. + esac
  2535. + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  2536. + shlibpath_overrides_runpath=no
  2537. + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  2538. + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  2539. + hardcode_into_libs=yes
  2540. + ;;
  2541. +
  2542. +# No shared lib support for Linux oldld, aout, or coff.
  2543. +linux*oldld* | linux*aout* | linux*coff*)
  2544. + dynamic_linker=no
  2545. + ;;
  2546. +
  2547. +# This must be Linux ELF.
  2548. +linux* | k*bsd*-gnu)
  2549. + version_type=linux
  2550. + need_lib_prefix=no
  2551. + need_version=no
  2552. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2553. + soname_spec='${libname}${release}${shared_ext}$major'
  2554. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  2555. + shlibpath_var=LD_LIBRARY_PATH
  2556. + shlibpath_overrides_runpath=no
  2557. + # Some binutils ld are patched to set DT_RUNPATH
  2558. + save_LDFLAGS=$LDFLAGS
  2559. + save_libdir=$libdir
  2560. + eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
  2561. + LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
  2562. + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  2563. + [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
  2564. + [shlibpath_overrides_runpath=yes])])
  2565. + LDFLAGS=$save_LDFLAGS
  2566. + libdir=$save_libdir
  2567. +
  2568. + # This implies no fast_install, which is unacceptable.
  2569. + # Some rework will be needed to allow for fast_install
  2570. + # before this can be enabled.
  2571. + hardcode_into_libs=yes
  2572. +
  2573. + # Append ld.so.conf contents to the search path
  2574. + if test -f /etc/ld.so.conf; then
  2575. + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  2576. + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  2577. + fi
  2578. +
  2579. + # We used to test for /lib/ld.so.1 and disable shared libraries on
  2580. + # powerpc, because MkLinux only supported shared libraries with the
  2581. + # GNU dynamic linker. Since this was broken with cross compilers,
  2582. + # most powerpc-linux boxes support dynamic linking these days and
  2583. + # people can always --disable-shared, the test was removed, and we
  2584. + # assume the GNU/Linux dynamic linker is in use.
  2585. + dynamic_linker='GNU/Linux ld.so'
  2586. + ;;
  2587. +
  2588. +netbsd*)
  2589. + version_type=sunos
  2590. + need_lib_prefix=no
  2591. + need_version=no
  2592. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  2593. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2594. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2595. + dynamic_linker='NetBSD (a.out) ld.so'
  2596. + else
  2597. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2598. + soname_spec='${libname}${release}${shared_ext}$major'
  2599. + dynamic_linker='NetBSD ld.elf_so'
  2600. + fi
  2601. + shlibpath_var=LD_LIBRARY_PATH
  2602. + shlibpath_overrides_runpath=yes
  2603. + hardcode_into_libs=yes
  2604. + ;;
  2605. +
  2606. +newsos6)
  2607. + version_type=linux
  2608. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2609. + shlibpath_var=LD_LIBRARY_PATH
  2610. + shlibpath_overrides_runpath=yes
  2611. + ;;
  2612. +
  2613. +*nto* | *qnx*)
  2614. + version_type=qnx
  2615. + need_lib_prefix=no
  2616. + need_version=no
  2617. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2618. + soname_spec='${libname}${release}${shared_ext}$major'
  2619. + shlibpath_var=LD_LIBRARY_PATH
  2620. + shlibpath_overrides_runpath=no
  2621. + hardcode_into_libs=yes
  2622. + dynamic_linker='ldqnx.so'
  2623. + ;;
  2624. +
  2625. +openbsd*)
  2626. + version_type=sunos
  2627. + sys_lib_dlsearch_path_spec="/usr/lib"
  2628. + need_lib_prefix=no
  2629. + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  2630. + case $host_os in
  2631. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  2632. + *) need_version=no ;;
  2633. + esac
  2634. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2635. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2636. + shlibpath_var=LD_LIBRARY_PATH
  2637. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  2638. + case $host_os in
  2639. + openbsd2.[[89]] | openbsd2.[[89]].*)
  2640. + shlibpath_overrides_runpath=no
  2641. + ;;
  2642. + *)
  2643. + shlibpath_overrides_runpath=yes
  2644. + ;;
  2645. + esac
  2646. + else
  2647. + shlibpath_overrides_runpath=yes
  2648. + fi
  2649. + ;;
  2650. +
  2651. +os2*)
  2652. + libname_spec='$name'
  2653. + shrext_cmds=".dll"
  2654. + need_lib_prefix=no
  2655. + library_names_spec='$libname${shared_ext} $libname.a'
  2656. + dynamic_linker='OS/2 ld.exe'
  2657. + shlibpath_var=LIBPATH
  2658. + ;;
  2659. +
  2660. +osf3* | osf4* | osf5*)
  2661. + version_type=osf
  2662. + need_lib_prefix=no
  2663. + need_version=no
  2664. + soname_spec='${libname}${release}${shared_ext}$major'
  2665. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2666. + shlibpath_var=LD_LIBRARY_PATH
  2667. + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  2668. + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  2669. + ;;
  2670. +
  2671. +rdos*)
  2672. + dynamic_linker=no
  2673. + ;;
  2674. +
  2675. +solaris*)
  2676. + version_type=linux
  2677. + need_lib_prefix=no
  2678. + need_version=no
  2679. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2680. + soname_spec='${libname}${release}${shared_ext}$major'
  2681. + shlibpath_var=LD_LIBRARY_PATH
  2682. + shlibpath_overrides_runpath=yes
  2683. + hardcode_into_libs=yes
  2684. + # ldd complains unless libraries are executable
  2685. + postinstall_cmds='chmod +x $lib'
  2686. + ;;
  2687. +
  2688. +sunos4*)
  2689. + version_type=sunos
  2690. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2691. + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  2692. + shlibpath_var=LD_LIBRARY_PATH
  2693. + shlibpath_overrides_runpath=yes
  2694. + if test "$with_gnu_ld" = yes; then
  2695. + need_lib_prefix=no
  2696. + fi
  2697. + need_version=yes
  2698. + ;;
  2699. +
  2700. +sysv4 | sysv4.3*)
  2701. + version_type=linux
  2702. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2703. + soname_spec='${libname}${release}${shared_ext}$major'
  2704. + shlibpath_var=LD_LIBRARY_PATH
  2705. + case $host_vendor in
  2706. + sni)
  2707. + shlibpath_overrides_runpath=no
  2708. + need_lib_prefix=no
  2709. + runpath_var=LD_RUN_PATH
  2710. + ;;
  2711. + siemens)
  2712. + need_lib_prefix=no
  2713. + ;;
  2714. + motorola)
  2715. + need_lib_prefix=no
  2716. + need_version=no
  2717. + shlibpath_overrides_runpath=no
  2718. + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  2719. + ;;
  2720. + esac
  2721. + ;;
  2722. +
  2723. +sysv4*MP*)
  2724. + if test -d /usr/nec ;then
  2725. + version_type=linux
  2726. + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  2727. + soname_spec='$libname${shared_ext}.$major'
  2728. + shlibpath_var=LD_LIBRARY_PATH
  2729. + fi
  2730. + ;;
  2731. +
  2732. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  2733. + version_type=freebsd-elf
  2734. + need_lib_prefix=no
  2735. + need_version=no
  2736. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  2737. + soname_spec='${libname}${release}${shared_ext}$major'
  2738. + shlibpath_var=LD_LIBRARY_PATH
  2739. + shlibpath_overrides_runpath=yes
  2740. + hardcode_into_libs=yes
  2741. + if test "$with_gnu_ld" = yes; then
  2742. + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  2743. + else
  2744. + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  2745. + case $host_os in
  2746. + sco3.2v5*)
  2747. + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  2748. + ;;
  2749. + esac
  2750. + fi
  2751. + sys_lib_dlsearch_path_spec='/usr/lib'
  2752. + ;;
  2753. +
  2754. +tpf*)
  2755. + # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  2756. + version_type=linux
  2757. + need_lib_prefix=no
  2758. + need_version=no
  2759. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2760. + shlibpath_var=LD_LIBRARY_PATH
  2761. + shlibpath_overrides_runpath=no
  2762. + hardcode_into_libs=yes
  2763. + ;;
  2764. +
  2765. +uts4*)
  2766. + version_type=linux
  2767. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2768. + soname_spec='${libname}${release}${shared_ext}$major'
  2769. + shlibpath_var=LD_LIBRARY_PATH
  2770. + ;;
  2771. +
  2772. +*)
  2773. + dynamic_linker=no
  2774. + ;;
  2775. +esac
  2776. +AC_MSG_RESULT([$dynamic_linker])
  2777. +test "$dynamic_linker" = no && can_build_shared=no
  2778. +
  2779. +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  2780. +if test "$GCC" = yes; then
  2781. + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  2782. +fi
  2783. +
  2784. +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  2785. + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  2786. +fi
  2787. +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  2788. + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  2789. +fi
  2790. +
  2791. +_LT_DECL([], [variables_saved_for_relink], [1],
  2792. + [Variables whose values should be saved in libtool wrapper scripts and
  2793. + restored at link time])
  2794. +_LT_DECL([], [need_lib_prefix], [0],
  2795. + [Do we need the "lib" prefix for modules?])
  2796. +_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
  2797. +_LT_DECL([], [version_type], [0], [Library versioning type])
  2798. +_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
  2799. +_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
  2800. +_LT_DECL([], [shlibpath_overrides_runpath], [0],
  2801. + [Is shlibpath searched before the hard-coded library search path?])
  2802. +_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
  2803. +_LT_DECL([], [library_names_spec], [1],
  2804. + [[List of archive names. First name is the real one, the rest are links.
  2805. + The last name is the one that the linker finds with -lNAME]])
  2806. +_LT_DECL([], [soname_spec], [1],
  2807. + [[The coded name of the library, if different from the real name]])
  2808. +_LT_DECL([], [postinstall_cmds], [2],
  2809. + [Command to use after installation of a shared archive])
  2810. +_LT_DECL([], [postuninstall_cmds], [2],
  2811. + [Command to use after uninstallation of a shared archive])
  2812. +_LT_DECL([], [finish_cmds], [2],
  2813. + [Commands used to finish a libtool library installation in a directory])
  2814. +_LT_DECL([], [finish_eval], [1],
  2815. + [[As "finish_cmds", except a single script fragment to be evaled but
  2816. + not shown]])
  2817. +_LT_DECL([], [hardcode_into_libs], [0],
  2818. + [Whether we should hardcode library paths into libraries])
  2819. +_LT_DECL([], [sys_lib_search_path_spec], [2],
  2820. + [Compile-time system search path for libraries])
  2821. +_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
  2822. + [Run-time system search path for libraries])
  2823. +])# _LT_SYS_DYNAMIC_LINKER
  2824. +
  2825. +
  2826. +# _LT_PATH_TOOL_PREFIX(TOOL)
  2827. +# --------------------------
  2828. +# find a file program which can recognize shared library
  2829. +AC_DEFUN([_LT_PATH_TOOL_PREFIX],
  2830. +[m4_require([_LT_DECL_EGREP])dnl
  2831. +AC_MSG_CHECKING([for $1])
  2832. +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  2833. +[case $MAGIC_CMD in
  2834. +[[\\/*] | ?:[\\/]*])
  2835. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  2836. + ;;
  2837. +*)
  2838. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  2839. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  2840. +dnl $ac_dummy forces splitting on constant user-supplied paths.
  2841. +dnl POSIX.2 word splitting is done only on the output of word expansions,
  2842. +dnl not every word. This closes a longstanding sh security hole.
  2843. + ac_dummy="m4_if([$2], , $PATH, [$2])"
  2844. + for ac_dir in $ac_dummy; do
  2845. + IFS="$lt_save_ifs"
  2846. + test -z "$ac_dir" && ac_dir=.
  2847. + if test -f $ac_dir/$1; then
  2848. + lt_cv_path_MAGIC_CMD="$ac_dir/$1"
  2849. + if test -n "$file_magic_test_file"; then
  2850. + case $deplibs_check_method in
  2851. + "file_magic "*)
  2852. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  2853. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  2854. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  2855. + $EGREP "$file_magic_regex" > /dev/null; then
  2856. + :
  2857. + else
  2858. + cat <<_LT_EOF 1>&2
  2859. +
  2860. +*** Warning: the command libtool uses to detect shared libraries,
  2861. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  2862. +*** The result is that libtool may fail to recognize shared libraries
  2863. +*** as such. This will affect the creation of libtool libraries that
  2864. +*** depend on shared libraries, but programs linked with such libtool
  2865. +*** libraries will work regardless of this problem. Nevertheless, you
  2866. +*** may want to report the problem to your system manager and/or to
  2867. +*** bug-libtool@gnu.org
  2868. +
  2869. +_LT_EOF
  2870. + fi ;;
  2871. + esac
  2872. + fi
  2873. + break
  2874. fi
  2875. - rm -f pf_packet-test* core core.pf_packet-test
  2876. + done
  2877. + IFS="$lt_save_ifs"
  2878. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  2879. + ;;
  2880. +esac])
  2881. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  2882. +if test -n "$MAGIC_CMD"; then
  2883. + AC_MSG_RESULT($MAGIC_CMD)
  2884. +else
  2885. + AC_MSG_RESULT(no)
  2886. +fi
  2887. +_LT_DECL([], [MAGIC_CMD], [0],
  2888. + [Used to examine libraries when file_magic_cmd begins with "file"])dnl
  2889. +])# _LT_PATH_TOOL_PREFIX
  2890. +
  2891. +# Old name:
  2892. +AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
  2893. +dnl aclocal-1.4 backwards compatibility:
  2894. +dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
  2895. +
  2896. +
  2897. +# _LT_PATH_MAGIC
  2898. +# --------------
  2899. +# find a file program which can recognize a shared library
  2900. +m4_defun([_LT_PATH_MAGIC],
  2901. +[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  2902. +if test -z "$lt_cv_path_MAGIC_CMD"; then
  2903. + if test -n "$ac_tool_prefix"; then
  2904. + _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  2905. + else
  2906. + MAGIC_CMD=:
  2907. + fi
  2908. +fi
  2909. +])# _LT_PATH_MAGIC
  2910. +
  2911. +
  2912. +# LT_PATH_LD
  2913. +# ----------
  2914. +# find the pathname to the GNU or non-GNU linker
  2915. +AC_DEFUN([LT_PATH_LD],
  2916. +[AC_REQUIRE([AC_PROG_CC])dnl
  2917. +AC_REQUIRE([AC_CANONICAL_HOST])dnl
  2918. +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  2919. +m4_require([_LT_DECL_SED])dnl
  2920. +m4_require([_LT_DECL_EGREP])dnl
  2921. +
  2922. +AC_ARG_WITH([gnu-ld],
  2923. + [AS_HELP_STRING([--with-gnu-ld],
  2924. + [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  2925. + [test "$withval" = no || with_gnu_ld=yes],
  2926. + [with_gnu_ld=no])dnl
  2927. +
  2928. +ac_prog=ld
  2929. +if test "$GCC" = yes; then
  2930. + # Check if gcc -print-prog-name=ld gives a path.
  2931. + AC_MSG_CHECKING([for ld used by $CC])
  2932. + case $host in
  2933. + *-*-mingw*)
  2934. + # gcc leaves a trailing carriage return which upsets mingw
  2935. + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  2936. + *)
  2937. + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  2938. + esac
  2939. + case $ac_prog in
  2940. + # Accept absolute paths.
  2941. + [[\\/]]* | ?:[[\\/]]*)
  2942. + re_direlt='/[[^/]][[^/]]*/\.\./'
  2943. + # Canonicalize the pathname of ld
  2944. + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  2945. + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  2946. + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  2947. + done
  2948. + test -z "$LD" && LD="$ac_prog"
  2949. + ;;
  2950. + "")
  2951. + # If it fails, then pretend we aren't using GCC.
  2952. + ac_prog=ld
  2953. ;;
  2954. - esac])
  2955. + *)
  2956. + # If it is relative, then search for the first ld in PATH.
  2957. + with_gnu_ld=unknown
  2958. + ;;
  2959. + esac
  2960. +elif test "$with_gnu_ld" = yes; then
  2961. + AC_MSG_CHECKING([for GNU ld])
  2962. +else
  2963. + AC_MSG_CHECKING([for non-GNU ld])
  2964. +fi
  2965. +AC_CACHE_VAL(lt_cv_path_LD,
  2966. +[if test -z "$LD"; then
  2967. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  2968. + for ac_dir in $PATH; do
  2969. + IFS="$lt_save_ifs"
  2970. + test -z "$ac_dir" && ac_dir=.
  2971. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  2972. + lt_cv_path_LD="$ac_dir/$ac_prog"
  2973. + # Check to see if the program is GNU ld. I'd rather use --version,
  2974. + # but apparently some variants of GNU ld only accept -v.
  2975. + # Break only if it was the GNU/non-GNU ld that we prefer.
  2976. + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  2977. + *GNU* | *'with BFD'*)
  2978. + test "$with_gnu_ld" != no && break
  2979. + ;;
  2980. + *)
  2981. + test "$with_gnu_ld" != yes && break
  2982. + ;;
  2983. + esac
  2984. + fi
  2985. + done
  2986. + IFS="$lt_save_ifs"
  2987. +else
  2988. + lt_cv_path_LD="$LD" # Let the user override the test with a path.
  2989. +fi])
  2990. +LD="$lt_cv_path_LD"
  2991. +if test -n "$LD"; then
  2992. + AC_MSG_RESULT($LD)
  2993. +else
  2994. + AC_MSG_RESULT(no)
  2995. +fi
  2996. +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  2997. +_LT_PATH_LD_GNU
  2998. +AC_SUBST([LD])
  2999. +
  3000. +_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
  3001. +])# LT_PATH_LD
  3002. +
  3003. +# Old names:
  3004. +AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
  3005. +AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
  3006. +dnl aclocal-1.4 backwards compatibility:
  3007. +dnl AC_DEFUN([AM_PROG_LD], [])
  3008. +dnl AC_DEFUN([AC_PROG_LD], [])
  3009. +
  3010. +
  3011. +# _LT_PATH_LD_GNU
  3012. +#- --------------
  3013. +m4_defun([_LT_PATH_LD_GNU],
  3014. +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  3015. +[# I'd rather use --version here, but apparently some GNU lds only accept -v.
  3016. +case `$LD -v 2>&1 </dev/null` in
  3017. +*GNU* | *'with BFD'*)
  3018. + lt_cv_prog_gnu_ld=yes
  3019. + ;;
  3020. +*)
  3021. + lt_cv_prog_gnu_ld=no
  3022. + ;;
  3023. +esac])
  3024. +with_gnu_ld=$lt_cv_prog_gnu_ld
  3025. +])# _LT_PATH_LD_GNU
  3026. +
  3027. +
  3028. +# _LT_CMD_RELOAD
  3029. +# --------------
  3030. +# find reload flag for linker
  3031. +# -- PORTME Some linkers may need a different reload flag.
  3032. +m4_defun([_LT_CMD_RELOAD],
  3033. +[AC_CACHE_CHECK([for $LD option to reload object files],
  3034. + lt_cv_ld_reload_flag,
  3035. + [lt_cv_ld_reload_flag='-r'])
  3036. +reload_flag=$lt_cv_ld_reload_flag
  3037. +case $reload_flag in
  3038. +"" | " "*) ;;
  3039. +*) reload_flag=" $reload_flag" ;;
  3040. +esac
  3041. +reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3042. +case $host_os in
  3043. + darwin*)
  3044. + if test "$GCC" = yes; then
  3045. + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  3046. + else
  3047. + reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3048. + fi
  3049. + ;;
  3050. +esac
  3051. +_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
  3052. +_LT_DECL([], [reload_cmds], [2])dnl
  3053. +])# _LT_CMD_RELOAD
  3054. +
  3055. +
  3056. +# _LT_CHECK_MAGIC_METHOD
  3057. +# ----------------------
  3058. +# how to check for library dependencies
  3059. +# -- PORTME fill in with the dynamic library characteristics
  3060. +m4_defun([_LT_CHECK_MAGIC_METHOD],
  3061. +[m4_require([_LT_DECL_EGREP])
  3062. +m4_require([_LT_DECL_OBJDUMP])
  3063. +AC_CACHE_CHECK([how to recognize dependent libraries],
  3064. +lt_cv_deplibs_check_method,
  3065. +[lt_cv_file_magic_cmd='$MAGIC_CMD'
  3066. +lt_cv_file_magic_test_file=
  3067. +lt_cv_deplibs_check_method='unknown'
  3068. +# Need to set the preceding variable on all platforms that support
  3069. +# interlibrary dependencies.
  3070. +# 'none' -- dependencies not supported.
  3071. +# `unknown' -- same as none, but documents that we really don't know.
  3072. +# 'pass_all' -- all dependencies passed with no checks.
  3073. +# 'test_compile' -- check by making test program.
  3074. +# 'file_magic [[regex]]' -- check by looking for files in library path
  3075. +# which responds to the $file_magic_cmd with a given extended regex.
  3076. +# If you have `file' or equivalent on your system and you're not sure
  3077. +# whether `pass_all' will *always* work, you probably want this one.
  3078. +
  3079. +case $host_os in
  3080. +aix[[4-9]]*)
  3081. + lt_cv_deplibs_check_method=pass_all
  3082. + ;;
  3083. +
  3084. +beos*)
  3085. + lt_cv_deplibs_check_method=pass_all
  3086. + ;;
  3087. +
  3088. +bsdi[[45]]*)
  3089. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
  3090. + lt_cv_file_magic_cmd='/usr/bin/file -L'
  3091. + lt_cv_file_magic_test_file=/shlib/libc.so
  3092. + ;;
  3093. +
  3094. +cygwin*)
  3095. + # func_win32_libid is a shell function defined in ltmain.sh
  3096. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  3097. + lt_cv_file_magic_cmd='func_win32_libid'
  3098. + ;;
  3099. +
  3100. +mingw* | pw32*)
  3101. + # Base MSYS/MinGW do not provide the 'file' command needed by
  3102. + # func_win32_libid shell function, so use a weaker test based on 'objdump',
  3103. + # unless we find 'file', for example because we are cross-compiling.
  3104. + if ( file / ) >/dev/null 2>&1; then
  3105. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  3106. + lt_cv_file_magic_cmd='func_win32_libid'
  3107. + else
  3108. + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  3109. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  3110. + fi
  3111. + ;;
  3112. +
  3113. +cegcc)
  3114. + # use the weaker test based on 'objdump'. See mingw*.
  3115. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  3116. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  3117. + ;;
  3118. +
  3119. +darwin* | rhapsody*)
  3120. + lt_cv_deplibs_check_method=pass_all
  3121. + ;;
  3122. +
  3123. +freebsd* | dragonfly*)
  3124. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  3125. + case $host_cpu in
  3126. + i*86 )
  3127. + # Not sure whether the presence of OpenBSD here was a mistake.
  3128. + # Let's accept both of them until this is cleared up.
  3129. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
  3130. + lt_cv_file_magic_cmd=/usr/bin/file
  3131. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  3132. + ;;
  3133. + esac
  3134. + else
  3135. + lt_cv_deplibs_check_method=pass_all
  3136. + fi
  3137. + ;;
  3138. +
  3139. +gnu*)
  3140. + lt_cv_deplibs_check_method=pass_all
  3141. + ;;
  3142. +
  3143. +hpux10.20* | hpux11*)
  3144. + lt_cv_file_magic_cmd=/usr/bin/file
  3145. + case $host_cpu in
  3146. + ia64*)
  3147. + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
  3148. + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  3149. + ;;
  3150. + hppa*64*)
  3151. + [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
  3152. + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  3153. + ;;
  3154. + *)
  3155. + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
  3156. + lt_cv_file_magic_test_file=/usr/lib/libc.sl
  3157. + ;;
  3158. + esac
  3159. + ;;
  3160. +
  3161. +interix[[3-9]]*)
  3162. + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  3163. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
  3164. + ;;
  3165. +
  3166. +irix5* | irix6* | nonstopux*)
  3167. + case $LD in
  3168. + *-32|*"-32 ") libmagic=32-bit;;
  3169. + *-n32|*"-n32 ") libmagic=N32;;
  3170. + *-64|*"-64 ") libmagic=64-bit;;
  3171. + *) libmagic=never-match;;
  3172. + esac
  3173. + lt_cv_deplibs_check_method=pass_all
  3174. + ;;
  3175. +
  3176. +# This must be Linux ELF.
  3177. +linux* | k*bsd*-gnu)
  3178. + lt_cv_deplibs_check_method=pass_all
  3179. + ;;
  3180. +
  3181. +netbsd*)
  3182. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  3183. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  3184. + else
  3185. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  3186. + fi
  3187. + ;;
  3188. +
  3189. +newos6*)
  3190. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
  3191. + lt_cv_file_magic_cmd=/usr/bin/file
  3192. + lt_cv_file_magic_test_file=/usr/lib/libnls.so
  3193. + ;;
  3194. +
  3195. +*nto* | *qnx*)
  3196. + lt_cv_deplibs_check_method=pass_all
  3197. + ;;
  3198. +
  3199. +openbsd*)
  3200. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  3201. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
  3202. + else
  3203. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  3204. + fi
  3205. + ;;
  3206. +
  3207. +osf3* | osf4* | osf5*)
  3208. + lt_cv_deplibs_check_method=pass_all
  3209. + ;;
  3210. +
  3211. +rdos*)
  3212. + lt_cv_deplibs_check_method=pass_all
  3213. + ;;
  3214. +
  3215. +solaris*)
  3216. + lt_cv_deplibs_check_method=pass_all
  3217. + ;;
  3218. +
  3219. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  3220. + lt_cv_deplibs_check_method=pass_all
  3221. + ;;
  3222. +
  3223. +sysv4 | sysv4.3*)
  3224. + case $host_vendor in
  3225. + motorola)
  3226. + 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]]'
  3227. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  3228. + ;;
  3229. + ncr)
  3230. + lt_cv_deplibs_check_method=pass_all
  3231. + ;;
  3232. + sequent)
  3233. + lt_cv_file_magic_cmd='/bin/file'
  3234. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
  3235. + ;;
  3236. + sni)
  3237. + lt_cv_file_magic_cmd='/bin/file'
  3238. + lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
  3239. + lt_cv_file_magic_test_file=/lib/libc.so
  3240. + ;;
  3241. + siemens)
  3242. + lt_cv_deplibs_check_method=pass_all
  3243. + ;;
  3244. + pc)
  3245. + lt_cv_deplibs_check_method=pass_all
  3246. + ;;
  3247. + esac
  3248. + ;;
  3249. +
  3250. +tpf*)
  3251. + lt_cv_deplibs_check_method=pass_all
  3252. + ;;
  3253. +esac
  3254. ])
  3255. +file_magic_cmd=$lt_cv_file_magic_cmd
  3256. +deplibs_check_method=$lt_cv_deplibs_check_method
  3257. +test -z "$deplibs_check_method" && deplibs_check_method=unknown
  3258. -dnl
  3259. -dnl Looks for a previous libnet version and attempts to determine which verion
  3260. -dnl it is. Version 0.8 was the first version that actually knew internally
  3261. -dnl what version it was.
  3262. -dnl
  3263. -dnl usage:
  3264. -dnl
  3265. -dnl AC_LIBNET_CHECK_LIBNET_VERSION
  3266. -dnl
  3267. -dnl results:
  3268. -dnl
  3269. -dnl
  3270. -dnl
  3271. +_LT_DECL([], [deplibs_check_method], [1],
  3272. + [Method to check whether dependent libraries are shared objects])
  3273. +_LT_DECL([], [file_magic_cmd], [1],
  3274. + [Command to use when deplibs_check_method == "file_magic"])
  3275. +])# _LT_CHECK_MAGIC_METHOD
  3276. -AC_DEFUN(AC_LIBNET_CHECK_LIBNET_VER,
  3277. +
  3278. +# LT_PATH_NM
  3279. +# ----------
  3280. +# find the pathname to a BSD- or MS-compatible name lister
  3281. +AC_DEFUN([LT_PATH_NM],
  3282. +[AC_REQUIRE([AC_PROG_CC])dnl
  3283. +AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
  3284. +[if test -n "$NM"; then
  3285. + # Let the user override the test.
  3286. + lt_cv_path_NM="$NM"
  3287. +else
  3288. + lt_nm_to_check="${ac_tool_prefix}nm"
  3289. + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3290. + lt_nm_to_check="$lt_nm_to_check nm"
  3291. + fi
  3292. + for lt_tmp_nm in $lt_nm_to_check; do
  3293. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3294. + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3295. + IFS="$lt_save_ifs"
  3296. + test -z "$ac_dir" && ac_dir=.
  3297. + tmp_nm="$ac_dir/$lt_tmp_nm"
  3298. + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3299. + # Check to see if the nm accepts a BSD-compat flag.
  3300. + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3301. + # nm: unknown option "B" ignored
  3302. + # Tru64's nm complains that /dev/null is an invalid object file
  3303. + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3304. + */dev/null* | *'Invalid file or object type'*)
  3305. + lt_cv_path_NM="$tmp_nm -B"
  3306. + break
  3307. + ;;
  3308. + *)
  3309. + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3310. + */dev/null*)
  3311. + lt_cv_path_NM="$tmp_nm -p"
  3312. + break
  3313. + ;;
  3314. + *)
  3315. + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3316. + continue # so that we can try to find one that supports BSD flags
  3317. + ;;
  3318. + esac
  3319. + ;;
  3320. + esac
  3321. + fi
  3322. + done
  3323. + IFS="$lt_save_ifs"
  3324. + done
  3325. + : ${lt_cv_path_NM=no}
  3326. +fi])
  3327. +if test "$lt_cv_path_NM" != "no"; then
  3328. + NM="$lt_cv_path_NM"
  3329. +else
  3330. + # Didn't find any BSD compatible name lister, look for dumpbin.
  3331. + AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
  3332. + AC_SUBST([DUMPBIN])
  3333. + if test "$DUMPBIN" != ":"; then
  3334. + NM="$DUMPBIN"
  3335. + fi
  3336. +fi
  3337. +test -z "$NM" && NM=nm
  3338. +AC_SUBST([NM])
  3339. +_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
  3340. +
  3341. +AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
  3342. + [lt_cv_nm_interface="BSD nm"
  3343. + echo "int some_variable = 0;" > conftest.$ac_ext
  3344. + (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
  3345. + (eval "$ac_compile" 2>conftest.err)
  3346. + cat conftest.err >&AS_MESSAGE_LOG_FD
  3347. + (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
  3348. + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3349. + cat conftest.err >&AS_MESSAGE_LOG_FD
  3350. + (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
  3351. + cat conftest.out >&AS_MESSAGE_LOG_FD
  3352. + if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3353. + lt_cv_nm_interface="MS dumpbin"
  3354. + fi
  3355. + rm -f conftest*])
  3356. +])# LT_PATH_NM
  3357. +
  3358. +# Old names:
  3359. +AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
  3360. +AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
  3361. +dnl aclocal-1.4 backwards compatibility:
  3362. +dnl AC_DEFUN([AM_PROG_NM], [])
  3363. +dnl AC_DEFUN([AC_PROG_NM], [])
  3364. +
  3365. +
  3366. +# LT_LIB_M
  3367. +# --------
  3368. +# check for math library
  3369. +AC_DEFUN([LT_LIB_M],
  3370. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3371. +LIBM=
  3372. +case $host in
  3373. +*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
  3374. + # These system don't have libm, or don't need it
  3375. + ;;
  3376. +*-ncr-sysv4.3*)
  3377. + AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
  3378. + AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
  3379. + ;;
  3380. +*)
  3381. + AC_CHECK_LIB(m, cos, LIBM="-lm")
  3382. + ;;
  3383. +esac
  3384. +AC_SUBST([LIBM])
  3385. +])# LT_LIB_M
  3386. +
  3387. +# Old name:
  3388. +AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
  3389. +dnl aclocal-1.4 backwards compatibility:
  3390. +dnl AC_DEFUN([AC_CHECK_LIBM], [])
  3391. +
  3392. +
  3393. +# _LT_COMPILER_NO_RTTI([TAGNAME])
  3394. +# -------------------------------
  3395. +m4_defun([_LT_COMPILER_NO_RTTI],
  3396. +[m4_require([_LT_TAG_COMPILER])dnl
  3397. +
  3398. +_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  3399. +
  3400. +if test "$GCC" = yes; then
  3401. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  3402. +
  3403. + _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  3404. + lt_cv_prog_compiler_rtti_exceptions,
  3405. + [-fno-rtti -fno-exceptions], [],
  3406. + [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  3407. +fi
  3408. +_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
  3409. + [Compiler flag to turn off builtin functions])
  3410. +])# _LT_COMPILER_NO_RTTI
  3411. +
  3412. +
  3413. +# _LT_CMD_GLOBAL_SYMBOLS
  3414. +# ----------------------
  3415. +m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
  3416. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3417. +AC_REQUIRE([AC_PROG_CC])dnl
  3418. +AC_REQUIRE([LT_PATH_NM])dnl
  3419. +AC_REQUIRE([LT_PATH_LD])dnl
  3420. +m4_require([_LT_DECL_SED])dnl
  3421. +m4_require([_LT_DECL_EGREP])dnl
  3422. +m4_require([_LT_TAG_COMPILER])dnl
  3423. +
  3424. +# Check for command to grab the raw symbol name followed by C symbol from nm.
  3425. +AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  3426. +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  3427. [
  3428. - AC_CHECK_LIB(net, libnet_build_ip, AC_MSG_CHECKING(version) \
  3429. +# These are sane defaults that work on at least a few old systems.
  3430. +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  3431. -changequote(<<, >>)dnl
  3432. - if [[ ! -f $LIB_PREFIX/libnet.a ]] ; then
  3433. -changequote([, ])dnl
  3434. - AC_MSG_RESULT($LIB_PREFIX/libnet.a doesn't exist)
  3435. - AC_MSG_RESULT(previous libnet install lives elsewhere, you should probably find it)
  3436. +# Character class describing NM global symbol codes.
  3437. +symcode='[[BCDEGRST]]'
  3438. +
  3439. +# Regexp to match symbols that can be accessed directly from C.
  3440. +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  3441. +
  3442. +# Define system-specific variables.
  3443. +case $host_os in
  3444. +aix*)
  3445. + symcode='[[BCDT]]'
  3446. + ;;
  3447. +cygwin* | mingw* | pw32* | cegcc*)
  3448. + symcode='[[ABCDGISTW]]'
  3449. + ;;
  3450. +hpux*)
  3451. + if test "$host_cpu" = ia64; then
  3452. + symcode='[[ABCDEGRST]]'
  3453. + fi
  3454. + ;;
  3455. +irix* | nonstopux*)
  3456. + symcode='[[BCDEGRST]]'
  3457. + ;;
  3458. +osf*)
  3459. + symcode='[[BCDEGQRST]]'
  3460. + ;;
  3461. +solaris*)
  3462. + symcode='[[BDRT]]'
  3463. + ;;
  3464. +sco3.2v5*)
  3465. + symcode='[[DT]]'
  3466. + ;;
  3467. +sysv4.2uw2*)
  3468. + symcode='[[DT]]'
  3469. + ;;
  3470. +sysv5* | sco5v6* | unixware* | OpenUNIX*)
  3471. + symcode='[[ABDT]]'
  3472. + ;;
  3473. +sysv4)
  3474. + symcode='[[DFNSTU]]'
  3475. + ;;
  3476. +esac
  3477. +
  3478. +# If we're using GNU nm, then use its standard symbol codes.
  3479. +case `$NM -V 2>&1` in
  3480. +*GNU* | *'with BFD'*)
  3481. + symcode='[[ABCDGIRSTW]]' ;;
  3482. +esac
  3483. +
  3484. +# Transform an extracted symbol line into a proper C declaration.
  3485. +# Some systems (esp. on ia64) link data and code symbols differently,
  3486. +# so use this general approach.
  3487. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  3488. +
  3489. +# Transform an extracted symbol line into symbol name and symbol address
  3490. +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
  3491. +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  3492. +
  3493. +# Handle CRLF in mingw tool chain
  3494. +opt_cr=
  3495. +case $build_os in
  3496. +mingw*)
  3497. + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  3498. + ;;
  3499. +esac
  3500. +
  3501. +# Try without a prefix underscore, then with it.
  3502. +for ac_symprfx in "" "_"; do
  3503. +
  3504. + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  3505. + symxfrm="\\1 $ac_symprfx\\2 \\2"
  3506. +
  3507. + # Write the raw and C identifiers.
  3508. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  3509. + # Fake it for dumpbin and say T for any non-static function
  3510. + # and D for any global variable.
  3511. + # Also find C++ and __fastcall symbols from MSVC++,
  3512. + # which start with @ or ?.
  3513. + lt_cv_sys_global_symbol_pipe="$AWK ['"\
  3514. +" {last_section=section; section=\$ 3};"\
  3515. +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  3516. +" \$ 0!~/External *\|/{next};"\
  3517. +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  3518. +" {if(hide[section]) next};"\
  3519. +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  3520. +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  3521. +" s[1]~/^[@?]/{print s[1], s[1]; next};"\
  3522. +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  3523. +" ' prfx=^$ac_symprfx]"
  3524. + else
  3525. + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  3526. + fi
  3527. +
  3528. + # Check to see that the pipe works correctly.
  3529. + pipe_works=no
  3530. +
  3531. + rm -f conftest*
  3532. + cat > conftest.$ac_ext <<_LT_EOF
  3533. +#ifdef __cplusplus
  3534. +extern "C" {
  3535. +#endif
  3536. +char nm_test_var;
  3537. +void nm_test_func(void);
  3538. +void nm_test_func(void){}
  3539. +#ifdef __cplusplus
  3540. +}
  3541. +#endif
  3542. +int main(){nm_test_var='a';nm_test_func();return(0);}
  3543. +_LT_EOF
  3544. +
  3545. + if AC_TRY_EVAL(ac_compile); then
  3546. + # Now try to grab the symbols.
  3547. + nlist=conftest.nm
  3548. + if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
  3549. + # Try sorting and uniquifying the output.
  3550. + if sort "$nlist" | uniq > "$nlist"T; then
  3551. + mv -f "$nlist"T "$nlist"
  3552. + else
  3553. + rm -f "$nlist"T
  3554. + fi
  3555. +
  3556. + # Make sure that we snagged all the symbols we need.
  3557. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  3558. + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  3559. + cat <<_LT_EOF > conftest.$ac_ext
  3560. +#ifdef __cplusplus
  3561. +extern "C" {
  3562. +#endif
  3563. +
  3564. +_LT_EOF
  3565. + # Now generate the symbol file.
  3566. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  3567. +
  3568. + cat <<_LT_EOF >> conftest.$ac_ext
  3569. +
  3570. +/* The mapping between symbol names and symbols. */
  3571. +const struct {
  3572. + const char *name;
  3573. + void *address;
  3574. +}
  3575. +lt__PROGRAM__LTX_preloaded_symbols[[]] =
  3576. +{
  3577. + { "@PROGRAM@", (void *) 0 },
  3578. +_LT_EOF
  3579. + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  3580. + cat <<\_LT_EOF >> conftest.$ac_ext
  3581. + {0, (void *) 0}
  3582. +};
  3583. +
  3584. +/* This works around a problem in FreeBSD linker */
  3585. +#ifdef FREEBSD_WORKAROUND
  3586. +static const void *lt_preloaded_setup() {
  3587. + return lt__PROGRAM__LTX_preloaded_symbols;
  3588. +}
  3589. +#endif
  3590. +
  3591. +#ifdef __cplusplus
  3592. +}
  3593. +#endif
  3594. +_LT_EOF
  3595. + # Now try linking the two files.
  3596. + mv conftest.$ac_objext conftstm.$ac_objext
  3597. + lt_save_LIBS="$LIBS"
  3598. + lt_save_CFLAGS="$CFLAGS"
  3599. + LIBS="conftstm.$ac_objext"
  3600. + CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  3601. + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  3602. + pipe_works=yes
  3603. + fi
  3604. + LIBS="$lt_save_LIBS"
  3605. + CFLAGS="$lt_save_CFLAGS"
  3606. + else
  3607. + echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  3608. + fi
  3609. + else
  3610. + echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  3611. + fi
  3612. else
  3613. - __LIBNET_VERSION=`strings $LIB_PREFIX/libnet.a | grep "libnet version"\
  3614. - | cut -f3 -d" "`;\
  3615. - if test -z "$__LIBNET_VERSION"; then
  3616. - AC_MSG_RESULT(<0.8)
  3617. - else
  3618. - AC_MSG_RESULT($__LIBNET_VERSION)
  3619. - fi
  3620. - fi\
  3621. - )
  3622. + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  3623. + fi
  3624. + else
  3625. + echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  3626. + cat conftest.$ac_ext >&5
  3627. + fi
  3628. + rm -rf conftest* conftst*
  3629. +
  3630. + # Do not use the global_symbol_pipe unless it works.
  3631. + if test "$pipe_works" = yes; then
  3632. + break
  3633. + else
  3634. + lt_cv_sys_global_symbol_pipe=
  3635. + fi
  3636. +done
  3637. ])
  3638. +if test -z "$lt_cv_sys_global_symbol_pipe"; then
  3639. + lt_cv_sys_global_symbol_to_cdecl=
  3640. +fi
  3641. +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  3642. + AC_MSG_RESULT(failed)
  3643. +else
  3644. + AC_MSG_RESULT(ok)
  3645. +fi
  3646. +
  3647. +_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
  3648. + [Take the output of nm and produce a listing of raw symbols and C names])
  3649. +_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
  3650. + [Transform the output of nm in a proper C declaration])
  3651. +_LT_DECL([global_symbol_to_c_name_address],
  3652. + [lt_cv_sys_global_symbol_to_c_name_address], [1],
  3653. + [Transform the output of nm in a C name address pair])
  3654. +_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
  3655. + [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
  3656. + [Transform the output of nm in a C name address pair when lib prefix is needed])
  3657. +]) # _LT_CMD_GLOBAL_SYMBOLS
  3658. -dnl
  3659. -dnl Checks to see if this linux kernel uses ip_sum or ip_csum
  3660. -dnl (Pulled from queso)
  3661. -dnl
  3662. -dnl usage:
  3663. -dnl
  3664. -dnl AC_LIBNET_CHECK_IP_CSUM
  3665. -dnl
  3666. -dnl results:
  3667. -dnl
  3668. -dnl HAVE_STRUCT_IP_CSUM (DEFINED)
  3669. -dnl
  3670. +# _LT_COMPILER_PIC([TAGNAME])
  3671. +# ---------------------------
  3672. +m4_defun([_LT_COMPILER_PIC],
  3673. +[m4_require([_LT_TAG_COMPILER])dnl
  3674. +_LT_TAGVAR(lt_prog_compiler_wl, $1)=
  3675. +_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3676. +_LT_TAGVAR(lt_prog_compiler_static, $1)=
  3677. -AC_DEFUN(AC_LIBNET_CHECK_IP_CSUM,
  3678. +AC_MSG_CHECKING([for $compiler option to produce PIC])
  3679. +m4_if([$1], [CXX], [
  3680. + # C++ specific cases for pic, static, wl, etc.
  3681. + if test "$GXX" = yes; then
  3682. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3683. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3684. +
  3685. + case $host_os in
  3686. + aix*)
  3687. + # All AIX code is PIC.
  3688. + if test "$host_cpu" = ia64; then
  3689. + # AIX 5 now supports IA64 processor
  3690. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3691. + fi
  3692. + ;;
  3693. +
  3694. + amigaos*)
  3695. + case $host_cpu in
  3696. + powerpc)
  3697. + # see comment about AmigaOS4 .so support
  3698. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3699. + ;;
  3700. + m68k)
  3701. + # FIXME: we need at least 68020 code to build shared libraries, but
  3702. + # adding the `-m68020' flag to GCC prevents building anything better,
  3703. + # like `-m68040'.
  3704. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  3705. + ;;
  3706. + esac
  3707. + ;;
  3708. +
  3709. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  3710. + # PIC is the default for these OSes.
  3711. + ;;
  3712. + mingw* | cygwin* | os2* | pw32* | cegcc*)
  3713. + # This hack is so that the source file can tell whether it is being
  3714. + # built for inclusion in a dll (and should export symbols for example).
  3715. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  3716. + # (--disable-auto-import) libraries
  3717. + m4_if([$1], [GCJ], [],
  3718. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  3719. + ;;
  3720. + darwin* | rhapsody*)
  3721. + # PIC is the default on this platform
  3722. + # Common symbols not allowed in MH_DYLIB files
  3723. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  3724. + ;;
  3725. + *djgpp*)
  3726. + # DJGPP does not support shared libraries at all
  3727. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3728. + ;;
  3729. + interix[[3-9]]*)
  3730. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  3731. + # Instead, we relocate shared libraries at runtime.
  3732. + ;;
  3733. + sysv4*MP*)
  3734. + if test -d /usr/nec; then
  3735. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  3736. + fi
  3737. + ;;
  3738. + hpux*)
  3739. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  3740. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  3741. + # sets the default TLS model and affects inlining.
  3742. + case $host_cpu in
  3743. + hppa*64*)
  3744. + ;;
  3745. + *)
  3746. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3747. + ;;
  3748. + esac
  3749. + ;;
  3750. + *qnx* | *nto*)
  3751. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  3752. + # it will coredump.
  3753. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  3754. + ;;
  3755. + *)
  3756. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3757. + ;;
  3758. + esac
  3759. + else
  3760. + case $host_os in
  3761. + aix[[4-9]]*)
  3762. + # All AIX code is PIC.
  3763. + if test "$host_cpu" = ia64; then
  3764. + # AIX 5 now supports IA64 processor
  3765. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3766. + else
  3767. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  3768. + fi
  3769. + ;;
  3770. + chorus*)
  3771. + case $cc_basename in
  3772. + cxch68*)
  3773. + # Green Hills C++ Compiler
  3774. + # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  3775. + ;;
  3776. + esac
  3777. + ;;
  3778. + dgux*)
  3779. + case $cc_basename in
  3780. + ec++*)
  3781. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3782. + ;;
  3783. + ghcx*)
  3784. + # Green Hills C++ Compiler
  3785. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  3786. + ;;
  3787. + *)
  3788. + ;;
  3789. + esac
  3790. + ;;
  3791. + freebsd* | dragonfly*)
  3792. + # FreeBSD uses GNU C++
  3793. + ;;
  3794. + hpux9* | hpux10* | hpux11*)
  3795. + case $cc_basename in
  3796. + CC*)
  3797. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3798. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  3799. + if test "$host_cpu" != ia64; then
  3800. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  3801. + fi
  3802. + ;;
  3803. + aCC*)
  3804. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3805. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  3806. + case $host_cpu in
  3807. + hppa*64*|ia64*)
  3808. + # +Z the default
  3809. + ;;
  3810. + *)
  3811. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  3812. + ;;
  3813. + esac
  3814. + ;;
  3815. + *)
  3816. + ;;
  3817. + esac
  3818. + ;;
  3819. + interix*)
  3820. + # This is c89, which is MS Visual C++ (no shared libs)
  3821. + # Anyone wants to do a port?
  3822. + ;;
  3823. + irix5* | irix6* | nonstopux*)
  3824. + case $cc_basename in
  3825. + CC*)
  3826. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3827. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3828. + # CC pic flag -KPIC is the default.
  3829. + ;;
  3830. + *)
  3831. + ;;
  3832. + esac
  3833. + ;;
  3834. + linux* | k*bsd*-gnu)
  3835. + case $cc_basename in
  3836. + KCC*)
  3837. + # KAI C++ Compiler
  3838. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  3839. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3840. + ;;
  3841. + ecpc* )
  3842. + # old Intel C++ for x86_64 which still supported -KPIC.
  3843. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3844. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3845. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3846. + ;;
  3847. + icpc* )
  3848. + # Intel C++, used to be incompatible with GCC.
  3849. + # ICC 10 doesn't accept -KPIC any more.
  3850. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3851. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3852. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3853. + ;;
  3854. + pgCC* | pgcpp*)
  3855. + # Portland Group C++ compiler
  3856. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3857. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  3858. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3859. + ;;
  3860. + cxx*)
  3861. + # Compaq C++
  3862. + # Make sure the PIC flag is empty. It appears that all Alpha
  3863. + # Linux and Compaq Tru64 Unix objects are PIC.
  3864. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3865. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3866. + ;;
  3867. + xlc* | xlC*)
  3868. + # IBM XL 8.0 on PPC
  3869. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3870. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  3871. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  3872. + ;;
  3873. + *)
  3874. + case `$CC -V 2>&1 | sed 5q` in
  3875. + *Sun\ C*)
  3876. + # Sun C++ 5.9
  3877. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3878. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3879. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  3880. + ;;
  3881. + esac
  3882. + ;;
  3883. + esac
  3884. + ;;
  3885. + lynxos*)
  3886. + ;;
  3887. + m88k*)
  3888. + ;;
  3889. + mvs*)
  3890. + case $cc_basename in
  3891. + cxx*)
  3892. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  3893. + ;;
  3894. + *)
  3895. + ;;
  3896. + esac
  3897. + ;;
  3898. + netbsd*)
  3899. + ;;
  3900. + *qnx* | *nto*)
  3901. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  3902. + # it will coredump.
  3903. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  3904. + ;;
  3905. + osf3* | osf4* | osf5*)
  3906. + case $cc_basename in
  3907. + KCC*)
  3908. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  3909. + ;;
  3910. + RCC*)
  3911. + # Rational C++ 2.4.1
  3912. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  3913. + ;;
  3914. + cxx*)
  3915. + # Digital/Compaq C++
  3916. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3917. + # Make sure the PIC flag is empty. It appears that all Alpha
  3918. + # Linux and Compaq Tru64 Unix objects are PIC.
  3919. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3920. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3921. + ;;
  3922. + *)
  3923. + ;;
  3924. + esac
  3925. + ;;
  3926. + psos*)
  3927. + ;;
  3928. + solaris*)
  3929. + case $cc_basename in
  3930. + CC*)
  3931. + # Sun C++ 4.2, 5.x and Centerline C++
  3932. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3933. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3934. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  3935. + ;;
  3936. + gcx*)
  3937. + # Green Hills C++ Compiler
  3938. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  3939. + ;;
  3940. + *)
  3941. + ;;
  3942. + esac
  3943. + ;;
  3944. + sunos4*)
  3945. + case $cc_basename in
  3946. + CC*)
  3947. + # Sun C++ 4.x
  3948. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  3949. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3950. + ;;
  3951. + lcc*)
  3952. + # Lucid
  3953. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  3954. + ;;
  3955. + *)
  3956. + ;;
  3957. + esac
  3958. + ;;
  3959. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  3960. + case $cc_basename in
  3961. + CC*)
  3962. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3963. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3964. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3965. + ;;
  3966. + esac
  3967. + ;;
  3968. + tandem*)
  3969. + case $cc_basename in
  3970. + NCC*)
  3971. + # NonStop-UX NCC 3.20
  3972. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3973. + ;;
  3974. + *)
  3975. + ;;
  3976. + esac
  3977. + ;;
  3978. + vxworks*)
  3979. + ;;
  3980. + *)
  3981. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  3982. + ;;
  3983. + esac
  3984. + fi
  3985. +],
  3986. [
  3987. - AC_MSG_CHECKING([struct ip contains ip_csum])
  3988. - AC_TRY_COMPILE([
  3989. - #define __BSD_SOURCE
  3990. - #define _BSD_SOURCE
  3991. - #include <sys/types.h>
  3992. - #include <netinet/in.h>
  3993. - #include <netinet/in_systm.h>
  3994. - #include <netinet/ip.h>],
  3995. - [
  3996. - struct ip ip;
  3997. - ip.ip_csum = 0;
  3998. - ],
  3999. - [AC_MSG_RESULT(yes);
  4000. - AC_DEFINE(HAVE_STRUCT_IP_CSUM)],
  4001. - [AC_MSG_RESULT(no);
  4002. - ])
  4003. + if test "$GCC" = yes; then
  4004. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4005. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4006. +
  4007. + case $host_os in
  4008. + aix*)
  4009. + # All AIX code is PIC.
  4010. + if test "$host_cpu" = ia64; then
  4011. + # AIX 5 now supports IA64 processor
  4012. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4013. + fi
  4014. + ;;
  4015. +
  4016. + amigaos*)
  4017. + case $host_cpu in
  4018. + powerpc)
  4019. + # see comment about AmigaOS4 .so support
  4020. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4021. + ;;
  4022. + m68k)
  4023. + # FIXME: we need at least 68020 code to build shared libraries, but
  4024. + # adding the `-m68020' flag to GCC prevents building anything better,
  4025. + # like `-m68040'.
  4026. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  4027. + ;;
  4028. + esac
  4029. + ;;
  4030. +
  4031. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  4032. + # PIC is the default for these OSes.
  4033. + ;;
  4034. +
  4035. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  4036. + # This hack is so that the source file can tell whether it is being
  4037. + # built for inclusion in a dll (and should export symbols for example).
  4038. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  4039. + # (--disable-auto-import) libraries
  4040. + m4_if([$1], [GCJ], [],
  4041. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  4042. + ;;
  4043. +
  4044. + darwin* | rhapsody*)
  4045. + # PIC is the default on this platform
  4046. + # Common symbols not allowed in MH_DYLIB files
  4047. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  4048. + ;;
  4049. +
  4050. + hpux*)
  4051. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  4052. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  4053. + # sets the default TLS model and affects inlining.
  4054. + case $host_cpu in
  4055. + hppa*64*)
  4056. + # +Z the default
  4057. + ;;
  4058. + *)
  4059. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4060. + ;;
  4061. + esac
  4062. + ;;
  4063. +
  4064. + interix[[3-9]]*)
  4065. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  4066. + # Instead, we relocate shared libraries at runtime.
  4067. + ;;
  4068. +
  4069. + msdosdjgpp*)
  4070. + # Just because we use GCC doesn't mean we suddenly get shared libraries
  4071. + # on systems that don't support them.
  4072. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  4073. + enable_shared=no
  4074. + ;;
  4075. +
  4076. + *nto* | *qnx*)
  4077. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  4078. + # it will coredump.
  4079. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  4080. + ;;
  4081. +
  4082. + sysv4*MP*)
  4083. + if test -d /usr/nec; then
  4084. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  4085. + fi
  4086. + ;;
  4087. +
  4088. + *)
  4089. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4090. + ;;
  4091. + esac
  4092. + else
  4093. + # PORTME Check for flag to pass linker flags through the system compiler.
  4094. + case $host_os in
  4095. + aix*)
  4096. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4097. + if test "$host_cpu" = ia64; then
  4098. + # AIX 5 now supports IA64 processor
  4099. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4100. + else
  4101. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  4102. + fi
  4103. + ;;
  4104. +
  4105. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  4106. + # This hack is so that the source file can tell whether it is being
  4107. + # built for inclusion in a dll (and should export symbols for example).
  4108. + m4_if([$1], [GCJ], [],
  4109. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  4110. + ;;
  4111. +
  4112. + hpux9* | hpux10* | hpux11*)
  4113. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4114. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  4115. + # not for PA HP-UX.
  4116. + case $host_cpu in
  4117. + hppa*64*|ia64*)
  4118. + # +Z the default
  4119. + ;;
  4120. + *)
  4121. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  4122. + ;;
  4123. + esac
  4124. + # Is there a better lt_prog_compiler_static that works with the bundled CC?
  4125. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  4126. + ;;
  4127. +
  4128. + irix5* | irix6* | nonstopux*)
  4129. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4130. + # PIC (with -KPIC) is the default.
  4131. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4132. + ;;
  4133. +
  4134. + linux* | k*bsd*-gnu)
  4135. + case $cc_basename in
  4136. + # old Intel for x86_64 which still supported -KPIC.
  4137. + ecc*)
  4138. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4139. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4140. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4141. + ;;
  4142. + # icc used to be incompatible with GCC.
  4143. + # ICC 10 doesn't accept -KPIC any more.
  4144. + icc* | ifort*)
  4145. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4146. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4147. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4148. + ;;
  4149. + # Lahey Fortran 8.1.
  4150. + lf95*)
  4151. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4152. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
  4153. + _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
  4154. + ;;
  4155. + pgcc* | pgf77* | pgf90* | pgf95*)
  4156. + # Portland Group compilers (*not* the Pentium gcc compiler,
  4157. + # which looks to be a dead project)
  4158. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4159. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  4160. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4161. + ;;
  4162. + ccc*)
  4163. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4164. + # All Alpha code is PIC.
  4165. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4166. + ;;
  4167. + xl*)
  4168. + # IBM XL C 8.0/Fortran 10.1 on PPC
  4169. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4170. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  4171. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  4172. + ;;
  4173. + *)
  4174. + case `$CC -V 2>&1 | sed 5q` in
  4175. + *Sun\ C*)
  4176. + # Sun C 5.9
  4177. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4178. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4179. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4180. + ;;
  4181. + *Sun\ F*)
  4182. + # Sun Fortran 8.3 passes all unrecognized flags to the linker
  4183. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4184. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4185. + _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
  4186. + ;;
  4187. + esac
  4188. + ;;
  4189. + esac
  4190. + ;;
  4191. +
  4192. + newsos6)
  4193. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4194. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4195. + ;;
  4196. +
  4197. + *nto* | *qnx*)
  4198. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  4199. + # it will coredump.
  4200. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  4201. + ;;
  4202. +
  4203. + osf3* | osf4* | osf5*)
  4204. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4205. + # All OSF/1 code is PIC.
  4206. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4207. + ;;
  4208. +
  4209. + rdos*)
  4210. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4211. + ;;
  4212. +
  4213. + solaris*)
  4214. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4215. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4216. + case $cc_basename in
  4217. + f77* | f90* | f95*)
  4218. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  4219. + *)
  4220. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  4221. + esac
  4222. + ;;
  4223. +
  4224. + sunos4*)
  4225. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  4226. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  4227. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4228. + ;;
  4229. +
  4230. + sysv4 | sysv4.2uw2* | sysv4.3*)
  4231. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4232. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4233. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4234. + ;;
  4235. +
  4236. + sysv4*MP*)
  4237. + if test -d /usr/nec ;then
  4238. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  4239. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4240. + fi
  4241. + ;;
  4242. +
  4243. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  4244. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4245. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4246. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4247. + ;;
  4248. +
  4249. + unicos*)
  4250. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4251. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  4252. + ;;
  4253. +
  4254. + uts4*)
  4255. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4256. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4257. + ;;
  4258. +
  4259. + *)
  4260. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  4261. + ;;
  4262. + esac
  4263. + fi
  4264. ])
  4265. +case $host_os in
  4266. + # For platforms which do not support PIC, -DPIC is meaningless:
  4267. + *djgpp*)
  4268. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  4269. + ;;
  4270. + *)
  4271. + _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
  4272. + ;;
  4273. +esac
  4274. +AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
  4275. +_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
  4276. + [How to pass a linker flag through the compiler])
  4277. -dnl
  4278. -dnl Checks to see if unaligned memory accesses fail
  4279. -dnl (Pulled from libpcap)
  4280. -dnl
  4281. -dnl usage:
  4282. -dnl
  4283. -dnl AC_LBL_UNALIGNED_ACCESS
  4284. -dnl
  4285. -dnl results:
  4286. -dnl
  4287. -dnl LBL_ALIGN (DEFINED)
  4288. -dnl
  4289. +#
  4290. +# Check to make sure the PIC flag actually works.
  4291. +#
  4292. +if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
  4293. + _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
  4294. + [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
  4295. + [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
  4296. + [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
  4297. + "" | " "*) ;;
  4298. + *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  4299. + esac],
  4300. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  4301. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  4302. +fi
  4303. +_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
  4304. + [Additional compiler flags for building library objects])
  4305. -AC_DEFUN(AC_LBL_UNALIGNED_ACCESS,
  4306. - [AC_MSG_CHECKING(if unaligned accesses fail)
  4307. - AC_CACHE_VAL(ac_cv_lbl_unaligned_fail,
  4308. - [case "$target_cpu" in
  4309. +#
  4310. +# Check to make sure the static flag actually works.
  4311. +#
  4312. +wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
  4313. +_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  4314. + _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
  4315. + $lt_tmp_static_flag,
  4316. + [],
  4317. + [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
  4318. +_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
  4319. + [Compiler flag to prevent dynamic linking])
  4320. +])# _LT_COMPILER_PIC
  4321. - alpha|hp*|mips|sparc)
  4322. - ac_cv_lbl_unaligned_fail=yes
  4323. - ;;
  4324. - *)
  4325. - cat >conftest.c <<EOF
  4326. -# include <sys/types.h>
  4327. -# include <sys/wait.h>
  4328. -# include <stdio.h>
  4329. - unsigned char a[[5]] = { 1, 2, 3, 4, 5 };
  4330. - main()
  4331. - {
  4332. - unsigned int i;
  4333. - pid_t pid;
  4334. - int status;
  4335. - /* avoid "core dumped" message */
  4336. - pid = fork();
  4337. - if (pid < 0)
  4338. - {
  4339. - exit(2);
  4340. - }
  4341. - if (pid > 0)
  4342. - {
  4343. - /* parent */
  4344. - pid = waitpid(pid, &status, 0);
  4345. - if (pid < 0)
  4346. - {
  4347. - exit(3);
  4348. - }
  4349. - exit(!WIFEXITED(status));
  4350. - }
  4351. - /* child */
  4352. - i = *(unsigned int *)&a[[1]];
  4353. - printf("%d\n", i);
  4354. - exit(0);
  4355. - }
  4356. -EOF
  4357. - ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
  4358. - conftest.c $LIBS > /dev/null 2>&1
  4359. - # Oopz 4.3 BSD doesn't have this. Sorry.
  4360. - if test ! -x conftest ; then
  4361. - dnl failed to compile for some reason
  4362. - ac_cv_lbl_unaligned_fail=yes
  4363. - else
  4364. - ./conftest > conftest.out
  4365. - if test ! -s conftest.out ; then
  4366. - ac_cv_lbl_unaligned_fail=yes
  4367. - else
  4368. - ac_cv_lbl_unaligned_fail=no
  4369. - fi
  4370. - fi
  4371. - rm -f conftest* core core.conftest
  4372. - ;;
  4373. - esac])
  4374. - AC_MSG_RESULT($ac_cv_lbl_unaligned_fail)
  4375. - if test $ac_cv_lbl_unaligned_fail = yes ; then
  4376. - AC_DEFINE(LBL_ALIGN)
  4377. +# _LT_LINKER_SHLIBS([TAGNAME])
  4378. +# ----------------------------
  4379. +# See if the linker supports building shared libraries.
  4380. +m4_defun([_LT_LINKER_SHLIBS],
  4381. +[AC_REQUIRE([LT_PATH_LD])dnl
  4382. +AC_REQUIRE([LT_PATH_NM])dnl
  4383. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  4384. +m4_require([_LT_DECL_EGREP])dnl
  4385. +m4_require([_LT_DECL_SED])dnl
  4386. +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  4387. +m4_require([_LT_TAG_COMPILER])dnl
  4388. +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  4389. +m4_if([$1], [CXX], [
  4390. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4391. + case $host_os in
  4392. + aix[[4-9]]*)
  4393. + # If we're using GNU nm, then we don't want the "-C" option.
  4394. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  4395. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  4396. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  4397. + else
  4398. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  4399. + fi
  4400. + ;;
  4401. + pw32*)
  4402. + _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  4403. + ;;
  4404. + cygwin* | mingw* | cegcc*)
  4405. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
  4406. + ;;
  4407. + *)
  4408. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4409. + ;;
  4410. + esac
  4411. + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  4412. +], [
  4413. + runpath_var=
  4414. + _LT_TAGVAR(allow_undefined_flag, $1)=
  4415. + _LT_TAGVAR(always_export_symbols, $1)=no
  4416. + _LT_TAGVAR(archive_cmds, $1)=
  4417. + _LT_TAGVAR(archive_expsym_cmds, $1)=
  4418. + _LT_TAGVAR(compiler_needs_object, $1)=no
  4419. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  4420. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  4421. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4422. + _LT_TAGVAR(hardcode_automatic, $1)=no
  4423. + _LT_TAGVAR(hardcode_direct, $1)=no
  4424. + _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  4425. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  4426. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  4427. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  4428. + _LT_TAGVAR(hardcode_minus_L, $1)=no
  4429. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  4430. + _LT_TAGVAR(inherit_rpath, $1)=no
  4431. + _LT_TAGVAR(link_all_deplibs, $1)=unknown
  4432. + _LT_TAGVAR(module_cmds, $1)=
  4433. + _LT_TAGVAR(module_expsym_cmds, $1)=
  4434. + _LT_TAGVAR(old_archive_from_new_cmds, $1)=
  4435. + _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  4436. + _LT_TAGVAR(thread_safe_flag_spec, $1)=
  4437. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4438. + # include_expsyms should be a list of space-separated symbols to be *always*
  4439. + # included in the symbol list
  4440. + _LT_TAGVAR(include_expsyms, $1)=
  4441. + # exclude_expsyms can be an extended regexp of symbols to exclude
  4442. + # it will be wrapped by ` (' and `)$', so one must not match beginning or
  4443. + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  4444. + # as well as any symbol that contains `d'.
  4445. + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  4446. + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  4447. + # platforms (ab)use it in PIC code, but their linkers get confused if
  4448. + # the symbol is explicitly referenced. Since portable code cannot
  4449. + # rely on this symbol name, it's probably fine to never include it in
  4450. + # preloaded symbol tables.
  4451. + # Exclude shared library initialization/finalization symbols.
  4452. +dnl Note also adjust exclude_expsyms for C++ above.
  4453. + extract_expsyms_cmds=
  4454. +
  4455. + case $host_os in
  4456. + cygwin* | mingw* | pw32* | cegcc*)
  4457. + # FIXME: the MSVC++ port hasn't been tested in a loooong time
  4458. + # When not using gcc, we currently assume that we are using
  4459. + # Microsoft Visual C++.
  4460. + if test "$GCC" != yes; then
  4461. + with_gnu_ld=no
  4462. + fi
  4463. + ;;
  4464. + interix*)
  4465. + # we just hope/assume this is gcc and not c89 (= MSVC++)
  4466. + with_gnu_ld=yes
  4467. + ;;
  4468. + openbsd*)
  4469. + with_gnu_ld=no
  4470. + ;;
  4471. + esac
  4472. +
  4473. + _LT_TAGVAR(ld_shlibs, $1)=yes
  4474. + if test "$with_gnu_ld" = yes; then
  4475. + # If archive_cmds runs LD, not CC, wlarc should be empty
  4476. + wlarc='${wl}'
  4477. +
  4478. + # Set some defaults for GNU ld with shared library support. These
  4479. + # are reset later if shared libraries are not supported. Putting them
  4480. + # here allows them to be overridden if necessary.
  4481. + runpath_var=LD_RUN_PATH
  4482. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4483. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  4484. + # ancient GNU ld didn't support --whole-archive et. al.
  4485. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  4486. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  4487. + else
  4488. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4489. + fi
  4490. + supports_anon_versioning=no
  4491. + case `$LD -v 2>&1` in
  4492. + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  4493. + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  4494. + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  4495. + *\ 2.11.*) ;; # other 2.11 versions
  4496. + *) supports_anon_versioning=yes ;;
  4497. + esac
  4498. +
  4499. + # See if GNU ld supports shared libraries.
  4500. + case $host_os in
  4501. + aix[[3-9]]*)
  4502. + # On AIX/PPC, the GNU linker is very broken
  4503. + if test "$host_cpu" != ia64; then
  4504. + _LT_TAGVAR(ld_shlibs, $1)=no
  4505. + cat <<_LT_EOF 1>&2
  4506. +
  4507. +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  4508. +*** to be unable to reliably create shared libraries on AIX.
  4509. +*** Therefore, libtool is disabling shared libraries support. If you
  4510. +*** really care for shared libraries, you may want to modify your PATH
  4511. +*** so that a non-GNU linker is found, and then restart.
  4512. +
  4513. +_LT_EOF
  4514. + fi
  4515. + ;;
  4516. +
  4517. + amigaos*)
  4518. + case $host_cpu in
  4519. + powerpc)
  4520. + # see comment about AmigaOS4 .so support
  4521. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4522. + _LT_TAGVAR(archive_expsym_cmds, $1)=''
  4523. + ;;
  4524. + m68k)
  4525. + _LT_TAGVAR(archive_cmds, $1)='$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)'
  4526. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4527. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4528. + ;;
  4529. + esac
  4530. + ;;
  4531. +
  4532. + beos*)
  4533. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4534. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4535. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  4536. + # support --undefined. This deserves some investigation. FIXME
  4537. + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4538. + else
  4539. + _LT_TAGVAR(ld_shlibs, $1)=no
  4540. + fi
  4541. + ;;
  4542. +
  4543. + cygwin* | mingw* | pw32* | cegcc*)
  4544. + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  4545. + # as there is no search path for DLLs.
  4546. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4547. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4548. + _LT_TAGVAR(always_export_symbols, $1)=no
  4549. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  4550. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
  4551. +
  4552. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  4553. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  4554. + # If the export-symbols file already is a .def file (1st line
  4555. + # is EXPORTS), use it as is; otherwise, prepend...
  4556. + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  4557. + cp $export_symbols $output_objdir/$soname.def;
  4558. + else
  4559. + echo EXPORTS > $output_objdir/$soname.def;
  4560. + cat $export_symbols >> $output_objdir/$soname.def;
  4561. + fi~
  4562. + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  4563. + else
  4564. + _LT_TAGVAR(ld_shlibs, $1)=no
  4565. + fi
  4566. + ;;
  4567. +
  4568. + interix[[3-9]]*)
  4569. + _LT_TAGVAR(hardcode_direct, $1)=no
  4570. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4571. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4572. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4573. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  4574. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  4575. + # default) and relocated if they conflict, which is a slow very memory
  4576. + # consuming and fragmenting process. To avoid this, we pick a random,
  4577. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  4578. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  4579. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  4580. + _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  4581. + ;;
  4582. +
  4583. + gnu* | linux* | tpf* | k*bsd*-gnu)
  4584. + tmp_diet=no
  4585. + if test "$host_os" = linux-dietlibc; then
  4586. + case $cc_basename in
  4587. + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  4588. + esac
  4589. + fi
  4590. + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  4591. + && test "$tmp_diet" = no
  4592. + then
  4593. + tmp_addflag=
  4594. + tmp_sharedflag='-shared'
  4595. + case $cc_basename,$host_cpu in
  4596. + pgcc*) # Portland Group C compiler
  4597. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  4598. + tmp_addflag=' $pic_flag'
  4599. + ;;
  4600. + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  4601. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  4602. + tmp_addflag=' $pic_flag -Mnomain' ;;
  4603. + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  4604. + tmp_addflag=' -i_dynamic' ;;
  4605. + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  4606. + tmp_addflag=' -i_dynamic -nofor_main' ;;
  4607. + ifc* | ifort*) # Intel Fortran compiler
  4608. + tmp_addflag=' -nofor_main' ;;
  4609. + lf95*) # Lahey Fortran 8.1
  4610. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4611. + tmp_sharedflag='--shared' ;;
  4612. + xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  4613. + tmp_sharedflag='-qmkshrobj'
  4614. + tmp_addflag= ;;
  4615. + esac
  4616. + case `$CC -V 2>&1 | sed 5q` in
  4617. + *Sun\ C*) # Sun C 5.9
  4618. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  4619. + _LT_TAGVAR(compiler_needs_object, $1)=yes
  4620. + tmp_sharedflag='-G' ;;
  4621. + *Sun\ F*) # Sun Fortran 8.3
  4622. + tmp_sharedflag='-G' ;;
  4623. + esac
  4624. + _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4625. +
  4626. + if test "x$supports_anon_versioning" = xyes; then
  4627. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  4628. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  4629. + echo "local: *; };" >> $output_objdir/$libname.ver~
  4630. + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  4631. + fi
  4632. +
  4633. + case $cc_basename in
  4634. + xlf*)
  4635. + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  4636. + _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
  4637. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  4638. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
  4639. + _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  4640. + if test "x$supports_anon_versioning" = xyes; then
  4641. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  4642. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  4643. + echo "local: *; };" >> $output_objdir/$libname.ver~
  4644. + $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  4645. + fi
  4646. + ;;
  4647. + esac
  4648. + else
  4649. + _LT_TAGVAR(ld_shlibs, $1)=no
  4650. + fi
  4651. + ;;
  4652. +
  4653. + netbsd*)
  4654. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  4655. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  4656. + wlarc=
  4657. + else
  4658. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4659. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  4660. + fi
  4661. + ;;
  4662. +
  4663. + solaris*)
  4664. + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  4665. + _LT_TAGVAR(ld_shlibs, $1)=no
  4666. + cat <<_LT_EOF 1>&2
  4667. +
  4668. +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  4669. +*** create shared libraries on Solaris systems. Therefore, libtool
  4670. +*** is disabling shared libraries support. We urge you to upgrade GNU
  4671. +*** binutils to release 2.9.1 or newer. Another option is to modify
  4672. +*** your PATH or compiler configuration so that the native linker is
  4673. +*** used, and then restart.
  4674. +
  4675. +_LT_EOF
  4676. + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4677. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4678. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  4679. + else
  4680. + _LT_TAGVAR(ld_shlibs, $1)=no
  4681. + fi
  4682. + ;;
  4683. +
  4684. + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  4685. + case `$LD -v 2>&1` in
  4686. + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  4687. + _LT_TAGVAR(ld_shlibs, $1)=no
  4688. + cat <<_LT_EOF 1>&2
  4689. +
  4690. +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  4691. +*** reliably create shared libraries on SCO systems. Therefore, libtool
  4692. +*** is disabling shared libraries support. We urge you to upgrade GNU
  4693. +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  4694. +*** your PATH or compiler configuration so that the native linker is
  4695. +*** used, and then restart.
  4696. +
  4697. +_LT_EOF
  4698. + ;;
  4699. + *)
  4700. + # For security reasons, it is highly recommended that you always
  4701. + # use absolute paths for naming shared libraries, and exclude the
  4702. + # DT_RUNPATH tag from executables and libraries. But doing so
  4703. + # requires that you compile everything twice, which is a pain.
  4704. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4705. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4706. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4707. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  4708. + else
  4709. + _LT_TAGVAR(ld_shlibs, $1)=no
  4710. + fi
  4711. + ;;
  4712. + esac
  4713. + ;;
  4714. +
  4715. + sunos4*)
  4716. + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  4717. + wlarc=
  4718. + _LT_TAGVAR(hardcode_direct, $1)=yes
  4719. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4720. + ;;
  4721. +
  4722. + *)
  4723. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4724. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4725. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  4726. + else
  4727. + _LT_TAGVAR(ld_shlibs, $1)=no
  4728. + fi
  4729. + ;;
  4730. + esac
  4731. +
  4732. + if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
  4733. + runpath_var=
  4734. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  4735. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  4736. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4737. fi
  4738. + else
  4739. + # PORTME fill in a description of your system's linker (not GNU ld)
  4740. + case $host_os in
  4741. + aix3*)
  4742. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4743. + _LT_TAGVAR(always_export_symbols, $1)=yes
  4744. + _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  4745. + # Note: this linker hardcodes the directories in LIBPATH if there
  4746. + # are no directories specified by -L.
  4747. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4748. + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  4749. + # Neither direct hardcoding nor static linking is supported with a
  4750. + # broken collect2.
  4751. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  4752. + fi
  4753. + ;;
  4754. +
  4755. + aix[[4-9]]*)
  4756. + if test "$host_cpu" = ia64; then
  4757. + # On IA64, the linker does run time linking by default, so we don't
  4758. + # have to do anything special.
  4759. + aix_use_runtimelinking=no
  4760. + exp_sym_flag='-Bexport'
  4761. + no_entry_flag=""
  4762. + else
  4763. + # If we're using GNU nm, then we don't want the "-C" option.
  4764. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  4765. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  4766. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  4767. + else
  4768. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  4769. + fi
  4770. + aix_use_runtimelinking=no
  4771. +
  4772. + # Test if we are trying to use run time linking or normal
  4773. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  4774. + # need to do runtime linking.
  4775. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  4776. + for ld_flag in $LDFLAGS; do
  4777. + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  4778. + aix_use_runtimelinking=yes
  4779. + break
  4780. + fi
  4781. + done
  4782. + ;;
  4783. + esac
  4784. +
  4785. + exp_sym_flag='-bexport'
  4786. + no_entry_flag='-bnoentry'
  4787. + fi
  4788. +
  4789. + # When large executables or shared objects are built, AIX ld can
  4790. + # have problems creating the table of contents. If linking a library
  4791. + # or program results in "error TOC overflow" add -mminimal-toc to
  4792. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  4793. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  4794. +
  4795. + _LT_TAGVAR(archive_cmds, $1)=''
  4796. + _LT_TAGVAR(hardcode_direct, $1)=yes
  4797. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  4798. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  4799. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  4800. + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  4801. +
  4802. + if test "$GCC" = yes; then
  4803. + case $host_os in aix4.[[012]]|aix4.[[012]].*)
  4804. + # We only want to do this on AIX 4.2 and lower, the check
  4805. + # below for broken collect2 doesn't work under 4.3+
  4806. + collect2name=`${CC} -print-prog-name=collect2`
  4807. + if test -f "$collect2name" &&
  4808. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  4809. + then
  4810. + # We have reworked collect2
  4811. + :
  4812. + else
  4813. + # We have old collect2
  4814. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  4815. + # It fails to find uninstalled libraries when the uninstalled
  4816. + # path is not listed in the libpath. Setting hardcode_minus_L
  4817. + # to unsupported forces relinking
  4818. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4819. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4820. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  4821. + fi
  4822. + ;;
  4823. + esac
  4824. + shared_flag='-shared'
  4825. + if test "$aix_use_runtimelinking" = yes; then
  4826. + shared_flag="$shared_flag "'${wl}-G'
  4827. + fi
  4828. + else
  4829. + # not using gcc
  4830. + if test "$host_cpu" = ia64; then
  4831. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  4832. + # chokes on -Wl,-G. The following line is correct:
  4833. + shared_flag='-G'
  4834. + else
  4835. + if test "$aix_use_runtimelinking" = yes; then
  4836. + shared_flag='${wl}-G'
  4837. + else
  4838. + shared_flag='${wl}-bM:SRE'
  4839. + fi
  4840. + fi
  4841. + fi
  4842. +
  4843. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  4844. + # It seems that -bexpall does not export symbols beginning with
  4845. + # underscore (_), so it is better to generate a list of symbols to export.
  4846. + _LT_TAGVAR(always_export_symbols, $1)=yes
  4847. + if test "$aix_use_runtimelinking" = yes; then
  4848. + # Warning - without using the other runtime loading flags (-brtl),
  4849. + # -berok will link without error, but may produce a broken library.
  4850. + _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  4851. + # Determine the default libpath from the value encoded in an
  4852. + # empty executable.
  4853. + _LT_SYS_MODULE_PATH_AIX
  4854. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  4855. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  4856. + else
  4857. + if test "$host_cpu" = ia64; then
  4858. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  4859. + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  4860. + _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  4861. + else
  4862. + # Determine the default libpath from the value encoded in an
  4863. + # empty executable.
  4864. + _LT_SYS_MODULE_PATH_AIX
  4865. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  4866. + # Warning - without using the other run time loading flags,
  4867. + # -berok will link without error, but may produce a broken library.
  4868. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  4869. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  4870. + # Exported symbols can be pulled into shared objects from archives
  4871. + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  4872. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  4873. + # This is similar to how AIX traditionally builds its shared libraries.
  4874. + _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  4875. + fi
  4876. + fi
  4877. + ;;
  4878. +
  4879. + amigaos*)
  4880. + case $host_cpu in
  4881. + powerpc)
  4882. + # see comment about AmigaOS4 .so support
  4883. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4884. + _LT_TAGVAR(archive_expsym_cmds, $1)=''
  4885. + ;;
  4886. + m68k)
  4887. + _LT_TAGVAR(archive_cmds, $1)='$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)'
  4888. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4889. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4890. + ;;
  4891. + esac
  4892. + ;;
  4893. +
  4894. + bsdi[[45]]*)
  4895. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  4896. + ;;
  4897. +
  4898. + cygwin* | mingw* | pw32* | cegcc*)
  4899. + # When not using gcc, we currently assume that we are using
  4900. + # Microsoft Visual C++.
  4901. + # hardcode_libdir_flag_spec is actually meaningless, as there is
  4902. + # no search path for DLLs.
  4903. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  4904. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4905. + # Tell ltmain to make .lib files, not .a files.
  4906. + libext=lib
  4907. + # Tell ltmain to make .dll files, not .so files.
  4908. + shrext_cmds=".dll"
  4909. + # FIXME: Setting linknames here is a bad hack.
  4910. + _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  4911. + # The linker will automatically build a .lib file if we build a DLL.
  4912. + _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  4913. + # FIXME: Should let the user specify the lib program.
  4914. + _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
  4915. + _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
  4916. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  4917. + ;;
  4918. +
  4919. + darwin* | rhapsody*)
  4920. + _LT_DARWIN_LINKER_FEATURES($1)
  4921. + ;;
  4922. +
  4923. + dgux*)
  4924. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4925. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4926. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4927. + ;;
  4928. +
  4929. + freebsd1*)
  4930. + _LT_TAGVAR(ld_shlibs, $1)=no
  4931. + ;;
  4932. +
  4933. + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  4934. + # support. Future versions do this automatically, but an explicit c++rt0.o
  4935. + # does not break anything, and helps significantly (at the cost of a little
  4936. + # extra space).
  4937. + freebsd2.2*)
  4938. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  4939. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4940. + _LT_TAGVAR(hardcode_direct, $1)=yes
  4941. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4942. + ;;
  4943. +
  4944. + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  4945. + freebsd2*)
  4946. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  4947. + _LT_TAGVAR(hardcode_direct, $1)=yes
  4948. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4949. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4950. + ;;
  4951. +
  4952. + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  4953. + freebsd* | dragonfly*)
  4954. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  4955. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4956. + _LT_TAGVAR(hardcode_direct, $1)=yes
  4957. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4958. + ;;
  4959. +
  4960. + hpux9*)
  4961. + if test "$GCC" = yes; then
  4962. + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  4963. + else
  4964. + _LT_TAGVAR(archive_cmds, $1)='$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'
  4965. + fi
  4966. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  4967. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4968. + _LT_TAGVAR(hardcode_direct, $1)=yes
  4969. +
  4970. + # hardcode_minus_L: Not really in the search PATH,
  4971. + # but as the default location of the library.
  4972. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4973. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4974. + ;;
  4975. +
  4976. + hpux10*)
  4977. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  4978. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  4979. + else
  4980. + _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  4981. + fi
  4982. + if test "$with_gnu_ld" = no; then
  4983. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  4984. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  4985. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4986. + _LT_TAGVAR(hardcode_direct, $1)=yes
  4987. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  4988. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4989. + # hardcode_minus_L: Not really in the search PATH,
  4990. + # but as the default location of the library.
  4991. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4992. + fi
  4993. + ;;
  4994. +
  4995. + hpux11*)
  4996. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  4997. + case $host_cpu in
  4998. + hppa*64*)
  4999. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  5000. + ;;
  5001. + ia64*)
  5002. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  5003. + ;;
  5004. + *)
  5005. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  5006. + ;;
  5007. + esac
  5008. + else
  5009. + case $host_cpu in
  5010. + hppa*64*)
  5011. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  5012. + ;;
  5013. + ia64*)
  5014. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  5015. + ;;
  5016. + *)
  5017. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  5018. + ;;
  5019. + esac
  5020. + fi
  5021. + if test "$with_gnu_ld" = no; then
  5022. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5023. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5024. +
  5025. + case $host_cpu in
  5026. + hppa*64*|ia64*)
  5027. + _LT_TAGVAR(hardcode_direct, $1)=no
  5028. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5029. + ;;
  5030. + *)
  5031. + _LT_TAGVAR(hardcode_direct, $1)=yes
  5032. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  5033. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5034. +
  5035. + # hardcode_minus_L: Not really in the search PATH,
  5036. + # but as the default location of the library.
  5037. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5038. + ;;
  5039. + esac
  5040. + fi
  5041. + ;;
  5042. +
  5043. + irix5* | irix6* | nonstopux*)
  5044. + if test "$GCC" = yes; then
  5045. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  5046. + # Try to use the -exported_symbol ld option, if it does not
  5047. + # work, assume that -exports_file does not work either and
  5048. + # implicitly export all symbols.
  5049. + save_LDFLAGS="$LDFLAGS"
  5050. + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  5051. + AC_LINK_IFELSE(int foo(void) {},
  5052. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  5053. + )
  5054. + LDFLAGS="$save_LDFLAGS"
  5055. + else
  5056. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  5057. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  5058. + fi
  5059. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  5060. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5061. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5062. + _LT_TAGVAR(inherit_rpath, $1)=yes
  5063. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  5064. + ;;
  5065. +
  5066. + netbsd*)
  5067. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  5068. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  5069. + else
  5070. + _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  5071. + fi
  5072. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5073. + _LT_TAGVAR(hardcode_direct, $1)=yes
  5074. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5075. + ;;
  5076. +
  5077. + newsos6)
  5078. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5079. + _LT_TAGVAR(hardcode_direct, $1)=yes
  5080. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5081. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5082. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5083. + ;;
  5084. +
  5085. + *nto* | *qnx*)
  5086. + ;;
  5087. +
  5088. + openbsd*)
  5089. + if test -f /usr/libexec/ld.so; then
  5090. + _LT_TAGVAR(hardcode_direct, $1)=yes
  5091. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5092. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  5093. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5094. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  5095. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  5096. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5097. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5098. + else
  5099. + case $host_os in
  5100. + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  5101. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  5102. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5103. + ;;
  5104. + *)
  5105. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  5106. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5107. + ;;
  5108. + esac
  5109. + fi
  5110. + else
  5111. + _LT_TAGVAR(ld_shlibs, $1)=no
  5112. + fi
  5113. + ;;
  5114. +
  5115. + os2*)
  5116. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5117. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5118. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5119. + _LT_TAGVAR(archive_cmds, $1)='$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'
  5120. + _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  5121. + ;;
  5122. +
  5123. + osf3*)
  5124. + if test "$GCC" = yes; then
  5125. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  5126. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  5127. + else
  5128. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  5129. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  5130. + fi
  5131. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  5132. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5133. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5134. + ;;
  5135. +
  5136. + osf4* | osf5*) # as osf3* with the addition of -msym flag
  5137. + if test "$GCC" = yes; then
  5138. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  5139. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  5140. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5141. + else
  5142. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  5143. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  5144. + _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
  5145. + $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  5146. +
  5147. + # Both c and cxx compiler support -rpath directly
  5148. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  5149. + fi
  5150. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  5151. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5152. + ;;
  5153. +
  5154. + solaris*)
  5155. + _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
  5156. + if test "$GCC" = yes; then
  5157. + wlarc='${wl}'
  5158. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  5159. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  5160. + $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  5161. + else
  5162. + case `$CC -V 2>&1` in
  5163. + *"Compilers 5.0"*)
  5164. + wlarc=''
  5165. + _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5166. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  5167. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  5168. + ;;
  5169. + *)
  5170. + wlarc='${wl}'
  5171. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  5172. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  5173. + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  5174. + ;;
  5175. + esac
  5176. + fi
  5177. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5178. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5179. + case $host_os in
  5180. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  5181. + *)
  5182. + # The compiler driver will combine and reorder linker options,
  5183. + # but understands `-z linker_flag'. GCC discards it without `$wl',
  5184. + # but is careful enough not to reorder.
  5185. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  5186. + if test "$GCC" = yes; then
  5187. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  5188. + else
  5189. + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  5190. + fi
  5191. + ;;
  5192. + esac
  5193. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  5194. + ;;
  5195. +
  5196. + sunos4*)
  5197. + if test "x$host_vendor" = xsequent; then
  5198. + # Use $CC to link under sequent, because it throws in some extra .o
  5199. + # files that make .init and .fini sections work.
  5200. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  5201. + else
  5202. + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  5203. + fi
  5204. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5205. + _LT_TAGVAR(hardcode_direct, $1)=yes
  5206. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5207. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5208. + ;;
  5209. +
  5210. + sysv4)
  5211. + case $host_vendor in
  5212. + sni)
  5213. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5214. + _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  5215. + ;;
  5216. + siemens)
  5217. + ## LD is ld it makes a PLAMLIB
  5218. + ## CC just makes a GrossModule.
  5219. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  5220. + _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  5221. + _LT_TAGVAR(hardcode_direct, $1)=no
  5222. + ;;
  5223. + motorola)
  5224. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5225. + _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  5226. + ;;
  5227. + esac
  5228. + runpath_var='LD_RUN_PATH'
  5229. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5230. + ;;
  5231. +
  5232. + sysv4.3*)
  5233. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5234. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5235. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  5236. + ;;
  5237. +
  5238. + sysv4*MP*)
  5239. + if test -d /usr/nec; then
  5240. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5241. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5242. + runpath_var=LD_RUN_PATH
  5243. + hardcode_runpath_var=yes
  5244. + _LT_TAGVAR(ld_shlibs, $1)=yes
  5245. + fi
  5246. + ;;
  5247. +
  5248. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  5249. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  5250. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5251. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5252. + runpath_var='LD_RUN_PATH'
  5253. +
  5254. + if test "$GCC" = yes; then
  5255. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5256. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5257. + else
  5258. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5259. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5260. + fi
  5261. + ;;
  5262. +
  5263. + sysv5* | sco3.2v5* | sco5v6*)
  5264. + # Note: We can NOT use -z defs as we might desire, because we do not
  5265. + # link with -lc, and that would cause any symbols used from libc to
  5266. + # always be unresolved, which means just about no library would
  5267. + # ever link correctly. If we're not using GNU ld we use -z text
  5268. + # though, which does catch some bad symbols but isn't as heavy-handed
  5269. + # as -z defs.
  5270. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  5271. + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  5272. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5273. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5274. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  5275. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  5276. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  5277. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  5278. + runpath_var='LD_RUN_PATH'
  5279. +
  5280. + if test "$GCC" = yes; then
  5281. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5282. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5283. + else
  5284. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5285. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5286. + fi
  5287. + ;;
  5288. +
  5289. + uts4*)
  5290. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5291. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5292. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5293. + ;;
  5294. +
  5295. + *)
  5296. + _LT_TAGVAR(ld_shlibs, $1)=no
  5297. + ;;
  5298. + esac
  5299. +
  5300. + if test x$host_vendor = xsni; then
  5301. + case $host in
  5302. + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  5303. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
  5304. + ;;
  5305. + esac
  5306. + fi
  5307. + fi
  5308. ])
  5309. +AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  5310. +test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  5311. +_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
  5312. -dnl
  5313. -dnl Checks endianess
  5314. -dnl
  5315. -dnl usage:
  5316. -dnl
  5317. -dnl AC_LIBNET_ENDIAN_CHECK
  5318. -dnl
  5319. -dnl results:
  5320. -dnl
  5321. -dnl LIBNET_BIG_ENDIAN = 1 or
  5322. -dnl LIBNET_LIL_ENDIAN = 1
  5323. -dnl
  5324. +_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
  5325. +_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
  5326. +_LT_DECL([], [extract_expsyms_cmds], [2],
  5327. + [The commands to extract the exported symbol list from a shared archive])
  5328. -AC_DEFUN(AC_LIBNET_ENDIAN_CHECK,
  5329. - [AC_MSG_CHECKING(machine endianess)
  5330. +#
  5331. +# Do we need to explicitly link libc?
  5332. +#
  5333. +case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
  5334. +x|xyes)
  5335. + # Assume -lc should be added
  5336. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  5337. - cat > conftest.c << EOF
  5338. -# include <stdio.h>
  5339. -# include <stdlib.h>
  5340. + if test "$enable_shared" = yes && test "$GCC" = yes; then
  5341. + case $_LT_TAGVAR(archive_cmds, $1) in
  5342. + *'~'*)
  5343. + # FIXME: we may have to deal with multi-command sequences.
  5344. + ;;
  5345. + '$CC '*)
  5346. + # Test whether the compiler implicitly links with -lc since on some
  5347. + # systems, -lgcc has to come before -lc. If gcc already passes -lc
  5348. + # to ld, don't add -lc before -lgcc.
  5349. + AC_MSG_CHECKING([whether -lc should be explicitly linked in])
  5350. + $RM conftest*
  5351. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  5352. - int main()
  5353. - {
  5354. - union
  5355. - {
  5356. - short s;
  5357. - char c[[sizeof(short)]];
  5358. - } un;
  5359. + if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  5360. + soname=conftest
  5361. + lib=conftest
  5362. + libobjs=conftest.$ac_objext
  5363. + deplibs=
  5364. + wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
  5365. + pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
  5366. + compiler_flags=-v
  5367. + linker_flags=-v
  5368. + verstring=
  5369. + output_objdir=.
  5370. + libname=conftest
  5371. + lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
  5372. + _LT_TAGVAR(allow_undefined_flag, $1)=
  5373. + if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
  5374. + then
  5375. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5376. + else
  5377. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  5378. + fi
  5379. + _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  5380. + else
  5381. + cat conftest.err 1>&5
  5382. + fi
  5383. + $RM conftest*
  5384. + AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
  5385. + ;;
  5386. + esac
  5387. + fi
  5388. + ;;
  5389. +esac
  5390. - un.s = 0x0102;
  5391. - if (sizeof (short) == 2)
  5392. - {
  5393. - if (un.c [[0]] == 1 && un.c [[1]] == 2)
  5394. - {
  5395. - printf("B\n");
  5396. - }
  5397. - else
  5398. - {
  5399. - if (un.c [[0]] == 2 && un.c [[1]] == 1)
  5400. - {
  5401. - printf("L\n");
  5402. - }
  5403. - }
  5404. - }
  5405. - else
  5406. - {
  5407. - printf("?\n");
  5408. - }
  5409. - return (EXIT_SUCCESS);
  5410. - }
  5411. -EOF
  5412. - ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.c $LIBS > /dev/null 2>&1
  5413. - # Oopz 4.3 BSD doesn't have this. Sorry.
  5414. - if test ! -x conftest ; then
  5415. -dnl failed to compile for some reason
  5416. - ac_cv_libnet_endianess=unknown
  5417. +_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
  5418. + [Whether or not to add -lc for building shared libraries])
  5419. +_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
  5420. + [enable_shared_with_static_runtimes], [0],
  5421. + [Whether or not to disallow shared libs when runtime libs are static])
  5422. +_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
  5423. + [Compiler flag to allow reflexive dlopens])
  5424. +_LT_TAGDECL([], [whole_archive_flag_spec], [1],
  5425. + [Compiler flag to generate shared objects directly from archives])
  5426. +_LT_TAGDECL([], [compiler_needs_object], [1],
  5427. + [Whether the compiler copes with passing no objects directly])
  5428. +_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
  5429. + [Create an old-style archive from a shared archive])
  5430. +_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
  5431. + [Create a temporary old-style archive to link instead of a shared archive])
  5432. +_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
  5433. +_LT_TAGDECL([], [archive_expsym_cmds], [2])
  5434. +_LT_TAGDECL([], [module_cmds], [2],
  5435. + [Commands used to build a loadable module if different from building
  5436. + a shared archive.])
  5437. +_LT_TAGDECL([], [module_expsym_cmds], [2])
  5438. +_LT_TAGDECL([], [with_gnu_ld], [1],
  5439. + [Whether we are building with GNU ld or not])
  5440. +_LT_TAGDECL([], [allow_undefined_flag], [1],
  5441. + [Flag that allows shared libraries with undefined symbols to be built])
  5442. +_LT_TAGDECL([], [no_undefined_flag], [1],
  5443. + [Flag that enforces no undefined symbols])
  5444. +_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
  5445. + [Flag to hardcode $libdir into a binary during linking.
  5446. + This must work even if $libdir does not exist])
  5447. +_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
  5448. + [[If ld is used when linking, flag to hardcode $libdir into a binary
  5449. + during linking. This must work even if $libdir does not exist]])
  5450. +_LT_TAGDECL([], [hardcode_libdir_separator], [1],
  5451. + [Whether we need a single "-rpath" flag with a separated argument])
  5452. +_LT_TAGDECL([], [hardcode_direct], [0],
  5453. + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  5454. + DIR into the resulting binary])
  5455. +_LT_TAGDECL([], [hardcode_direct_absolute], [0],
  5456. + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  5457. + DIR into the resulting binary and the resulting library dependency is
  5458. + "absolute", i.e impossible to change by setting ${shlibpath_var} if the
  5459. + library is relocated])
  5460. +_LT_TAGDECL([], [hardcode_minus_L], [0],
  5461. + [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  5462. + into the resulting binary])
  5463. +_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
  5464. + [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  5465. + into the resulting binary])
  5466. +_LT_TAGDECL([], [hardcode_automatic], [0],
  5467. + [Set to "yes" if building a shared library automatically hardcodes DIR
  5468. + into the library and all subsequent libraries and executables linked
  5469. + against it])
  5470. +_LT_TAGDECL([], [inherit_rpath], [0],
  5471. + [Set to yes if linker adds runtime paths of dependent libraries
  5472. + to runtime path list])
  5473. +_LT_TAGDECL([], [link_all_deplibs], [0],
  5474. + [Whether libtool must link a program against all its dependency libraries])
  5475. +_LT_TAGDECL([], [fix_srcfile_path], [1],
  5476. + [Fix the shell variable $srcfile for the compiler])
  5477. +_LT_TAGDECL([], [always_export_symbols], [0],
  5478. + [Set to "yes" if exported symbols are required])
  5479. +_LT_TAGDECL([], [export_symbols_cmds], [2],
  5480. + [The commands to list exported symbols])
  5481. +_LT_TAGDECL([], [exclude_expsyms], [1],
  5482. + [Symbols that should not be listed in the preloaded symbols])
  5483. +_LT_TAGDECL([], [include_expsyms], [1],
  5484. + [Symbols that must always be exported])
  5485. +_LT_TAGDECL([], [prelink_cmds], [2],
  5486. + [Commands necessary for linking programs (against libraries) with templates])
  5487. +_LT_TAGDECL([], [file_list_spec], [1],
  5488. + [Specify filename containing input files])
  5489. +dnl FIXME: Not yet implemented
  5490. +dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
  5491. +dnl [Compiler flag to generate thread safe objects])
  5492. +])# _LT_LINKER_SHLIBS
  5493. +
  5494. +
  5495. +# _LT_LANG_C_CONFIG([TAG])
  5496. +# ------------------------
  5497. +# Ensure that the configuration variables for a C compiler are suitably
  5498. +# defined. These variables are subsequently used by _LT_CONFIG to write
  5499. +# the compiler configuration to `libtool'.
  5500. +m4_defun([_LT_LANG_C_CONFIG],
  5501. +[m4_require([_LT_DECL_EGREP])dnl
  5502. +lt_save_CC="$CC"
  5503. +AC_LANG_PUSH(C)
  5504. +
  5505. +# Source file extension for C test sources.
  5506. +ac_ext=c
  5507. +
  5508. +# Object file extension for compiled C test sources.
  5509. +objext=o
  5510. +_LT_TAGVAR(objext, $1)=$objext
  5511. +
  5512. +# Code to be used in simple compile tests
  5513. +lt_simple_compile_test_code="int some_variable = 0;"
  5514. +
  5515. +# Code to be used in simple link tests
  5516. +lt_simple_link_test_code='int main(){return(0);}'
  5517. +
  5518. +_LT_TAG_COMPILER
  5519. +# Save the default compiler, since it gets overwritten when the other
  5520. +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  5521. +compiler_DEFAULT=$CC
  5522. +
  5523. +# save warnings/boilerplate of simple test code
  5524. +_LT_COMPILER_BOILERPLATE
  5525. +_LT_LINKER_BOILERPLATE
  5526. +
  5527. +if test -n "$compiler"; then
  5528. + _LT_COMPILER_NO_RTTI($1)
  5529. + _LT_COMPILER_PIC($1)
  5530. + _LT_COMPILER_C_O($1)
  5531. + _LT_COMPILER_FILE_LOCKS($1)
  5532. + _LT_LINKER_SHLIBS($1)
  5533. + _LT_SYS_DYNAMIC_LINKER($1)
  5534. + _LT_LINKER_HARDCODE_LIBPATH($1)
  5535. + LT_SYS_DLOPEN_SELF
  5536. + _LT_CMD_STRIPLIB
  5537. +
  5538. + # Report which library types will actually be built
  5539. + AC_MSG_CHECKING([if libtool supports shared libraries])
  5540. + AC_MSG_RESULT([$can_build_shared])
  5541. +
  5542. + AC_MSG_CHECKING([whether to build shared libraries])
  5543. + test "$can_build_shared" = "no" && enable_shared=no
  5544. +
  5545. + # On AIX, shared libraries and static libraries use the same namespace, and
  5546. + # are all built from PIC.
  5547. + case $host_os in
  5548. + aix3*)
  5549. + test "$enable_shared" = yes && enable_static=no
  5550. + if test -n "$RANLIB"; then
  5551. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  5552. + postinstall_cmds='$RANLIB $lib'
  5553. + fi
  5554. + ;;
  5555. +
  5556. + aix[[4-9]]*)
  5557. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  5558. + test "$enable_shared" = yes && enable_static=no
  5559. + fi
  5560. + ;;
  5561. + esac
  5562. + AC_MSG_RESULT([$enable_shared])
  5563. +
  5564. + AC_MSG_CHECKING([whether to build static libraries])
  5565. + # Make sure either enable_shared or enable_static is yes.
  5566. + test "$enable_shared" = yes || enable_static=yes
  5567. + AC_MSG_RESULT([$enable_static])
  5568. +
  5569. + _LT_CONFIG($1)
  5570. +fi
  5571. +AC_LANG_POP
  5572. +CC="$lt_save_CC"
  5573. +])# _LT_LANG_C_CONFIG
  5574. +
  5575. +
  5576. +# _LT_PROG_CXX
  5577. +# ------------
  5578. +# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
  5579. +# compiler, we have our own version here.
  5580. +m4_defun([_LT_PROG_CXX],
  5581. +[
  5582. +pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
  5583. +AC_PROG_CXX
  5584. +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  5585. + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  5586. + (test "X$CXX" != "Xg++"))) ; then
  5587. + AC_PROG_CXXCPP
  5588. +else
  5589. + _lt_caught_CXX_error=yes
  5590. +fi
  5591. +popdef([AC_MSG_ERROR])
  5592. +])# _LT_PROG_CXX
  5593. +
  5594. +dnl aclocal-1.4 backwards compatibility:
  5595. +dnl AC_DEFUN([_LT_PROG_CXX], [])
  5596. +
  5597. +
  5598. +# _LT_LANG_CXX_CONFIG([TAG])
  5599. +# --------------------------
  5600. +# Ensure that the configuration variables for a C++ compiler are suitably
  5601. +# defined. These variables are subsequently used by _LT_CONFIG to write
  5602. +# the compiler configuration to `libtool'.
  5603. +m4_defun([_LT_LANG_CXX_CONFIG],
  5604. +[AC_REQUIRE([_LT_PROG_CXX])dnl
  5605. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  5606. +m4_require([_LT_DECL_EGREP])dnl
  5607. +
  5608. +AC_LANG_PUSH(C++)
  5609. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5610. +_LT_TAGVAR(allow_undefined_flag, $1)=
  5611. +_LT_TAGVAR(always_export_symbols, $1)=no
  5612. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  5613. +_LT_TAGVAR(compiler_needs_object, $1)=no
  5614. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  5615. +_LT_TAGVAR(hardcode_direct, $1)=no
  5616. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  5617. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  5618. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  5619. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  5620. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  5621. +_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  5622. +_LT_TAGVAR(hardcode_automatic, $1)=no
  5623. +_LT_TAGVAR(inherit_rpath, $1)=no
  5624. +_LT_TAGVAR(module_cmds, $1)=
  5625. +_LT_TAGVAR(module_expsym_cmds, $1)=
  5626. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  5627. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  5628. +_LT_TAGVAR(no_undefined_flag, $1)=
  5629. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  5630. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  5631. +
  5632. +# Source file extension for C++ test sources.
  5633. +ac_ext=cpp
  5634. +
  5635. +# Object file extension for compiled C++ test sources.
  5636. +objext=o
  5637. +_LT_TAGVAR(objext, $1)=$objext
  5638. +
  5639. +# No sense in running all these tests if we already determined that
  5640. +# the CXX compiler isn't working. Some variables (like enable_shared)
  5641. +# are currently assumed to apply to all compilers on this platform,
  5642. +# and will be corrupted by setting them based on a non-working compiler.
  5643. +if test "$_lt_caught_CXX_error" != yes; then
  5644. + # Code to be used in simple compile tests
  5645. + lt_simple_compile_test_code="int some_variable = 0;"
  5646. +
  5647. + # Code to be used in simple link tests
  5648. + lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
  5649. +
  5650. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  5651. + _LT_TAG_COMPILER
  5652. +
  5653. + # save warnings/boilerplate of simple test code
  5654. + _LT_COMPILER_BOILERPLATE
  5655. + _LT_LINKER_BOILERPLATE
  5656. +
  5657. + # Allow CC to be a program name with arguments.
  5658. + lt_save_CC=$CC
  5659. + lt_save_LD=$LD
  5660. + lt_save_GCC=$GCC
  5661. + GCC=$GXX
  5662. + lt_save_with_gnu_ld=$with_gnu_ld
  5663. + lt_save_path_LD=$lt_cv_path_LD
  5664. + if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  5665. + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  5666. + else
  5667. + $as_unset lt_cv_prog_gnu_ld
  5668. + fi
  5669. + if test -n "${lt_cv_path_LDCXX+set}"; then
  5670. + lt_cv_path_LD=$lt_cv_path_LDCXX
  5671. + else
  5672. + $as_unset lt_cv_path_LD
  5673. + fi
  5674. + test -z "${LDCXX+set}" || LD=$LDCXX
  5675. + CC=${CXX-"c++"}
  5676. + compiler=$CC
  5677. + _LT_TAGVAR(compiler, $1)=$CC
  5678. + _LT_CC_BASENAME([$compiler])
  5679. +
  5680. + if test -n "$compiler"; then
  5681. + # We don't want -fno-exception when compiling C++ code, so set the
  5682. + # no_builtin_flag separately
  5683. + if test "$GXX" = yes; then
  5684. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  5685. + else
  5686. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  5687. + fi
  5688. +
  5689. + if test "$GXX" = yes; then
  5690. + # Set up default GNU C++ configuration
  5691. +
  5692. + LT_PATH_LD
  5693. +
  5694. + # Check if GNU C++ uses GNU ld as the underlying linker, since the
  5695. + # archiving commands below assume that GNU ld is being used.
  5696. + if test "$with_gnu_ld" = yes; then
  5697. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5698. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  5699. +
  5700. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5701. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5702. +
  5703. + # If archive_cmds runs LD, not CC, wlarc should be empty
  5704. + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  5705. + # investigate it a little bit more. (MM)
  5706. + wlarc='${wl}'
  5707. +
  5708. + # ancient GNU ld didn't support --whole-archive et. al.
  5709. + if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  5710. + $GREP 'no-whole-archive' > /dev/null; then
  5711. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  5712. else
  5713. - ./conftest > conftest.out
  5714. - result=`cat conftest.out`
  5715. - if test $result = "B"; then
  5716. - ac_cv_libnet_endianess=big
  5717. - elif test $result = "L"; then
  5718. - ac_cv_libnet_endianess=lil
  5719. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  5720. + fi
  5721. + else
  5722. + with_gnu_ld=no
  5723. + wlarc=
  5724. +
  5725. + # A generic and very simple default shared library creation
  5726. + # command for GNU C++ for the case where it uses the native
  5727. + # linker, instead of GNU ld. If possible, this setting should
  5728. + # overridden to take advantage of the native linker features on
  5729. + # the platform it is being used on.
  5730. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  5731. + fi
  5732. +
  5733. + # Commands to make compiler produce verbose output that lists
  5734. + # what "hidden" libraries, object files and flags are used when
  5735. + # linking a shared library.
  5736. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  5737. +
  5738. + else
  5739. + GXX=no
  5740. + with_gnu_ld=no
  5741. + wlarc=
  5742. + fi
  5743. +
  5744. + # PORTME: fill in a description of your system's C++ link characteristics
  5745. + AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  5746. + _LT_TAGVAR(ld_shlibs, $1)=yes
  5747. + case $host_os in
  5748. + aix3*)
  5749. + # FIXME: insert proper C++ library support
  5750. + _LT_TAGVAR(ld_shlibs, $1)=no
  5751. + ;;
  5752. + aix[[4-9]]*)
  5753. + if test "$host_cpu" = ia64; then
  5754. + # On IA64, the linker does run time linking by default, so we don't
  5755. + # have to do anything special.
  5756. + aix_use_runtimelinking=no
  5757. + exp_sym_flag='-Bexport'
  5758. + no_entry_flag=""
  5759. + else
  5760. + aix_use_runtimelinking=no
  5761. +
  5762. + # Test if we are trying to use run time linking or normal
  5763. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  5764. + # need to do runtime linking.
  5765. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  5766. + for ld_flag in $LDFLAGS; do
  5767. + case $ld_flag in
  5768. + *-brtl*)
  5769. + aix_use_runtimelinking=yes
  5770. + break
  5771. + ;;
  5772. + esac
  5773. + done
  5774. + ;;
  5775. + esac
  5776. +
  5777. + exp_sym_flag='-bexport'
  5778. + no_entry_flag='-bnoentry'
  5779. + fi
  5780. +
  5781. + # When large executables or shared objects are built, AIX ld can
  5782. + # have problems creating the table of contents. If linking a library
  5783. + # or program results in "error TOC overflow" add -mminimal-toc to
  5784. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  5785. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  5786. +
  5787. + _LT_TAGVAR(archive_cmds, $1)=''
  5788. + _LT_TAGVAR(hardcode_direct, $1)=yes
  5789. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  5790. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  5791. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  5792. + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  5793. +
  5794. + if test "$GXX" = yes; then
  5795. + case $host_os in aix4.[[012]]|aix4.[[012]].*)
  5796. + # We only want to do this on AIX 4.2 and lower, the check
  5797. + # below for broken collect2 doesn't work under 4.3+
  5798. + collect2name=`${CC} -print-prog-name=collect2`
  5799. + if test -f "$collect2name" &&
  5800. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  5801. + then
  5802. + # We have reworked collect2
  5803. + :
  5804. + else
  5805. + # We have old collect2
  5806. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  5807. + # It fails to find uninstalled libraries when the uninstalled
  5808. + # path is not listed in the libpath. Setting hardcode_minus_L
  5809. + # to unsupported forces relinking
  5810. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5811. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5812. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  5813. + fi
  5814. + esac
  5815. + shared_flag='-shared'
  5816. + if test "$aix_use_runtimelinking" = yes; then
  5817. + shared_flag="$shared_flag "'${wl}-G'
  5818. + fi
  5819. + else
  5820. + # not using gcc
  5821. + if test "$host_cpu" = ia64; then
  5822. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  5823. + # chokes on -Wl,-G. The following line is correct:
  5824. + shared_flag='-G'
  5825. + else
  5826. + if test "$aix_use_runtimelinking" = yes; then
  5827. + shared_flag='${wl}-G'
  5828. + else
  5829. + shared_flag='${wl}-bM:SRE'
  5830. + fi
  5831. + fi
  5832. + fi
  5833. +
  5834. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  5835. + # It seems that -bexpall does not export symbols beginning with
  5836. + # underscore (_), so it is better to generate a list of symbols to
  5837. + # export.
  5838. + _LT_TAGVAR(always_export_symbols, $1)=yes
  5839. + if test "$aix_use_runtimelinking" = yes; then
  5840. + # Warning - without using the other runtime loading flags (-brtl),
  5841. + # -berok will link without error, but may produce a broken library.
  5842. + _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  5843. + # Determine the default libpath from the value encoded in an empty
  5844. + # executable.
  5845. + _LT_SYS_MODULE_PATH_AIX
  5846. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  5847. +
  5848. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  5849. + else
  5850. + if test "$host_cpu" = ia64; then
  5851. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  5852. + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  5853. + _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  5854. + else
  5855. + # Determine the default libpath from the value encoded in an
  5856. + # empty executable.
  5857. + _LT_SYS_MODULE_PATH_AIX
  5858. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  5859. + # Warning - without using the other run time loading flags,
  5860. + # -berok will link without error, but may produce a broken library.
  5861. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  5862. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  5863. + # Exported symbols can be pulled into shared objects from archives
  5864. + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  5865. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  5866. + # This is similar to how AIX traditionally builds its shared
  5867. + # libraries.
  5868. + _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  5869. + fi
  5870. + fi
  5871. + ;;
  5872. +
  5873. + beos*)
  5874. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  5875. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5876. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  5877. + # support --undefined. This deserves some investigation. FIXME
  5878. + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5879. + else
  5880. + _LT_TAGVAR(ld_shlibs, $1)=no
  5881. + fi
  5882. + ;;
  5883. +
  5884. + chorus*)
  5885. + case $cc_basename in
  5886. + *)
  5887. + # FIXME: insert proper C++ library support
  5888. + _LT_TAGVAR(ld_shlibs, $1)=no
  5889. + ;;
  5890. + esac
  5891. + ;;
  5892. +
  5893. + cygwin* | mingw* | pw32* | cegcc*)
  5894. + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  5895. + # as there is no search path for DLLs.
  5896. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5897. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5898. + _LT_TAGVAR(always_export_symbols, $1)=no
  5899. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  5900. +
  5901. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  5902. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  5903. + # If the export-symbols file already is a .def file (1st line
  5904. + # is EXPORTS), use it as is; otherwise, prepend...
  5905. + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  5906. + cp $export_symbols $output_objdir/$soname.def;
  5907. + else
  5908. + echo EXPORTS > $output_objdir/$soname.def;
  5909. + cat $export_symbols >> $output_objdir/$soname.def;
  5910. + fi~
  5911. + $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  5912. + else
  5913. + _LT_TAGVAR(ld_shlibs, $1)=no
  5914. + fi
  5915. + ;;
  5916. + darwin* | rhapsody*)
  5917. + _LT_DARWIN_LINKER_FEATURES($1)
  5918. + ;;
  5919. +
  5920. + dgux*)
  5921. + case $cc_basename in
  5922. + ec++*)
  5923. + # FIXME: insert proper C++ library support
  5924. + _LT_TAGVAR(ld_shlibs, $1)=no
  5925. + ;;
  5926. + ghcx*)
  5927. + # Green Hills C++ Compiler
  5928. + # FIXME: insert proper C++ library support
  5929. + _LT_TAGVAR(ld_shlibs, $1)=no
  5930. + ;;
  5931. + *)
  5932. + # FIXME: insert proper C++ library support
  5933. + _LT_TAGVAR(ld_shlibs, $1)=no
  5934. + ;;
  5935. + esac
  5936. + ;;
  5937. +
  5938. + freebsd[[12]]*)
  5939. + # C++ shared libraries reported to be fairly broken before
  5940. + # switch to ELF
  5941. + _LT_TAGVAR(ld_shlibs, $1)=no
  5942. + ;;
  5943. +
  5944. + freebsd-elf*)
  5945. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5946. + ;;
  5947. +
  5948. + freebsd* | dragonfly*)
  5949. + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  5950. + # conventions
  5951. + _LT_TAGVAR(ld_shlibs, $1)=yes
  5952. + ;;
  5953. +
  5954. + gnu*)
  5955. + ;;
  5956. +
  5957. + hpux9*)
  5958. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5959. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5960. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5961. + _LT_TAGVAR(hardcode_direct, $1)=yes
  5962. + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  5963. + # but as the default
  5964. + # location of the library.
  5965. +
  5966. + case $cc_basename in
  5967. + CC*)
  5968. + # FIXME: insert proper C++ library support
  5969. + _LT_TAGVAR(ld_shlibs, $1)=no
  5970. + ;;
  5971. + aCC*)
  5972. + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  5973. + # Commands to make compiler produce verbose output that lists
  5974. + # what "hidden" libraries, object files and flags are used when
  5975. + # linking a shared library.
  5976. + #
  5977. + # There doesn't appear to be a way to prevent this compiler from
  5978. + # explicitly linking system object files so we need to strip them
  5979. + # from the output so that they don't get included in the library
  5980. + # dependencies.
  5981. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  5982. + ;;
  5983. + *)
  5984. + if test "$GXX" = yes; then
  5985. + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  5986. else
  5987. - ac_cv_libnet_endianess=unknown
  5988. - fi
  5989. + # FIXME: insert proper C++ library support
  5990. + _LT_TAGVAR(ld_shlibs, $1)=no
  5991. + fi
  5992. + ;;
  5993. + esac
  5994. + ;;
  5995. +
  5996. + hpux10*|hpux11*)
  5997. + if test $with_gnu_ld = no; then
  5998. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5999. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6000. +
  6001. + case $host_cpu in
  6002. + hppa*64*|ia64*)
  6003. + ;;
  6004. + *)
  6005. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  6006. + ;;
  6007. + esac
  6008. fi
  6009. - rm -f conftest* core core.conftest
  6010. + case $host_cpu in
  6011. + hppa*64*|ia64*)
  6012. + _LT_TAGVAR(hardcode_direct, $1)=no
  6013. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6014. + ;;
  6015. + *)
  6016. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6017. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  6018. + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  6019. + # but as the default
  6020. + # location of the library.
  6021. + ;;
  6022. + esac
  6023. - AC_MSG_RESULT($ac_cv_libnet_endianess)
  6024. + case $cc_basename in
  6025. + CC*)
  6026. + # FIXME: insert proper C++ library support
  6027. + _LT_TAGVAR(ld_shlibs, $1)=no
  6028. + ;;
  6029. + aCC*)
  6030. + case $host_cpu in
  6031. + hppa*64*)
  6032. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6033. + ;;
  6034. + ia64*)
  6035. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6036. + ;;
  6037. + *)
  6038. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6039. + ;;
  6040. + esac
  6041. + # Commands to make compiler produce verbose output that lists
  6042. + # what "hidden" libraries, object files and flags are used when
  6043. + # linking a shared library.
  6044. + #
  6045. + # There doesn't appear to be a way to prevent this compiler from
  6046. + # explicitly linking system object files so we need to strip them
  6047. + # from the output so that they don't get included in the library
  6048. + # dependencies.
  6049. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  6050. + ;;
  6051. + *)
  6052. + if test "$GXX" = yes; then
  6053. + if test $with_gnu_ld = no; then
  6054. + case $host_cpu in
  6055. + hppa*64*)
  6056. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6057. + ;;
  6058. + ia64*)
  6059. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6060. + ;;
  6061. + *)
  6062. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6063. + ;;
  6064. + esac
  6065. + fi
  6066. + else
  6067. + # FIXME: insert proper C++ library support
  6068. + _LT_TAGVAR(ld_shlibs, $1)=no
  6069. + fi
  6070. + ;;
  6071. + esac
  6072. + ;;
  6073. - if test $ac_cv_libnet_endianess = big ; then
  6074. - AC_DEFINE(LIBNET_BIG_ENDIAN)
  6075. - LIBNET_CONFIG_DEFINES="$LIBNET_CONFIG_DEFINES -DLIBNET_BIG_ENDIAN"
  6076. - elif test $ac_cv_libnet_endianess = lil ; then
  6077. - AC_DEFINE(LIBNET_LIL_ENDIAN)
  6078. - LIBNET_CONFIG_DEFINES="$LIBNET_CONFIG_DEFINES -DLIBNET_LIL_ENDIAN"
  6079. + interix[[3-9]]*)
  6080. + _LT_TAGVAR(hardcode_direct, $1)=no
  6081. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6082. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  6083. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  6084. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  6085. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  6086. + # default) and relocated if they conflict, which is a slow very memory
  6087. + # consuming and fragmenting process. To avoid this, we pick a random,
  6088. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  6089. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  6090. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  6091. + _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  6092. + ;;
  6093. + irix5* | irix6*)
  6094. + case $cc_basename in
  6095. + CC*)
  6096. + # SGI C++
  6097. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  6098. +
  6099. + # Archives containing C++ object files must be created using
  6100. + # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  6101. + # necessary to make sure instantiated templates are included
  6102. + # in the archive.
  6103. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  6104. + ;;
  6105. + *)
  6106. + if test "$GXX" = yes; then
  6107. + if test "$with_gnu_ld" = no; then
  6108. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  6109. + else
  6110. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
  6111. + fi
  6112. + fi
  6113. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  6114. + ;;
  6115. + esac
  6116. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6117. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6118. + _LT_TAGVAR(inherit_rpath, $1)=yes
  6119. + ;;
  6120. +
  6121. + linux* | k*bsd*-gnu)
  6122. + case $cc_basename in
  6123. + KCC*)
  6124. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  6125. +
  6126. + # KCC will only create a shared library if the output file
  6127. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  6128. + # to its proper name (with version) after linking.
  6129. + _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  6130. + _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
  6131. + # Commands to make compiler produce verbose output that lists
  6132. + # what "hidden" libraries, object files and flags are used when
  6133. + # linking a shared library.
  6134. + #
  6135. + # There doesn't appear to be a way to prevent this compiler from
  6136. + # explicitly linking system object files so we need to strip them
  6137. + # from the output so that they don't get included in the library
  6138. + # dependencies.
  6139. + output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  6140. +
  6141. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  6142. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  6143. +
  6144. + # Archives containing C++ object files must be created using
  6145. + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  6146. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  6147. + ;;
  6148. + icpc* | ecpc* )
  6149. + # Intel C++
  6150. + with_gnu_ld=yes
  6151. + # version 8.0 and above of icpc choke on multiply defined symbols
  6152. + # if we add $predep_objects and $postdep_objects, however 7.1 and
  6153. + # earlier do not add the objects themselves.
  6154. + case `$CC -V 2>&1` in
  6155. + *"Version 7."*)
  6156. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6157. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6158. + ;;
  6159. + *) # Version 8.0 or newer
  6160. + tmp_idyn=
  6161. + case $host_cpu in
  6162. + ia64*) tmp_idyn=' -i_dynamic';;
  6163. + esac
  6164. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6165. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6166. + ;;
  6167. + esac
  6168. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6169. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  6170. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  6171. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  6172. + ;;
  6173. + pgCC* | pgcpp*)
  6174. + # Portland Group C++ compiler
  6175. + case `$CC -V` in
  6176. + *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
  6177. + _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
  6178. + rm -rf $tpldir~
  6179. + $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  6180. + compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  6181. + _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
  6182. + rm -rf $tpldir~
  6183. + $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  6184. + $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  6185. + $RANLIB $oldlib'
  6186. + _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
  6187. + rm -rf $tpldir~
  6188. + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  6189. + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  6190. + _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
  6191. + rm -rf $tpldir~
  6192. + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  6193. + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  6194. + ;;
  6195. + *) # Version 6 will use weak symbols
  6196. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  6197. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  6198. + ;;
  6199. + esac
  6200. +
  6201. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  6202. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  6203. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  6204. + ;;
  6205. + cxx*)
  6206. + # Compaq C++
  6207. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6208. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
  6209. +
  6210. + runpath_var=LD_RUN_PATH
  6211. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  6212. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6213. +
  6214. + # Commands to make compiler produce verbose output that lists
  6215. + # what "hidden" libraries, object files and flags are used when
  6216. + # linking a shared library.
  6217. + #
  6218. + # There doesn't appear to be a way to prevent this compiler from
  6219. + # explicitly linking system object files so we need to strip them
  6220. + # from the output so that they don't get included in the library
  6221. + # dependencies.
  6222. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  6223. + ;;
  6224. + xl*)
  6225. + # IBM XL 8.0 on PPC, with GNU ld
  6226. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6227. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  6228. + _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6229. + if test "x$supports_anon_versioning" = xyes; then
  6230. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  6231. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  6232. + echo "local: *; };" >> $output_objdir/$libname.ver~
  6233. + $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  6234. + fi
  6235. + ;;
  6236. + *)
  6237. + case `$CC -V 2>&1 | sed 5q` in
  6238. + *Sun\ C*)
  6239. + # Sun C++ 5.9
  6240. + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  6241. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6242. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
  6243. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6244. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  6245. + _LT_TAGVAR(compiler_needs_object, $1)=yes
  6246. +
  6247. + # Not sure whether something based on
  6248. + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  6249. + # would be better.
  6250. + output_verbose_link_cmd='echo'
  6251. +
  6252. + # Archives containing C++ object files must be created using
  6253. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  6254. + # necessary to make sure instantiated templates are included
  6255. + # in the archive.
  6256. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  6257. + ;;
  6258. + esac
  6259. + ;;
  6260. + esac
  6261. + ;;
  6262. +
  6263. + lynxos*)
  6264. + # FIXME: insert proper C++ library support
  6265. + _LT_TAGVAR(ld_shlibs, $1)=no
  6266. + ;;
  6267. +
  6268. + m88k*)
  6269. + # FIXME: insert proper C++ library support
  6270. + _LT_TAGVAR(ld_shlibs, $1)=no
  6271. + ;;
  6272. +
  6273. + mvs*)
  6274. + case $cc_basename in
  6275. + cxx*)
  6276. + # FIXME: insert proper C++ library support
  6277. + _LT_TAGVAR(ld_shlibs, $1)=no
  6278. + ;;
  6279. + *)
  6280. + # FIXME: insert proper C++ library support
  6281. + _LT_TAGVAR(ld_shlibs, $1)=no
  6282. + ;;
  6283. + esac
  6284. + ;;
  6285. +
  6286. + netbsd*)
  6287. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  6288. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  6289. + wlarc=
  6290. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6291. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6292. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6293. + fi
  6294. + # Workaround some broken pre-1.5 toolchains
  6295. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  6296. + ;;
  6297. +
  6298. + *nto* | *qnx*)
  6299. + _LT_TAGVAR(ld_shlibs, $1)=yes
  6300. + ;;
  6301. +
  6302. + openbsd2*)
  6303. + # C++ shared libraries are fairly broken
  6304. + _LT_TAGVAR(ld_shlibs, $1)=no
  6305. + ;;
  6306. +
  6307. + openbsd*)
  6308. + if test -f /usr/libexec/ld.so; then
  6309. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6310. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6311. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  6312. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  6313. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  6314. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6315. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  6316. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  6317. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  6318. + fi
  6319. + output_verbose_link_cmd=echo
  6320. + else
  6321. + _LT_TAGVAR(ld_shlibs, $1)=no
  6322. + fi
  6323. + ;;
  6324. +
  6325. + osf3* | osf4* | osf5*)
  6326. + case $cc_basename in
  6327. + KCC*)
  6328. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  6329. +
  6330. + # KCC will only create a shared library if the output file
  6331. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  6332. + # to its proper name (with version) after linking.
  6333. + _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  6334. +
  6335. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  6336. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6337. +
  6338. + # Archives containing C++ object files must be created using
  6339. + # the KAI C++ compiler.
  6340. + case $host in
  6341. + osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
  6342. + *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
  6343. + esac
  6344. + ;;
  6345. + RCC*)
  6346. + # Rational C++ 2.4.1
  6347. + # FIXME: insert proper C++ library support
  6348. + _LT_TAGVAR(ld_shlibs, $1)=no
  6349. + ;;
  6350. + cxx*)
  6351. + case $host in
  6352. + osf3*)
  6353. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  6354. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  6355. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6356. + ;;
  6357. + *)
  6358. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  6359. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  6360. + _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  6361. + echo "-hidden">> $lib.exp~
  6362. + $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
  6363. + $RM $lib.exp'
  6364. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  6365. + ;;
  6366. + esac
  6367. +
  6368. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6369. +
  6370. + # Commands to make compiler produce verbose output that lists
  6371. + # what "hidden" libraries, object files and flags are used when
  6372. + # linking a shared library.
  6373. + #
  6374. + # There doesn't appear to be a way to prevent this compiler from
  6375. + # explicitly linking system object files so we need to strip them
  6376. + # from the output so that they don't get included in the library
  6377. + # dependencies.
  6378. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  6379. + ;;
  6380. + *)
  6381. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  6382. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  6383. + case $host in
  6384. + osf3*)
  6385. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  6386. + ;;
  6387. + *)
  6388. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  6389. + ;;
  6390. + esac
  6391. +
  6392. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6393. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6394. +
  6395. + # Commands to make compiler produce verbose output that lists
  6396. + # what "hidden" libraries, object files and flags are used when
  6397. + # linking a shared library.
  6398. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  6399. +
  6400. + else
  6401. + # FIXME: insert proper C++ library support
  6402. + _LT_TAGVAR(ld_shlibs, $1)=no
  6403. + fi
  6404. + ;;
  6405. + esac
  6406. + ;;
  6407. +
  6408. + psos*)
  6409. + # FIXME: insert proper C++ library support
  6410. + _LT_TAGVAR(ld_shlibs, $1)=no
  6411. + ;;
  6412. +
  6413. + sunos4*)
  6414. + case $cc_basename in
  6415. + CC*)
  6416. + # Sun C++ 4.x
  6417. + # FIXME: insert proper C++ library support
  6418. + _LT_TAGVAR(ld_shlibs, $1)=no
  6419. + ;;
  6420. + lcc*)
  6421. + # Lucid
  6422. + # FIXME: insert proper C++ library support
  6423. + _LT_TAGVAR(ld_shlibs, $1)=no
  6424. + ;;
  6425. + *)
  6426. + # FIXME: insert proper C++ library support
  6427. + _LT_TAGVAR(ld_shlibs, $1)=no
  6428. + ;;
  6429. + esac
  6430. + ;;
  6431. +
  6432. + solaris*)
  6433. + case $cc_basename in
  6434. + CC*)
  6435. + # Sun C++ 4.2, 5.x and Centerline C++
  6436. + _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
  6437. + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  6438. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6439. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6440. + $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  6441. +
  6442. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6443. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6444. + case $host_os in
  6445. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  6446. + *)
  6447. + # The compiler driver will combine and reorder linker options,
  6448. + # but understands `-z linker_flag'.
  6449. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  6450. + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  6451. + ;;
  6452. + esac
  6453. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  6454. +
  6455. + output_verbose_link_cmd='echo'
  6456. +
  6457. + # Archives containing C++ object files must be created using
  6458. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  6459. + # necessary to make sure instantiated templates are included
  6460. + # in the archive.
  6461. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  6462. + ;;
  6463. + gcx*)
  6464. + # Green Hills C++ Compiler
  6465. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  6466. +
  6467. + # The C++ compiler must be used to create the archive.
  6468. + _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  6469. + ;;
  6470. + *)
  6471. + # GNU C++ compiler with Solaris linker
  6472. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  6473. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  6474. + if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  6475. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  6476. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6477. + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  6478. +
  6479. + # Commands to make compiler produce verbose output that lists
  6480. + # what "hidden" libraries, object files and flags are used when
  6481. + # linking a shared library.
  6482. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  6483. + else
  6484. + # g++ 2.7 appears to require `-G' NOT `-shared' on this
  6485. + # platform.
  6486. + _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  6487. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6488. + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  6489. +
  6490. + # Commands to make compiler produce verbose output that lists
  6491. + # what "hidden" libraries, object files and flags are used when
  6492. + # linking a shared library.
  6493. + output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  6494. + fi
  6495. +
  6496. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  6497. + case $host_os in
  6498. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  6499. + *)
  6500. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  6501. + ;;
  6502. + esac
  6503. + fi
  6504. + ;;
  6505. + esac
  6506. + ;;
  6507. +
  6508. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  6509. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  6510. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6511. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6512. + runpath_var='LD_RUN_PATH'
  6513. +
  6514. + case $cc_basename in
  6515. + CC*)
  6516. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6517. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6518. + ;;
  6519. + *)
  6520. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6521. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6522. + ;;
  6523. + esac
  6524. + ;;
  6525. +
  6526. + sysv5* | sco3.2v5* | sco5v6*)
  6527. + # Note: We can NOT use -z defs as we might desire, because we do not
  6528. + # link with -lc, and that would cause any symbols used from libc to
  6529. + # always be unresolved, which means just about no library would
  6530. + # ever link correctly. If we're not using GNU ld we use -z text
  6531. + # though, which does catch some bad symbols but isn't as heavy-handed
  6532. + # as -z defs.
  6533. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  6534. + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  6535. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6536. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6537. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  6538. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  6539. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  6540. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  6541. + runpath_var='LD_RUN_PATH'
  6542. +
  6543. + case $cc_basename in
  6544. + CC*)
  6545. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6546. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6547. + ;;
  6548. + *)
  6549. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6550. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6551. + ;;
  6552. + esac
  6553. + ;;
  6554. +
  6555. + tandem*)
  6556. + case $cc_basename in
  6557. + NCC*)
  6558. + # NonStop-UX NCC 3.20
  6559. + # FIXME: insert proper C++ library support
  6560. + _LT_TAGVAR(ld_shlibs, $1)=no
  6561. + ;;
  6562. + *)
  6563. + # FIXME: insert proper C++ library support
  6564. + _LT_TAGVAR(ld_shlibs, $1)=no
  6565. + ;;
  6566. + esac
  6567. + ;;
  6568. +
  6569. + vxworks*)
  6570. + # FIXME: insert proper C++ library support
  6571. + _LT_TAGVAR(ld_shlibs, $1)=no
  6572. + ;;
  6573. +
  6574. + *)
  6575. + # FIXME: insert proper C++ library support
  6576. + _LT_TAGVAR(ld_shlibs, $1)=no
  6577. + ;;
  6578. + esac
  6579. +
  6580. + AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  6581. + test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  6582. +
  6583. + _LT_TAGVAR(GCC, $1)="$GXX"
  6584. + _LT_TAGVAR(LD, $1)="$LD"
  6585. +
  6586. + ## CAVEAT EMPTOR:
  6587. + ## There is no encapsulation within the following macros, do not change
  6588. + ## the running order or otherwise move them around unless you know exactly
  6589. + ## what you are doing...
  6590. + _LT_SYS_HIDDEN_LIBDEPS($1)
  6591. + _LT_COMPILER_PIC($1)
  6592. + _LT_COMPILER_C_O($1)
  6593. + _LT_COMPILER_FILE_LOCKS($1)
  6594. + _LT_LINKER_SHLIBS($1)
  6595. + _LT_SYS_DYNAMIC_LINKER($1)
  6596. + _LT_LINKER_HARDCODE_LIBPATH($1)
  6597. +
  6598. + _LT_CONFIG($1)
  6599. + fi # test -n "$compiler"
  6600. +
  6601. + CC=$lt_save_CC
  6602. + LDCXX=$LD
  6603. + LD=$lt_save_LD
  6604. + GCC=$lt_save_GCC
  6605. + with_gnu_ld=$lt_save_with_gnu_ld
  6606. + lt_cv_path_LDCXX=$lt_cv_path_LD
  6607. + lt_cv_path_LD=$lt_save_path_LD
  6608. + lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  6609. + lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  6610. +fi # test "$_lt_caught_CXX_error" != yes
  6611. +
  6612. +AC_LANG_POP
  6613. +])# _LT_LANG_CXX_CONFIG
  6614. +
  6615. +
  6616. +# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
  6617. +# ---------------------------------
  6618. +# Figure out "hidden" library dependencies from verbose
  6619. +# compiler output when linking a shared library.
  6620. +# Parse the compiler output and extract the necessary
  6621. +# objects, libraries and library flags.
  6622. +m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
  6623. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  6624. +# Dependencies to place before and after the object being linked:
  6625. +_LT_TAGVAR(predep_objects, $1)=
  6626. +_LT_TAGVAR(postdep_objects, $1)=
  6627. +_LT_TAGVAR(predeps, $1)=
  6628. +_LT_TAGVAR(postdeps, $1)=
  6629. +_LT_TAGVAR(compiler_lib_search_path, $1)=
  6630. +
  6631. +dnl we can't use the lt_simple_compile_test_code here,
  6632. +dnl because it contains code intended for an executable,
  6633. +dnl not a library. It's possible we should let each
  6634. +dnl tag define a new lt_????_link_test_code variable,
  6635. +dnl but it's only used here...
  6636. +m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
  6637. +int a;
  6638. +void foo (void) { a = 0; }
  6639. +_LT_EOF
  6640. +], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
  6641. +class Foo
  6642. +{
  6643. +public:
  6644. + Foo (void) { a = 0; }
  6645. +private:
  6646. + int a;
  6647. +};
  6648. +_LT_EOF
  6649. +], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
  6650. + subroutine foo
  6651. + implicit none
  6652. + integer*4 a
  6653. + a=0
  6654. + return
  6655. + end
  6656. +_LT_EOF
  6657. +], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
  6658. + subroutine foo
  6659. + implicit none
  6660. + integer a
  6661. + a=0
  6662. + return
  6663. + end
  6664. +_LT_EOF
  6665. +], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
  6666. +public class foo {
  6667. + private int a;
  6668. + public void bar (void) {
  6669. + a = 0;
  6670. + }
  6671. +};
  6672. +_LT_EOF
  6673. +])
  6674. +dnl Parse the compiler output and extract the necessary
  6675. +dnl objects, libraries and library flags.
  6676. +if AC_TRY_EVAL(ac_compile); then
  6677. + # Parse the compiler output and extract the necessary
  6678. + # objects, libraries and library flags.
  6679. +
  6680. + # Sentinel used to keep track of whether or not we are before
  6681. + # the conftest object file.
  6682. + pre_test_object_deps_done=no
  6683. +
  6684. + for p in `eval "$output_verbose_link_cmd"`; do
  6685. + case $p in
  6686. +
  6687. + -L* | -R* | -l*)
  6688. + # Some compilers place space between "-{L,R}" and the path.
  6689. + # Remove the space.
  6690. + if test $p = "-L" ||
  6691. + test $p = "-R"; then
  6692. + prev=$p
  6693. + continue
  6694. + else
  6695. + prev=
  6696. + fi
  6697. +
  6698. + if test "$pre_test_object_deps_done" = no; then
  6699. + case $p in
  6700. + -L* | -R*)
  6701. + # Internal compiler library paths should come after those
  6702. + # provided the user. The postdeps already come after the
  6703. + # user supplied libs so there is no need to process them.
  6704. + if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
  6705. + _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  6706. + else
  6707. + _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  6708. + fi
  6709. + ;;
  6710. + # The "-l" case would never come before the object being
  6711. + # linked, so don't bother handling this case.
  6712. + esac
  6713. + else
  6714. + if test -z "$_LT_TAGVAR(postdeps, $1)"; then
  6715. + _LT_TAGVAR(postdeps, $1)="${prev}${p}"
  6716. + else
  6717. + _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
  6718. + fi
  6719. + fi
  6720. + ;;
  6721. +
  6722. + *.$objext)
  6723. + # This assumes that the test object file only shows up
  6724. + # once in the compiler output.
  6725. + if test "$p" = "conftest.$objext"; then
  6726. + pre_test_object_deps_done=yes
  6727. + continue
  6728. + fi
  6729. +
  6730. + if test "$pre_test_object_deps_done" = no; then
  6731. + if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
  6732. + _LT_TAGVAR(predep_objects, $1)="$p"
  6733. + else
  6734. + _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
  6735. + fi
  6736. + else
  6737. + if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
  6738. + _LT_TAGVAR(postdep_objects, $1)="$p"
  6739. + else
  6740. + _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
  6741. + fi
  6742. + fi
  6743. + ;;
  6744. +
  6745. + *) ;; # Ignore the rest.
  6746. +
  6747. + esac
  6748. + done
  6749. +
  6750. + # Clean up.
  6751. + rm -f a.out a.exe
  6752. +else
  6753. + echo "libtool.m4: error: problem compiling $1 test program"
  6754. +fi
  6755. +
  6756. +$RM -f confest.$objext
  6757. +
  6758. +# PORTME: override above test on systems where it is broken
  6759. +m4_if([$1], [CXX],
  6760. +[case $host_os in
  6761. +interix[[3-9]]*)
  6762. + # Interix 3.5 installs completely hosed .la files for C++, so rather than
  6763. + # hack all around it, let's just trust "g++" to DTRT.
  6764. + _LT_TAGVAR(predep_objects,$1)=
  6765. + _LT_TAGVAR(postdep_objects,$1)=
  6766. + _LT_TAGVAR(postdeps,$1)=
  6767. + ;;
  6768. +
  6769. +linux*)
  6770. + case `$CC -V 2>&1 | sed 5q` in
  6771. + *Sun\ C*)
  6772. + # Sun C++ 5.9
  6773. +
  6774. + # The more standards-conforming stlport4 library is
  6775. + # incompatible with the Cstd library. Avoid specifying
  6776. + # it if it's in CXXFLAGS. Ignore libCrun as
  6777. + # -library=stlport4 depends on it.
  6778. + case " $CXX $CXXFLAGS " in
  6779. + *" -library=stlport4 "*)
  6780. + solaris_use_stlport4=yes
  6781. + ;;
  6782. + esac
  6783. +
  6784. + if test "$solaris_use_stlport4" != yes; then
  6785. + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  6786. + fi
  6787. + ;;
  6788. + esac
  6789. + ;;
  6790. +
  6791. +solaris*)
  6792. + case $cc_basename in
  6793. + CC*)
  6794. + # The more standards-conforming stlport4 library is
  6795. + # incompatible with the Cstd library. Avoid specifying
  6796. + # it if it's in CXXFLAGS. Ignore libCrun as
  6797. + # -library=stlport4 depends on it.
  6798. + case " $CXX $CXXFLAGS " in
  6799. + *" -library=stlport4 "*)
  6800. + solaris_use_stlport4=yes
  6801. + ;;
  6802. + esac
  6803. +
  6804. + # Adding this requires a known-good setup of shared libraries for
  6805. + # Sun compiler versions before 5.6, else PIC objects from an old
  6806. + # archive will be linked into the output, leading to subtle bugs.
  6807. + if test "$solaris_use_stlport4" != yes; then
  6808. + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  6809. + fi
  6810. + ;;
  6811. + esac
  6812. + ;;
  6813. +esac
  6814. +])
  6815. +
  6816. +case " $_LT_TAGVAR(postdeps, $1) " in
  6817. +*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  6818. +esac
  6819. + _LT_TAGVAR(compiler_lib_search_dirs, $1)=
  6820. +if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
  6821. + _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  6822. +fi
  6823. +_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
  6824. + [The directories searched by this compiler when creating a shared library])
  6825. +_LT_TAGDECL([], [predep_objects], [1],
  6826. + [Dependencies to place before and after the objects being linked to
  6827. + create a shared library])
  6828. +_LT_TAGDECL([], [postdep_objects], [1])
  6829. +_LT_TAGDECL([], [predeps], [1])
  6830. +_LT_TAGDECL([], [postdeps], [1])
  6831. +_LT_TAGDECL([], [compiler_lib_search_path], [1],
  6832. + [The library search path used internally by the compiler when linking
  6833. + a shared library])
  6834. +])# _LT_SYS_HIDDEN_LIBDEPS
  6835. +
  6836. +
  6837. +# _LT_PROG_F77
  6838. +# ------------
  6839. +# Since AC_PROG_F77 is broken, in that it returns the empty string
  6840. +# if there is no fortran compiler, we have our own version here.
  6841. +m4_defun([_LT_PROG_F77],
  6842. +[
  6843. +pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
  6844. +AC_PROG_F77
  6845. +if test -z "$F77" || test "X$F77" = "Xno"; then
  6846. + _lt_disable_F77=yes
  6847. +fi
  6848. +popdef([AC_MSG_ERROR])
  6849. +])# _LT_PROG_F77
  6850. +
  6851. +dnl aclocal-1.4 backwards compatibility:
  6852. +dnl AC_DEFUN([_LT_PROG_F77], [])
  6853. +
  6854. +
  6855. +# _LT_LANG_F77_CONFIG([TAG])
  6856. +# --------------------------
  6857. +# Ensure that the configuration variables for a Fortran 77 compiler are
  6858. +# suitably defined. These variables are subsequently used by _LT_CONFIG
  6859. +# to write the compiler configuration to `libtool'.
  6860. +m4_defun([_LT_LANG_F77_CONFIG],
  6861. +[AC_REQUIRE([_LT_PROG_F77])dnl
  6862. +AC_LANG_PUSH(Fortran 77)
  6863. +
  6864. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6865. +_LT_TAGVAR(allow_undefined_flag, $1)=
  6866. +_LT_TAGVAR(always_export_symbols, $1)=no
  6867. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  6868. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  6869. +_LT_TAGVAR(hardcode_direct, $1)=no
  6870. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  6871. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  6872. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  6873. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  6874. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  6875. +_LT_TAGVAR(hardcode_automatic, $1)=no
  6876. +_LT_TAGVAR(inherit_rpath, $1)=no
  6877. +_LT_TAGVAR(module_cmds, $1)=
  6878. +_LT_TAGVAR(module_expsym_cmds, $1)=
  6879. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  6880. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6881. +_LT_TAGVAR(no_undefined_flag, $1)=
  6882. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  6883. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  6884. +
  6885. +# Source file extension for f77 test sources.
  6886. +ac_ext=f
  6887. +
  6888. +# Object file extension for compiled f77 test sources.
  6889. +objext=o
  6890. +_LT_TAGVAR(objext, $1)=$objext
  6891. +
  6892. +# No sense in running all these tests if we already determined that
  6893. +# the F77 compiler isn't working. Some variables (like enable_shared)
  6894. +# are currently assumed to apply to all compilers on this platform,
  6895. +# and will be corrupted by setting them based on a non-working compiler.
  6896. +if test "$_lt_disable_F77" != yes; then
  6897. + # Code to be used in simple compile tests
  6898. + lt_simple_compile_test_code="\
  6899. + subroutine t
  6900. + return
  6901. + end
  6902. +"
  6903. +
  6904. + # Code to be used in simple link tests
  6905. + lt_simple_link_test_code="\
  6906. + program t
  6907. + end
  6908. +"
  6909. +
  6910. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6911. + _LT_TAG_COMPILER
  6912. +
  6913. + # save warnings/boilerplate of simple test code
  6914. + _LT_COMPILER_BOILERPLATE
  6915. + _LT_LINKER_BOILERPLATE
  6916. +
  6917. + # Allow CC to be a program name with arguments.
  6918. + lt_save_CC="$CC"
  6919. + lt_save_GCC=$GCC
  6920. + CC=${F77-"f77"}
  6921. + compiler=$CC
  6922. + _LT_TAGVAR(compiler, $1)=$CC
  6923. + _LT_CC_BASENAME([$compiler])
  6924. + GCC=$G77
  6925. + if test -n "$compiler"; then
  6926. + AC_MSG_CHECKING([if libtool supports shared libraries])
  6927. + AC_MSG_RESULT([$can_build_shared])
  6928. +
  6929. + AC_MSG_CHECKING([whether to build shared libraries])
  6930. + test "$can_build_shared" = "no" && enable_shared=no
  6931. +
  6932. + # On AIX, shared libraries and static libraries use the same namespace, and
  6933. + # are all built from PIC.
  6934. + case $host_os in
  6935. + aix3*)
  6936. + test "$enable_shared" = yes && enable_static=no
  6937. + if test -n "$RANLIB"; then
  6938. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  6939. + postinstall_cmds='$RANLIB $lib'
  6940. fi
  6941. - ])
  6942. + ;;
  6943. + aix[[4-9]]*)
  6944. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  6945. + test "$enable_shared" = yes && enable_static=no
  6946. + fi
  6947. + ;;
  6948. + esac
  6949. + AC_MSG_RESULT([$enable_shared])
  6950. +
  6951. + AC_MSG_CHECKING([whether to build static libraries])
  6952. + # Make sure either enable_shared or enable_static is yes.
  6953. + test "$enable_shared" = yes || enable_static=yes
  6954. + AC_MSG_RESULT([$enable_static])
  6955. +
  6956. + _LT_TAGVAR(GCC, $1)="$G77"
  6957. + _LT_TAGVAR(LD, $1)="$LD"
  6958. +
  6959. + ## CAVEAT EMPTOR:
  6960. + ## There is no encapsulation within the following macros, do not change
  6961. + ## the running order or otherwise move them around unless you know exactly
  6962. + ## what you are doing...
  6963. + _LT_COMPILER_PIC($1)
  6964. + _LT_COMPILER_C_O($1)
  6965. + _LT_COMPILER_FILE_LOCKS($1)
  6966. + _LT_LINKER_SHLIBS($1)
  6967. + _LT_SYS_DYNAMIC_LINKER($1)
  6968. + _LT_LINKER_HARDCODE_LIBPATH($1)
  6969. +
  6970. + _LT_CONFIG($1)
  6971. + fi # test -n "$compiler"
  6972. +
  6973. + GCC=$lt_save_GCC
  6974. + CC="$lt_save_CC"
  6975. +fi # test "$_lt_disable_F77" != yes
  6976. +
  6977. +AC_LANG_POP
  6978. +])# _LT_LANG_F77_CONFIG
  6979. +
  6980. +
  6981. +# _LT_PROG_FC
  6982. +# -----------
  6983. +# Since AC_PROG_FC is broken, in that it returns the empty string
  6984. +# if there is no fortran compiler, we have our own version here.
  6985. +m4_defun([_LT_PROG_FC],
  6986. +[
  6987. +pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
  6988. +AC_PROG_FC
  6989. +if test -z "$FC" || test "X$FC" = "Xno"; then
  6990. + _lt_disable_FC=yes
  6991. +fi
  6992. +popdef([AC_MSG_ERROR])
  6993. +])# _LT_PROG_FC
  6994. +
  6995. +dnl aclocal-1.4 backwards compatibility:
  6996. +dnl AC_DEFUN([_LT_PROG_FC], [])
  6997. +
  6998. +
  6999. +# _LT_LANG_FC_CONFIG([TAG])
  7000. +# -------------------------
  7001. +# Ensure that the configuration variables for a Fortran compiler are
  7002. +# suitably defined. These variables are subsequently used by _LT_CONFIG
  7003. +# to write the compiler configuration to `libtool'.
  7004. +m4_defun([_LT_LANG_FC_CONFIG],
  7005. +[AC_REQUIRE([_LT_PROG_FC])dnl
  7006. +AC_LANG_PUSH(Fortran)
  7007. +
  7008. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  7009. +_LT_TAGVAR(allow_undefined_flag, $1)=
  7010. +_LT_TAGVAR(always_export_symbols, $1)=no
  7011. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  7012. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  7013. +_LT_TAGVAR(hardcode_direct, $1)=no
  7014. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  7015. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  7016. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  7017. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  7018. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  7019. +_LT_TAGVAR(hardcode_automatic, $1)=no
  7020. +_LT_TAGVAR(inherit_rpath, $1)=no
  7021. +_LT_TAGVAR(module_cmds, $1)=
  7022. +_LT_TAGVAR(module_expsym_cmds, $1)=
  7023. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  7024. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  7025. +_LT_TAGVAR(no_undefined_flag, $1)=
  7026. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  7027. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  7028. +
  7029. +# Source file extension for fc test sources.
  7030. +ac_ext=${ac_fc_srcext-f}
  7031. +
  7032. +# Object file extension for compiled fc test sources.
  7033. +objext=o
  7034. +_LT_TAGVAR(objext, $1)=$objext
  7035. +
  7036. +# No sense in running all these tests if we already determined that
  7037. +# the FC compiler isn't working. Some variables (like enable_shared)
  7038. +# are currently assumed to apply to all compilers on this platform,
  7039. +# and will be corrupted by setting them based on a non-working compiler.
  7040. +if test "$_lt_disable_FC" != yes; then
  7041. + # Code to be used in simple compile tests
  7042. + lt_simple_compile_test_code="\
  7043. + subroutine t
  7044. + return
  7045. + end
  7046. +"
  7047. +
  7048. + # Code to be used in simple link tests
  7049. + lt_simple_link_test_code="\
  7050. + program t
  7051. + end
  7052. +"
  7053. +
  7054. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  7055. + _LT_TAG_COMPILER
  7056. +
  7057. + # save warnings/boilerplate of simple test code
  7058. + _LT_COMPILER_BOILERPLATE
  7059. + _LT_LINKER_BOILERPLATE
  7060. +
  7061. + # Allow CC to be a program name with arguments.
  7062. + lt_save_CC="$CC"
  7063. + lt_save_GCC=$GCC
  7064. + CC=${FC-"f95"}
  7065. + compiler=$CC
  7066. + GCC=$ac_cv_fc_compiler_gnu
  7067. +
  7068. + _LT_TAGVAR(compiler, $1)=$CC
  7069. + _LT_CC_BASENAME([$compiler])
  7070. +
  7071. + if test -n "$compiler"; then
  7072. + AC_MSG_CHECKING([if libtool supports shared libraries])
  7073. + AC_MSG_RESULT([$can_build_shared])
  7074. +
  7075. + AC_MSG_CHECKING([whether to build shared libraries])
  7076. + test "$can_build_shared" = "no" && enable_shared=no
  7077. +
  7078. + # On AIX, shared libraries and static libraries use the same namespace, and
  7079. + # are all built from PIC.
  7080. + case $host_os in
  7081. + aix3*)
  7082. + test "$enable_shared" = yes && enable_static=no
  7083. + if test -n "$RANLIB"; then
  7084. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  7085. + postinstall_cmds='$RANLIB $lib'
  7086. + fi
  7087. + ;;
  7088. + aix[[4-9]]*)
  7089. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  7090. + test "$enable_shared" = yes && enable_static=no
  7091. + fi
  7092. + ;;
  7093. + esac
  7094. + AC_MSG_RESULT([$enable_shared])
  7095. +
  7096. + AC_MSG_CHECKING([whether to build static libraries])
  7097. + # Make sure either enable_shared or enable_static is yes.
  7098. + test "$enable_shared" = yes || enable_static=yes
  7099. + AC_MSG_RESULT([$enable_static])
  7100. +
  7101. + _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
  7102. + _LT_TAGVAR(LD, $1)="$LD"
  7103. +
  7104. + ## CAVEAT EMPTOR:
  7105. + ## There is no encapsulation within the following macros, do not change
  7106. + ## the running order or otherwise move them around unless you know exactly
  7107. + ## what you are doing...
  7108. + _LT_SYS_HIDDEN_LIBDEPS($1)
  7109. + _LT_COMPILER_PIC($1)
  7110. + _LT_COMPILER_C_O($1)
  7111. + _LT_COMPILER_FILE_LOCKS($1)
  7112. + _LT_LINKER_SHLIBS($1)
  7113. + _LT_SYS_DYNAMIC_LINKER($1)
  7114. + _LT_LINKER_HARDCODE_LIBPATH($1)
  7115. +
  7116. + _LT_CONFIG($1)
  7117. + fi # test -n "$compiler"
  7118. +
  7119. + GCC=$lt_save_GCC
  7120. + CC="$lt_save_CC"
  7121. +fi # test "$_lt_disable_FC" != yes
  7122. +
  7123. +AC_LANG_POP
  7124. +])# _LT_LANG_FC_CONFIG
  7125. +
  7126. +
  7127. +# _LT_LANG_GCJ_CONFIG([TAG])
  7128. +# --------------------------
  7129. +# Ensure that the configuration variables for the GNU Java Compiler compiler
  7130. +# are suitably defined. These variables are subsequently used by _LT_CONFIG
  7131. +# to write the compiler configuration to `libtool'.
  7132. +m4_defun([_LT_LANG_GCJ_CONFIG],
  7133. +[AC_REQUIRE([LT_PROG_GCJ])dnl
  7134. +AC_LANG_SAVE
  7135. +
  7136. +# Source file extension for Java test sources.
  7137. +ac_ext=java
  7138. +
  7139. +# Object file extension for compiled Java test sources.
  7140. +objext=o
  7141. +_LT_TAGVAR(objext, $1)=$objext
  7142. +
  7143. +# Code to be used in simple compile tests
  7144. +lt_simple_compile_test_code="class foo {}"
  7145. +
  7146. +# Code to be used in simple link tests
  7147. +lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
  7148. +
  7149. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  7150. +_LT_TAG_COMPILER
  7151. +
  7152. +# save warnings/boilerplate of simple test code
  7153. +_LT_COMPILER_BOILERPLATE
  7154. +_LT_LINKER_BOILERPLATE
  7155. +
  7156. +# Allow CC to be a program name with arguments.
  7157. +lt_save_CC="$CC"
  7158. +lt_save_GCC=$GCC
  7159. +GCC=yes
  7160. +CC=${GCJ-"gcj"}
  7161. +compiler=$CC
  7162. +_LT_TAGVAR(compiler, $1)=$CC
  7163. +_LT_TAGVAR(LD, $1)="$LD"
  7164. +_LT_CC_BASENAME([$compiler])
  7165. +
  7166. +# GCJ did not exist at the time GCC didn't implicitly link libc in.
  7167. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  7168. +
  7169. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  7170. +
  7171. +if test -n "$compiler"; then
  7172. + _LT_COMPILER_NO_RTTI($1)
  7173. + _LT_COMPILER_PIC($1)
  7174. + _LT_COMPILER_C_O($1)
  7175. + _LT_COMPILER_FILE_LOCKS($1)
  7176. + _LT_LINKER_SHLIBS($1)
  7177. + _LT_LINKER_HARDCODE_LIBPATH($1)
  7178. +
  7179. + _LT_CONFIG($1)
  7180. +fi
  7181. +
  7182. +AC_LANG_RESTORE
  7183. +
  7184. +GCC=$lt_save_GCC
  7185. +CC="$lt_save_CC"
  7186. +])# _LT_LANG_GCJ_CONFIG
  7187. +
  7188. +
  7189. +# _LT_LANG_RC_CONFIG([TAG])
  7190. +# -------------------------
  7191. +# Ensure that the configuration variables for the Windows resource compiler
  7192. +# are suitably defined. These variables are subsequently used by _LT_CONFIG
  7193. +# to write the compiler configuration to `libtool'.
  7194. +m4_defun([_LT_LANG_RC_CONFIG],
  7195. +[AC_REQUIRE([LT_PROG_RC])dnl
  7196. +AC_LANG_SAVE
  7197. +
  7198. +# Source file extension for RC test sources.
  7199. +ac_ext=rc
  7200. +
  7201. +# Object file extension for compiled RC test sources.
  7202. +objext=o
  7203. +_LT_TAGVAR(objext, $1)=$objext
  7204. +
  7205. +# Code to be used in simple compile tests
  7206. +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  7207. +
  7208. +# Code to be used in simple link tests
  7209. +lt_simple_link_test_code="$lt_simple_compile_test_code"
  7210. +
  7211. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  7212. +_LT_TAG_COMPILER
  7213. +
  7214. +# save warnings/boilerplate of simple test code
  7215. +_LT_COMPILER_BOILERPLATE
  7216. +_LT_LINKER_BOILERPLATE
  7217. +
  7218. +# Allow CC to be a program name with arguments.
  7219. +lt_save_CC="$CC"
  7220. +lt_save_GCC=$GCC
  7221. +GCC=
  7222. +CC=${RC-"windres"}
  7223. +compiler=$CC
  7224. +_LT_TAGVAR(compiler, $1)=$CC
  7225. +_LT_CC_BASENAME([$compiler])
  7226. +_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  7227. +
  7228. +if test -n "$compiler"; then
  7229. + :
  7230. + _LT_CONFIG($1)
  7231. +fi
  7232. +
  7233. +GCC=$lt_save_GCC
  7234. +AC_LANG_RESTORE
  7235. +CC="$lt_save_CC"
  7236. +])# _LT_LANG_RC_CONFIG
  7237. +
  7238. +
  7239. +# LT_PROG_GCJ
  7240. +# -----------
  7241. +AC_DEFUN([LT_PROG_GCJ],
  7242. +[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
  7243. + [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
  7244. + [AC_CHECK_TOOL(GCJ, gcj,)
  7245. + test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  7246. + AC_SUBST(GCJFLAGS)])])[]dnl
  7247. +])
  7248. +
  7249. +# Old name:
  7250. +AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
  7251. +dnl aclocal-1.4 backwards compatibility:
  7252. +dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
  7253. +
  7254. +
  7255. +# LT_PROG_RC
  7256. +# ----------
  7257. +AC_DEFUN([LT_PROG_RC],
  7258. +[AC_CHECK_TOOL(RC, windres,)
  7259. +])
  7260. +
  7261. +# Old name:
  7262. +AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
  7263. +dnl aclocal-1.4 backwards compatibility:
  7264. +dnl AC_DEFUN([LT_AC_PROG_RC], [])
  7265. +
  7266. +
  7267. +# _LT_DECL_EGREP
  7268. +# --------------
  7269. +# If we don't have a new enough Autoconf to choose the best grep
  7270. +# available, choose the one first in the user's PATH.
  7271. +m4_defun([_LT_DECL_EGREP],
  7272. +[AC_REQUIRE([AC_PROG_EGREP])dnl
  7273. +AC_REQUIRE([AC_PROG_FGREP])dnl
  7274. +test -z "$GREP" && GREP=grep
  7275. +_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
  7276. +_LT_DECL([], [EGREP], [1], [An ERE matcher])
  7277. +_LT_DECL([], [FGREP], [1], [A literal string matcher])
  7278. +dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
  7279. +AC_SUBST([GREP])
  7280. +])
  7281. +
  7282. +
  7283. +# _LT_DECL_OBJDUMP
  7284. +# --------------
  7285. +# If we don't have a new enough Autoconf to choose the best objdump
  7286. +# available, choose the one first in the user's PATH.
  7287. +m4_defun([_LT_DECL_OBJDUMP],
  7288. +[AC_CHECK_TOOL(OBJDUMP, objdump, false)
  7289. +test -z "$OBJDUMP" && OBJDUMP=objdump
  7290. +_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
  7291. +AC_SUBST([OBJDUMP])
  7292. +])
  7293. +
  7294. +
  7295. +# _LT_DECL_SED
  7296. +# ------------
  7297. +# Check for a fully-functional sed program, that truncates
  7298. +# as few characters as possible. Prefer GNU sed if found.
  7299. +m4_defun([_LT_DECL_SED],
  7300. +[AC_PROG_SED
  7301. +test -z "$SED" && SED=sed
  7302. +Xsed="$SED -e 1s/^X//"
  7303. +_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
  7304. +_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
  7305. + [Sed that helps us avoid accidentally triggering echo(1) options like -n])
  7306. +])# _LT_DECL_SED
  7307. +
  7308. +m4_ifndef([AC_PROG_SED], [
  7309. +# NOTE: This macro has been submitted for inclusion into #
  7310. +# GNU Autoconf as AC_PROG_SED. When it is available in #
  7311. +# a released version of Autoconf we should remove this #
  7312. +# macro and use it instead. #
  7313. +
  7314. +m4_defun([AC_PROG_SED],
  7315. +[AC_MSG_CHECKING([for a sed that does not truncate output])
  7316. +AC_CACHE_VAL(lt_cv_path_SED,
  7317. +[# Loop through the user's path and test for sed and gsed.
  7318. +# Then use that list of sed's as ones to test for truncation.
  7319. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7320. +for as_dir in $PATH
  7321. +do
  7322. + IFS=$as_save_IFS
  7323. + test -z "$as_dir" && as_dir=.
  7324. + for lt_ac_prog in sed gsed; do
  7325. + for ac_exec_ext in '' $ac_executable_extensions; do
  7326. + if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  7327. + lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  7328. + fi
  7329. + done
  7330. + done
  7331. +done
  7332. +IFS=$as_save_IFS
  7333. +lt_ac_max=0
  7334. +lt_ac_count=0
  7335. +# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  7336. +# along with /bin/sed that truncates output.
  7337. +for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  7338. + test ! -f $lt_ac_sed && continue
  7339. + cat /dev/null > conftest.in
  7340. + lt_ac_count=0
  7341. + echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  7342. + # Check for GNU sed and select it if it is found.
  7343. + if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  7344. + lt_cv_path_SED=$lt_ac_sed
  7345. + break
  7346. + fi
  7347. + while true; do
  7348. + cat conftest.in conftest.in >conftest.tmp
  7349. + mv conftest.tmp conftest.in
  7350. + cp conftest.in conftest.nl
  7351. + echo >>conftest.nl
  7352. + $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  7353. + cmp -s conftest.out conftest.nl || break
  7354. + # 10000 chars as input seems more than enough
  7355. + test $lt_ac_count -gt 10 && break
  7356. + lt_ac_count=`expr $lt_ac_count + 1`
  7357. + if test $lt_ac_count -gt $lt_ac_max; then
  7358. + lt_ac_max=$lt_ac_count
  7359. + lt_cv_path_SED=$lt_ac_sed
  7360. + fi
  7361. + done
  7362. +done
  7363. +])
  7364. +SED=$lt_cv_path_SED
  7365. +AC_SUBST([SED])
  7366. +AC_MSG_RESULT([$SED])
  7367. +])#AC_PROG_SED
  7368. +])#m4_ifndef
  7369. +
  7370. +# Old name:
  7371. +AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
  7372. +dnl aclocal-1.4 backwards compatibility:
  7373. +dnl AC_DEFUN([LT_AC_PROG_SED], [])
  7374. +
  7375. +
  7376. +# _LT_CHECK_SHELL_FEATURES
  7377. +# ------------------------
  7378. +# Find out whether the shell is Bourne or XSI compatible,
  7379. +# or has some other useful features.
  7380. +m4_defun([_LT_CHECK_SHELL_FEATURES],
  7381. +[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
  7382. +# Try some XSI features
  7383. +xsi_shell=no
  7384. +( _lt_dummy="a/b/c"
  7385. + test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  7386. + = c,a/b,, \
  7387. + && eval 'test $(( 1 + 1 )) -eq 2 \
  7388. + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  7389. + && xsi_shell=yes
  7390. +AC_MSG_RESULT([$xsi_shell])
  7391. +_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
  7392. +
  7393. +AC_MSG_CHECKING([whether the shell understands "+="])
  7394. +lt_shell_append=no
  7395. +( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
  7396. + >/dev/null 2>&1 \
  7397. + && lt_shell_append=yes
  7398. +AC_MSG_RESULT([$lt_shell_append])
  7399. +_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
  7400. +
  7401. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  7402. + lt_unset=unset
  7403. +else
  7404. + lt_unset=false
  7405. +fi
  7406. +_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
  7407. +
  7408. +# test EBCDIC or ASCII
  7409. +case `echo X|tr X '\101'` in
  7410. + A) # ASCII based system
  7411. + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  7412. + lt_SP2NL='tr \040 \012'
  7413. + lt_NL2SP='tr \015\012 \040\040'
  7414. + ;;
  7415. + *) # EBCDIC based system
  7416. + lt_SP2NL='tr \100 \n'
  7417. + lt_NL2SP='tr \r\n \100\100'
  7418. + ;;
  7419. +esac
  7420. +_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
  7421. +_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
  7422. +])# _LT_CHECK_SHELL_FEATURES
  7423. +
  7424. +
  7425. +# _LT_PROG_XSI_SHELLFNS
  7426. +# ---------------------
  7427. +# Bourne and XSI compatible variants of some useful shell functions.
  7428. +m4_defun([_LT_PROG_XSI_SHELLFNS],
  7429. +[case $xsi_shell in
  7430. + yes)
  7431. + cat << \_LT_EOF >> "$cfgfile"
  7432. +
  7433. +# func_dirname file append nondir_replacement
  7434. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  7435. +# otherwise set result to NONDIR_REPLACEMENT.
  7436. +func_dirname ()
  7437. +{
  7438. + case ${1} in
  7439. + */*) func_dirname_result="${1%/*}${2}" ;;
  7440. + * ) func_dirname_result="${3}" ;;
  7441. + esac
  7442. +}
  7443. +
  7444. +# func_basename file
  7445. +func_basename ()
  7446. +{
  7447. + func_basename_result="${1##*/}"
  7448. +}
  7449. +
  7450. +# func_dirname_and_basename file append nondir_replacement
  7451. +# perform func_basename and func_dirname in a single function
  7452. +# call:
  7453. +# dirname: Compute the dirname of FILE. If nonempty,
  7454. +# add APPEND to the result, otherwise set result
  7455. +# to NONDIR_REPLACEMENT.
  7456. +# value returned in "$func_dirname_result"
  7457. +# basename: Compute filename of FILE.
  7458. +# value retuned in "$func_basename_result"
  7459. +# Implementation must be kept synchronized with func_dirname
  7460. +# and func_basename. For efficiency, we do not delegate to
  7461. +# those functions but instead duplicate the functionality here.
  7462. +func_dirname_and_basename ()
  7463. +{
  7464. + case ${1} in
  7465. + */*) func_dirname_result="${1%/*}${2}" ;;
  7466. + * ) func_dirname_result="${3}" ;;
  7467. + esac
  7468. + func_basename_result="${1##*/}"
  7469. +}
  7470. +
  7471. +# func_stripname prefix suffix name
  7472. +# strip PREFIX and SUFFIX off of NAME.
  7473. +# PREFIX and SUFFIX must not contain globbing or regex special
  7474. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  7475. +# dot (in which case that matches only a dot).
  7476. +func_stripname ()
  7477. +{
  7478. + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  7479. + # positional parameters, so assign one to ordinary parameter first.
  7480. + func_stripname_result=${3}
  7481. + func_stripname_result=${func_stripname_result#"${1}"}
  7482. + func_stripname_result=${func_stripname_result%"${2}"}
  7483. +}
  7484. +
  7485. +# func_opt_split
  7486. +func_opt_split ()
  7487. +{
  7488. + func_opt_split_opt=${1%%=*}
  7489. + func_opt_split_arg=${1#*=}
  7490. +}
  7491. +
  7492. +# func_lo2o object
  7493. +func_lo2o ()
  7494. +{
  7495. + case ${1} in
  7496. + *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  7497. + *) func_lo2o_result=${1} ;;
  7498. + esac
  7499. +}
  7500. +
  7501. +# func_xform libobj-or-source
  7502. +func_xform ()
  7503. +{
  7504. + func_xform_result=${1%.*}.lo
  7505. +}
  7506. +
  7507. +# func_arith arithmetic-term...
  7508. +func_arith ()
  7509. +{
  7510. + func_arith_result=$(( $[*] ))
  7511. +}
  7512. +
  7513. +# func_len string
  7514. +# STRING may not start with a hyphen.
  7515. +func_len ()
  7516. +{
  7517. + func_len_result=${#1}
  7518. +}
  7519. +
  7520. +_LT_EOF
  7521. + ;;
  7522. + *) # Bourne compatible functions.
  7523. + cat << \_LT_EOF >> "$cfgfile"
  7524. +
  7525. +# func_dirname file append nondir_replacement
  7526. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  7527. +# otherwise set result to NONDIR_REPLACEMENT.
  7528. +func_dirname ()
  7529. +{
  7530. + # Extract subdirectory from the argument.
  7531. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  7532. + if test "X$func_dirname_result" = "X${1}"; then
  7533. + func_dirname_result="${3}"
  7534. + else
  7535. + func_dirname_result="$func_dirname_result${2}"
  7536. + fi
  7537. +}
  7538. +
  7539. +# func_basename file
  7540. +func_basename ()
  7541. +{
  7542. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  7543. +}
  7544. +
  7545. +dnl func_dirname_and_basename
  7546. +dnl A portable version of this function is already defined in general.m4sh
  7547. +dnl so there is no need for it here.
  7548. +
  7549. +# func_stripname prefix suffix name
  7550. +# strip PREFIX and SUFFIX off of NAME.
  7551. +# PREFIX and SUFFIX must not contain globbing or regex special
  7552. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  7553. +# dot (in which case that matches only a dot).
  7554. +# func_strip_suffix prefix name
  7555. +func_stripname ()
  7556. +{
  7557. + case ${2} in
  7558. + .*) func_stripname_result=`$ECHO "X${3}" \
  7559. + | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  7560. + *) func_stripname_result=`$ECHO "X${3}" \
  7561. + | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  7562. + esac
  7563. +}
  7564. +
  7565. +# sed scripts:
  7566. +my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
  7567. +my_sed_long_arg='1s/^-[[^=]]*=//'
  7568. +
  7569. +# func_opt_split
  7570. +func_opt_split ()
  7571. +{
  7572. + func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  7573. + func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  7574. +}
  7575. +
  7576. +# func_lo2o object
  7577. +func_lo2o ()
  7578. +{
  7579. + func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  7580. +}
  7581. +
  7582. +# func_xform libobj-or-source
  7583. +func_xform ()
  7584. +{
  7585. + func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
  7586. +}
  7587. +
  7588. +# func_arith arithmetic-term...
  7589. +func_arith ()
  7590. +{
  7591. + func_arith_result=`expr "$[@]"`
  7592. +}
  7593. +
  7594. +# func_len string
  7595. +# STRING may not start with a hyphen.
  7596. +func_len ()
  7597. +{
  7598. + func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
  7599. +}
  7600. +
  7601. +_LT_EOF
  7602. +esac
  7603. +
  7604. +case $lt_shell_append in
  7605. + yes)
  7606. + cat << \_LT_EOF >> "$cfgfile"
  7607. +
  7608. +# func_append var value
  7609. +# Append VALUE to the end of shell variable VAR.
  7610. +func_append ()
  7611. +{
  7612. + eval "$[1]+=\$[2]"
  7613. +}
  7614. +_LT_EOF
  7615. + ;;
  7616. + *)
  7617. + cat << \_LT_EOF >> "$cfgfile"
  7618. +
  7619. +# func_append var value
  7620. +# Append VALUE to the end of shell variable VAR.
  7621. +func_append ()
  7622. +{
  7623. + eval "$[1]=\$$[1]\$[2]"
  7624. +}
  7625. +
  7626. +_LT_EOF
  7627. + ;;
  7628. + esac
  7629. +])
  7630. +
  7631. +# Helper functions for option handling. -*- Autoconf -*-
  7632. +#
  7633. +# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  7634. +# Written by Gary V. Vaughan, 2004
  7635. +#
  7636. +# This file is free software; the Free Software Foundation gives
  7637. +# unlimited permission to copy and/or distribute it, with or without
  7638. +# modifications, as long as this notice is preserved.
  7639. +
  7640. +# serial 6 ltoptions.m4
  7641. +
  7642. +# This is to help aclocal find these macros, as it can't see m4_define.
  7643. +AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
  7644. +
  7645. +
  7646. +# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
  7647. +# ------------------------------------------
  7648. +m4_define([_LT_MANGLE_OPTION],
  7649. +[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
  7650. +
  7651. +
  7652. +# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
  7653. +# ---------------------------------------
  7654. +# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
  7655. +# matching handler defined, dispatch to it. Other OPTION-NAMEs are
  7656. +# saved as a flag.
  7657. +m4_define([_LT_SET_OPTION],
  7658. +[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
  7659. +m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
  7660. + _LT_MANGLE_DEFUN([$1], [$2]),
  7661. + [m4_warning([Unknown $1 option `$2'])])[]dnl
  7662. +])
  7663. +
  7664. +
  7665. +# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
  7666. +# ------------------------------------------------------------
  7667. +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  7668. +m4_define([_LT_IF_OPTION],
  7669. +[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
  7670. +
  7671. +
  7672. +# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
  7673. +# -------------------------------------------------------
  7674. +# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
  7675. +# are set.
  7676. +m4_define([_LT_UNLESS_OPTIONS],
  7677. +[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  7678. + [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
  7679. + [m4_define([$0_found])])])[]dnl
  7680. +m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
  7681. +])[]dnl
  7682. +])
  7683. +
  7684. +
  7685. +# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
  7686. +# ----------------------------------------
  7687. +# OPTION-LIST is a space-separated list of Libtool options associated
  7688. +# with MACRO-NAME. If any OPTION has a matching handler declared with
  7689. +# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
  7690. +# the unknown option and exit.
  7691. +m4_defun([_LT_SET_OPTIONS],
  7692. +[# Set options
  7693. +m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  7694. + [_LT_SET_OPTION([$1], _LT_Option)])
  7695. +
  7696. +m4_if([$1],[LT_INIT],[
  7697. + dnl
  7698. + dnl Simply set some default values (i.e off) if boolean options were not
  7699. + dnl specified:
  7700. + _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
  7701. + ])
  7702. + _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
  7703. + ])
  7704. + dnl
  7705. + dnl If no reference was made to various pairs of opposing options, then
  7706. + dnl we run the default mode handler for the pair. For example, if neither
  7707. + dnl `shared' nor `disable-shared' was passed, we enable building of shared
  7708. + dnl archives by default:
  7709. + _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
  7710. + _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
  7711. + _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
  7712. + _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
  7713. + [_LT_ENABLE_FAST_INSTALL])
  7714. + ])
  7715. +])# _LT_SET_OPTIONS
  7716. +
  7717. +
  7718. +
  7719. +# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
  7720. +# -----------------------------------------
  7721. +m4_define([_LT_MANGLE_DEFUN],
  7722. +[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
  7723. +
  7724. +
  7725. +# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
  7726. +# -----------------------------------------------
  7727. +m4_define([LT_OPTION_DEFINE],
  7728. +[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
  7729. +])# LT_OPTION_DEFINE
  7730. +
  7731. +
  7732. +# dlopen
  7733. +# ------
  7734. +LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
  7735. +])
  7736. +
  7737. +AU_DEFUN([AC_LIBTOOL_DLOPEN],
  7738. +[_LT_SET_OPTION([LT_INIT], [dlopen])
  7739. +AC_DIAGNOSE([obsolete],
  7740. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  7741. +put the `dlopen' option into LT_INIT's first parameter.])
  7742. +])
  7743. +
  7744. +dnl aclocal-1.4 backwards compatibility:
  7745. +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
  7746. +
  7747. +
  7748. +# win32-dll
  7749. +# ---------
  7750. +# Declare package support for building win32 dll's.
  7751. +LT_OPTION_DEFINE([LT_INIT], [win32-dll],
  7752. +[enable_win32_dll=yes
  7753. +
  7754. +case $host in
  7755. +*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
  7756. + AC_CHECK_TOOL(AS, as, false)
  7757. + AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  7758. + AC_CHECK_TOOL(OBJDUMP, objdump, false)
  7759. + ;;
  7760. +esac
  7761. +
  7762. +test -z "$AS" && AS=as
  7763. +_LT_DECL([], [AS], [0], [Assembler program])dnl
  7764. +
  7765. +test -z "$DLLTOOL" && DLLTOOL=dlltool
  7766. +_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
  7767. +
  7768. +test -z "$OBJDUMP" && OBJDUMP=objdump
  7769. +_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
  7770. +])# win32-dll
  7771. +
  7772. +AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
  7773. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  7774. +_LT_SET_OPTION([LT_INIT], [win32-dll])
  7775. +AC_DIAGNOSE([obsolete],
  7776. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  7777. +put the `win32-dll' option into LT_INIT's first parameter.])
  7778. +])
  7779. +
  7780. +dnl aclocal-1.4 backwards compatibility:
  7781. +dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
  7782. +
  7783. +
  7784. +# _LT_ENABLE_SHARED([DEFAULT])
  7785. +# ----------------------------
  7786. +# implement the --enable-shared flag, and supports the `shared' and
  7787. +# `disable-shared' LT_INIT options.
  7788. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  7789. +m4_define([_LT_ENABLE_SHARED],
  7790. +[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
  7791. +AC_ARG_ENABLE([shared],
  7792. + [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  7793. + [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
  7794. + [p=${PACKAGE-default}
  7795. + case $enableval in
  7796. + yes) enable_shared=yes ;;
  7797. + no) enable_shared=no ;;
  7798. + *)
  7799. + enable_shared=no
  7800. + # Look at the argument we got. We use all the common list separators.
  7801. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7802. + for pkg in $enableval; do
  7803. + IFS="$lt_save_ifs"
  7804. + if test "X$pkg" = "X$p"; then
  7805. + enable_shared=yes
  7806. + fi
  7807. + done
  7808. + IFS="$lt_save_ifs"
  7809. + ;;
  7810. + esac],
  7811. + [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
  7812. +
  7813. + _LT_DECL([build_libtool_libs], [enable_shared], [0],
  7814. + [Whether or not to build shared libraries])
  7815. +])# _LT_ENABLE_SHARED
  7816. +
  7817. +LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
  7818. +LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
  7819. +
  7820. +# Old names:
  7821. +AC_DEFUN([AC_ENABLE_SHARED],
  7822. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
  7823. +])
  7824. +
  7825. +AC_DEFUN([AC_DISABLE_SHARED],
  7826. +[_LT_SET_OPTION([LT_INIT], [disable-shared])
  7827. +])
  7828. +
  7829. +AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  7830. +AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  7831. +
  7832. +dnl aclocal-1.4 backwards compatibility:
  7833. +dnl AC_DEFUN([AM_ENABLE_SHARED], [])
  7834. +dnl AC_DEFUN([AM_DISABLE_SHARED], [])
  7835. +
  7836. +
  7837. +
  7838. +# _LT_ENABLE_STATIC([DEFAULT])
  7839. +# ----------------------------
  7840. +# implement the --enable-static flag, and support the `static' and
  7841. +# `disable-static' LT_INIT options.
  7842. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  7843. +m4_define([_LT_ENABLE_STATIC],
  7844. +[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
  7845. +AC_ARG_ENABLE([static],
  7846. + [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  7847. + [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
  7848. + [p=${PACKAGE-default}
  7849. + case $enableval in
  7850. + yes) enable_static=yes ;;
  7851. + no) enable_static=no ;;
  7852. + *)
  7853. + enable_static=no
  7854. + # Look at the argument we got. We use all the common list separators.
  7855. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7856. + for pkg in $enableval; do
  7857. + IFS="$lt_save_ifs"
  7858. + if test "X$pkg" = "X$p"; then
  7859. + enable_static=yes
  7860. + fi
  7861. + done
  7862. + IFS="$lt_save_ifs"
  7863. + ;;
  7864. + esac],
  7865. + [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
  7866. +
  7867. + _LT_DECL([build_old_libs], [enable_static], [0],
  7868. + [Whether or not to build static libraries])
  7869. +])# _LT_ENABLE_STATIC
  7870. +
  7871. +LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
  7872. +LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
  7873. +
  7874. +# Old names:
  7875. +AC_DEFUN([AC_ENABLE_STATIC],
  7876. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
  7877. +])
  7878. +
  7879. +AC_DEFUN([AC_DISABLE_STATIC],
  7880. +[_LT_SET_OPTION([LT_INIT], [disable-static])
  7881. +])
  7882. +
  7883. +AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  7884. +AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  7885. +
  7886. +dnl aclocal-1.4 backwards compatibility:
  7887. +dnl AC_DEFUN([AM_ENABLE_STATIC], [])
  7888. +dnl AC_DEFUN([AM_DISABLE_STATIC], [])
  7889. +
  7890. +
  7891. +
  7892. +# _LT_ENABLE_FAST_INSTALL([DEFAULT])
  7893. +# ----------------------------------
  7894. +# implement the --enable-fast-install flag, and support the `fast-install'
  7895. +# and `disable-fast-install' LT_INIT options.
  7896. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  7897. +m4_define([_LT_ENABLE_FAST_INSTALL],
  7898. +[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
  7899. +AC_ARG_ENABLE([fast-install],
  7900. + [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  7901. + [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  7902. + [p=${PACKAGE-default}
  7903. + case $enableval in
  7904. + yes) enable_fast_install=yes ;;
  7905. + no) enable_fast_install=no ;;
  7906. + *)
  7907. + enable_fast_install=no
  7908. + # Look at the argument we got. We use all the common list separators.
  7909. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7910. + for pkg in $enableval; do
  7911. + IFS="$lt_save_ifs"
  7912. + if test "X$pkg" = "X$p"; then
  7913. + enable_fast_install=yes
  7914. + fi
  7915. + done
  7916. + IFS="$lt_save_ifs"
  7917. + ;;
  7918. + esac],
  7919. + [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
  7920. +
  7921. +_LT_DECL([fast_install], [enable_fast_install], [0],
  7922. + [Whether or not to optimize for fast installation])dnl
  7923. +])# _LT_ENABLE_FAST_INSTALL
  7924. +
  7925. +LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
  7926. +LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
  7927. +
  7928. +# Old names:
  7929. +AU_DEFUN([AC_ENABLE_FAST_INSTALL],
  7930. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
  7931. +AC_DIAGNOSE([obsolete],
  7932. +[$0: Remove this warning and the call to _LT_SET_OPTION when you put
  7933. +the `fast-install' option into LT_INIT's first parameter.])
  7934. +])
  7935. +
  7936. +AU_DEFUN([AC_DISABLE_FAST_INSTALL],
  7937. +[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
  7938. +AC_DIAGNOSE([obsolete],
  7939. +[$0: Remove this warning and the call to _LT_SET_OPTION when you put
  7940. +the `disable-fast-install' option into LT_INIT's first parameter.])
  7941. +])
  7942. +
  7943. +dnl aclocal-1.4 backwards compatibility:
  7944. +dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
  7945. +dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
  7946. +
  7947. +
  7948. +# _LT_WITH_PIC([MODE])
  7949. +# --------------------
  7950. +# implement the --with-pic flag, and support the `pic-only' and `no-pic'
  7951. +# LT_INIT options.
  7952. +# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  7953. +m4_define([_LT_WITH_PIC],
  7954. +[AC_ARG_WITH([pic],
  7955. + [AS_HELP_STRING([--with-pic],
  7956. + [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  7957. + [pic_mode="$withval"],
  7958. + [pic_mode=default])
  7959. +
  7960. +test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
  7961. +
  7962. +_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
  7963. +])# _LT_WITH_PIC
  7964. +
  7965. +LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
  7966. +LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
  7967. +
  7968. +# Old name:
  7969. +AU_DEFUN([AC_LIBTOOL_PICMODE],
  7970. +[_LT_SET_OPTION([LT_INIT], [pic-only])
  7971. +AC_DIAGNOSE([obsolete],
  7972. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  7973. +put the `pic-only' option into LT_INIT's first parameter.])
  7974. +])
  7975. +
  7976. +dnl aclocal-1.4 backwards compatibility:
  7977. +dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
  7978. +
  7979. +
  7980. +m4_define([_LTDL_MODE], [])
  7981. +LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
  7982. + [m4_define([_LTDL_MODE], [nonrecursive])])
  7983. +LT_OPTION_DEFINE([LTDL_INIT], [recursive],
  7984. + [m4_define([_LTDL_MODE], [recursive])])
  7985. +LT_OPTION_DEFINE([LTDL_INIT], [subproject],
  7986. + [m4_define([_LTDL_MODE], [subproject])])
  7987. +
  7988. +m4_define([_LTDL_TYPE], [])
  7989. +LT_OPTION_DEFINE([LTDL_INIT], [installable],
  7990. + [m4_define([_LTDL_TYPE], [installable])])
  7991. +LT_OPTION_DEFINE([LTDL_INIT], [convenience],
  7992. + [m4_define([_LTDL_TYPE], [convenience])])
  7993. +# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
  7994. +#
  7995. +# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  7996. +# Written by Gary V. Vaughan, 2004
  7997. +#
  7998. +# This file is free software; the Free Software Foundation gives
  7999. +# unlimited permission to copy and/or distribute it, with or without
  8000. +# modifications, as long as this notice is preserved.
  8001. +
  8002. +# serial 6 ltsugar.m4
  8003. +
  8004. +# This is to help aclocal find these macros, as it can't see m4_define.
  8005. +AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
  8006. +
  8007. +
  8008. +# lt_join(SEP, ARG1, [ARG2...])
  8009. +# -----------------------------
  8010. +# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
  8011. +# associated separator.
  8012. +# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
  8013. +# versions in m4sugar had bugs.
  8014. +m4_define([lt_join],
  8015. +[m4_if([$#], [1], [],
  8016. + [$#], [2], [[$2]],
  8017. + [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
  8018. +m4_define([_lt_join],
  8019. +[m4_if([$#$2], [2], [],
  8020. + [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
  8021. +
  8022. +
  8023. +# lt_car(LIST)
  8024. +# lt_cdr(LIST)
  8025. +# ------------
  8026. +# Manipulate m4 lists.
  8027. +# These macros are necessary as long as will still need to support
  8028. +# Autoconf-2.59 which quotes differently.
  8029. +m4_define([lt_car], [[$1]])
  8030. +m4_define([lt_cdr],
  8031. +[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
  8032. + [$#], 1, [],
  8033. + [m4_dquote(m4_shift($@))])])
  8034. +m4_define([lt_unquote], $1)
  8035. +
  8036. +
  8037. +# lt_append(MACRO-NAME, STRING, [SEPARATOR])
  8038. +# ------------------------------------------
  8039. +# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
  8040. +# Note that neither SEPARATOR nor STRING are expanded; they are appended
  8041. +# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
  8042. +# No SEPARATOR is output if MACRO-NAME was previously undefined (different
  8043. +# than defined and empty).
  8044. +#
  8045. +# This macro is needed until we can rely on Autoconf 2.62, since earlier
  8046. +# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
  8047. +m4_define([lt_append],
  8048. +[m4_define([$1],
  8049. + m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
  8050. +
  8051. +
  8052. +
  8053. +# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
  8054. +# ----------------------------------------------------------
  8055. +# Produce a SEP delimited list of all paired combinations of elements of
  8056. +# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
  8057. +# has the form PREFIXmINFIXSUFFIXn.
  8058. +# Needed until we can rely on m4_combine added in Autoconf 2.62.
  8059. +m4_define([lt_combine],
  8060. +[m4_if(m4_eval([$# > 3]), [1],
  8061. + [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
  8062. +[[m4_foreach([_Lt_prefix], [$2],
  8063. + [m4_foreach([_Lt_suffix],
  8064. + ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
  8065. + [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
  8066. +
  8067. +
  8068. +# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
  8069. +# -----------------------------------------------------------------------
  8070. +# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
  8071. +# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
  8072. +m4_define([lt_if_append_uniq],
  8073. +[m4_ifdef([$1],
  8074. + [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
  8075. + [lt_append([$1], [$2], [$3])$4],
  8076. + [$5])],
  8077. + [lt_append([$1], [$2], [$3])$4])])
  8078. +
  8079. +
  8080. +# lt_dict_add(DICT, KEY, VALUE)
  8081. +# -----------------------------
  8082. +m4_define([lt_dict_add],
  8083. +[m4_define([$1($2)], [$3])])
  8084. +
  8085. +
  8086. +# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
  8087. +# --------------------------------------------
  8088. +m4_define([lt_dict_add_subkey],
  8089. +[m4_define([$1($2:$3)], [$4])])
  8090. +
  8091. +
  8092. +# lt_dict_fetch(DICT, KEY, [SUBKEY])
  8093. +# ----------------------------------
  8094. +m4_define([lt_dict_fetch],
  8095. +[m4_ifval([$3],
  8096. + m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
  8097. + m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
  8098. +
  8099. +
  8100. +# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
  8101. +# -----------------------------------------------------------------
  8102. +m4_define([lt_if_dict_fetch],
  8103. +[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
  8104. + [$5],
  8105. + [$6])])
  8106. +
  8107. +
  8108. +# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
  8109. +# --------------------------------------------------------------
  8110. +m4_define([lt_dict_filter],
  8111. +[m4_if([$5], [], [],
  8112. + [lt_join(m4_quote(m4_default([$4], [[, ]])),
  8113. + lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
  8114. + [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
  8115. +])
  8116. +
  8117. +# ltversion.m4 -- version numbers -*- Autoconf -*-
  8118. +#
  8119. +# Copyright (C) 2004 Free Software Foundation, Inc.
  8120. +# Written by Scott James Remnant, 2004
  8121. +#
  8122. +# This file is free software; the Free Software Foundation gives
  8123. +# unlimited permission to copy and/or distribute it, with or without
  8124. +# modifications, as long as this notice is preserved.
  8125. +
  8126. +# Generated from ltversion.in.
  8127. +
  8128. +# serial 3012 ltversion.m4
  8129. +# This file is part of GNU Libtool
  8130. +
  8131. +m4_define([LT_PACKAGE_VERSION], [2.2.6])
  8132. +m4_define([LT_PACKAGE_REVISION], [1.3012])
  8133. +
  8134. +AC_DEFUN([LTVERSION_VERSION],
  8135. +[macro_version='2.2.6'
  8136. +macro_revision='1.3012'
  8137. +_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
  8138. +_LT_DECL(, macro_revision, 0)
  8139. +])
  8140. +
  8141. +# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
  8142. +#
  8143. +# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
  8144. +# Written by Scott James Remnant, 2004.
  8145. +#
  8146. +# This file is free software; the Free Software Foundation gives
  8147. +# unlimited permission to copy and/or distribute it, with or without
  8148. +# modifications, as long as this notice is preserved.
  8149. +
  8150. +# serial 4 lt~obsolete.m4
  8151. +
  8152. +# These exist entirely to fool aclocal when bootstrapping libtool.
  8153. +#
  8154. +# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
  8155. +# which have later been changed to m4_define as they aren't part of the
  8156. +# exported API, or moved to Autoconf or Automake where they belong.
  8157. +#
  8158. +# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
  8159. +# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
  8160. +# using a macro with the same name in our local m4/libtool.m4 it'll
  8161. +# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
  8162. +# and doesn't know about Autoconf macros at all.)
  8163. +#
  8164. +# So we provide this file, which has a silly filename so it's always
  8165. +# included after everything else. This provides aclocal with the
  8166. +# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
  8167. +# because those macros already exist, or will be overwritten later.
  8168. +# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
  8169. +#
  8170. +# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
  8171. +# Yes, that means every name once taken will need to remain here until
  8172. +# we give up compatibility with versions before 1.7, at which point
  8173. +# we need to keep only those names which we still refer to.
  8174. +
  8175. +# This is to help aclocal find these macros, as it can't see m4_define.
  8176. +AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
  8177. +
  8178. +m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
  8179. +m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
  8180. +m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
  8181. +m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
  8182. +m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
  8183. +m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
  8184. +m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
  8185. +m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
  8186. +m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
  8187. +m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
  8188. +m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
  8189. +m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
  8190. +m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
  8191. +m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
  8192. +m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
  8193. +m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
  8194. +m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
  8195. +m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
  8196. +m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
  8197. +m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
  8198. +m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
  8199. +m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
  8200. +m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
  8201. +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
  8202. +m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
  8203. +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
  8204. +m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
  8205. +m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
  8206. +m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
  8207. +m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
  8208. +m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
  8209. +m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
  8210. +m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
  8211. +m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
  8212. +m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
  8213. +m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
  8214. +m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
  8215. +m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
  8216. +m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
  8217. +m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
  8218. +m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
  8219. +m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
  8220. +m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
  8221. +m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
  8222. +m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
  8223. +m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
  8224. +m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
  8225. +m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
  8226. +m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
  8227. +m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
  8228. +m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
  8229. +m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
  8230. +m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
  8231. +m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
  8232. +m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
  8233. +
  8234. +# -*- Autoconf -*-
  8235. +# Copyright (C) 2002, 2003 Free Software Foundation, Inc.
  8236. +# Generated from amversion.in; do not edit by hand.
  8237. +
  8238. +# This program is free software; you can redistribute it and/or modify
  8239. +# it under the terms of the GNU General Public License as published by
  8240. +# the Free Software Foundation; either version 2, or (at your option)
  8241. +# any later version.
  8242. +
  8243. +# This program is distributed in the hope that it will be useful,
  8244. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  8245. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  8246. +# GNU General Public License for more details.
  8247. +
  8248. +# You should have received a copy of the GNU General Public License
  8249. +# along with this program; if not, write to the Free Software
  8250. +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  8251. +
  8252. +# AM_AUTOMAKE_VERSION(VERSION)
  8253. +# ----------------------------
  8254. +# Automake X.Y traces this macro to ensure aclocal.m4 has been
  8255. +# generated from the m4 files accompanying Automake X.Y.
  8256. +AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.8"])
  8257. +
  8258. +# AM_SET_CURRENT_AUTOMAKE_VERSION
  8259. +# -------------------------------
  8260. +# Call AM_AUTOMAKE_VERSION so it can be traced.
  8261. +# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
  8262. +AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  8263. + [AM_AUTOMAKE_VERSION([1.8.5])])
  8264. +
  8265. +# AM_AUX_DIR_EXPAND
  8266. +
  8267. +# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
  8268. +
  8269. +# This program is free software; you can redistribute it and/or modify
  8270. +# it under the terms of the GNU General Public License as published by
  8271. +# the Free Software Foundation; either version 2, or (at your option)
  8272. +# any later version.
  8273. +
  8274. +# This program is distributed in the hope that it will be useful,
  8275. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  8276. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  8277. +# GNU General Public License for more details.
  8278. +
  8279. +# You should have received a copy of the GNU General Public License
  8280. +# along with this program; if not, write to the Free Software
  8281. +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  8282. +# 02111-1307, USA.
  8283. +
  8284. +# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
  8285. +# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
  8286. +# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
  8287. +#
  8288. +# Of course, Automake must honor this variable whenever it calls a
  8289. +# tool from the auxiliary directory. The problem is that $srcdir (and
  8290. +# therefore $ac_aux_dir as well) can be either absolute or relative,
  8291. +# depending on how configure is run. This is pretty annoying, since
  8292. +# it makes $ac_aux_dir quite unusable in subdirectories: in the top
  8293. +# source directory, any form will work fine, but in subdirectories a
  8294. +# relative path needs to be adjusted first.
  8295. +#
  8296. +# $ac_aux_dir/missing
  8297. +# fails when called from a subdirectory if $ac_aux_dir is relative
  8298. +# $top_srcdir/$ac_aux_dir/missing
  8299. +# fails if $ac_aux_dir is absolute,
  8300. +# fails when called from a subdirectory in a VPATH build with
  8301. +# a relative $ac_aux_dir
  8302. +#
  8303. +# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
  8304. +# are both prefixed by $srcdir. In an in-source build this is usually
  8305. +# harmless because $srcdir is `.', but things will broke when you
  8306. +# start a VPATH build or use an absolute $srcdir.
  8307. +#
  8308. +# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
  8309. +# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
  8310. +# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
  8311. +# and then we would define $MISSING as
  8312. +# MISSING="\${SHELL} $am_aux_dir/missing"
  8313. +# This will work as long as MISSING is not called from configure, because
  8314. +# unfortunately $(top_srcdir) has no meaning in configure.
  8315. +# However there are other variables, like CC, which are often used in
  8316. +# configure, and could therefore not use this "fixed" $ac_aux_dir.
  8317. +#
  8318. +# Another solution, used here, is to always expand $ac_aux_dir to an
  8319. +# absolute PATH. The drawback is that using absolute paths prevent a
  8320. +# configured tree to be moved without reconfiguration.
  8321. +
  8322. +AC_DEFUN([AM_AUX_DIR_EXPAND],
  8323. +[dnl Rely on autoconf to set up CDPATH properly.
  8324. +AC_PREREQ([2.50])dnl
  8325. +# expand $ac_aux_dir to an absolute path
  8326. +am_aux_dir=`cd $ac_aux_dir && pwd`
  8327. +])
  8328. +
  8329. +# AM_CONDITIONAL -*- Autoconf -*-
  8330. +
  8331. +# Copyright (C) 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
  8332. +
  8333. +# This program is free software; you can redistribute it and/or modify
  8334. +# it under the terms of the GNU General Public License as published by
  8335. +# the Free Software Foundation; either version 2, or (at your option)
  8336. +# any later version.
  8337. +
  8338. +# This program is distributed in the hope that it will be useful,
  8339. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  8340. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  8341. +# GNU General Public License for more details.
  8342. +
  8343. +# You should have received a copy of the GNU General Public License
  8344. +# along with this program; if not, write to the Free Software
  8345. +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  8346. +# 02111-1307, USA.
  8347. +
  8348. +# serial 6
  8349. +
  8350. +# AM_CONDITIONAL(NAME, SHELL-CONDITION)
  8351. +# -------------------------------------
  8352. +# Define a conditional.
  8353. +AC_DEFUN([AM_CONDITIONAL],
  8354. +[AC_PREREQ(2.52)dnl
  8355. + ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
  8356. + [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
  8357. +AC_SUBST([$1_TRUE])
  8358. +AC_SUBST([$1_FALSE])
  8359. +if $2; then
  8360. + $1_TRUE=
  8361. + $1_FALSE='#'
  8362. +else
  8363. + $1_TRUE='#'
  8364. + $1_FALSE=
  8365. +fi
  8366. +AC_CONFIG_COMMANDS_PRE(
  8367. +[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
  8368. + AC_MSG_ERROR([conditional "$1" was never defined.
  8369. +Usually this means the macro was only invoked conditionally.])
  8370. +fi])])
  8371. +
  8372. +# serial 7 -*- Autoconf -*-
  8373. +
  8374. +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004
  8375. +# Free Software Foundation, Inc.
  8376. +
  8377. +# This program is free software; you can redistribute it and/or modify
  8378. +# it under the terms of the GNU General Public License as published by
  8379. +# the Free Software Foundation; either version 2, or (at your option)
  8380. +# any later version.
  8381. +
  8382. +# This program is distributed in the hope that it will be useful,
  8383. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  8384. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  8385. +# GNU General Public License for more details.
  8386. +
  8387. +# You should have received a copy of the GNU General Public License
  8388. +# along with this program; if not, write to the Free Software
  8389. +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  8390. +# 02111-1307, USA.
  8391. +
  8392. +
  8393. +# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
  8394. +# written in clear, in which case automake, when reading aclocal.m4,
  8395. +# will think it sees a *use*, and therefore will trigger all it's
  8396. +# C support machinery. Also note that it means that autoscan, seeing
  8397. +# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
  8398. +
  8399. +
  8400. +
  8401. +# _AM_DEPENDENCIES(NAME)
  8402. +# ----------------------
  8403. +# See how the compiler implements dependency checking.
  8404. +# NAME is "CC", "CXX", "GCJ", or "OBJC".
  8405. +# We try a few techniques and use that to set a single cache variable.
  8406. +#
  8407. +# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
  8408. +# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
  8409. +# dependency, and given that the user is not expected to run this macro,
  8410. +# just rely on AC_PROG_CC.
  8411. +AC_DEFUN([_AM_DEPENDENCIES],
  8412. +[AC_REQUIRE([AM_SET_DEPDIR])dnl
  8413. +AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
  8414. +AC_REQUIRE([AM_MAKE_INCLUDE])dnl
  8415. +AC_REQUIRE([AM_DEP_TRACK])dnl
  8416. +
  8417. +ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
  8418. + [$1], CXX, [depcc="$CXX" am_compiler_list=],
  8419. + [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
  8420. + [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
  8421. + [depcc="$$1" am_compiler_list=])
  8422. +
  8423. +AC_CACHE_CHECK([dependency style of $depcc],
  8424. + [am_cv_$1_dependencies_compiler_type],
  8425. +[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  8426. + # We make a subdir and do the tests there. Otherwise we can end up
  8427. + # making bogus files that we don't know about and never remove. For
  8428. + # instance it was reported that on HP-UX the gcc test will end up
  8429. + # making a dummy file named `D' -- because `-MD' means `put the output
  8430. + # in D'.
  8431. + mkdir conftest.dir
  8432. + # Copy depcomp to subdir because otherwise we won't find it if we're
  8433. + # using a relative directory.
  8434. + cp "$am_depcomp" conftest.dir
  8435. + cd conftest.dir
  8436. + # We will build objects and dependencies in a subdirectory because
  8437. + # it helps to detect inapplicable dependency modes. For instance
  8438. + # both Tru64's cc and ICC support -MD to output dependencies as a
  8439. + # side effect of compilation, but ICC will put the dependencies in
  8440. + # the current directory while Tru64 will put them in the object
  8441. + # directory.
  8442. + mkdir sub
  8443. +
  8444. + am_cv_$1_dependencies_compiler_type=none
  8445. + if test "$am_compiler_list" = ""; then
  8446. + am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
  8447. + fi
  8448. + for depmode in $am_compiler_list; do
  8449. + # Setup a source with many dependencies, because some compilers
  8450. + # like to wrap large dependency lists on column 80 (with \), and
  8451. + # we should not choose a depcomp mode which is confused by this.
  8452. + #
  8453. + # We need to recreate these files for each test, as the compiler may
  8454. + # overwrite some of them when testing with obscure command lines.
  8455. + # This happens at least with the AIX C compiler.
  8456. + : > sub/conftest.c
  8457. + for i in 1 2 3 4 5 6; do
  8458. + echo '#include "conftst'$i'.h"' >> sub/conftest.c
  8459. + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  8460. + # Solaris 8's {/usr,}/bin/sh.
  8461. + touch sub/conftst$i.h
  8462. + done
  8463. + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  8464. +
  8465. + case $depmode in
  8466. + nosideeffect)
  8467. + # after this tag, mechanisms are not by side-effect, so they'll
  8468. + # only be used when explicitly requested
  8469. + if test "x$enable_dependency_tracking" = xyes; then
  8470. + continue
  8471. + else
  8472. + break
  8473. + fi
  8474. + ;;
  8475. + none) break ;;
  8476. + esac
  8477. + # We check with `-c' and `-o' for the sake of the "dashmstdout"
  8478. + # mode. It turns out that the SunPro C++ compiler does not properly
  8479. + # handle `-M -o', and we need to detect this.
  8480. + if depmode=$depmode \
  8481. + source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  8482. + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  8483. + $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  8484. + >/dev/null 2>conftest.err &&
  8485. + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  8486. + grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  8487. + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  8488. + # icc doesn't choke on unknown options, it will just issue warnings
  8489. + # or remarks (even with -Werror). So we grep stderr for any message
  8490. + # that says an option was ignored or not supported.
  8491. + # When given -MP, icc 7.0 and 7.1 complain thusly:
  8492. + # icc: Command line warning: ignoring option '-M'; no argument required
  8493. + # The diagnosis changed in icc 8.0:
  8494. + # icc: Command line remark: option '-MP' not supported
  8495. + if (grep 'ignoring option' conftest.err ||
  8496. + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  8497. + am_cv_$1_dependencies_compiler_type=$depmode
  8498. + break
  8499. + fi
  8500. + fi
  8501. + done
  8502. +
  8503. + cd ..
  8504. + rm -rf conftest.dir
  8505. +else
  8506. + am_cv_$1_dependencies_compiler_type=none
  8507. +fi
  8508. +])
  8509. +AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
  8510. +AM_CONDITIONAL([am__fastdep$1], [
  8511. + test "x$enable_dependency_tracking" != xno \
  8512. + && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
  8513. +])
  8514. +
  8515. +
  8516. +# AM_SET_DEPDIR
  8517. +# -------------
  8518. +# Choose a directory name for dependency files.
  8519. +# This macro is AC_REQUIREd in _AM_DEPENDENCIES
  8520. +AC_DEFUN([AM_SET_DEPDIR],
  8521. +[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  8522. +AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
  8523. +])
  8524. +
  8525. +
  8526. +# AM_DEP_TRACK
  8527. +# ------------
  8528. +AC_DEFUN([AM_DEP_TRACK],
  8529. +[AC_ARG_ENABLE(dependency-tracking,
  8530. +[ --disable-dependency-tracking speeds up one-time build
  8531. + --enable-dependency-tracking do not reject slow dependency extractors])
  8532. +if test "x$enable_dependency_tracking" != xno; then
  8533. + am_depcomp="$ac_aux_dir/depcomp"
  8534. + AMDEPBACKSLASH='\'
  8535. +fi
  8536. +AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
  8537. +AC_SUBST([AMDEPBACKSLASH])
  8538. +])
  8539. +
  8540. +# Generate code to set up dependency tracking. -*- Autoconf -*-
  8541. +
  8542. +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
  8543. +
  8544. +# This program is free software; you can redistribute it and/or modify
  8545. +# it under the terms of the GNU General Public License as published by
  8546. +# the Free Software Foundation; either version 2, or (at your option)
  8547. +# any later version.
  8548. +
  8549. +# This program is distributed in the hope that it will be useful,
  8550. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  8551. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  8552. +# GNU General Public License for more details.
  8553. +
  8554. +# You should have received a copy of the GNU General Public License
  8555. +# along with this program; if not, write to the Free Software
  8556. +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  8557. +# 02111-1307, USA.
  8558. +
  8559. +#serial 2
  8560. +
  8561. +# _AM_OUTPUT_DEPENDENCY_COMMANDS
  8562. +# ------------------------------
  8563. +AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
  8564. +[for mf in $CONFIG_FILES; do
  8565. + # Strip MF so we end up with the name of the file.
  8566. + mf=`echo "$mf" | sed -e 's/:.*$//'`
  8567. + # Check whether this is an Automake generated Makefile or not.
  8568. + # We used to match only the files named `Makefile.in', but
  8569. + # some people rename them; so instead we look at the file content.
  8570. + # Grep'ing the first line is not enough: some people post-process
  8571. + # each Makefile.in and add a new line on top of each file to say so.
  8572. + # So let's grep whole file.
  8573. + if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  8574. + dirpart=`AS_DIRNAME("$mf")`
  8575. + else
  8576. + continue
  8577. + fi
  8578. + grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
  8579. + # Extract the definition of DEP_FILES from the Makefile without
  8580. + # running `make'.
  8581. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  8582. + test -z "$DEPDIR" && continue
  8583. + # When using ansi2knr, U may be empty or an underscore; expand it
  8584. + U=`sed -n 's/^U = //p' < "$mf"`
  8585. + test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
  8586. + # We invoke sed twice because it is the simplest approach to
  8587. + # changing $(DEPDIR) to its actual value in the expansion.
  8588. + for file in `sed -n '
  8589. + /^DEP_FILES = .*\\\\$/ {
  8590. + s/^DEP_FILES = //
  8591. + :loop
  8592. + s/\\\\$//
  8593. + p
  8594. + n
  8595. + /\\\\$/ b loop
  8596. + p
  8597. + }
  8598. + /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
  8599. + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  8600. + # Make sure the directory exists.
  8601. + test -f "$dirpart/$file" && continue
  8602. + fdir=`AS_DIRNAME(["$file"])`
  8603. + AS_MKDIR_P([$dirpart/$fdir])
  8604. + # echo "creating $dirpart/$file"
  8605. + echo '# dummy' > "$dirpart/$file"
  8606. + done
  8607. +done
  8608. +])# _AM_OUTPUT_DEPENDENCY_COMMANDS
  8609. +
  8610. +
  8611. +# AM_OUTPUT_DEPENDENCY_COMMANDS
  8612. +# -----------------------------
  8613. +# This macro should only be invoked once -- use via AC_REQUIRE.
  8614. +#
  8615. +# This code is only required when automatic dependency tracking
  8616. +# is enabled. FIXME. This creates each `.P' file that we will
  8617. +# need in order to bootstrap the dependency handling code.
  8618. +AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
  8619. +[AC_CONFIG_COMMANDS([depfiles],
  8620. + [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
  8621. + [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
  8622. +])
  8623. +
  8624. +# Do all the work for Automake. -*- Autoconf -*-
  8625. +
  8626. +# This macro actually does too much some checks are only needed if
  8627. +# your package does certain things. But this isn't really a big deal.
  8628. +
  8629. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
  8630. +# Free Software Foundation, Inc.
  8631. +
  8632. +# This program is free software; you can redistribute it and/or modify
  8633. +# it under the terms of the GNU General Public License as published by
  8634. +# the Free Software Foundation; either version 2, or (at your option)
  8635. +# any later version.
  8636. +
  8637. +# This program is distributed in the hope that it will be useful,
  8638. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  8639. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  8640. +# GNU General Public License for more details.
  8641. +
  8642. +# You should have received a copy of the GNU General Public License
  8643. +# along with this program; if not, write to the Free Software
  8644. +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  8645. +# 02111-1307, USA.
  8646. +
  8647. +# serial 11
  8648. +
  8649. +# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
  8650. +# AM_INIT_AUTOMAKE([OPTIONS])
  8651. +# -----------------------------------------------
  8652. +# The call with PACKAGE and VERSION arguments is the old style
  8653. +# call (pre autoconf-2.50), which is being phased out. PACKAGE
  8654. +# and VERSION should now be passed to AC_INIT and removed from
  8655. +# the call to AM_INIT_AUTOMAKE.
  8656. +# We support both call styles for the transition. After
  8657. +# the next Automake release, Autoconf can make the AC_INIT
  8658. +# arguments mandatory, and then we can depend on a new Autoconf
  8659. +# release and drop the old call support.
  8660. +AC_DEFUN([AM_INIT_AUTOMAKE],
  8661. +[AC_PREREQ([2.58])dnl
  8662. +dnl Autoconf wants to disallow AM_ names. We explicitly allow
  8663. +dnl the ones we care about.
  8664. +m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
  8665. +AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
  8666. +AC_REQUIRE([AC_PROG_INSTALL])dnl
  8667. +# test to see if srcdir already configured
  8668. +if test "`cd $srcdir && pwd`" != "`pwd`" &&
  8669. + test -f $srcdir/config.status; then
  8670. + AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  8671. +fi
  8672. +
  8673. +# test whether we have cygpath
  8674. +if test -z "$CYGPATH_W"; then
  8675. + if (cygpath --version) >/dev/null 2>/dev/null; then
  8676. + CYGPATH_W='cygpath -w'
  8677. + else
  8678. + CYGPATH_W=echo
  8679. + fi
  8680. +fi
  8681. +AC_SUBST([CYGPATH_W])
  8682. +
  8683. +# Define the identity of the package.
  8684. +dnl Distinguish between old-style and new-style calls.
  8685. +m4_ifval([$2],
  8686. +[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
  8687. + AC_SUBST([PACKAGE], [$1])dnl
  8688. + AC_SUBST([VERSION], [$2])],
  8689. +[_AM_SET_OPTIONS([$1])dnl
  8690. + AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
  8691. + AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
  8692. +
  8693. +_AM_IF_OPTION([no-define],,
  8694. +[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
  8695. + AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
  8696. +
  8697. +# Some tools Automake needs.
  8698. +AC_REQUIRE([AM_SANITY_CHECK])dnl
  8699. +AC_REQUIRE([AC_ARG_PROGRAM])dnl
  8700. +AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
  8701. +AM_MISSING_PROG(AUTOCONF, autoconf)
  8702. +AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
  8703. +AM_MISSING_PROG(AUTOHEADER, autoheader)
  8704. +AM_MISSING_PROG(MAKEINFO, makeinfo)
  8705. +AM_MISSING_PROG(AMTAR, tar)
  8706. +AM_PROG_INSTALL_SH
  8707. +AM_PROG_INSTALL_STRIP
  8708. +AC_REQUIRE([AM_PROG_MKDIR_P])dnl
  8709. +# We need awk for the "check" target. The system "awk" is bad on
  8710. +# some platforms.
  8711. +AC_REQUIRE([AC_PROG_AWK])dnl
  8712. +AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  8713. +AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  8714. +
  8715. +_AM_IF_OPTION([no-dependencies],,
  8716. +[AC_PROVIDE_IFELSE([AC_PROG_CC],
  8717. + [_AM_DEPENDENCIES(CC)],
  8718. + [define([AC_PROG_CC],
  8719. + defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
  8720. +AC_PROVIDE_IFELSE([AC_PROG_CXX],
  8721. + [_AM_DEPENDENCIES(CXX)],
  8722. + [define([AC_PROG_CXX],
  8723. + defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  8724. +])
  8725. +])
  8726. +
  8727. +
  8728. +# When config.status generates a header, we must update the stamp-h file.
  8729. +# This file resides in the same directory as the config header
  8730. +# that is generated. The stamp files are numbered to have different names.
  8731. +
  8732. +# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
  8733. +# loop where config.status creates the headers, so we can generate
  8734. +# our stamp files there.
  8735. +AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
  8736. +[# Compute $1's index in $config_headers.
  8737. +_am_stamp_count=1
  8738. +for _am_header in $config_headers :; do
  8739. + case $_am_header in
  8740. + $1 | $1:* )
  8741. + break ;;
  8742. + * )
  8743. + _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  8744. + esac
  8745. +done
  8746. +echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
  8747. +
  8748. +# AM_PROG_INSTALL_SH
  8749. +# ------------------
  8750. +# Define $install_sh.
  8751. +
  8752. +# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
  8753. +
  8754. +# This program is free software; you can redistribute it and/or modify
  8755. +# it under the terms of the GNU General Public License as published by
  8756. +# the Free Software Foundation; either version 2, or (at your option)
  8757. +# any later version.
  8758. +
  8759. +# This program is distributed in the hope that it will be useful,
  8760. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  8761. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  8762. +# GNU General Public License for more details.
  8763. +
  8764. +# You should have received a copy of the GNU General Public License
  8765. +# along with this program; if not, write to the Free Software
  8766. +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  8767. +# 02111-1307, USA.
  8768. +
  8769. +AC_DEFUN([AM_PROG_INSTALL_SH],
  8770. +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  8771. +install_sh=${install_sh-"$am_aux_dir/install-sh"}
  8772. +AC_SUBST(install_sh)])
  8773. +
  8774. +# -*- Autoconf -*-
  8775. +# Copyright (C) 2003 Free Software Foundation, Inc.
  8776. +
  8777. +# This program is free software; you can redistribute it and/or modify
  8778. +# it under the terms of the GNU General Public License as published by
  8779. +# the Free Software Foundation; either version 2, or (at your option)
  8780. +# any later version.
  8781. +
  8782. +# This program is distributed in the hope that it will be useful,
  8783. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  8784. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  8785. +# GNU General Public License for more details.
  8786. +
  8787. +# You should have received a copy of the GNU General Public License
  8788. +# along with this program; if not, write to the Free Software
  8789. +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  8790. +# 02111-1307, USA.
  8791. +
  8792. +# serial 1
  8793. +
  8794. +# Check whether the underlying file-system supports filenames
  8795. +# with a leading dot. For instance MS-DOS doesn't.
  8796. +AC_DEFUN([AM_SET_LEADING_DOT],
  8797. +[rm -rf .tst 2>/dev/null
  8798. +mkdir .tst 2>/dev/null
  8799. +if test -d .tst; then
  8800. + am__leading_dot=.
  8801. +else
  8802. + am__leading_dot=_
  8803. +fi
  8804. +rmdir .tst 2>/dev/null
  8805. +AC_SUBST([am__leading_dot])])
  8806. +
  8807. +# Check to see how 'make' treats includes. -*- Autoconf -*-
  8808. +
  8809. +# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
  8810. +
  8811. +# This program is free software; you can redistribute it and/or modify
  8812. +# it under the terms of the GNU General Public License as published by
  8813. +# the Free Software Foundation; either version 2, or (at your option)
  8814. +# any later version.
  8815. +
  8816. +# This program is distributed in the hope that it will be useful,
  8817. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  8818. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  8819. +# GNU General Public License for more details.
  8820. +
  8821. +# You should have received a copy of the GNU General Public License
  8822. +# along with this program; if not, write to the Free Software
  8823. +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  8824. +# 02111-1307, USA.
  8825. +
  8826. +# serial 2
  8827. +
  8828. +# AM_MAKE_INCLUDE()
  8829. +# -----------------
  8830. +# Check to see how make treats includes.
  8831. +AC_DEFUN([AM_MAKE_INCLUDE],
  8832. +[am_make=${MAKE-make}
  8833. +cat > confinc << 'END'
  8834. +am__doit:
  8835. + @echo done
  8836. +.PHONY: am__doit
  8837. +END
  8838. +# If we don't find an include directive, just comment out the code.
  8839. +AC_MSG_CHECKING([for style of include used by $am_make])
  8840. +am__include="#"
  8841. +am__quote=
  8842. +_am_result=none
  8843. +# First try GNU make style include.
  8844. +echo "include confinc" > confmf
  8845. +# We grep out `Entering directory' and `Leaving directory'
  8846. +# messages which can occur if `w' ends up in MAKEFLAGS.
  8847. +# In particular we don't look at `^make:' because GNU make might
  8848. +# be invoked under some other name (usually "gmake"), in which
  8849. +# case it prints its new name instead of `make'.
  8850. +if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  8851. + am__include=include
  8852. + am__quote=
  8853. + _am_result=GNU
  8854. +fi
  8855. +# Now try BSD make style include.
  8856. +if test "$am__include" = "#"; then
  8857. + echo '.include "confinc"' > confmf
  8858. + if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  8859. + am__include=.include
  8860. + am__quote="\""
  8861. + _am_result=BSD
  8862. + fi
  8863. +fi
  8864. +AC_SUBST([am__include])
  8865. +AC_SUBST([am__quote])
  8866. +AC_MSG_RESULT([$_am_result])
  8867. +rm -f confinc confmf
  8868. +])
  8869. +
  8870. +# -*- Autoconf -*-
  8871. +
  8872. +
  8873. +# Copyright (C) 1997, 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
  8874. +
  8875. +# This program is free software; you can redistribute it and/or modify
  8876. +# it under the terms of the GNU General Public License as published by
  8877. +# the Free Software Foundation; either version 2, or (at your option)
  8878. +# any later version.
  8879. +
  8880. +# This program is distributed in the hope that it will be useful,
  8881. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  8882. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  8883. +# GNU General Public License for more details.
  8884. +
  8885. +# You should have received a copy of the GNU General Public License
  8886. +# along with this program; if not, write to the Free Software
  8887. +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  8888. +# 02111-1307, USA.
  8889. +
  8890. +# serial 3
  8891. +
  8892. +# AM_MISSING_PROG(NAME, PROGRAM)
  8893. +# ------------------------------
  8894. +AC_DEFUN([AM_MISSING_PROG],
  8895. +[AC_REQUIRE([AM_MISSING_HAS_RUN])
  8896. +$1=${$1-"${am_missing_run}$2"}
  8897. +AC_SUBST($1)])
  8898. +
  8899. +
  8900. +# AM_MISSING_HAS_RUN
  8901. +# ------------------
  8902. +# Define MISSING if not defined so far and test if it supports --run.
  8903. +# If it does, set am_missing_run to use it, otherwise, to nothing.
  8904. +AC_DEFUN([AM_MISSING_HAS_RUN],
  8905. +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  8906. +test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  8907. +# Use eval to expand $SHELL
  8908. +if eval "$MISSING --run true"; then
  8909. + am_missing_run="$MISSING --run "
  8910. +else
  8911. + am_missing_run=
  8912. + AC_MSG_WARN([`missing' script is too old or missing])
  8913. +fi
  8914. +])
  8915. +
  8916. +# AM_PROG_MKDIR_P
  8917. +# ---------------
  8918. +# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
  8919. +
  8920. +# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
  8921. +
  8922. +# This program is free software; you can redistribute it and/or modify
  8923. +# it under the terms of the GNU General Public License as published by
  8924. +# the Free Software Foundation; either version 2, or (at your option)
  8925. +# any later version.
  8926. +
  8927. +# This program is distributed in the hope that it will be useful,
  8928. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  8929. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  8930. +# GNU General Public License for more details.
  8931. +
  8932. +# You should have received a copy of the GNU General Public License
  8933. +# along with this program; if not, write to the Free Software
  8934. +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  8935. +# 02111-1307, USA.
  8936. +
  8937. +# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
  8938. +# created by `make install' are always world readable, even if the
  8939. +# installer happens to have an overly restrictive umask (e.g. 077).
  8940. +# This was a mistake. There are at least two reasons why we must not
  8941. +# use `-m 0755':
  8942. +# - it causes special bits like SGID to be ignored,
  8943. +# - it may be too restrictive (some setups expect 775 directories).
  8944. +#
  8945. +# Do not use -m 0755 and let people choose whatever they expect by
  8946. +# setting umask.
  8947. +#
  8948. +# We cannot accept any implementation of `mkdir' that recognizes `-p'.
  8949. +# Some implementations (such as Solaris 8's) are not thread-safe: if a
  8950. +# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
  8951. +# concurrently, both version can detect that a/ is missing, but only
  8952. +# one can create it and the other will error out. Consequently we
  8953. +# restrict ourselves to GNU make (using the --version option ensures
  8954. +# this.)
  8955. +AC_DEFUN([AM_PROG_MKDIR_P],
  8956. +[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  8957. + # Keeping the `.' argument allows $(mkdir_p) to be used without
  8958. + # argument. Indeed, we sometimes output rules like
  8959. + # $(mkdir_p) $(somedir)
  8960. + # where $(somedir) is conditionally defined.
  8961. + # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
  8962. + # expensive solution, as it forces Make to start a sub-shell.)
  8963. + mkdir_p='mkdir -p -- .'
  8964. +else
  8965. + # On NextStep and OpenStep, the `mkdir' command does not
  8966. + # recognize any option. It will interpret all options as
  8967. + # directories to create, and then abort because `.' already
  8968. + # exists.
  8969. + for d in ./-p ./--version;
  8970. + do
  8971. + test -d $d && rmdir $d
  8972. + done
  8973. + # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  8974. + if test -f "$ac_aux_dir/mkinstalldirs"; then
  8975. + mkdir_p='$(mkinstalldirs)'
  8976. + else
  8977. + mkdir_p='$(install_sh) -d'
  8978. + fi
  8979. +fi
  8980. +AC_SUBST([mkdir_p])])
  8981. +
  8982. +# Helper functions for option handling. -*- Autoconf -*-
  8983. +
  8984. +# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
  8985. +
  8986. +# This program is free software; you can redistribute it and/or modify
  8987. +# it under the terms of the GNU General Public License as published by
  8988. +# the Free Software Foundation; either version 2, or (at your option)
  8989. +# any later version.
  8990. +
  8991. +# This program is distributed in the hope that it will be useful,
  8992. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  8993. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  8994. +# GNU General Public License for more details.
  8995. +
  8996. +# You should have received a copy of the GNU General Public License
  8997. +# along with this program; if not, write to the Free Software
  8998. +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  8999. +# 02111-1307, USA.
  9000. +
  9001. +# serial 2
  9002. +
  9003. +# _AM_MANGLE_OPTION(NAME)
  9004. +# -----------------------
  9005. +AC_DEFUN([_AM_MANGLE_OPTION],
  9006. +[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
  9007. +
  9008. +# _AM_SET_OPTION(NAME)
  9009. +# ------------------------------
  9010. +# Set option NAME. Presently that only means defining a flag for this option.
  9011. +AC_DEFUN([_AM_SET_OPTION],
  9012. +[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
  9013. +
  9014. +# _AM_SET_OPTIONS(OPTIONS)
  9015. +# ----------------------------------
  9016. +# OPTIONS is a space-separated list of Automake options.
  9017. +AC_DEFUN([_AM_SET_OPTIONS],
  9018. +[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  9019. +
  9020. +# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
  9021. +# -------------------------------------------
  9022. +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  9023. +AC_DEFUN([_AM_IF_OPTION],
  9024. +[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
  9025. +
  9026. +#
  9027. +# Check to make sure that the build environment is sane.
  9028. +#
  9029. +
  9030. +# Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
  9031. +
  9032. +# This program is free software; you can redistribute it and/or modify
  9033. +# it under the terms of the GNU General Public License as published by
  9034. +# the Free Software Foundation; either version 2, or (at your option)
  9035. +# any later version.
  9036. +
  9037. +# This program is distributed in the hope that it will be useful,
  9038. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  9039. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  9040. +# GNU General Public License for more details.
  9041. +
  9042. +# You should have received a copy of the GNU General Public License
  9043. +# along with this program; if not, write to the Free Software
  9044. +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  9045. +# 02111-1307, USA.
  9046. +
  9047. +# serial 3
  9048. +
  9049. +# AM_SANITY_CHECK
  9050. +# ---------------
  9051. +AC_DEFUN([AM_SANITY_CHECK],
  9052. +[AC_MSG_CHECKING([whether build environment is sane])
  9053. +# Just in case
  9054. +sleep 1
  9055. +echo timestamp > conftest.file
  9056. +# Do `set' in a subshell so we don't clobber the current shell's
  9057. +# arguments. Must try -L first in case configure is actually a
  9058. +# symlink; some systems play weird games with the mod time of symlinks
  9059. +# (eg FreeBSD returns the mod time of the symlink's containing
  9060. +# directory).
  9061. +if (
  9062. + set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  9063. + if test "$[*]" = "X"; then
  9064. + # -L didn't work.
  9065. + set X `ls -t $srcdir/configure conftest.file`
  9066. + fi
  9067. + rm -f conftest.file
  9068. + if test "$[*]" != "X $srcdir/configure conftest.file" \
  9069. + && test "$[*]" != "X conftest.file $srcdir/configure"; then
  9070. +
  9071. + # If neither matched, then we have a broken ls. This can happen
  9072. + # if, for instance, CONFIG_SHELL is bash and it inherits a
  9073. + # broken ls alias from the environment. This has actually
  9074. + # happened. Such a system could not be considered "sane".
  9075. + AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
  9076. +alias in your environment])
  9077. + fi
  9078. +
  9079. + test "$[2]" = conftest.file
  9080. + )
  9081. +then
  9082. + # Ok.
  9083. + :
  9084. +else
  9085. + AC_MSG_ERROR([newly created file is older than distributed files!
  9086. +Check your system clock])
  9087. +fi
  9088. +AC_MSG_RESULT(yes)])
  9089. +
  9090. +# AM_PROG_INSTALL_STRIP
  9091. +
  9092. +# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
  9093. +
  9094. +# This program is free software; you can redistribute it and/or modify
  9095. +# it under the terms of the GNU General Public License as published by
  9096. +# the Free Software Foundation; either version 2, or (at your option)
  9097. +# any later version.
  9098. +
  9099. +# This program is distributed in the hope that it will be useful,
  9100. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  9101. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  9102. +# GNU General Public License for more details.
  9103. +
  9104. +# You should have received a copy of the GNU General Public License
  9105. +# along with this program; if not, write to the Free Software
  9106. +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  9107. +# 02111-1307, USA.
  9108. +
  9109. +# One issue with vendor `install' (even GNU) is that you can't
  9110. +# specify the program used to strip binaries. This is especially
  9111. +# annoying in cross-compiling environments, where the build's strip
  9112. +# is unlikely to handle the host's binaries.
  9113. +# Fortunately install-sh will honor a STRIPPROG variable, so we
  9114. +# always use install-sh in `make install-strip', and initialize
  9115. +# STRIPPROG with the value of the STRIP variable (set by the user).
  9116. +AC_DEFUN([AM_PROG_INSTALL_STRIP],
  9117. +[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  9118. +# Installed binaries are usually stripped using `strip' when the user
  9119. +# run `make install-strip'. However `strip' might not be the right
  9120. +# tool to use in cross-compilation environments, therefore Automake
  9121. +# will honor the `STRIP' environment variable to overrule this program.
  9122. +dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
  9123. +if test "$cross_compiling" != no; then
  9124. + AC_CHECK_TOOL([STRIP], [strip], :)
  9125. +fi
  9126. +INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  9127. +AC_SUBST([INSTALL_STRIP_PROGRAM])])
  9128. +
  9129. +m4_include([acinclude.m4])